Home
last modified time | relevance | path

Searched refs:dev_cap (Results 1 – 6 of 6) sorted by relevance

/external/libusb/libusb/
Ddescriptor.c809 struct libusb_bos_dev_capability_descriptor dev_cap; in parse_bos() local
850 usbi_parse_descriptor(buffer, "bbb", &dev_cap, host_endian); in parse_bos()
851 if (dev_cap.bDescriptorType != LIBUSB_DT_DEVICE_CAPABILITY) { in parse_bos()
853 dev_cap.bDescriptorType, LIBUSB_DT_DEVICE_CAPABILITY); in parse_bos()
856 if (dev_cap.bLength < LIBUSB_DT_DEVICE_CAPABILITY_SIZE) { in parse_bos()
858 dev_cap.bLength); in parse_bos()
862 if (dev_cap.bLength > size) { in parse_bos()
864 size, dev_cap.bLength); in parse_bos()
868 _bos->dev_capability[i] = malloc(dev_cap.bLength); in parse_bos()
873 memcpy(_bos->dev_capability[i], buffer, dev_cap.bLength); in parse_bos()
[all …]
Dlibusb.h1345 struct libusb_bos_dev_capability_descriptor *dev_cap,
1351 struct libusb_bos_dev_capability_descriptor *dev_cap,
1356 struct libusb_bos_dev_capability_descriptor *dev_cap,
/external/libusb/examples/
Dtestlibusb.c127 struct libusb_ss_usb_device_capability_descriptor *dev_cap; in print_bos() local
128 ret = libusb_get_ss_usb_device_capability_descriptor(NULL, bos->dev_capability[0],&dev_cap); in print_bos()
133 print_ss_usb_cap(dev_cap); in print_bos()
134 libusb_free_ss_usb_device_capability_descriptor(dev_cap); in print_bos()
Dxusb.c757 static void print_device_cap(struct libusb_bos_dev_capability_descriptor *dev_cap) in print_device_cap() argument
759 switch(dev_cap->bDevCapabilityType) { in print_device_cap()
762 libusb_get_usb_2_0_extension_descriptor(NULL, dev_cap, &usb_2_0_ext); in print_device_cap()
772 libusb_get_ss_usb_device_capability_descriptor(NULL, dev_cap, &ss_usb_device_cap); in print_device_cap()
784 libusb_get_container_id_descriptor(NULL, dev_cap, &container_id); in print_device_cap()
792 printf(" Unknown BOS device capability %02x:\n", dev_cap->bDevCapabilityType); in print_device_cap()
/external/syslinux/gpxe/src/drivers/infiniband/
Dhermon.c260 struct hermonprm_query_dev_cap *dev_cap ) { in hermon_cmd_query_dev_cap() argument
263 1, sizeof ( *dev_cap ) ), in hermon_cmd_query_dev_cap()
264 0, NULL, 0, dev_cap ); in hermon_cmd_query_dev_cap()
2149 struct hermonprm_query_dev_cap dev_cap; in hermon_get_cap() local
2152 if ( ( rc = hermon_cmd_query_dev_cap ( hermon, &dev_cap ) ) != 0 ) { in hermon_get_cap()
2158 hermon->cap.cmpt_entry_size = MLX_GET ( &dev_cap, c_mpt_entry_sz ); in hermon_get_cap()
2160 ( 1 << MLX_GET ( &dev_cap, log2_rsvd_qps ) ); in hermon_get_cap()
2161 hermon->cap.qpc_entry_size = MLX_GET ( &dev_cap, qpc_entry_sz ); in hermon_get_cap()
2162 hermon->cap.altc_entry_size = MLX_GET ( &dev_cap, altc_entry_sz ); in hermon_get_cap()
2163 hermon->cap.auxc_entry_size = MLX_GET ( &dev_cap, aux_entry_sz ); in hermon_get_cap()
[all …]
/external/libusb/include/libusb/
Dlibusb.h1345 struct libusb_bos_dev_capability_descriptor *dev_cap,
1351 struct libusb_bos_dev_capability_descriptor *dev_cap,
1356 struct libusb_bos_dev_capability_descriptor *dev_cap,