Home
last modified time | relevance | path

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

123

/Linux-v4.19/sound/usb/
Dquirks-table.h48 .ifnum = 0,
57 .ifnum = 1,
81 .ifnum = QUIRK_NO_INTERFACE
90 .ifnum = QUIRK_NO_INTERFACE
132 .ifnum = QUIRK_ANY_INTERFACE,
137 .ifnum = 0,
142 .ifnum = 1,
147 .ifnum = 2,
152 .ifnum = -1,
227 .ifnum = QUIRK_NO_INTERFACE
[all …]
Dquirks.c52 for (quirk = quirk_comp->data; quirk->ifnum >= 0; ++quirk) { in create_composite_quirk()
53 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk()
56 if (quirk->ifnum != probed_ifnum && in create_composite_quirk()
64 for (quirk = quirk_comp->data; quirk->ifnum >= 0; ++quirk) { in create_composite_quirk()
65 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk()
68 if (quirk->ifnum != probed_ifnum && in create_composite_quirk()
379 int ifcount, ifnum, err; in create_autodetect_quirks() local
390 for (ifnum = 0; ifnum < ifcount; ifnum++) { in create_autodetect_quirks()
391 if (ifnum == probed_ifnum || quirk->ifnum >= 0) in create_autodetect_quirks()
393 iface = usb_ifnum_to_if(chip->dev, ifnum); in create_autodetect_quirks()
[all …]
Dcard.c577 int ifnum; in usb_audio_probe() local
581 ifnum = get_iface_desc(alts)->bInterfaceNumber; in usb_audio_probe()
586 if (quirk && quirk->ifnum >= 0 && ifnum != quirk->ifnum) in usb_audio_probe()
654 if (quirk && quirk->ifnum != QUIRK_NO_INTERFACE) { in usb_audio_probe()
663 err = snd_usb_create_streams(chip, ifnum); in usb_audio_probe()
666 err = snd_usb_create_mixer(chip, ifnum, ignore_ctl_error); in usb_audio_probe()
Dpcm.c288 static int search_roland_implicit_fb(struct usb_device *dev, int ifnum, in search_roland_implicit_fb() argument
297 iface = usb_ifnum_to_if(dev, ifnum); in search_roland_implicit_fb()
325 unsigned int ifnum; in set_sync_ep_implicit_fb_quirk() local
335 ifnum = 3; in set_sync_ep_implicit_fb_quirk()
340 ifnum = 2; in set_sync_ep_implicit_fb_quirk()
344 ifnum = 2; in set_sync_ep_implicit_fb_quirk()
348 ifnum = 2; in set_sync_ep_implicit_fb_quirk()
352 ifnum = 1; in set_sync_ep_implicit_fb_quirk()
371 iface = usb_ifnum_to_if(dev, ifnum); in set_sync_ep_implicit_fb_quirk()
/Linux-v4.19/drivers/usb/serial/
Dqcserial.c188 static int handle_quectel_ec20(struct device *dev, int ifnum) in handle_quectel_ec20() argument
200 switch (ifnum) { in handle_quectel_ec20()
226 __u8 ifnum; in qcprobe() local
236 ifnum = intf->desc.bInterfaceNumber; in qcprobe()
237 dev_dbg(dev, "This Interface = %d\n", ifnum); in qcprobe()
284 if (ifnum == 0) { in qcprobe()
287 } else if (ifnum == 2) in qcprobe()
295 altsetting = handle_quectel_ec20(dev, ifnum); in qcprobe()
312 switch (ifnum) { in qcprobe()
341 switch (ifnum) { in qcprobe()
[all …]
Dsierra.c89 u8 ifnum, numendpoints; in sierra_calc_num_ports() local
91 ifnum = serial->interface->cur_altsetting->desc.bInterfaceNumber; in sierra_calc_num_ports()
95 if (ifnum == 0x99) in sierra_calc_num_ports()
104 static int is_blacklisted(const u8 ifnum, in is_blacklisted() argument
114 if (info[i] == ifnum) in is_blacklisted()
121 static int is_himemory(const u8 ifnum, in is_himemory() argument
131 if (info[i] == ifnum) in is_himemory()
148 u8 ifnum; in sierra_probe() local
151 ifnum = sierra_interface_num(serial); in sierra_probe()
159 ifnum); in sierra_probe()
[all …]
Dir-usb.c119 irda_usb_find_class_desc(struct usb_serial *serial, unsigned int ifnum) in irda_usb_find_class_desc() argument
132 0, ifnum, desc, sizeof(*desc), 1000); in irda_usb_find_class_desc()
/Linux-v4.19/tools/usb/
Dtestusb.c133 unsigned ifnum : 8; member
249 int ifnum; in find_testdev() local
263 ifnum = testdev_ifnum(fd); in find_testdev()
265 if (ifnum < 0) in find_testdev()
280 entry->ifnum = ifnum; in find_testdev()
285 speed(entry->speed), entry->name, entry->ifnum); in find_testdev()
321 status = usbdev_ioctl (fd, dev->ifnum, in handle_testdev()
/Linux-v4.19/drivers/usb/core/
Ddevio.c90 unsigned int ifnum; member
647 unsigned int ifnum) in destroy_async_on_interface() argument
655 if (ifnum == list_entry(p, struct async, asynclist)->ifnum) in destroy_async_on_interface()
681 unsigned int ifnum = intf->altsetting->desc.bInterfaceNumber; in driver_disconnect() local
690 if (likely(ifnum < 8*sizeof(ps->ifclaimed))) in driver_disconnect()
691 clear_bit(ifnum, &ps->ifclaimed); in driver_disconnect()
694 ifnum); in driver_disconnect()
699 destroy_async_on_interface(ps, ifnum); in driver_disconnect()
723 static int claimintf(struct usb_dev_state *ps, unsigned int ifnum) in claimintf() argument
729 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()
/Linux-v4.19/drivers/media/usb/stk1160/
Dstk1160-core.c187 int i, e, sizedescr, size, ifnum; in stk1160_scan_usb() local
193 ifnum = intf->altsetting[0].desc.bInterfaceNumber; in stk1160_scan_usb()
249 ifnum, in stk1160_scan_usb()
256 you should use snd-usb-audio instead\n", ifnum); in stk1160_scan_usb()
260 ifnum); in stk1160_scan_usb()
/Linux-v4.19/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
/Linux-v4.19/drivers/hid/
Dhid-prodikeys.c58 unsigned short ifnum; member
542 if (pm->ifnum != 1) /* only set up ONCE for interace 1 */ in pcmidi_setup_extra_keys()
558 if (pm->ifnum != 1) in pcmidi_set_operational()
612 if (pm->ifnum != 1) in pcmidi_snd_initialise()
764 1 == pm->ifnum) { in pk_input_mapping()
779 if (1 == pk->pm->ifnum) { in pk_raw_event()
798 unsigned short ifnum = intf->cur_altsetting->desc.bInterfaceNumber; in pk_probe() local
820 pm->ifnum = ifnum; in pk_probe()
Dhid-samsung.c105 unsigned short ifnum = intf->cur_altsetting->desc.bInterfaceNumber; in samsung_kbd_mouse_input_mapping() local
107 if (1 != ifnum || HID_UP_CONSUMER != (usage->hid & HID_USAGE_PAGE)) in samsung_kbd_mouse_input_mapping()
/Linux-v4.19/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()
/Linux-v4.19/drivers/net/usb/
Dsierra_net.c85 u8 ifnum; /* interface number */ member
339 0, priv->ifnum, cmd, cmdlen); in sierra_net_send_cmd()
487 u8 ifnum; in sierra_net_kevent() local
497 ifnum = priv->ifnum; in sierra_net_kevent()
501 0, ifnum, buf, SIERRA_NET_USBCTL_BUF_LEN, in sierra_net_kevent()
714 priv->ifnum = ifacenum; in sierra_net_bind()
/Linux-v4.19/drivers/media/rc/
Dimon.c2087 int ifnum = iface_desc->desc.bInterfaceNumber; in imon_find_endpoints() local
2119 if (ifnum == 0) { in imon_find_endpoints()
2369 int ifnum, sysfs_err; in imon_probe() local
2377 ifnum = iface_desc->desc.bInterfaceNumber; in imon_probe()
2382 __func__, vendor, product, ifnum); in imon_probe()
2395 if (ifnum == 0) { in imon_probe()
2423 if (ifnum == 0) { in imon_probe()
2441 vendor, product, ifnum, in imon_probe()
2464 int ifnum; in imon_disconnect() local
2471 ifnum = interface->cur_altsetting->desc.bInterfaceNumber; in imon_disconnect()
[all …]
/Linux-v4.19/drivers/hid/usbhid/
Dusbhid.h73 int ifnum; /* USB interface number */ member
Dhid-core.c332 usbhid->ifnum, status); in hid_irq_in()
411 usbhid->cr->wIndex = cpu_to_le16(usbhid->ifnum); in hid_submit_ctrl()
660 static int hid_set_idle(struct usb_device *dev, int ifnum, int report, int idle) in hid_set_idle() argument
664 ifnum, NULL, 0, USB_CTRL_SET_TIMEOUT); in hid_set_idle()
667 static int hid_get_class_descriptor(struct usb_device *dev, int ifnum, in hid_get_class_descriptor() argument
677 (type << 8), ifnum, buf, size, USB_CTRL_GET_TIMEOUT); in hid_get_class_descriptor()
1280 int ifnum = interface->desc.bInterfaceNumber; in usbhid_idle() local
1285 return hid_set_idle(dev, ifnum, report, idle); in usbhid_idle()
1382 usbhid->ifnum = interface->desc.bInterfaceNumber; in usbhid_probe()
/Linux-v4.19/drivers/media/usb/au0828/
Dau0828-core.c555 int ifnum; in au0828_usb_probe() local
561 ifnum = interface->altsetting->desc.bInterfaceNumber; in au0828_usb_probe()
563 if (ifnum != 0) in au0828_usb_probe()
569 ifnum); in au0828_usb_probe()
/Linux-v4.19/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()
1107 usblp->ifnum = intf->cur_altsetting->desc.bInterfaceNumber; in usblp_probe()
1182 usblp->ifnum, in usblp_probe()
1306 r = usb_set_interface(usblp->dev, usblp->ifnum, alts); in usblp_set_protocol()
1309 alts, usblp->ifnum); in usblp_set_protocol()
/Linux-v4.19/sound/usb/usx2y/
DusX2Yhwdep.c150 .ifnum = 0, in usX2Y_create_usbmidi()
163 .ifnum = 0, in usX2Y_create_usbmidi()
/Linux-v4.19/drivers/media/usb/em28xx/
Dem28xx-audio.c297 dev->ifnum, dev->alt); in snd_em28xx_capture_open()
298 usb_set_interface(udev, dev->ifnum, dev->alt); in snd_em28xx_capture_open()
763 if (dev->ifnum) in em28xx_audio_urb_init()
768 intf = usb_ifnum_to_if(udev, dev->ifnum); in em28xx_audio_urb_init()
772 dev->ifnum, alt); in em28xx_audio_urb_init()
797 dev->ifnum, alt, interval, ep_size); in em28xx_audio_urb_init()
/Linux-v4.19/Documentation/media/uapi/dvb/
Dnet-remove-if.rst18 .. c:function:: int ioctl( int fd, NET_REMOVE_IF, int ifnum )
/Linux-v4.19/drivers/media/usb/usbvision/
Dusbvision-video.c1422 __u8 ifnum = intf->altsetting->desc.bInterfaceNumber; in usbvision_probe() local
1430 le16_to_cpu(dev->descriptor.idProduct), ifnum); in usbvision_probe()
1443 else if (ifnum < dev->actconfig->desc.bNumInterfaces) in usbvision_probe()
1444 interface = &dev->actconfig->interface[ifnum]->altsetting[0]; in usbvision_probe()
1447 ifnum, dev->actconfig->desc.bNumInterfaces - 1); in usbvision_probe()
1454 ifnum, interface->desc.bNumEndpoints); in usbvision_probe()
1462 __func__, ifnum); in usbvision_probe()
1470 __func__, ifnum); in usbvision_probe()
1531 usbvision->iface = ifnum; in usbvision_probe()

123