Lines Matching refs:intf_desc
82 const usb_intf_desc_t *intf_desc;
961 static interface_t *interface_alloc(client_t *client_obj, usb_device_handle_t dev_hdl, const usb_intf_desc_t *intf_desc)
963 interface_t *intf_obj = heap_caps_calloc(1, sizeof(interface_t) + (sizeof(endpoint_t *) * intf_desc->bNumEndpoints), MALLOC_CAP_DEFAULT);
967 intf_obj->constant.intf_desc = intf_desc;
978 for (int i = 0; i < intf_obj->constant.intf_desc->bNumEndpoints; i++) {
990 const usb_intf_desc_t *intf_desc = usb_parse_interface_descriptor(config_desc, bInterfaceNumber, bAlternateSetting, &offset_intf);
991 if (intf_desc == NULL) {
996 interface_t *intf_obj = interface_alloc(client_obj, dev_hdl, intf_desc);
1002 for (int i = 0; i < intf_desc->bNumEndpoints; i++) {
1004 const usb_ep_desc_t *ep_desc = usb_parse_endpoint_descriptor_by_index(intf_desc, i, config_desc->wTotalLength, &offset_ep);
1022 for (int i = 0; i < intf_desc->bNumEndpoints; i++) {
1032 for (int i = 0; i < intf_desc->bNumEndpoints; i++) {
1048 if (intf_obj_iter->constant.dev_hdl == dev_hdl && intf_obj_iter->constant.intf_desc->bInterfaceNumber == bInterfaceNumber) {
1061 for (int i = 0; i < intf_obj->constant.intf_desc->bNumEndpoints; i++) {
1075 for (int i = 0; i < intf_obj->constant.intf_desc->bNumEndpoints; i++) {
1084 for (int i = 0; i < intf_obj->constant.intf_desc->bNumEndpoints; i++) {