Lines Matching refs:p_phy_ctrl_obj
53 static phy_ctrl_obj_t *p_phy_ctrl_obj = NULL; variable
179 if (p_phy_ctrl_obj) { in usb_phy_install()
191 if (!p_phy_ctrl_obj) { in usb_phy_install()
192 p_phy_ctrl_obj = phy_ctrl_obj; in usb_phy_install()
193 p_phy_ctrl_obj->ref_count = 0; in usb_phy_install()
225 p_phy_ctrl_obj->ref_count++; 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()
274 if (p_phy_ctrl_obj->ref_count == 0) { in usb_new_phy()
275 free(p_phy_ctrl_obj); in usb_new_phy()
276 p_phy_ctrl_obj = NULL; in usb_new_phy()
285 if (p_phy_ctrl_obj->ref_count == 0) { in phy_uninstall()
286 p_phy_ctrl_obj_free = p_phy_ctrl_obj; in phy_uninstall()
287 p_phy_ctrl_obj = NULL; in phy_uninstall()
300 p_phy_ctrl_obj->ref_count--; in usb_del_phy()
302 p_phy_ctrl_obj->external_phy = NULL; in usb_del_phy()
306 p_phy_ctrl_obj->internal_phy = NULL; in usb_del_phy()
318 ESP_RETURN_ON_FALSE(p_phy_ctrl_obj, ESP_ERR_INVALID_STATE, USBPHY_TAG, USBPHY_NOT_INIT_ERR_STR); in usb_phy_get_phy_status()
320 if (target == USB_PHY_TARGET_EXT && p_phy_ctrl_obj->external_phy) { in usb_phy_get_phy_status()
321 *status = p_phy_ctrl_obj->external_phy->status; in usb_phy_get_phy_status()
322 } else if (target == USB_PHY_TARGET_INT && p_phy_ctrl_obj->internal_phy) { in usb_phy_get_phy_status()
323 *status = p_phy_ctrl_obj->internal_phy->status; in usb_phy_get_phy_status()