Home
last modified time | relevance | path

Searched refs:altsetting (Results 1 – 25 of 359) sorted by relevance

12345678910>>...15

/external/libusb/libusb/
Ddescriptor.c195 if (usb_interface->altsetting) { in clear_interface()
199 usb_interface->altsetting + i; in clear_interface()
209 free((void *) usb_interface->altsetting); in clear_interface()
210 usb_interface->altsetting = NULL; in clear_interface()
229 struct libusb_interface_descriptor *altsetting = in parse_interface() local
230 (struct libusb_interface_descriptor *) usb_interface->altsetting; in parse_interface()
231 altsetting = usbi_reallocf(altsetting, in parse_interface()
234 if (!altsetting) { in parse_interface()
238 usb_interface->altsetting = altsetting; in parse_interface()
240 ifp = altsetting + usb_interface->num_altsetting; in parse_interface()
Dcore.c1016 const struct libusb_interface_descriptor *altsetting in find_endpoint() local
1017 = &iface->altsetting[altsetting_idx]; in find_endpoint()
1020 for (ep_idx = 0; ep_idx < altsetting->bNumEndpoints; ep_idx++) { in find_endpoint()
1022 &altsetting->endpoint[ep_idx]; in find_endpoint()
/external/libusb/examples/
Dxusb.c868 first_iface = conf_desc->usb_interface[0].altsetting[0].bInterfaceNumber; in test_device()
871 conf_desc->usb_interface[i].altsetting[0].bInterfaceNumber); in test_device()
874 i, j, conf_desc->usb_interface[i].altsetting[j].bNumEndpoints); in test_device()
876 conf_desc->usb_interface[i].altsetting[j].bInterfaceClass, in test_device()
877 conf_desc->usb_interface[i].altsetting[j].bInterfaceSubClass, in test_device()
878 conf_desc->usb_interface[i].altsetting[j].bInterfaceProtocol); in test_device()
879 if ( (conf_desc->usb_interface[i].altsetting[j].bInterfaceClass == LIBUSB_CLASS_MASS_STORAGE) in test_device()
880 && ( (conf_desc->usb_interface[i].altsetting[j].bInterfaceSubClass == 0x01) in test_device()
881 || (conf_desc->usb_interface[i].altsetting[j].bInterfaceSubClass == 0x06) ) in test_device()
882 && (conf_desc->usb_interface[i].altsetting[j].bInterfaceProtocol == 0x50) ) { in test_device()
[all …]
Dtestlibusb.c145 print_altsetting(&interface->altsetting[i]); in print_interface()
/external/libusb/libusb/os/
Dsunos_usb.c450 const struct libusb_interface_descriptor *altsetting = in sunos_find_interface() local
451 &iface->altsetting[altsetting_idx]; in sunos_find_interface()
454 for (ep_idx = 0; ep_idx < altsetting->bNumEndpoints; in sunos_find_interface()
457 &altsetting->endpoint[ep_idx]; in sunos_find_interface()
510 if (hpriv->altsetting[ifc] > 0) { in sunos_check_device_and_status_open()
512 hpriv->altsetting[ifc]); in sunos_check_device_and_status_open()
758 hpriv->altsetting[iface] = 0; in sunos_release_interface()
765 int altsetting) in sunos_set_interface_altsetting() argument
771 usbi_dbg("iface %d, setting %d", iface, altsetting); in sunos_set_interface_altsetting()
773 if (iface < 0 || altsetting < 0) { in sunos_set_interface_altsetting()
[all …]
Dhaiku_usb_raw.cpp124 haiku_set_altsetting(struct libusb_device_handle *dev_handle, int interface_number, int altsetting) in haiku_set_altsetting() argument
127 return handle->SetAltSetting(interface_number, altsetting); in haiku_set_altsetting()
Dsunos_usb.h44 uint8_t altsetting[USB_MAXINTERFACES]; /* a interface's alt */ member
Dwindows_winusb.c68 …erface_altsetting(int sub_api, struct libusb_device_handle *dev_handle, int iface, int altsetting);
82 …erface_altsetting(int sub_api, struct libusb_device_handle *dev_handle, int iface, int altsetting);
95 …erface_altsetting(int sub_api, struct libusb_device_handle *dev_handle, int iface, int altsetting);
500 intf_desc = &intf->altsetting[j]; in get_interface_by_endpoint()
517 …ic int windows_assign_endpoints(struct libusb_device_handle *dev_handle, int iface, int altsetting) in windows_assign_endpoints() argument
531 if_desc = &conf_desc->interface[iface].altsetting[altsetting]; in windows_assign_endpoints()
1838 …indows_set_interface_altsetting(struct libusb_device_handle *dev_handle, int iface, int altsetting) in windows_set_interface_altsetting() argument
1846 r = priv->apib->set_interface_altsetting(SUB_API_NOTSET, dev_handle, iface, altsetting); in windows_set_interface_altsetting()
1849 r = windows_assign_endpoints(dev_handle, iface, altsetting); in windows_set_interface_altsetting()
2130 …terface_altsetting(int sub_api, struct libusb_device_handle *dev_handle, int iface, int altsetting) in unsupported_set_interface_altsetting() argument
[all …]
Dnetbsd_usb.c369 int altsetting) in netbsd_set_interface_altsetting() argument
374 usbi_dbg("iface %d, setting %d", iface, altsetting); in netbsd_set_interface_altsetting()
379 intf.uai_alt_no = altsetting; in netbsd_set_interface_altsetting()
Dopenbsd_usb.c403 int altsetting) in obsd_set_interface_altsetting() argument
411 usbi_dbg("iface %d, setting %d", iface, altsetting); in obsd_set_interface_altsetting()
416 intf.uai_alt_no = altsetting; in obsd_set_interface_altsetting()
Dlinux_usbfs.h55 unsigned int altsetting; member
/external/libusb-compat/libusb/
Dcore.c369 if (iface->altsetting) { in clear_interface()
372 clear_interface_descriptor(iface->altsetting + i); in clear_interface()
373 free(iface->altsetting); in clear_interface()
455 dest->altsetting = malloc(alloc_size); in copy_interface()
456 if (!dest->altsetting) in copy_interface()
458 memset(dest->altsetting, 0, alloc_size); in copy_interface()
461 int r = copy_interface_descriptor(dest->altsetting + i, in copy_interface()
462 &src->altsetting[i]); in copy_interface()
Dusb.h150 struct usb_interface_descriptor *altsetting; member
/external/libmtp/src/
Dlibusb1-glue.c99 uint8_t *altsetting,
294 &config->interface[j].altsetting[k]; in probe_device_descriptor()
343 config->interface[j].altsetting[k].iInterface, in probe_device_descriptor()
358 if (libusb_kernel_driver_active(devh, config->interface[j].altsetting[k].iInterface)) in probe_device_descriptor()
364 if (config->interface[j].altsetting[k].bInterfaceClass != in probe_device_descriptor()
1873 if (config->interface[].altsetting[].bAlternateSetting != in init_ptp_usb()
1874 ptp_usb->altsetting) { in init_ptp_usb()
1878 ptp_usb->altsetting); in init_ptp_usb()
1998 uint8_t *altsetting, in find_interface_and_endpoints() argument
2037 no_ep = config->interface[j].altsetting[k].bNumEndpoints; in find_interface_and_endpoints()
[all …]
Dlibusb-glue.c105 uint8_t *altsetting,
287 &dev->config[i].interface[j].altsetting[k]; in probe_device_descriptor()
333 dev->config[i].interface[j].altsetting[k].iInterface, in probe_device_descriptor()
357 dev->config[i].interface[j].altsetting[k].iInterface, in probe_device_descriptor()
1729 if (dev->config->interface[].altsetting[] != in init_ptp_usb()
1730 ptp_usb->altsetting) { in init_ptp_usb()
1877 uint8_t *altsetting, in find_interface_and_endpoints() argument
1906 no_ep = dev->config[i].interface[j].altsetting[k].bNumEndpoints; in find_interface_and_endpoints()
1910 *interface = dev->config[i].interface[j].altsetting[k].bInterfaceNumber; in find_interface_and_endpoints()
1911 *altsetting = dev->config[i].interface[j].altsetting[k].bAlternateSetting; in find_interface_and_endpoints()
[all …]
Dlibusb-glue.h96 uint8_t altsetting; member
/external/u-boot/drivers/usb/gadget/
Df_dfu.c37 u8 altsetting; member
160 ret = dfu_write(dfu_get_entity(f_dfu->altsetting), req->buf, in dnload_request_complete()
171 dfu_set_defer_flush(dfu_get_entity(f_dfu->altsetting)); in dnload_request_flush()
184 struct dfu_entity *dfu = dfu_get_entity(f_dfu->altsetting); in handle_getstatus()
243 return dfu_read(dfu_get_entity(f_dfu->altsetting), req->buf, in handle_upload()
767 f_dfu->altsetting = alt; in dfu_set_alt()
778 return f_dfu->altsetting; in __dfu_get_alt()
Df_sdp.c99 u8 altsetting; member
549 sdp->altsetting = alt; in sdp_set_alt()
559 return sdp->altsetting; in sdp_get_alt()
/external/libmtp/logs/
Dmtp-detect-lg-g3.txt26 Configuration 0, interface 0, altsetting 0:
Dmtp-detect-zuk-z1.txt26 Configuration 0, interface 0, altsetting 0:
Dmtp-detect-samsung-gt-i9300.txt25 Configuration 0, interface 0, altsetting 0:
214 Configuration 0, interface 0, altsetting 0:
Dmtp-detect-yota-phone.txt51 Configuration 0, interface 0, altsetting 0:
Dmtp-detect-blu-studio-hd.txt36 Configuration 0, interface 0, altsetting 0:
/external/kernel-headers/original/uapi/linux/
Dusbdevice_fs.h59 unsigned int altsetting; member
/external/libusb-compat/examples/
Dtestlibusb.c44 print_altsetting(&interface->altsetting[i]); in print_interface()

12345678910>>...15