Lines Matching refs:intf_obj

71         interface_t *intf_obj;  member
339 client_t *client_obj = (client_t *)ep_obj->constant.intf_obj->constant.client_obj; in pipe_callback()
837 interface_t *intf_obj; in usb_host_device_close() local
838 TAILQ_FOREACH(intf_obj, &client_obj->mux_protected.interface_tailq, mux_protected.tailq_entry) { in usb_host_device_close()
839 if (intf_obj->constant.dev_hdl == dev_hdl) { in usb_host_device_close()
918 …usb_device_handle_t dev_hdl, const usb_ep_desc_t *ep_desc, interface_t *intf_obj, endpoint_t **ep_… in endpoint_alloc() argument
939 ep_obj->constant.intf_obj = intf_obj; in endpoint_alloc()
963 …interface_t *intf_obj = heap_caps_calloc(1, sizeof(interface_t) + (sizeof(endpoint_t *) * intf_des… in interface_alloc() local
964 if (intf_obj == NULL) { in interface_alloc()
967 intf_obj->constant.intf_desc = intf_desc; in interface_alloc()
968 intf_obj->constant.client_obj = client_obj; in interface_alloc()
969 intf_obj->constant.dev_hdl = dev_hdl; in interface_alloc()
970 return intf_obj; in interface_alloc()
973 static void interface_free(interface_t *intf_obj) in interface_free() argument
975 if (intf_obj == NULL) { in interface_free()
978 for (int i = 0; i < intf_obj->constant.intf_desc->bNumEndpoints; i++) { in interface_free()
979 assert(intf_obj->constant.endpoints[i] == NULL); in interface_free()
981 heap_caps_free(intf_obj); in interface_free()
996 interface_t *intf_obj = interface_alloc(client_obj, dev_hdl, intf_desc); in interface_claim() local
997 if (intf_obj == NULL) { in interface_claim()
1011 ret = endpoint_alloc(dev_hdl, ep_desc, intf_obj, &ep_obj); in interface_claim()
1016 intf_obj->constant.endpoints[i] = ep_obj; in interface_claim()
1019 …TAILQ_INSERT_TAIL(&client_obj->mux_protected.interface_tailq, intf_obj, mux_protected.tailq_entry); in interface_claim()
1023 …TAILQ_INSERT_TAIL(&client_obj->dynamic.idle_ep_tailq, intf_obj->constant.endpoints[i], dynamic.tai… in interface_claim()
1027 *intf_obj_ret = intf_obj; in interface_claim()
1033 endpoint_free(dev_hdl, intf_obj->constant.endpoints[i]); in interface_claim()
1034 intf_obj->constant.endpoints[i] = NULL; in interface_claim()
1036 interface_free(intf_obj); in interface_claim()
1046 interface_t *intf_obj = NULL; in interface_release() local
1049 intf_obj = intf_obj_iter; in interface_release()
1053 if (intf_obj == NULL) { in interface_release()
1061 for (int i = 0; i < intf_obj->constant.intf_desc->bNumEndpoints; i++) { in interface_release()
1062 endpoint_t *ep_obj = intf_obj->constant.endpoints[i]; in interface_release()
1075 for (int i = 0; i < intf_obj->constant.intf_desc->bNumEndpoints; i++) { in interface_release()
1076 …TAILQ_REMOVE(&client_obj->dynamic.idle_ep_tailq, intf_obj->constant.endpoints[i], dynamic.tailq_en… in interface_release()
1081 TAILQ_REMOVE(&client_obj->mux_protected.interface_tailq, intf_obj, mux_protected.tailq_entry); in interface_release()
1084 for (int i = 0; i < intf_obj->constant.intf_desc->bNumEndpoints; i++) { in interface_release()
1085 endpoint_free(dev_hdl, intf_obj->constant.endpoints[i]); in interface_release()
1086 intf_obj->constant.endpoints[i] = NULL; in interface_release()
1089 interface_free(intf_obj); in interface_release()
1115 interface_t *intf_obj; in usb_host_interface_claim() local
1117 … interface_claim(client_obj, dev_hdl, config_desc, bInterfaceNumber, bAlternateSetting, &intf_obj); in usb_host_interface_claim()