Searched refs:phy_context (Results 1 – 1 of 1) sorted by relevance
218 phy_context_t *phy_context = (phy_context_t *) calloc(1, sizeof(phy_context_t)); in usb_new_phy() local219 ESP_GOTO_ON_FALSE(phy_context, ESP_ERR_NO_MEM, cleanup, USBPHY_TAG, "no mem for phy context"); in usb_new_phy()222 usb_phy_get_phy_status(config->target, &phy_context->status); in usb_new_phy()223 if (phy_context->status == USB_PHY_STATUS_FREE) { in usb_new_phy()227 p_phy_ctrl_obj->external_phy = phy_context; in usb_new_phy()229 p_phy_ctrl_obj->internal_phy = phy_context; in usb_new_phy()235 phy_context->target = config->target; in usb_new_phy()236 phy_context->controller = config->controller; in usb_new_phy()237 phy_context->status = USB_PHY_STATUS_IN_USE; in usb_new_phy()239 usb_phy_hal_init(&(phy_context->hal_context)); in usb_new_phy()[all …]