/linux-6.1.9/drivers/usb/serial/ |
D | qcserial.c | 197 int altsetting = 0; in handle_quectel_ec20() local 220 altsetting = -1; in handle_quectel_ec20() 224 return altsetting; in handle_quectel_ec20() 234 int altsetting = -1; in qcprobe() local 262 altsetting = 1; in qcprobe() 269 altsetting = 0; in qcprobe() 287 altsetting = -1; in qcprobe() 293 altsetting = 1; in qcprobe() 297 altsetting = -1; in qcprobe() 302 altsetting = handle_quectel_ec20(dev, ifnum); in qcprobe() [all …]
|
/linux-6.1.9/sound/usb/ |
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 = 1, [all …]
|
D | format.c | 84 fp->iface, fp->altsetting); in parse_audio_format_i_type() 96 fp->iface, fp->altsetting, in parse_audio_format_i_type() 122 fp->iface, fp->altsetting, in parse_audio_format_i_type() 147 fp->iface, fp->altsetting, format); in parse_audio_format_i_type() 204 fp->iface, fp->altsetting); in parse_audio_format_rates_v1() 232 fp->altsetting == 5 && fp->maxpacksize == 392) in parse_audio_format_rates_v1() 245 fp->iface, fp->altsetting); in parse_audio_format_rates_v1() 280 switch (fp->altsetting) { in s1810c_valid_sample_rate() 314 alts = &iface->altsetting[fp->altset_idx]; in focusrite_valid_sample_rate() 331 fp->iface, fp->altsetting, max_rate); in focusrite_valid_sample_rate() [all …]
|
D | clock.c | 420 fmt->iface, fmt->altsetting, rate, fmt->endpoint); in set_sample_rate_v1() 438 fmt->iface, fmt->altsetting, fmt->endpoint); in set_sample_rate_v1() 459 int altsetting, int clock) in get_sample_rate_v2v3() argument 472 iface, altsetting, err); in get_sample_rate_v2v3() 522 return get_sample_rate_v2v3(chip, fmt->iface, fmt->altsetting, clock); in snd_usb_set_sample_rate_v2v3() 553 prev_rate = get_sample_rate_v2v3(chip, fmt->iface, fmt->altsetting, clock); in set_sample_rate_v2v3() 561 fmt->iface, fmt->altsetting, rate, cur_rate); in set_sample_rate_v2v3() 571 fmt->iface, fmt->altsetting, rate, cur_rate); in set_sample_rate_v2v3() 580 usb_set_interface(chip->dev, fmt->iface, fmt->altsetting); in set_sample_rate_v2v3() 597 fmt->iface, fmt->altsetting, rate, fmt->clock); in snd_usb_init_sample_rate()
|
D | quirks.c | 37 int probed_ifnum = get_iface_desc(iface->altsetting)->bInterfaceNumber; in create_composite_quirk() 98 alts = &iface->altsetting[0]; in create_standard_audio_quirk() 178 if (fp->iface != get_iface_desc(&iface->altsetting[0])->bInterfaceNumber || in create_fixed_stream_quirk() 183 alts = &iface->altsetting[fp->altset_idx]; in create_fixed_stream_quirk() 235 alts = &iface->altsetting[1]; in create_auto_pcm_quirk() 350 alts = &iface->altsetting[0]; in create_auto_midi_quirk() 403 .altsetting = 1, in create_uaxx_quirk() 415 alts = &iface->altsetting[1]; in create_uaxx_quirk() 1615 if (get_iface_desc(intf->altsetting)->bInterfaceClass == in snd_usb_apply_boot_quirk() 1617 get_iface_desc(intf->altsetting)->bInterfaceNumber < 3) in snd_usb_apply_boot_quirk() [all …]
|
D | implicit.c | 93 alts = &iface->altsetting[1]; in add_implicit_fb_sync_ep() 103 fmt->iface, fmt->altsetting, in add_implicit_fb_sync_ep() 113 unsigned int altsetting) in add_generic_uac2_implicit_fb() argument 118 alts = snd_usb_get_host_interface(chip, ifnum, altsetting); in add_generic_uac2_implicit_fb() 468 target->altsetting == target->sync_altsetting) in snd_usb_find_implicit_fb_sync_format()
|
D | helper.c | 125 snd_usb_get_host_interface(struct snd_usb_audio *chip, int ifnum, int altsetting) in snd_usb_get_host_interface() argument 132 return usb_altnum_to_altsetting(iface, altsetting); in snd_usb_get_host_interface()
|
D | card.h | 20 unsigned char altsetting; /* corresponding alternate setting */ member 74 unsigned char altsetting; /* corresponding alternate setting */ member
|
D | helper.h | 18 snd_usb_get_host_interface(struct snd_usb_audio *chip, int ifnum, int altsetting);
|
D | proc.c | 103 snd_iprintf(buffer, " Altset %d\n", fp->altsetting); in proc_dump_substream_formats() 201 snd_iprintf(buffer, " Altset = %d\n", subs->cur_audiofmt->altsetting); in proc_dump_substream_status()
|
/linux-6.1.9/drivers/usb/atm/ |
D | xusbatm.c | 38 static struct usb_interface *xusbatm_find_intf(struct usb_device *usb_dev, int altsetting, u8 ep) in xusbatm_find_intf() argument 45 …if ((intf = usb_dev->actconfig->interface[i]) && (alt = usb_altnum_to_altsetting(intf, altsetting)… in xusbatm_find_intf() 53 struct usb_interface *intf, int altsetting, int claim) in xusbatm_capture_intf() argument 55 int ifnum = intf->altsetting->desc.bInterfaceNumber; in xusbatm_capture_intf() 62 ret = usb_set_interface(usb_dev, ifnum, altsetting); in xusbatm_capture_intf() 64 …usb_err(usbatm, "%s: altsetting %2d for interface %2d failed (%d)!\n", __func__, altsetting, ifnum… in xusbatm_capture_intf() 110 rx_intf->altsetting->desc.bInterfaceNumber, rx_alt, tx_alt); in xusbatm_bind() 115 rx_intf->altsetting->desc.bInterfaceNumber, in xusbatm_bind() 116 tx_intf->altsetting->desc.bInterfaceNumber); in xusbatm_bind()
|
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 327 if ((ret = usb_set_interface(usb_dev, INTERFACE_DATA, instance->params.altsetting)) < 0) { in speedtch_upload_firmware() 328 …(usbatm, "%s: setting interface to %d failed (%d)!\n", __func__, instance->params.altsetting, ret); in speedtch_upload_firmware() 768 int ifnum = intf->altsetting->desc.bInterfaceNumber; in speedtch_bind() 814 instance->params.altsetting = altsetting; in speedtch_bind() 821 if (instance->params.altsetting) in speedtch_bind() 822 if ((ret = usb_set_interface(usb_dev, INTERFACE_DATA, instance->params.altsetting)) < 0) { in speedtch_bind() [all …]
|
/linux-6.1.9/drivers/net/usb/ |
D | cdc-phonet.c | 329 data = intf->altsetting->extra; in usbpn_probe() 330 len = intf->altsetting->extralen; in usbpn_probe() 344 if (data_intf->altsetting[0].desc.bNumEndpoints == 0 && in usbpn_probe() 345 data_intf->altsetting[1].desc.bNumEndpoints == 2) in usbpn_probe() 346 data_desc = data_intf->altsetting + 1; in usbpn_probe() 348 if (data_intf->altsetting[0].desc.bNumEndpoints == 2 && in usbpn_probe() 349 data_intf->altsetting[1].desc.bNumEndpoints == 0) in usbpn_probe() 350 data_desc = data_intf->altsetting; in usbpn_probe() 380 pnd->active_setting = data_desc - data_intf->altsetting; in usbpn_probe()
|
/linux-6.1.9/sound/usb/line6/ |
D | pod.c | 433 .altsetting = 5, 446 .altsetting = 1, 459 .altsetting = 5, 470 .altsetting = 0, 482 .altsetting = 5, 495 .altsetting = 1, 508 .altsetting = 5,
|
D | podhd.c | 454 .altsetting = 5, 465 .altsetting = 5, 476 .altsetting = 1, 488 .altsetting = 1, 500 .altsetting = 1, 512 .altsetting = 1, 524 .altsetting = 1,
|
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 */
|
D | variax.c | 198 .altsetting = 1, 209 .altsetting = 1,
|
/linux-6.1.9/drivers/usb/image/ |
D | microtek.c | 673 struct usb_host_interface *altsetting; in mts_usb_probe() local 685 altsetting = intf->cur_altsetting; in mts_usb_probe() 690 if ( altsetting->desc.bNumEndpoints != MTS_EP_TOTAL ) { in mts_usb_probe() 692 (int)MTS_EP_TOTAL, (int)altsetting->desc.bNumEndpoints ); in mts_usb_probe() 696 for( i = 0; i < altsetting->desc.bNumEndpoints; i++ ) { in mts_usb_probe() 697 if ((altsetting->endpoint[i].desc.bmAttributes & in mts_usb_probe() 701 (int)altsetting->endpoint[i].desc.bEndpointAddress ); in mts_usb_probe() 703 if (altsetting->endpoint[i].desc.bEndpointAddress & in mts_usb_probe() 706 = altsetting->endpoint[i].desc.bEndpointAddress & in mts_usb_probe() 714 ep_out = altsetting->endpoint[i].desc.bEndpointAddress & in mts_usb_probe()
|
/linux-6.1.9/drivers/media/rc/ |
D | ttusbir.c | 188 int altsetting = -1; in ttusbir_probe() local 198 for (i = 0; i < intf->num_altsetting && altsetting == -1; i++) { in ttusbir_probe() 201 idesc = &intf->altsetting[i].desc; in ttusbir_probe() 204 desc = &intf->altsetting[i].endpoint[j].desc; in ttusbir_probe() 218 altsetting = i; in ttusbir_probe() 224 if (altsetting == -1) { in ttusbir_probe() 234 ret = usb_set_interface(tt->udev, 0, altsetting); in ttusbir_probe()
|
/linux-6.1.9/drivers/media/usb/stk1160/ |
D | stk1160-core.c | 183 ifnum = intf->altsetting[0].desc.bInterfaceNumber; in stk1160_scan_usb() 188 for (e = 0; e < intf->altsetting[i].desc.bNumEndpoints; e++) { in stk1160_scan_usb() 191 desc = &intf->altsetting[i].endpoint[e].desc; in stk1160_scan_usb() 240 intf->altsetting->desc.bInterfaceNumber); in stk1160_scan_usb() 279 if (interface->altsetting[0].desc.bInterfaceClass == USB_CLASS_AUDIO) in stk1160_probe()
|
/linux-6.1.9/drivers/media/usb/cx231xx/ |
D | cx231xx-cards.c | 1567 if (uif->altsetting[0].desc.bNumEndpoints < isoc_pipe + 1) in cx231xx_init_v4l2() 1570 dev->video_mode.end_point_addr = uif->altsetting[0].endpoint[isoc_pipe].desc.bEndpointAddress; in cx231xx_init_v4l2() 1585 if (uif->altsetting[i].desc.bNumEndpoints < isoc_pipe + 1) in cx231xx_init_v4l2() 1588 tmp = le16_to_cpu(uif->altsetting[i].endpoint[isoc_pipe].desc.wMaxPacketSize); in cx231xx_init_v4l2() 1605 if (uif->altsetting[0].desc.bNumEndpoints < isoc_pipe + 1) in cx231xx_init_v4l2() 1609 uif->altsetting[0].endpoint[isoc_pipe].desc. in cx231xx_init_v4l2() 1626 if (uif->altsetting[i].desc.bNumEndpoints < isoc_pipe + 1) in cx231xx_init_v4l2() 1629 tmp = le16_to_cpu(uif->altsetting[i].endpoint[isoc_pipe]. in cx231xx_init_v4l2() 1649 if (uif->altsetting[0].desc.bNumEndpoints < isoc_pipe + 1) in cx231xx_init_v4l2() 1653 uif->altsetting[0].endpoint[isoc_pipe].desc. in cx231xx_init_v4l2() [all …]
|
/linux-6.1.9/drivers/pinctrl/nomadik/ |
D | pinctrl-nomadik.h | 113 int altsetting; member 119 .altsetting = b, \
|
/linux-6.1.9/drivers/staging/media/deprecated/tm6000/ |
D | tm6000-cards.c | 1235 for (ep = 0; ep < interface->altsetting[i].desc.bNumEndpoints; ep++) { in tm6000_usb_probe() 1239 e = &interface->altsetting[i].endpoint[ep]; in tm6000_usb_probe() 1246 interface->altsetting[i].desc.bInterfaceNumber, in tm6000_usb_probe() 1247 interface->altsetting[i].desc.bInterfaceClass); in tm6000_usb_probe() 1253 &interface->altsetting[i], in tm6000_usb_probe() 1258 &interface->altsetting[i], in tm6000_usb_probe() 1266 &interface->altsetting[i], in tm6000_usb_probe() 1271 &interface->altsetting[i], in tm6000_usb_probe() 1279 &interface->altsetting[i], in tm6000_usb_probe() 1284 &interface->altsetting[i], in tm6000_usb_probe() [all …]
|
/linux-6.1.9/drivers/media/usb/usbtv/ |
D | usbtv-core.c | 79 if (intf->altsetting[1].desc.bNumEndpoints != 4) in usbtv_probe() 82 ep = &intf->altsetting[1].endpoint[0]; in usbtv_probe()
|
/linux-6.1.9/drivers/usb/core/ |
D | usb.c | 231 if (config->intf_cache[i]->altsetting[0].desc.bInterfaceNumber in usb_find_alt_setting() 240 if (intf_cache->altsetting[i].desc.bAlternateSetting == alt_num) in usb_find_alt_setting() 241 return &intf_cache->altsetting[i]; in usb_find_alt_setting() 280 if (config->interface[i]->altsetting[0] in usb_ifnum_to_if() 314 if (intf->altsetting[i].desc.bAlternateSetting == altnum) in usb_altnum_to_altsetting() 315 return &intf->altsetting[i]; in usb_altnum_to_altsetting()
|