/drivers/usb/serial/ |
D | qcserial.c | 197 static int handle_quectel_ec20(struct device *dev, int ifnum) in handle_quectel_ec20() argument 209 switch (ifnum) { in handle_quectel_ec20() 235 __u8 ifnum; in qcprobe() local 245 ifnum = intf->desc.bInterfaceNumber; in qcprobe() 246 dev_dbg(dev, "This Interface = %d\n", ifnum); in qcprobe() 293 if (ifnum == 0) { in qcprobe() 296 } else if (ifnum == 2) in qcprobe() 304 altsetting = handle_quectel_ec20(dev, ifnum); in qcprobe() 321 switch (ifnum) { in qcprobe() 350 switch (ifnum) { in qcprobe() [all …]
|
D | sierra.c | 88 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 …]
|
D | ir-usb.c | 123 irda_usb_find_class_desc(struct usb_serial *serial, unsigned int ifnum) in irda_usb_find_class_desc() argument 136 0, ifnum, desc, sizeof(*desc), 1000); in irda_usb_find_class_desc()
|
D | option.c | 622 #define NCTRL(ifnum) ((BIT(ifnum) & 0xff) << 8) argument 625 #define RSVD(ifnum) ((BIT(ifnum) & 0xff) << 0) argument 2329 static bool iface_is_reserved(unsigned long device_flags, u8 ifnum) in iface_is_reserved() argument 2331 if (ifnum > FLAG_IFNUM_MAX) in iface_is_reserved() 2334 return device_flags & RSVD(ifnum); in iface_is_reserved() 2369 static bool iface_no_modem_control(unsigned long device_flags, u8 ifnum) in iface_no_modem_control() argument 2371 if (ifnum > FLAG_IFNUM_MAX) in iface_no_modem_control() 2374 return device_flags & NCTRL(ifnum); in iface_no_modem_control()
|
D | usb_wwan.c | 45 int ifnum; in usb_wwan_send_setup() local 55 ifnum = serial->interface->cur_altsetting->desc.bInterfaceNumber; in usb_wwan_send_setup() 62 0x22, 0x21, val, ifnum, NULL, 0, in usb_wwan_send_setup()
|
/drivers/usb/core/ |
D | devio.c | 99 unsigned int ifnum; member 671 unsigned int ifnum) in destroy_async_on_interface() argument 679 if (ifnum == list_entry(p, struct async, asynclist)->ifnum) in destroy_async_on_interface() 705 unsigned int ifnum = intf->altsetting->desc.bInterfaceNumber; in driver_disconnect() local 714 if (likely(ifnum < 8*sizeof(ps->ifclaimed))) in driver_disconnect() 715 clear_bit(ifnum, &ps->ifclaimed); in driver_disconnect() 718 ifnum); in driver_disconnect() 723 destroy_async_on_interface(ps, ifnum); in driver_disconnect() 767 static int claimintf(struct usb_dev_state *ps, unsigned int ifnum) in claimintf() argument 773 if (ifnum >= 8*sizeof(ps->ifclaimed)) in claimintf() [all …]
|
D | of.c | 92 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()
|
D | message.c | 2056 u8 ifnum; in usb_set_configuration() local 2075 ifnum = alt->desc.bInterfaceNumber; in usb_set_configuration() 2076 intf->intf_assoc = find_iad(dev, cp, ifnum); in usb_set_configuration() 2084 configuration, ifnum); in usb_set_configuration() 2096 dev->devpath, configuration, ifnum); in usb_set_configuration()
|
/drivers/hid/ |
D | hid-prodikeys.c | 54 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()
|
D | hid-samsung.c | 100 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()
|
/drivers/media/usb/stk1160/ |
D | stk1160-core.c | 177 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()
|
/drivers/usb/atm/ |
D | xusbatm.c | 55 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()
|
D | ueagle-atm.c | 2450 struct usbatm_data *usbatm, int ifnum) in claim_interface() argument 2453 struct usb_interface *intf = usb_ifnum_to_if(usb_dev, ifnum); in claim_interface() 2456 uea_err(usb_dev, "interface %d not found\n", ifnum); in claim_interface() 2462 uea_err(usb_dev, "can't claim interface %d, error %d\n", ifnum, in claim_interface() 2495 int ret, ifnum = intf->altsetting->desc.bInterfaceNumber; in uea_bind() local 2501 if (ifnum != UEA_INTR_IFACE_NO) in uea_bind() 2622 int ifnum = intf->altsetting->desc.bInterfaceNumber; in uea_disconnect() local 2628 if (usb->config->desc.bNumInterfaces != 1 && ifnum == 0) { in uea_disconnect()
|
/drivers/media/rc/ |
D | imon.c | 2131 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() 2439 if (ifnum == 0) { in imon_probe() 2470 if (ifnum == 0) { in imon_probe() 2484 vendor, product, ifnum, in imon_probe() 2505 int ifnum; in imon_disconnect() local 2510 ifnum = interface->cur_altsetting->desc.bInterfaceNumber; in imon_disconnect() [all …]
|
/drivers/net/usb/ |
D | sierra_net.c | 73 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()
|
/drivers/media/usb/em28xx/ |
D | em28xx-audio.c | 274 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()
|
D | em28xx-cards.c | 3779 const int ifnum = intf->altsetting[0].desc.bInterfaceNumber; in em28xx_usb_probe() local 3803 ifnum, in em28xx_usb_probe() 3868 ifnum, in em28xx_usb_probe() 3891 dev->ifnum = ifnum; in em28xx_usb_probe() 3899 "Audio interface %i found (Vendor Class)\n", ifnum); in em28xx_usb_probe() 3918 ifnum, in em28xx_usb_probe() 3923 ifnum, in em28xx_usb_probe() 3993 dev->dev_next->ifnum = ifnum; in em28xx_usb_probe()
|
/drivers/usb/class/ |
D | usblp.c | 141 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()
|
/drivers/media/usb/au0828/ |
D | au0828-core.c | 651 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()
|
/drivers/hid/usbhid/ |
D | hid-core.c | 329 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()
|
D | usbhid.h | 60 int ifnum; /* USB interface number */ member
|
/drivers/usb/storage/ |
D | transport.c | 968 us->ifnum, us->iobuf, srb->cmd_len); in usb_stor_CB_transport() 1080 0, us->ifnum, us->iobuf, 1, 10*HZ); in usb_stor_Bulk_max_lun() 1400 0, us->ifnum, us->iobuf, CB_RESET_CMD_SIZE); in usb_stor_CB_reset() 1412 0, us->ifnum, NULL, 0); in usb_stor_Bulk_reset()
|
D | usb.h | 114 u8 ifnum; /* interface number */ member
|
/drivers/usb/misc/sisusbvga/ |
D | sisusb.h | 106 unsigned int ifnum; /* interface number of the USB device */ member
|
/drivers/media/usb/cx231xx/ |
D | cx231xx-cards.c | 1695 int nr = 0, ifnum; in cx231xx_usb_probe() local 1701 ifnum = interface->altsetting[0].desc.bInterfaceNumber; in cx231xx_usb_probe() 1707 if (ifnum != 1) in cx231xx_usb_probe() 1792 if (!assoc_desc || assoc_desc->bFirstInterface != ifnum) { in cx231xx_usb_probe() 1798 dev_dbg(d, "registering interface %d\n", ifnum); in cx231xx_usb_probe()
|