Home
last modified time | relevance | path

Searched refs:ifnum (Results 1 – 25 of 57) sorted by relevance

123

/kernel/linux/linux-5.10/sound/usb/
Dquirks-table.h44 .ifnum = 0,
53 .ifnum = 1,
91 .ifnum = QUIRK_ANY_INTERFACE,
95 .ifnum = 2,
99 .ifnum = 3,
118 .ifnum = -1
134 .ifnum = QUIRK_ANY_INTERFACE,
139 .ifnum = 0,
144 .ifnum = 1,
149 .ifnum = 2,
[all …]
Dcard.c715 int ifnum; in usb_audio_probe() local
719 ifnum = get_iface_desc(alts)->bInterfaceNumber; in usb_audio_probe()
724 if (quirk && quirk->ifnum >= 0 && ifnum != quirk->ifnum) in usb_audio_probe()
802 if (quirk && quirk->ifnum != QUIRK_NO_INTERFACE) { in usb_audio_probe()
811 err = snd_usb_create_streams(chip, ifnum); in usb_audio_probe()
814 err = snd_usb_create_mixer(chip, ifnum, ignore_ctl_error); in usb_audio_probe()
822 chip->usb_id, ifnum); in usb_audio_probe()
829 if (!snd_usb_registration_quirk(chip, ifnum) && in usb_audio_probe()
830 !check_delayed_register_option(chip, ifnum)) { in usb_audio_probe()
Dquirks.c41 for (quirk = quirk_comp->data; quirk->ifnum >= 0; ++quirk) { in create_composite_quirk()
42 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk()
45 if (quirk->ifnum != probed_ifnum && in create_composite_quirk()
53 for (quirk = quirk_comp->data; quirk->ifnum >= 0; ++quirk) { in create_composite_quirk()
54 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk()
57 if (quirk->ifnum != probed_ifnum && in create_composite_quirk()
375 int ifcount, ifnum, err; in create_autodetect_quirks() local
386 for (ifnum = 0; ifnum < ifcount; ifnum++) { in create_autodetect_quirks()
387 if (ifnum == probed_ifnum || quirk->ifnum >= 0) in create_autodetect_quirks()
389 iface = usb_ifnum_to_if(chip->dev, ifnum); in create_autodetect_quirks()
[all …]
Dpcm.c287 static int search_roland_implicit_fb(struct usb_device *dev, int ifnum, in search_roland_implicit_fb() argument
296 iface = usb_ifnum_to_if(dev, ifnum); in search_roland_implicit_fb()
327 unsigned int ifnum; in set_sync_ep_implicit_fb_quirk() local
338 ifnum = 3; in set_sync_ep_implicit_fb_quirk()
343 ifnum = 2; in set_sync_ep_implicit_fb_quirk()
348 ifnum = 2; in set_sync_ep_implicit_fb_quirk()
352 ifnum = 2; in set_sync_ep_implicit_fb_quirk()
356 ifnum = 2; in set_sync_ep_implicit_fb_quirk()
361 ifnum = 1; in set_sync_ep_implicit_fb_quirk()
370 ifnum = 0; in set_sync_ep_implicit_fb_quirk()
[all …]
/kernel/linux/linux-5.10/drivers/usb/serial/
Dqcserial.c195 static int handle_quectel_ec20(struct device *dev, int ifnum) in handle_quectel_ec20() argument
207 switch (ifnum) { in handle_quectel_ec20()
233 __u8 ifnum; in qcprobe() local
243 ifnum = intf->desc.bInterfaceNumber; in qcprobe()
244 dev_dbg(dev, "This Interface = %d\n", ifnum); in qcprobe()
291 if (ifnum == 0) { in qcprobe()
294 } else if (ifnum == 2) in qcprobe()
302 altsetting = handle_quectel_ec20(dev, ifnum); in qcprobe()
319 switch (ifnum) { in qcprobe()
348 switch (ifnum) { in qcprobe()
[all …]
Dsierra.c88 u8 ifnum, numendpoints; in sierra_calc_num_ports() local
90 ifnum = serial->interface->cur_altsetting->desc.bInterfaceNumber; in sierra_calc_num_ports()
94 if (ifnum == 0x99) in sierra_calc_num_ports()
103 static bool is_listed(const u8 ifnum, const struct sierra_iface_list *list) in is_listed() argument
111 if (list->nums[i] == ifnum) in is_listed()
129 u8 ifnum; in sierra_probe() local
132 ifnum = sierra_interface_num(serial); in sierra_probe()
140 ifnum); in sierra_probe()
142 usb_set_interface(udev, ifnum, 1); in sierra_probe()
147 if (is_listed(ifnum, ignore_list)) { in sierra_probe()
[all …]
/kernel/linux/linux-5.10/tools/usb/
Dtestusb.c120 unsigned ifnum : 8; member
236 int ifnum; in find_testdev() local
250 ifnum = testdev_ifnum(fd); in find_testdev()
252 if (ifnum < 0) in find_testdev()
267 entry->ifnum = ifnum; in find_testdev()
302 speed(dev->speed), dev->name, dev->ifnum); in handle_testdev()
310 status = usbdev_ioctl (fd, dev->ifnum, in handle_testdev()
/kernel/linux/linux-5.10/drivers/usb/core/
Ddevio.c99 unsigned int ifnum; member
663 unsigned int ifnum) in destroy_async_on_interface() argument
671 if (ifnum == list_entry(p, struct async, asynclist)->ifnum) in destroy_async_on_interface()
697 unsigned int ifnum = intf->altsetting->desc.bInterfaceNumber; in driver_disconnect() local
706 if (likely(ifnum < 8*sizeof(ps->ifclaimed))) in driver_disconnect()
707 clear_bit(ifnum, &ps->ifclaimed); in driver_disconnect()
710 ifnum); in driver_disconnect()
715 destroy_async_on_interface(ps, ifnum); in driver_disconnect()
757 static int claimintf(struct usb_dev_state *ps, unsigned int ifnum) in claimintf() argument
763 if (ifnum >= 8*sizeof(ps->ifclaimed)) in claimintf()
[all …]
Dof.c92 usb_of_get_interface_node(struct usb_device *udev, u8 config, u8 ifnum) in usb_of_get_interface_node() argument
101 if (reg[0] == ifnum && reg[1] == config) in usb_of_get_interface_node()
/kernel/linux/linux-5.10/drivers/hid/
Dhid-prodikeys.c54 unsigned short ifnum; member
538 if (pm->ifnum != 1) /* only set up ONCE for interace 1 */ in pcmidi_setup_extra_keys()
556 if (pm->ifnum != 1) in pcmidi_set_operational()
612 if (pm->ifnum != 1) in pcmidi_snd_initialise()
768 1 == pm->ifnum) { in pk_input_mapping()
783 if (1 == pk->pm->ifnum) { in pk_raw_event()
802 unsigned short ifnum; in pk_probe() local
811 ifnum = intf->cur_altsetting->desc.bInterfaceNumber; in pk_probe()
830 pm->ifnum = ifnum; in pk_probe()
Dhid-samsung.c100 unsigned short ifnum = intf->cur_altsetting->desc.bInterfaceNumber; in samsung_kbd_mouse_input_mapping() local
102 if (1 != ifnum || HID_UP_CONSUMER != (usage->hid & HID_USAGE_PAGE)) in samsung_kbd_mouse_input_mapping()
/kernel/linux/linux-5.10/drivers/media/usb/stk1160/
Dstk1160-core.c177 int i, e, sizedescr, size, ifnum; in stk1160_scan_usb() local
183 ifnum = intf->altsetting[0].desc.bInterfaceNumber; in stk1160_scan_usb()
239 ifnum, in stk1160_scan_usb()
246 you should use snd-usb-audio instead\n", ifnum); in stk1160_scan_usb()
250 ifnum); in stk1160_scan_usb()
/kernel/linux/linux-5.10/include/linux/usb/
Dof.h25 u8 config, u8 ifnum);
52 usb_of_get_interface_node(struct usb_device *udev, u8 config, u8 ifnum) in usb_of_get_interface_node() argument
/kernel/linux/linux-5.10/drivers/usb/atm/
Dxusbatm.c55 int ifnum = intf->altsetting->desc.bInterfaceNumber; in xusbatm_capture_intf() local
59 usb_err(usbatm, "%s: failed to claim interface %2d (%d)!\n", __func__, ifnum, ret); in xusbatm_capture_intf()
62 ret = usb_set_interface(usb_dev, ifnum, altsetting); in xusbatm_capture_intf()
64 …r(usbatm, "%s: altsetting %2d for interface %2d failed (%d)!\n", __func__, altsetting, ifnum, ret); in xusbatm_capture_intf()
/kernel/linux/linux-5.10/drivers/net/usb/
Dsierra_net.c73 u8 ifnum; /* interface number */ member
327 0, priv->ifnum, cmd, cmdlen); in sierra_net_send_cmd()
470 u8 ifnum; in sierra_net_kevent() local
480 ifnum = priv->ifnum; in sierra_net_kevent()
484 0, ifnum, buf, SIERRA_NET_USBCTL_BUF_LEN, in sierra_net_kevent()
697 priv->ifnum = ifacenum; in sierra_net_bind()
/kernel/linux/linux-5.10/drivers/media/rc/
Dimon.c2131 int ifnum = iface_desc->desc.bInterfaceNumber; in imon_find_endpoints() local
2163 if (ifnum == 0) { in imon_find_endpoints()
2413 int ifnum, sysfs_err; in imon_probe() local
2420 ifnum = iface_desc->desc.bInterfaceNumber; in imon_probe()
2425 __func__, vendor, product, ifnum); in imon_probe()
2433 if (ifnum == 0) { in imon_probe()
2464 if (ifnum == 0) { in imon_probe()
2478 vendor, product, ifnum, in imon_probe()
2499 int ifnum; in imon_disconnect() local
2504 ifnum = interface->cur_altsetting->desc.bInterfaceNumber; in imon_disconnect()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/em28xx/
Dem28xx-audio.c274 dev->ifnum, dev->alt); in snd_em28xx_capture_open()
275 usb_set_interface(udev, dev->ifnum, dev->alt); in snd_em28xx_capture_open()
677 if (dev->ifnum) in em28xx_audio_urb_init()
682 intf = usb_ifnum_to_if(udev, dev->ifnum); in em28xx_audio_urb_init()
686 dev->ifnum, alt); in em28xx_audio_urb_init()
711 dev->ifnum, alt, interval, ep_size); in em28xx_audio_urb_init()
/kernel/linux/linux-5.10/drivers/usb/class/
Dusblp.c141 int ifnum; /* Interface number */ member
178 dev_dbg(dev, "ifnum=%d\n", usblp->ifnum); in usblp_dump()
253 int index = usblp->ifnum; in usblp_ctrl_msg()
259 index = (usblp->ifnum<<8)|usblp->protocol[usblp->current_protocol].alt_setting; in usblp_ctrl_msg()
1147 usblp->ifnum = intf->cur_altsetting->desc.bInterfaceNumber; in usblp_probe()
1219 usblp->ifnum, in usblp_probe()
1345 r = usb_set_interface(usblp->dev, usblp->ifnum, alts); in usblp_set_protocol()
1348 alts, usblp->ifnum); in usblp_set_protocol()
/kernel/linux/linux-5.10/drivers/hid/usbhid/
Dusbhid.h60 int ifnum; /* USB interface number */ member
Dhid-core.c329 usbhid->ifnum, status); in hid_irq_in()
408 usbhid->cr->wIndex = cpu_to_le16(usbhid->ifnum); in hid_submit_ctrl()
657 static int hid_set_idle(struct usb_device *dev, int ifnum, int report, int idle) in hid_set_idle() argument
661 ifnum, NULL, 0, USB_CTRL_SET_TIMEOUT); in hid_set_idle()
664 static int hid_get_class_descriptor(struct usb_device *dev, int ifnum, in hid_get_class_descriptor() argument
674 (type << 8), ifnum, buf, size, USB_CTRL_GET_TIMEOUT); in hid_get_class_descriptor()
1308 int ifnum = interface->desc.bInterfaceNumber; in usbhid_idle() local
1313 return hid_set_idle(dev, ifnum, report, idle); in usbhid_idle()
1410 usbhid->ifnum = interface->desc.bInterfaceNumber; in usbhid_probe()
/kernel/linux/linux-5.10/sound/usb/usx2y/
DusX2Yhwdep.c138 .ifnum = 0, in usx2y_create_usbmidi()
151 .ifnum = 0, in usx2y_create_usbmidi()
/kernel/linux/linux-5.10/Documentation/userspace-api/media/dvb/
Dnet-remove-if.rst20 ``int ioctl(int fd, NET_REMOVE_IF, int ifnum)``
Dnet-get-if.rst35 :c:type:`dvb_net_if`::ifnum field and fills the content of
Dnet-add-if.rst40 The struct :c:type:`dvb_net_if`::ifnum field will be
/kernel/linux/linux-5.10/drivers/media/usb/au0828/
Dau0828-core.c651 int ifnum; in au0828_usb_probe() local
657 ifnum = interface->altsetting->desc.bInterfaceNumber; in au0828_usb_probe()
659 if (ifnum != 0) in au0828_usb_probe()
665 ifnum); in au0828_usb_probe()

123