/linux-master/drivers/usb/serial/ |
H A D | qcserial.c | 199 int altsetting = 0; local 222 altsetting = -1; 226 return altsetting; 236 int altsetting = -1; local 250 /* Gobi 2000 has a single altsetting, older ones have two */ 264 altsetting = 1; 271 altsetting = 0; 289 altsetting = -1; 295 altsetting = 1; 299 altsetting [all...] |
/linux-master/drivers/usb/atm/ |
H A D | xusbatm.c | 29 XUSBATM_PARM(rx_altsetting, unsigned char, byte, "rx altsetting (default 0)"); 30 XUSBATM_PARM(tx_altsetting, unsigned char, byte, "rx altsetting (default 0)"); 38 static struct usb_interface *xusbatm_find_intf(struct usb_device *usb_dev, int altsetting, u8 ep) argument 45 if ((intf = usb_dev->actconfig->interface[i]) && (alt = usb_altnum_to_altsetting(intf, altsetting))) 53 struct usb_interface *intf, int altsetting, int claim) 55 int ifnum = intf->altsetting->desc.bInterfaceNumber; 62 ret = usb_set_interface(usb_dev, ifnum, altsetting); 64 usb_err(usbatm, "%s: altsetting %2d for interface %2d failed (%d)!\n", __func__, altsetting, ifnum, ret); 97 usb_dbg(usbatm, "%s: no interface contains endpoint %02x in altsetting 52 xusbatm_capture_intf(struct usbatm_data *usbatm, struct usb_device *usb_dev, struct usb_interface *intf, int altsetting, int claim) argument [all...] |
H A D | speedtch.c | 59 static unsigned int altsetting = 0; /* zero means: use the default */ variable 76 module_param(altsetting, uint, S_IRUGO | S_IWUSR); 77 MODULE_PARM_DESC(altsetting, 115 unsigned int altsetting; member in struct:speedtch_params 327 if ((ret = usb_set_interface(usb_dev, INTERFACE_DATA, instance->params.altsetting)) < 0) { 328 usb_err(usbatm, "%s: setting interface to %d failed (%d)!\n", __func__, instance->params.altsetting, ret); 768 int ifnum = intf->altsetting->desc.bInterfaceNumber; 814 instance->params.altsetting = altsetting; 821 if (instance->params.altsetting) [all...] |
/linux-master/sound/usb/ |
H A D | format.c | 45 fp->iface, fp->altsetting, format); 88 fp->iface, fp->altsetting); 100 fp->iface, fp->altsetting, 126 fp->iface, fp->altsetting, 151 fp->iface, fp->altsetting, format); 208 fp->iface, fp->altsetting); 228 /* C-Media CM6501 mislabels its 96 kHz altsetting */ 236 fp->altsetting == 5 && fp->maxpacksize == 392) 249 fp->iface, fp->altsetting); 273 * rates per altsetting bu 435 check_valid_altsetting_v2v3(struct snd_usb_audio *chip, int iface, int altsetting) argument [all...] |
H A D | quirks-table.h | 59 .altsetting = 1, 106 .altsetting = 4, 464 .altsetting = 1, 481 .altsetting = 1, 952 .altsetting = 1, 969 .altsetting = 1, 1573 .altsetting = 1, 1591 .altsetting = 1, 1640 .altsetting = 1, 1658 .altsetting [all...] |
H A D | helper.h | 18 snd_usb_get_host_interface(struct snd_usb_audio *chip, int ifnum, int altsetting);
|
H A D | card.h | 20 unsigned char altsetting; /* corresponding alternate setting */ member in struct:audioformat 42 bool dsd_raw; /* altsetting is raw DSD */ 74 unsigned char altsetting; /* corresponding alternate setting */ member in struct:snd_usb_endpoint
|
H A D | helper.c | 124 snd_usb_get_host_interface(struct snd_usb_audio *chip, int ifnum, int altsetting) argument 131 return usb_altnum_to_altsetting(iface, altsetting);
|
H A D | clock.c | 450 fmt->iface, fmt->altsetting, rate, fmt->endpoint); 468 fmt->iface, fmt->altsetting, fmt->endpoint); 489 int altsetting, int clock) 502 iface, altsetting, err); 552 return get_sample_rate_v2v3(chip, fmt->iface, fmt->altsetting, clock); 583 prev_rate = get_sample_rate_v2v3(chip, fmt->iface, fmt->altsetting, clock); 591 fmt->iface, fmt->altsetting, rate, cur_rate); 601 fmt->iface, fmt->altsetting, rate, cur_rate); 610 usb_set_interface(chip->dev, fmt->iface, fmt->altsetting); 627 fmt->iface, fmt->altsetting, rat 488 get_sample_rate_v2v3(struct snd_usb_audio *chip, int iface, int altsetting, int clock) argument [all...] |
H A D | quirks.c | 38 int probed_ifnum = get_iface_desc(iface->altsetting)->bInterfaceNumber; 99 alts = &iface->altsetting[0]; 147 * create a stream for an endpoint/altsetting without proper descriptors 179 if (fp->iface != get_iface_desc(&iface->altsetting[0])->bInterfaceNumber || 184 alts = &iface->altsetting[fp->altset_idx]; 233 /* must have a non-zero altsetting for streaming */ 236 alts = &iface->altsetting[1]; 351 alts = &iface->altsetting[0]; 404 .altsetting = 1, 416 alts = &iface->altsetting[ [all...] |
H A D | implicit.c | 93 alts = &iface->altsetting[1]; 103 fmt->iface, fmt->altsetting, 113 unsigned int altsetting) 118 alts = snd_usb_get_host_interface(chip, ifnum, altsetting); 468 target->altsetting == target->sync_altsetting) 110 add_generic_uac2_implicit_fb(struct snd_usb_audio *chip, struct audioformat *fmt, unsigned int ifnum, unsigned int altsetting) argument
|
/linux-master/drivers/net/usb/ |
H A D | cdc-phonet.c | 329 data = intf->altsetting->extra; 330 len = intf->altsetting->extralen; 344 if (data_intf->altsetting[0].desc.bNumEndpoints == 0 && 345 data_intf->altsetting[1].desc.bNumEndpoints == 2) 346 data_desc = data_intf->altsetting + 1; 348 if (data_intf->altsetting[0].desc.bNumEndpoints == 2 && 349 data_intf->altsetting[1].desc.bNumEndpoints == 0) 350 data_desc = data_intf->altsetting; 380 pnd->active_setting = data_desc - data_intf->altsetting;
|
/linux-master/drivers/media/usb/usbtv/ |
H A D | usbtv-core.c | 79 if (intf->altsetting[1].desc.bNumEndpoints != 4) 82 ep = &intf->altsetting[1].endpoint[0];
|
/linux-master/sound/usb/line6/ |
H A D | toneport.c | 495 .altsetting = 2, /* 1..4 seem to be ok */ 504 .altsetting = 2, /* 1..4 seem to be ok */ 513 .altsetting = 2, /* 1..4 seem to be ok */ 522 .altsetting = 2, /* defaults to 44.1kHz, 16-bit */ 531 .altsetting = 2, /* 1..4 seem to be ok */ 540 .altsetting = 2, /* 1..4 seem to be ok */ 549 .altsetting = 2, /* defaults to 44.1kHz, 16-bit */
|
H A D | podhd.c | 454 .altsetting = 5, 465 .altsetting = 5, 476 .altsetting = 1, 488 .altsetting = 1, 500 .altsetting = 1, 512 .altsetting = 1, 524 .altsetting = 1,
|
H A D | pod.c | 433 .altsetting = 5, 446 .altsetting = 1, 459 .altsetting = 5, 470 .altsetting = 0, 482 .altsetting = 5, 495 .altsetting = 1, 508 .altsetting = 5,
|
H A D | variax.c | 198 .altsetting = 1, 209 .altsetting = 1,
|
/linux-master/drivers/media/rc/ |
H A D | ttusbir.c | 188 int altsetting = -1; local 198 for (i = 0; i < intf->num_altsetting && altsetting == -1; i++) { 201 idesc = &intf->altsetting[i].desc; 204 desc = &intf->altsetting[i].endpoint[j].desc; 218 altsetting = i; 224 if (altsetting == -1) { 225 dev_err(&intf->dev, "cannot find expected altsetting\n"); 234 ret = usb_set_interface(tt->udev, 0, altsetting);
|
/linux-master/drivers/usb/image/ |
H A D | microtek.c | 672 /* the current altsetting on the interface we're probing */ 673 struct usb_host_interface *altsetting; local 684 /* the current altsetting on the interface we're probing */ 685 altsetting = intf->cur_altsetting; 690 if ( altsetting->desc.bNumEndpoints != MTS_EP_TOTAL ) { 692 (int)MTS_EP_TOTAL, (int)altsetting->desc.bNumEndpoints ); 696 for( i = 0; i < altsetting->desc.bNumEndpoints; i++ ) { 697 if ((altsetting->endpoint[i].desc.bmAttributes & 701 (int)altsetting->endpoint[i].desc.bEndpointAddress ); 703 if (altsetting [all...] |
/linux-master/drivers/media/usb/stk1160/ |
H A D | stk1160-core.c | 183 ifnum = intf->altsetting[0].desc.bInterfaceNumber; 188 for (e = 0; e < intf->altsetting[i].desc.bNumEndpoints; e++) { 191 desc = &intf->altsetting[i].endpoint[e].desc; 240 intf->altsetting->desc.bInterfaceNumber); 279 if (interface->altsetting[0].desc.bInterfaceClass == USB_CLASS_AUDIO)
|
/linux-master/include/linux/gpio/ |
H A D | gpio-nomadik.h | 174 * @altsetting: the altsetting to apply to all pins in this group to 179 int altsetting; member in struct:nmk_pingroup 185 .altsetting = b, \
|
/linux-master/drivers/pinctrl/nomadik/ |
H A D | pinctrl-abx500.h | 52 * @altsetting: the altsetting to apply to all pins in this group to 59 int altsetting; member in struct:abx500_pingroup
|
/linux-master/drivers/media/usb/cx231xx/ |
H A D | cx231xx-cards.c | 1567 if (uif->altsetting[0].desc.bNumEndpoints < isoc_pipe + 1) 1570 dev->video_mode.end_point_addr = uif->altsetting[0].endpoint[isoc_pipe].desc.bEndpointAddress; 1585 if (uif->altsetting[i].desc.bNumEndpoints < isoc_pipe + 1) 1588 tmp = le16_to_cpu(uif->altsetting[i].endpoint[isoc_pipe].desc.wMaxPacketSize); 1605 if (uif->altsetting[0].desc.bNumEndpoints < isoc_pipe + 1) 1609 uif->altsetting[0].endpoint[isoc_pipe].desc. 1626 if (uif->altsetting[i].desc.bNumEndpoints < isoc_pipe + 1) 1629 tmp = le16_to_cpu(uif->altsetting[i].endpoint[isoc_pipe]. 1649 if (uif->altsetting[0].desc.bNumEndpoints < isoc_pipe + 1) 1653 uif->altsetting[ [all...] |
/linux-master/drivers/usb/core/ |
H A D | usb.c | 212 * usb_host_endpoint structure in an interface's current altsetting. 213 * @intf: the interface whose current altsetting should be searched 216 * Search the altsetting's list of endpoints for one with the specified address. 236 * usb_check_bulk_endpoints - Check whether an interface's current altsetting 238 * @intf: the interface whose current altsetting should be searched 261 * usb_check_int_endpoints - Check whether an interface's current altsetting 263 * @intf: the interface whose current altsetting should be searched 308 if (config->intf_cache[i]->altsetting[0].desc.bInterfaceNumber 317 if (intf_cache->altsetting[i].desc.bAlternateSetting == alt_num) 318 return &intf_cache->altsetting[ [all...] |
/linux-master/tools/usb/ffs-aio-example/multibuff/host_app/ |
H A D | test.c | 165 iface = &conf->interface[0].altsetting[0];
|