Searched refs:phy_dev (Results 1 – 8 of 8) sorted by relevance
| /bsp/hpmicro/hpm6300evk/board/ |
| A D | eth_phy_port.c | 27 phy_device_t *phy_dev; member 47 .phy_dev = &phy0_dev, 63 .phy_dev = &phy1_dev, 156 phy_device_t *phy_dev; in phy_poll_status() local 166 phy_dev = phy_monitor_handle->phy_handle[i]->phy_dev; in phy_poll_status() 168 phy_dev->phy.ops->get_link_status(&phy_dev->phy, &status); in phy_poll_status() 205 phy_dev->phy.ops->init(phy_dev->phy.bus->hw_obj, phy_dev->phy.addr, PHY_MDIO_CSR_CLK_FREQ); in phy_detection() 207 while(phy_dev->phy.addr == 0xffff) in phy_detection() 213 phy_dev->phy.parent.read(&(phy_dev->phy.parent), 0, &msg, 1); in phy_detection() 217 phy_dev->phy.addr = i; in phy_detection() [all …]
|
| /bsp/cvitek/drivers/libraries/eth/ |
| A D | cvi_eth_phy.c | 378 RT_ASSERT(phy_dev->priv); in genphy_config_advert() 388 phy_dev->advertising &= phy_dev->supported; in genphy_config_advert() 475 RT_ASSERT(phy_dev->priv); in genphy_setup_forced() 501 ret = eth_phy_read(phy_dev->priv, phy_dev->phy_addr, CVI_MII_BMCR, &ctl); in genphy_restart_aneg() 511 ret = eth_phy_write(phy_dev->priv, phy_dev->phy_addr, CVI_MII_BMCR, ctl); in genphy_restart_aneg() 609 eth_phy_dev_t *phy_dev; in cvi_eth_phy_init() local 624 if (phy_dev == NULL) { in cvi_eth_phy_init() 630 phy_dev->priv = priv; in cvi_eth_phy_init() 633 eth_phy_reset(phy_dev); in cvi_eth_phy_init() 636 eth_phy_config(phy_dev); in cvi_eth_phy_init() [all …]
|
| A D | cvi_eth_phy.h | 344 int32_t (*config)(eth_phy_handle_t phy_dev); 345 int32_t (*start)(eth_phy_handle_t phy_dev); 346 int32_t (*stop)(eth_phy_handle_t phy_dev); 347 int32_t (*loopback)(eth_phy_handle_t phy_dev); 348 int32_t (*update_link)(eth_phy_handle_t phy_dev); 372 int32_t genphy_config(eth_phy_dev_t *phy_dev); 373 int32_t genphy_update_link(eth_phy_dev_t *phy_dev);
|
| A D | dw_eth_mac.c | 187 eth_link_info_t *link_info = &mac_dev->phy_dev->priv->link_info; in designware_adjust_link() 188 eth_link_state_t link_state = mac_dev->phy_dev->link_state; in designware_adjust_link() 279 eth_link_state_t link_state = mac_dev->phy_dev->link_state; in designware_eth_enable() 482 eth_phy_dev_t *phy_dev = (eth_phy_dev_t *)handle_phy; in dw_eth_mac_connect_phy() local 484 mac_dev->phy_dev = phy_dev; in dw_eth_mac_connect_phy() 571 RT_ASSERT(mac_dev->phy_dev); in cvi_eth_mac_control()
|
| A D | dw_eth_mac.h | 304 eth_phy_dev_t *phy_dev; member
|
| /bsp/hpmicro/libraries/drivers/ |
| A D | drv_enet_phy.c | 29 phy_device_t *phy_dev; member 49 .phy_dev = &phy0_dev, 65 .phy_dev = &phy1_dev, 292 phy_device_t *phy_dev; in phy_poll_status() local 302 phy_dev = phy_monitor_handle->phy_handle[i]->phy_dev; in phy_poll_status() 304 phy_dev->phy.ops->get_link_status(&phy_dev->phy, &status); in phy_poll_status() 308 … phy_dev->phy.ops->get_link_speed_duplex(&phy_dev->phy, &phy_info.phy_speed, &phy_info.phy_duplex); in phy_poll_status() 317 if (phy_dev->phy_link != status) in phy_poll_status() 338 if (phy_dev->phy.ops->init(phy_dev->phy.bus->hw_obj, 0, PHY_MDIO_CSR_CLK_FREQ) != PHY_STATUS_OK) in phy_detection() 380 s_gphys[i]->phy_dev->phy.addr = 0xffff; in phy_device_register() [all …]
|
| /bsp/nxp/imx/imxrt/libraries/drivers/ |
| A D | drv_eth.c | 889 static struct rt_phy_device *phy_dev = RT_NULL; variable 898 phy_dev = (struct rt_phy_device *)rt_device_find("rtl8211f"); in phy_monitor_thread_entry() 899 if ((RT_NULL == phy_dev) || (RT_NULL == phy_dev->ops)) in phy_monitor_thread_entry() 906 phy_dev = (struct rt_phy_device *)rt_device_find("ksz8081"); in phy_monitor_thread_entry() 907 if ((RT_NULL == phy_dev) || (RT_NULL == phy_dev->ops)) in phy_monitor_thread_entry() 915 phy_dev = (struct rt_phy_device *)rt_device_find("ksz8081"); in phy_monitor_thread_entry() 916 if ((RT_NULL == phy_dev) || (RT_NULL == phy_dev->ops)) in phy_monitor_thread_entry() 924 if (RT_NULL == phy_dev->ops->init) in phy_monitor_thread_entry() 1103 rt_phy_status status = phy_dev->ops->read(phy_reg, &data); in phy_read() 1116 rt_phy_status status = phy_dev->ops->write(phy_reg, data); in phy_write() [all …]
|
| /bsp/cvitek/drivers/ |
| A D | drv_eth.c | 151 if (!mac_dev->phy_dev || !mac_dev->phy_dev->link_state) in dw_gmac_handler_irq()
|
Completed in 858 milliseconds