/drivers/usb/serial/ |
D | qcserial.c | 196 static int handle_quectel_ec20(struct device *dev, int ifnum) in handle_quectel_ec20() argument 208 switch (ifnum) { in handle_quectel_ec20() 234 __u8 ifnum; in qcprobe() local 244 ifnum = intf->desc.bInterfaceNumber; in qcprobe() 245 dev_dbg(dev, "This Interface = %d\n", ifnum); in qcprobe() 292 if (ifnum == 0) { in qcprobe() 295 } else if (ifnum == 2) in qcprobe() 303 altsetting = handle_quectel_ec20(dev, ifnum); in qcprobe() 320 switch (ifnum) { in qcprobe() 349 switch (ifnum) { in qcprobe() [all …]
|
D | sierra.c | 91 u8 ifnum, numendpoints; in sierra_calc_num_ports() local 93 ifnum = serial->interface->cur_altsetting->desc.bInterfaceNumber; in sierra_calc_num_ports() 97 if (ifnum == 0x99) in sierra_calc_num_ports() 106 static int is_blacklisted(const u8 ifnum, in is_blacklisted() argument 116 if (info[i] == ifnum) in is_blacklisted() 123 static int is_himemory(const u8 ifnum, in is_himemory() argument 133 if (info[i] == ifnum) in is_himemory() 165 u8 ifnum; in sierra_probe() local 168 ifnum = sierra_calc_interface(serial); in sierra_probe() 176 ifnum); in sierra_probe() [all …]
|
D | ir-usb.c | 125 irda_usb_find_class_desc(struct usb_serial *serial, unsigned int ifnum) in irda_usb_find_class_desc() argument 138 0, ifnum, desc, sizeof(*desc), 1000); in irda_usb_find_class_desc()
|
D | option.c | 573 #define NCTRL(ifnum) ((BIT(ifnum) & 0xff) << 8) argument 576 #define RSVD(ifnum) ((BIT(ifnum) & 0xff) << 0) argument 2135 static bool iface_is_reserved(unsigned long device_flags, u8 ifnum) in iface_is_reserved() argument 2137 if (ifnum > FLAG_IFNUM_MAX) in iface_is_reserved() 2140 return device_flags & RSVD(ifnum); in iface_is_reserved() 2177 static bool iface_no_modem_control(unsigned long device_flags, u8 ifnum) in iface_no_modem_control() argument 2179 if (ifnum > FLAG_IFNUM_MAX) in iface_no_modem_control() 2182 return device_flags & NCTRL(ifnum); in iface_no_modem_control()
|
D | usb_wwan.c | 48 int ifnum; in usb_wwan_send_setup() local 58 ifnum = serial->interface->cur_altsetting->desc.bInterfaceNumber; in usb_wwan_send_setup() 65 0x22, 0x21, val, ifnum, NULL, 0, in usb_wwan_send_setup()
|
/drivers/usb/core/ |
D | devio.c | 88 unsigned int ifnum; member 552 unsigned int ifnum) in destroy_async_on_interface() argument 560 if (ifnum == list_entry(p, struct async, asynclist)->ifnum) in destroy_async_on_interface() 586 unsigned int ifnum = intf->altsetting->desc.bInterfaceNumber; in driver_disconnect() local 595 if (likely(ifnum < 8*sizeof(ps->ifclaimed))) in driver_disconnect() 596 clear_bit(ifnum, &ps->ifclaimed); in driver_disconnect() 599 ifnum); in driver_disconnect() 604 destroy_async_on_interface(ps, ifnum); in driver_disconnect() 628 static int claimintf(struct usb_dev_state *ps, unsigned int ifnum) in claimintf() argument 634 if (ifnum >= 8*sizeof(ps->ifclaimed)) in claimintf() [all …]
|
/drivers/hid/ |
D | hid-prodikeys.c | 58 unsigned short ifnum; member 543 if (pm->ifnum != 1) /* only set up ONCE for interace 1 */ in pcmidi_setup_extra_keys() 561 if (pm->ifnum != 1) in pcmidi_set_operational() 617 if (pm->ifnum != 1) in pcmidi_snd_initialise() 773 1 == pm->ifnum) { in pk_input_mapping() 788 if (1 == pk->pm->ifnum) { in pk_raw_event() 807 unsigned short ifnum; in pk_probe() local 816 ifnum = intf->cur_altsetting->desc.bInterfaceNumber; in pk_probe() 835 pm->ifnum = ifnum; in pk_probe()
|
D | hid-samsung.c | 105 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()
|
/drivers/media/usb/stk1160/ |
D | stk1160-core.c | 186 int i, e, sizedescr, size, ifnum; in stk1160_scan_usb() local 192 ifnum = intf->altsetting[0].desc.bInterfaceNumber; in stk1160_scan_usb() 248 ifnum, in stk1160_scan_usb() 255 you should use snd-usb-audio instead\n", ifnum); in stk1160_scan_usb() 259 ifnum); in stk1160_scan_usb()
|
/drivers/usb/atm/ |
D | xusbatm.c | 69 int ifnum = intf->altsetting->desc.bInterfaceNumber; in xusbatm_capture_intf() local 73 usb_err(usbatm, "%s: failed to claim interface %2d (%d)!\n", __func__, ifnum, ret); in xusbatm_capture_intf() 76 ret = usb_set_interface(usb_dev, ifnum, altsetting); in xusbatm_capture_intf() 78 …r(usbatm, "%s: altsetting %2d for interface %2d failed (%d)!\n", __func__, altsetting, ifnum, ret); in xusbatm_capture_intf()
|
D | ueagle-atm.c | 2498 struct usbatm_data *usbatm, int ifnum) in claim_interface() argument 2501 struct usb_interface *intf = usb_ifnum_to_if(usb_dev, ifnum); in claim_interface() 2504 uea_err(usb_dev, "interface %d not found\n", ifnum); in claim_interface() 2510 uea_err(usb_dev, "can't claim interface %d, error %d\n", ifnum, in claim_interface() 2545 int ret, ifnum = intf->altsetting->desc.bInterfaceNumber; in uea_bind() local 2551 if (ifnum != UEA_INTR_IFACE_NO) in uea_bind() 2681 int ifnum = intf->altsetting->desc.bInterfaceNumber; in uea_disconnect() local 2687 if (usb->config->desc.bNumInterfaces != 1 && ifnum == 0) { in uea_disconnect()
|
/drivers/media/usb/au0828/ |
D | au0828-core.c | 186 int ifnum; in au0828_usb_probe() local 192 ifnum = interface->altsetting->desc.bInterfaceNumber; in au0828_usb_probe() 194 if (ifnum != 0) in au0828_usb_probe() 200 ifnum); in au0828_usb_probe()
|
/drivers/staging/media/lirc/ |
D | lirc_imon.c | 693 int ifnum; in imon_probe() local 723 ifnum = iface_desc->desc.bInterfaceNumber; in imon_probe() 728 __func__, vendor, product, ifnum); in imon_probe() 873 if (context->display && ifnum == 0) { in imon_probe() 885 vendor, product, ifnum, usbdev->bus->busnum, usbdev->devnum); in imon_probe() 925 int ifnum; in imon_disconnect() local 931 ifnum = interface->cur_altsetting->desc.bInterfaceNumber; in imon_disconnect() 959 __func__, ifnum); in imon_disconnect()
|
/drivers/media/rc/ |
D | imon.c | 2111 int ifnum = iface_desc->desc.bInterfaceNumber; in imon_find_endpoints() local 2143 if (ifnum == 0) { in imon_find_endpoints() 2402 int ifnum, sysfs_err; in imon_probe() local 2410 ifnum = iface_desc->desc.bInterfaceNumber; in imon_probe() 2415 __func__, vendor, product, ifnum); in imon_probe() 2428 if (ifnum == 0) { in imon_probe() 2456 if (ifnum == 0) { in imon_probe() 2474 "usb<%d:%d> initialized\n", vendor, product, ifnum, in imon_probe() 2497 int ifnum; in imon_disconnect() local 2504 ifnum = interface->cur_altsetting->desc.bInterfaceNumber; in imon_disconnect() [all …]
|
/drivers/net/usb/ |
D | sierra_net.c | 85 u8 ifnum; /* interface number */ member 342 0, priv->ifnum, cmd, cmdlen); in sierra_net_send_cmd() 492 u8 ifnum; in sierra_net_kevent() local 502 ifnum = priv->ifnum; in sierra_net_kevent() 506 0, ifnum, buf, SIERRA_NET_USBCTL_BUF_LEN, in sierra_net_kevent() 727 priv->ifnum = ifacenum; in sierra_net_bind()
|
/drivers/media/usb/em28xx/ |
D | em28xx-audio.c | 294 dev->ifnum, dev->alt); in snd_em28xx_capture_open() 295 usb_set_interface(dev->udev, dev->ifnum, dev->alt); in snd_em28xx_capture_open() 751 if (dev->ifnum) in em28xx_audio_urb_init() 756 intf = usb_ifnum_to_if(dev->udev, dev->ifnum); in em28xx_audio_urb_init() 760 dev->ifnum, alt); in em28xx_audio_urb_init() 784 dev->ifnum, alt, in em28xx_audio_urb_init()
|
D | em28xx-cards.c | 3238 const int ifnum = interface->altsetting[0].desc.bInterfaceNumber; in em28xx_usb_probe() local 3261 ifnum, in em28xx_usb_probe() 3402 ifnum, in em28xx_usb_probe() 3423 dev->ifnum = ifnum; in em28xx_usb_probe() 3427 ifnum, "(Vendor Class)"); in em28xx_usb_probe() 3446 ifnum, in em28xx_usb_probe() 3452 ifnum, in em28xx_usb_probe()
|
/drivers/usb/class/ |
D | usblp.c | 156 int ifnum; /* Interface number */ member 193 dev_dbg(dev, "ifnum=%d\n", usblp->ifnum); in usblp_dump() 268 int index = usblp->ifnum; in usblp_ctrl_msg() 274 index = (usblp->ifnum<<8)|usblp->protocol[usblp->current_protocol].alt_setting; in usblp_ctrl_msg() 1146 usblp->ifnum = intf->cur_altsetting->desc.bInterfaceNumber; in usblp_probe() 1221 usblp->ifnum, in usblp_probe() 1357 r = usb_set_interface(usblp->dev, usblp->ifnum, alts); in usblp_set_protocol() 1360 alts, usblp->ifnum); in usblp_set_protocol()
|
/drivers/media/usb/usbvision/ |
D | usbvision-video.c | 1445 __u8 ifnum = intf->altsetting->desc.bInterfaceNumber; in usbvision_probe() local 1453 dev->descriptor.idProduct, ifnum); in usbvision_probe() 1466 else if (ifnum < dev->actconfig->desc.bNumInterfaces) in usbvision_probe() 1467 interface = &dev->actconfig->interface[ifnum]->altsetting[0]; in usbvision_probe() 1470 ifnum, dev->actconfig->desc.bNumInterfaces - 1); in usbvision_probe() 1477 " have minimum 2\n", ifnum, interface->desc.bNumEndpoints); in usbvision_probe() 1485 __func__, ifnum); in usbvision_probe() 1493 __func__, ifnum); in usbvision_probe() 1554 usbvision->iface = ifnum; in usbvision_probe()
|
/drivers/hid/usbhid/ |
D | hid-core.c | 327 usbhid->ifnum, status); in hid_irq_in() 406 usbhid->cr->wIndex = cpu_to_le16(usbhid->ifnum); in hid_submit_ctrl() 654 static int hid_set_idle(struct usb_device *dev, int ifnum, int report, int idle) in hid_set_idle() argument 658 ifnum, NULL, 0, USB_CTRL_SET_TIMEOUT); in hid_set_idle() 661 static int hid_get_class_descriptor(struct usb_device *dev, int ifnum, in hid_get_class_descriptor() argument 671 (type << 8), ifnum, buf, size, USB_CTRL_GET_TIMEOUT); in hid_get_class_descriptor() 1267 int ifnum = interface->desc.bInterfaceNumber; in usbhid_idle() local 1272 return hid_set_idle(dev, ifnum, report, idle); in usbhid_idle() 1369 usbhid->ifnum = interface->desc.bInterfaceNumber; in usbhid_probe()
|
D | usbhid.h | 66 int ifnum; /* USB interface number */ member
|
/drivers/usb/storage/ |
D | transport.c | 942 us->ifnum, us->iobuf, srb->cmd_len); in usb_stor_CB_transport() 1050 0, us->ifnum, us->iobuf, 1, 10*HZ); in usb_stor_Bulk_max_lun() 1359 0, us->ifnum, us->iobuf, CB_RESET_CMD_SIZE); in usb_stor_CB_reset() 1370 0, us->ifnum, NULL, 0); in usb_stor_Bulk_reset()
|
D | usb.h | 127 u8 ifnum; /* interface number */ member
|
/drivers/usb/misc/sisusbvga/ |
D | sisusb.h | 118 unsigned int ifnum; /* interface number of the USB device */ member
|
/drivers/media/usb/cx231xx/ |
D | cx231xx-cards.c | 1581 int nr = 0, ifnum; in cx231xx_usb_probe() local 1587 ifnum = interface->altsetting[0].desc.bInterfaceNumber; in cx231xx_usb_probe() 1593 if (ifnum != 1) in cx231xx_usb_probe() 1678 if (!assoc_desc || assoc_desc->bFirstInterface != ifnum) { in cx231xx_usb_probe() 1684 dev_dbg(d, "registering interface %d\n", ifnum); in cx231xx_usb_probe()
|