/openbmc/u-boot/include/ |
H A D | usb_ether.h | 28 unsigned char ifnum; /* interface number */ member 101 int asix_eth_probe(struct usb_device *dev, unsigned int ifnum, 107 int ax88179_eth_probe(struct usb_device *dev, unsigned int ifnum, 113 int mcs7830_eth_probe(struct usb_device *dev, unsigned int ifnum, 119 int smsc95xx_eth_probe(struct usb_device *dev, unsigned int ifnum, 125 int r8152_eth_probe(struct usb_device *dev, unsigned int ifnum,
|
H A D | usb.h | 255 int usb_set_protocol(struct usb_device *dev, int ifnum, int protocol); 256 int usb_set_idle(struct usb_device *dev, int ifnum, int duration, 271 int usb_get_report(struct usb_device *dev, int ifnum, unsigned char type, 273 int usb_get_class_descriptor(struct usb_device *dev, int ifnum, 923 int usb_hub_probe(struct usb_device *dev, int ifnum);
|
/openbmc/linux/drivers/usb/serial/ |
H A D | qcserial.c | 199 static int handle_quectel_ec20(struct device *dev, int ifnum) in handle_quectel_ec20() argument 211 switch (ifnum) { in handle_quectel_ec20() 237 __u8 ifnum; in qcprobe() local 247 ifnum = intf->desc.bInterfaceNumber; in qcprobe() 248 dev_dbg(dev, "This Interface = %d\n", ifnum); in qcprobe() 295 if (ifnum == 0) { in qcprobe() 298 } else if (ifnum == 2) in qcprobe() 306 altsetting = handle_quectel_ec20(dev, ifnum); in qcprobe() 323 switch (ifnum) { in qcprobe() 352 switch (ifnum) { in qcprobe() [all …]
|
H A D | sierra.c | 88 u8 ifnum, numendpoints; in sierra_calc_num_ports() local 94 if (ifnum == 0x99) in sierra_calc_num_ports() 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() 862 u8 ifnum; in sierra_port_probe() local 879 ifnum = sierra_interface_num(serial); in sierra_port_probe() [all …]
|
/openbmc/u-boot/drivers/usb/eth/ |
H A D | usb_ether.c | 25 const int ifnum = 0; /* Always use interface 0 */ in usb_ether_register() local 28 iface = &udev->config.if_desc[ifnum]; in usb_ether_register() 29 iface_desc = &udev->config.if_desc[ifnum].desc; in usb_ether_register() 32 ueth->ifnum = ifnum; in usb_ether_register() 79 ret = usb_set_interface(udev, iface_desc->bInterfaceNumber, ifnum); in usb_ether_register() 141 typedef int (*usb_eth_probe)(struct usb_device *dev, unsigned int ifnum,
|
/openbmc/qemu/hw/usb/ |
H A D | core.c | 657 dev->ep_ctl.ifnum = 0; in usb_ep_reset() 669 dev->ep_in[ep].ifnum = USB_INTERFACE_INVALID; in usb_ep_reset() 670 dev->ep_out[ep].ifnum = USB_INTERFACE_INVALID; in usb_ep_reset() 702 int ifnum, ep, first; in usb_ep_dump() local 706 for (ifnum = 0; ifnum < 16; ifnum++) { in usb_ep_dump() 710 dev->ep_in[ep].ifnum == ifnum) { in usb_ep_dump() 714 ifnum, dev->altsetting[ifnum]); in usb_ep_dump() 721 dev->ep_out[ep].ifnum == ifnum) { in usb_ep_dump() 725 ifnum, dev->altsetting[ifnum]); in usb_ep_dump() 762 void usb_ep_set_ifnum(USBDevice *dev, int pid, int ep, uint8_t ifnum) in usb_ep_set_ifnum() argument [all …]
|
/openbmc/linux/tools/usb/ |
H A D | testusb.c | 126 unsigned ifnum : 8; member 242 int ifnum; in find_testdev() local 256 ifnum = testdev_ifnum(fd); in find_testdev() 258 if (ifnum < 0) in find_testdev() 273 entry->ifnum = ifnum; in find_testdev() 308 speed(dev->speed), dev->name, dev->ifnum); in handle_testdev() 316 status = usbdev_ioctl (fd, dev->ifnum, in handle_testdev()
|
/openbmc/linux/sound/usb/ |
H A D | implicit.c | 38 #define IMPLICIT_FB_FIXED_DEV(vend, prod, ep, ifnum) \ argument 40 .iface = (ifnum) } 41 #define IMPLICIT_FB_BOTH_DEV(vend, prod, ep, ifnum) \ argument 43 .iface = (ifnum) } 84 int ep, int ep_idx, int ifnum, in add_implicit_fb_sync_ep() argument 90 iface = usb_ifnum_to_if(chip->dev, ifnum); in add_implicit_fb_sync_ep() 97 fmt->sync_iface = ifnum; in add_implicit_fb_sync_ep() 112 unsigned int ifnum, in add_generic_uac2_implicit_fb() argument 118 alts = snd_usb_get_host_interface(chip, ifnum, altsetting); in add_generic_uac2_implicit_fb() 132 ifnum, alts); in add_generic_uac2_implicit_fb()
|
H A D | quirks-table.h | 88 .ifnum = (_ifno), \ 107 .ifnum = (_ifno), \ 121 .ifnum = 0, 1900 .ifnum = 0, 1985 .ifnum = 0, 2000 .ifnum = 4, 2009 .ifnum = 3, 2127 .ifnum = 0, 2176 .ifnum = 1, 2190 .ifnum = 0, [all …]
|
H A D | card.c | 757 if (check_delayed_register_option(chip) == ifnum || in try_to_register_card() 758 chip->last_iface == ifnum || in try_to_register_card() 783 int ifnum; in usb_audio_probe() local 787 ifnum = get_iface_desc(alts)->bInterfaceNumber; in usb_audio_probe() 792 if (quirk && quirk->ifnum >= 0 && ifnum != quirk->ifnum) in usb_audio_probe() 878 if (quirk && quirk->ifnum != QUIRK_NO_INTERFACE) { in usb_audio_probe() 887 err = snd_usb_create_streams(chip, ifnum); in usb_audio_probe() 890 err = snd_usb_create_mixer(chip, ifnum); in usb_audio_probe() 898 chip->usb_id, ifnum); in usb_audio_probe() 902 err = try_to_register_card(chip, ifnum); in usb_audio_probe() [all …]
|
H A D | helper.c | 124 snd_usb_get_host_interface(struct snd_usb_audio *chip, int ifnum, int altsetting) in snd_usb_get_host_interface() argument 128 iface = usb_ifnum_to_if(chip->dev, ifnum); in snd_usb_get_host_interface()
|
H A D | helper.h | 18 snd_usb_get_host_interface(struct snd_usb_audio *chip, int ifnum, int altsetting);
|
/openbmc/linux/drivers/usb/core/ |
H A D | devio.c | 100 unsigned int ifnum; member 691 if (ifnum == list_entry(p, struct async, asynclist)->ifnum) in destroy_async_on_interface() 730 ifnum); in driver_disconnect() 957 int ifnum, ret; in parse_usbdevfs_streams() local 987 if (ifnum < 0) { in parse_usbdevfs_streams() 988 ret = ifnum; in parse_usbdevfs_streams() 1104 for (ifnum = 0; ps->ifclaimed && ifnum < 8*sizeof(ps->ifclaimed); in usbdev_release() 1105 ifnum++) { in usbdev_release() 1651 if (ifnum < 0) in proc_do_submiturb() 1652 return ifnum; in proc_do_submiturb() [all …]
|
H A D | of.c | 91 usb_of_get_interface_node(struct usb_device *udev, u8 config, u8 ifnum) in usb_of_get_interface_node() argument 100 if (reg[0] == ifnum && reg[1] == config) in usb_of_get_interface_node()
|
/openbmc/linux/drivers/hid/ |
H A 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()
|
H A 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()
|
/openbmc/linux/drivers/media/usb/stk1160/ |
H A 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()
|
/openbmc/linux/include/linux/usb/ |
H A D | of.h | 23 u8 config, u8 ifnum); 50 usb_of_get_interface_node(struct usb_device *udev, u8 config, u8 ifnum) in usb_of_get_interface_node() argument
|
/openbmc/linux/drivers/usb/atm/ |
H A 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()
|
/openbmc/u-boot/common/ |
H A D | usb.c | 677 int usb_set_protocol(struct usb_device *dev, int ifnum, int protocol) in usb_set_protocol() argument 681 protocol, ifnum, NULL, 0, USB_CNTL_TIMEOUT); in usb_set_protocol() 687 int usb_set_idle(struct usb_device *dev, int ifnum, int duration, int report_id) in usb_set_idle() argument 691 (duration << 8) | report_id, ifnum, NULL, 0, USB_CNTL_TIMEOUT); in usb_set_idle() 697 int usb_get_report(struct usb_device *dev, int ifnum, unsigned char type, in usb_get_report() argument 703 (type << 8) + id, ifnum, buf, size, USB_CNTL_TIMEOUT); in usb_get_report() 709 int usb_get_class_descriptor(struct usb_device *dev, int ifnum, in usb_get_class_descriptor() argument 714 (type << 8) + id, ifnum, buf, size, USB_CNTL_TIMEOUT); in usb_get_class_descriptor()
|
H A D | usb_storage.c | 82 unsigned char ifnum; /* interface number */ member 112 int usb_storage_probe(struct usb_device *dev, unsigned int ifnum, 178 0, us->ifnum, in usb_get_max_lun() 469 0, us->ifnum, NULL, 0, USB_CNTL_TIMEOUT * 5); in usb_stor_BBB_reset() 512 0, us->ifnum, cmd, sizeof(cmd), in usb_stor_CB_reset() 604 0, us->ifnum, in usb_stor_CB_comdat() 1290 int usb_storage_probe(struct usb_device *dev, unsigned int ifnum, in usb_storage_probe() argument 1299 iface = &dev->config.if_desc[ifnum]; in usb_storage_probe() 1317 ss->ifnum = ifnum; in usb_storage_probe()
|
/openbmc/linux/drivers/net/usb/ |
H A 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() 698 priv->ifnum = ifacenum; in sierra_net_bind()
|
/openbmc/linux/drivers/media/rc/ |
H A D | imon.c | 2155 if (ifnum == 0) { in imon_find_endpoints() 2407 int ifnum, sysfs_err; in imon_probe() local 2419 __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 2521 if (ifnum == 0) { in imon_disconnect() 2547 __func__, ifnum); in imon_disconnect() 2555 if (ifnum == 0) in imon_suspend() [all …]
|
/openbmc/linux/drivers/hid/usbhid/ |
H A D | usbhid.h | 60 int ifnum; /* USB interface number */ member
|
/openbmc/linux/drivers/media/usb/em28xx/ |
H A D | em28xx-audio.c | 264 dev->ifnum, dev->alt); in snd_em28xx_capture_open() 265 usb_set_interface(udev, dev->ifnum, dev->alt); in snd_em28xx_capture_open() 667 if (dev->ifnum) in em28xx_audio_urb_init() 672 intf = usb_ifnum_to_if(udev, dev->ifnum); in em28xx_audio_urb_init() 676 dev->ifnum, alt); in em28xx_audio_urb_init() 701 dev->ifnum, alt, interval, ep_size); in em28xx_audio_urb_init()
|