Lines Matching refs:port_obj
181 typedef struct port_obj port_t;
281 struct port_obj { struct
322 port_t *port_obj; argument
1008 p_hcd_obj_dmy->port_obj = port_obj_alloc(); in hcd_install()
1012 (void *)p_hcd_obj_dmy->port_obj, in hcd_install()
1014 if (p_hcd_obj_dmy->port_obj == NULL) { in hcd_install()
1036 port_obj_free(p_hcd_obj_dmy->port_obj); in hcd_install()
1045 if (s_hcd_obj == NULL || s_hcd_obj->port_obj->initialized) { in hcd_uninstall()
1054 port_obj_free(p_hcd_obj_dmy->port_obj); in hcd_uninstall()
1332 …HCD_CHECK_FROM_CRIT(s_hcd_obj != NULL && !s_hcd_obj->port_obj->initialized, ESP_ERR_INVALID_STATE); in hcd_port_init()
1334 port_t *port_obj = s_hcd_obj->port_obj; in hcd_port_init() local
1335 TAILQ_INIT(&port_obj->pipes_idle_tailq); in hcd_port_init()
1336 TAILQ_INIT(&port_obj->pipes_active_tailq); in hcd_port_init()
1337 port_obj->state = HCD_PORT_STATE_NOT_POWERED; in hcd_port_init()
1338 port_obj->last_event = HCD_PORT_EVENT_NONE; in hcd_port_init()
1339 port_obj->fifo_config = fifo_config; in hcd_port_init()
1340 port_obj->fifo_mps_limits = mps_limits; in hcd_port_init()
1341 port_obj->callback = port_config->callback; in hcd_port_init()
1342 port_obj->callback_arg = port_config->callback_arg; in hcd_port_init()
1343 port_obj->context = port_config->context; in hcd_port_init()
1344 usbh_hal_init(port_obj->hal); in hcd_port_init()
1345 port_obj->initialized = true; in hcd_port_init()
1347 memset(port_obj->frame_list, 0, FRAME_LIST_LEN * sizeof(uint32_t)); in hcd_port_init()
1349 *port_hdl = (hcd_port_handle_t)port_obj; in hcd_port_init()