Lines Matching refs:phy_info

478 int32_t usb_info_fill(usb_phy_t *phy_info)  in usb_info_fill()  argument
482 if (phy_info->initialized != 0U) { in usb_info_fill()
486 if (phy_info->phy_id == USB3H_DRDU2_PHY) { in usb_info_fill()
487 phy_info->phy_port = usb_phy_port[USB3H_DRDU2_PHY - 1U]; in usb_info_fill()
488 phy_info->ports_enabled = 0x7U; in usb_info_fill()
490 phy_info->phy_port = usb_phy_port[DRDU3_PHY - 1U]; in usb_info_fill()
491 phy_info->ports_enabled = 0x3U; in usb_info_fill()
495 phy_info->phy_port[index].enabled = (phy_info->ports_enabled in usb_info_fill()
497 phy_info->phy_port[index].p = phy_info; in usb_info_fill()
498 phy_info->phy_port[index].port_id = index; in usb_info_fill()
507 usb_phy_t *phy_info; in usb_phy_init() local
510 phy_info = (usb_phy_t *)device->pcd_id; in usb_phy_init()
512 status = usb_info_fill(phy_info); in usb_phy_init()
518 if (phy_info->phy_port[index].enabled != 0U) { in usb_phy_init()
519 switch (phy_info->phy_id) { in usb_phy_init()
522 u3h_u2drd_phy_power_on(&phy_info-> in usb_phy_init()
527 u3drd_phy_power_on(&phy_info-> in usb_phy_init()
533 phy_info->initialized = !status; in usb_phy_init()
539 usb_phy_t *phy_info; in usb_phy_shutdown() local
542 phy_info = (usb_phy_t *)device->pcd_id; in usb_phy_shutdown()
544 phy_info->initialized = 0U; in usb_phy_shutdown()
547 if (phy_info->phy_port[index].enabled != 0U) { in usb_phy_shutdown()
548 switch (phy_info->phy_id) { in usb_phy_shutdown()
550 u3h_u2drd_phy_power_off(&phy_info-> in usb_phy_shutdown()
554 u3drd_phy_power_off(&phy_info->phy_port[index]); in usb_phy_shutdown()
558 phy_info->phy_id); in usb_phy_shutdown()