Home
last modified time | relevance | path

Searched refs:iface_index (Results 1 – 25 of 65) sorted by relevance

123

/freebsd/sys/dev/usb/
H A Dusb_msctest.h44 uint8_t iface_index);
46 uint8_t iface_index, int method);
48 uint8_t iface_index, const struct usb_attach_arg *uaa);
50 uint8_t iface_index, uint32_t lba, uint32_t blocks,
53 uint8_t iface_index, uint32_t lba, uint32_t blocks,
56 uint8_t iface_index, uint32_t *lba_last,
59 uint8_t iface_index);
H A Dusbdi_util.h35 uint8_t iface_index; /* current interface index */ member
63 void *data, uint16_t len, uint8_t iface_index, uint8_t type,
67 uint8_t iface_index);
76 struct mtx *mtx, uint8_t iface_index, uint8_t alt_no);
78 uint8_t iface_index, uint8_t duration, uint8_t id);
80 uint8_t iface_index, uint16_t report);
82 void *data, uint16_t len, uint8_t iface_index,
H A Dusb_device.c361 usbd_get_endpoint(struct usb_device *udev, uint8_t iface_index, in usbd_get_endpoint() argument
374 udev, iface_index, setup->endpoint, in usbd_get_endpoint()
438 (ep->iface_index != iface_index)) { in usbd_get_endpoint()
499 usb_init_endpoint(struct usb_device *udev, uint8_t iface_index, in usb_init_endpoint() argument
514 ep->iface_index = iface_index; in usb_init_endpoint()
815 usb_config_parse(struct usb_device *udev, uint8_t iface_index, uint8_t cmd) in usb_config_parse() argument
829 if (iface_index != USB_IFACE_INDEX_ANY) { in usb_config_parse()
841 iface_index, cmd); in usb_config_parse()
853 if (iface_index == USB_IFACE_INDEX_ANY || in usb_config_parse()
854 iface_index == ep->iface_index) { in usb_config_parse()
[all …]
H A Dusb_msctest.c598 bbb_attach(struct usb_device *udev, uint8_t iface_index, in bbb_attach() argument
618 usb_detach_device(udev, iface_index, 0); in bbb_attach()
624 iface = usbd_get_iface(udev, iface_index); in bbb_attach()
671 err = usbd_transfer_setup(udev, &iface_index, sc->xfer, pconfig, in bbb_attach()
712 usb_iface_is_cdrom(struct usb_device *udev, uint8_t iface_index) in usb_iface_is_cdrom() argument
720 sc = bbb_attach(udev, iface_index, UICLASS_MASS); in usb_iface_is_cdrom()
745 usb_msc_get_max_lun(struct usb_device *udev, uint8_t iface_index) in usb_msc_get_max_lun() argument
755 req.wIndex[0] = iface_index; in usb_msc_get_max_lun()
783 usb_msc_auto_quirk(struct usb_device *udev, uint8_t iface_index, in usb_msc_auto_quirk() argument
793 sc = bbb_attach(udev, iface_index, UICLASS_MASS); in usb_msc_auto_quirk()
[all …]
H A Dusb_hid.c114 struct malloc_type *mem, uint8_t iface_index) in usbd_req_get_hid_desc() argument
116 struct usb_interface *iface = usbd_get_iface(udev, iface_index); in usbd_req_get_hid_desc()
145 (udev, mtx, *descp, *sizep, iface_index); in usbd_req_get_hid_desc()
H A Dusbdi.h152 uint8_t iface_index; /* not used by "default endpoint" */ member
562 uint8_t iface_index, uint8_t type, uint8_t type_mask,
569 uint8_t iface_index);
572 struct usb_endpoint *usbd_get_endpoint(struct usb_device *udev, uint8_t iface_index,
581 uint8_t iface_index, const char *pnpinfo);
605 uint8_t iface_index, uint8_t alt_index);
622 void usbd_set_parent_iface(struct usb_device *udev, uint8_t iface_index,
689 uint8_t iface_index, uid_t uid, gid_t gid, int mode);
H A Dusb_handle_request.c225 uint8_t iface_index; in usb_handle_iface_request() local
230 iface_index = req.wIndex[0]; /* unicast */ in usb_handle_iface_request()
232 iface_index = 0; /* broadcast */ in usb_handle_iface_request()
247 iface = usbd_get_iface(udev, iface_index); in usb_handle_iface_request()
303 iface_index++; /* iterate */ in usb_handle_iface_request()
328 error = usb_reset_iface_endpoints(udev, iface_index); in usb_handle_iface_request()
H A Dusb_request.c1418 uint8_t *alt_iface_no, uint8_t iface_index) in usbd_req_get_alt_interface_no() argument
1420 struct usb_interface *iface = usbd_get_iface(udev, iface_index); in usbd_req_get_alt_interface_no()
1444 uint8_t iface_index, uint8_t alt_no) in usbd_req_set_alt_interface_no() argument
1446 struct usb_interface *iface = usbd_get_iface(udev, iface_index); in usbd_req_set_alt_interface_no()
1787 uint8_t iface_index, uint16_t report) in usbd_req_set_protocol() argument
1789 struct usb_interface *iface = usbd_get_iface(udev, iface_index); in usbd_req_set_protocol()
1816 uint8_t iface_index, uint8_t type, uint8_t id) in usbd_req_set_report() argument
1818 struct usb_interface *iface = usbd_get_iface(udev, iface_index); in usbd_req_set_report()
1844 uint16_t len, uint8_t iface_index, uint8_t type, uint8_t id) in usbd_req_get_report() argument
1846 struct usb_interface *iface = usbd_get_iface(udev, iface_index); in usbd_req_get_report()
[all …]
H A Dusb_parse.c166 ps->iface_index ++; in usb_idesc_foreach()
176 if (ps->iface_index >= USB_IFACE_MAX) { in usb_idesc_foreach()
H A Dusb_hub_private.h72 uint8_t iface_index; member
H A Dusb_generic.c154 uint8_t iface_index = ep->iface_index; in ugen_transfer_setup() local
163 error = usbd_transfer_setup(udev, &iface_index, f->xfer, in ugen_transfer_setup()
643 uint8_t iface_index, uint8_t alt_index) in ugen_set_interface() argument
645 DPRINTFN(2, "%u, %u\n", iface_index, alt_index); in ugen_set_interface()
658 if (usbd_set_alt_interface_index(f->udev, iface_index, alt_index)) { in ugen_set_interface()
662 if (usb_probe_and_attach(f->udev, iface_index)) { in ugen_set_interface()
1027 uint8_t iface_index; in usb_fs_open() local
1062 iface_index = ep->iface_index; in usb_fs_open()
1098 error = usbd_transfer_setup(f->udev, &iface_index, in usb_fs_open()
1863 iface = usbd_get_iface(f->udev, f->iface_index); in ugen_get_iface_desc()
H A Dusb_device.h313 uint8_t iface_index);
316 uint8_t iface_index);
/freebsd/sys/dev/usb/gadget/
H A Dg_audio.c291 uint8_t iface_index[3]; in g_audio_attach() local
311 iface_index[0] = uaa->info.bIfaceIndex; in g_audio_attach()
312 iface_index[1] = uaa->info.bIfaceIndex + 1; in g_audio_attach()
313 iface_index[2] = uaa->info.bIfaceIndex + 2; in g_audio_attach()
315 error = usbd_set_alt_interface_index(uaa->device, iface_index[1], 1); in g_audio_attach()
320 error = usbd_set_alt_interface_index(uaa->device, iface_index[2], 1); in g_audio_attach()
326 iface_index, sc->sc_xfer, g_audio_config, in g_audio_attach()
333 usbd_set_parent_iface(uaa->device, iface_index[1], iface_index[0]); in g_audio_attach()
334 usbd_set_parent_iface(uaa->device, iface_index[2], iface_index[0]); in g_audio_attach()
H A Dg_modem.c277 uint8_t iface_index[2]; in g_modem_attach() local
290 iface_index[0] = uaa->info.bIfaceIndex; in g_modem_attach()
291 iface_index[1] = uaa->info.bIfaceIndex + 1; in g_modem_attach()
294 iface_index, sc->sc_xfer, g_modem_config, in g_modem_attach()
301 usbd_set_parent_iface(uaa->device, iface_index[1], iface_index[0]); in g_modem_attach()
/freebsd/sys/dev/usb/serial/
H A Dugensa.c197 uint8_t iface_index; in ugensa_attach() local
205 for (iface_index = UGENSA_IFACE_INDEX; iface_index < UGENSA_IFACE_MAX; iface_index++) { in ugensa_attach()
206 iface = usbd_get_iface(uaa->device, iface_index); in ugensa_attach()
221 &iface_index, ssc->sc_xfer, xfer_config, in ugensa_attach()
241 if (iface_index != uaa->info.bIfaceIndex) { in ugensa_attach()
242 usbd_set_parent_iface(uaa->device, iface_index, in ugensa_attach()
H A Duark.c198 uint8_t iface_index; in uark_attach() local
206 iface_index = UARK_IFACE_INDEX; in uark_attach()
208 (uaa->device, &iface_index, sc->sc_xfer, in uark_attach()
/freebsd/sys/dev/rtwn/usb/
H A Drtwn_usb_ep.c163 const uint8_t iface_index = RTWN_IFACE_INDEX; in rtwn_usb_setup_endpoints() local
175 if ((ep->edesc == NULL) || (ep->iface_index != iface_index)) in rtwn_usb_setup_endpoints()
238 error = usbd_transfer_setup(uc->uc_udev, &iface_index, in rtwn_usb_setup_endpoints()
/freebsd/lib/libusb/
H A Dlibusb20_int.h54 typedef int (libusb20_dev_get_iface_desc_t)(struct libusb20_device *pdev, uint8_t iface_index, char…
94 typedef int (libusb20_detach_kernel_driver_t)(struct libusb20_device *pdev, uint8_t iface_index);
98 typedef int (libusb20_kernel_driver_active_t)(struct libusb20_device *pdev, uint8_t iface_index);
105 typedef int (libusb20_set_alt_index_t)(struct libusb20_device *pdev, uint8_t iface_index, uint8_t a…
H A Dlibusb20.h247 int libusb20_dev_detach_kernel_driver(struct libusb20_device *pdev, uint8_t iface_index);
252 int libusb20_dev_kernel_driver_active(struct libusb20_device *pdev, uint8_t iface_index);
264 int libusb20_dev_set_alt_index(struct libusb20_device *pdev, uint8_t iface_index, uint8_t alt_index…
266 int libusb20_dev_get_iface_desc(struct libusb20_device *pdev, uint8_t iface_index, char *buf, uint8…
H A Dlibusb20_ugen20.c547 uint8_t iface_index, uint8_t alt_index) in ugen20_set_alt_index() argument
553 alt_iface.uai_interface_index = iface_index; in ugen20_set_alt_index()
697 uint8_t iface_index) in ugen20_kernel_driver_active() argument
699 int temp = iface_index; in ugen20_kernel_driver_active()
709 uint8_t iface_index) in ugen20_detach_kernel_driver() argument
711 int temp = iface_index; in ugen20_detach_kernel_driver()
952 uint8_t iface_index, char *buf, uint8_t len) in ugen20_dev_get_iface_desc() argument
960 ugd.ugd_iface_index = iface_index; in ugen20_dev_get_iface_desc()
/freebsd/sys/netgraph/bluetooth/drivers/ubt/
H A Dng_ubt.c558 uint8_t iface_index = 0; in ubt_do_hci_request() local
563 req.wIndex[0] = iface_index; in ubt_do_hci_request()
585 error = usbd_transfer_setup(udev, &iface_index, xfer, in ubt_do_hci_request()
665 uint8_t iface_index[2]; in ubt_attach() local
669 iface_index[0] = uaa->info.bIfaceIndex; in ubt_attach()
670 iface_index[1] = uaa->info.bIfaceIndex + 1; in ubt_attach()
672 iface[0] = usbd_get_iface(uaa->device, iface_index[0]); in ubt_attach()
673 iface[1] = usbd_get_iface(uaa->device, iface_index[1]); in ubt_attach()
781 usbd_set_alt_interface_index(uaa->device, iface_index[1], alt_index)) { in ubt_attach()
788 if (usbd_transfer_setup(uaa->device, iface_index, sc->sc_xfer, ubt_config, in ubt_attach()
[all …]
/freebsd/sys/netgraph/bluetooth/drivers/ubtbcmfw/
H A Dubtbcmfw.c208 uint8_t iface_index; in ubtbcmfw_attach() local
217 iface_index = UBTBCMFW_IFACE_IDX; in ubtbcmfw_attach()
218 error = usbd_transfer_setup(uaa->device, &iface_index, sc->sc_xfer, in ubtbcmfw_attach()
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_usb.c871 uint16_t iface_index; in usb_linux_create_usb_device() local
882 iface_index = 0; in usb_linux_create_usb_device()
902 (iface_index == 0)) in usb_linux_create_usb_device()
906 p_uhe->bsd_iface_index = iface_index - 1; in usb_linux_create_usb_device()
925 p_uhi->bsd_iface_index = iface_index; in usb_linux_create_usb_device()
934 p_ui->bsd_iface_index = iface_index; in usb_linux_create_usb_device()
939 iface_index++; in usb_linux_create_usb_device()
950 (sizeof(*p_ui) * iface_index) + in usb_linux_create_usb_device()
955 p_uhi = (void *)(p_ui + iface_index); in usb_linux_create_usb_device()
958 udev->linux_iface_end = p_ui + iface_index; in usb_linux_create_usb_device()
/freebsd/sys/dev/usb/input/
H A Duhid_snes.c542 uint8_t alt_index, iface_index = uaa->info.bIfaceIndex; in uhid_snes_attach() local
576 error = usbd_set_alt_interface_index(uaa->device, iface_index, alt_index); in uhid_snes_attach()
583 error = usbd_transfer_setup(uaa->device, &iface_index, in uhid_snes_attach()
592 iface_index, UID_ROOT, GID_OPERATOR, 0644); in uhid_snes_attach()
/freebsd/sys/dev/sound/usb/
H A Duaudio.c226 uint8_t iface_index; member
271 uint8_t iface_index; member
309 uint8_t iface_index; member
345 uint8_t iface_index; member
945 uaudio_force_power_save(struct uaudio_softc *sc, uint8_t iface_index) in uaudio_force_power_save() argument
950 iface = usbd_get_iface(sc->sc_udev, iface_index); in uaudio_force_power_save()
957 err = usbd_req_set_alt_interface_no(sc->sc_udev, NULL, iface_index, in uaudio_force_power_save()
960 err = usbd_set_alt_interface_index(sc->sc_udev, iface_index, 0); in uaudio_force_power_save()
1043 sc->sc_play_chan[i].usb_alt[0].iface_index); in uaudio_attach()
1074 sc->sc_rec_chan[i].usb_alt[0].iface_index); in uaudio_attach()
[all …]

123