/linux-6.6.21/drivers/usb/serial/ |
D | qcserial.c | 199 int altsetting = 0; in handle_quectel_ec20() local 222 altsetting = -1; in handle_quectel_ec20() 226 return altsetting; in handle_quectel_ec20() 236 int altsetting = -1; in qcprobe() local 264 altsetting = 1; in qcprobe() 271 altsetting = 0; in qcprobe() 289 altsetting = -1; in qcprobe() 295 altsetting = 1; in qcprobe() 299 altsetting = -1; in qcprobe() 304 altsetting = handle_quectel_ec20(dev, ifnum); in qcprobe() [all …]
|
/linux-6.6.21/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 | 45 fp->iface, fp->altsetting, format); in parse_audio_format_i_type() 88 fp->iface, fp->altsetting); in parse_audio_format_i_type() 100 fp->iface, fp->altsetting, in parse_audio_format_i_type() 126 fp->iface, fp->altsetting, in parse_audio_format_i_type() 151 fp->iface, fp->altsetting, format); in parse_audio_format_i_type() 208 fp->iface, fp->altsetting); in parse_audio_format_rates_v1() 236 fp->altsetting == 5 && fp->maxpacksize == 392) in parse_audio_format_rates_v1() 249 fp->iface, fp->altsetting); in parse_audio_format_rates_v1() 284 switch (fp->altsetting) { in s1810c_valid_sample_rate() 318 alts = &iface->altsetting[fp->altset_idx]; in focusrite_valid_sample_rate() [all …]
|
D | clock.c | 428 fmt->iface, fmt->altsetting, rate, fmt->endpoint); in set_sample_rate_v1() 446 fmt->iface, fmt->altsetting, fmt->endpoint); in set_sample_rate_v1() 467 int altsetting, int clock) in get_sample_rate_v2v3() argument 480 iface, altsetting, err); in get_sample_rate_v2v3() 530 return get_sample_rate_v2v3(chip, fmt->iface, fmt->altsetting, clock); in snd_usb_set_sample_rate_v2v3() 561 prev_rate = get_sample_rate_v2v3(chip, fmt->iface, fmt->altsetting, clock); in set_sample_rate_v2v3() 569 fmt->iface, fmt->altsetting, rate, cur_rate); in set_sample_rate_v2v3() 579 fmt->iface, fmt->altsetting, rate, cur_rate); in set_sample_rate_v2v3() 588 usb_set_interface(chip->dev, fmt->iface, fmt->altsetting); in set_sample_rate_v2v3() 605 fmt->iface, fmt->altsetting, rate, fmt->clock); in snd_usb_init_sample_rate()
|
D | quirks.c | 38 int probed_ifnum = get_iface_desc(iface->altsetting)->bInterfaceNumber; in create_composite_quirk() 99 alts = &iface->altsetting[0]; in create_standard_audio_quirk() 179 if (fp->iface != get_iface_desc(&iface->altsetting[0])->bInterfaceNumber || in create_fixed_stream_quirk() 184 alts = &iface->altsetting[fp->altset_idx]; in create_fixed_stream_quirk() 236 alts = &iface->altsetting[1]; in create_auto_pcm_quirk() 351 alts = &iface->altsetting[0]; in create_auto_midi_quirk() 404 .altsetting = 1, in create_uaxx_quirk() 416 alts = &iface->altsetting[1]; in create_uaxx_quirk() 1617 if (get_iface_desc(intf->altsetting)->bInterfaceClass == in snd_usb_apply_boot_quirk() 1619 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 | 124 snd_usb_get_host_interface(struct snd_usb_audio *chip, int ifnum, int altsetting) in snd_usb_get_host_interface() argument 131 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 | 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()
|
D | helper.h | 18 snd_usb_get_host_interface(struct snd_usb_audio *chip, int ifnum, int altsetting);
|
/linux-6.6.21/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.6.21/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.6.21/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 | 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 | podhd.c | 454 .altsetting = 5, 465 .altsetting = 5, 476 .altsetting = 1, 488 .altsetting = 1, 500 .altsetting = 1, 512 .altsetting = 1, 524 .altsetting = 1,
|
D | variax.c | 198 .altsetting = 1, 209 .altsetting = 1,
|
/linux-6.6.21/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.6.21/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.6.21/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.6.21/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 …]
|
D | cx231xx-audio.c | 614 if (uif->altsetting[0].desc.bNumEndpoints < isoc_pipe + 1) { in cx231xx_audio_init() 620 uif->altsetting[0].endpoint[isoc_pipe].desc. in cx231xx_audio_init() 636 if (uif->altsetting[i].desc.bNumEndpoints < isoc_pipe + 1) { in cx231xx_audio_init() 641 tmp = le16_to_cpu(uif->altsetting[i].endpoint[isoc_pipe].desc. in cx231xx_audio_init()
|
/linux-6.6.21/drivers/pinctrl/nomadik/ |
D | pinctrl-nomadik.h | 118 int altsetting; member 124 .altsetting = b, \
|
/linux-6.6.21/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.6.21/drivers/usb/core/ |
D | usb.c | 308 if (config->intf_cache[i]->altsetting[0].desc.bInterfaceNumber in usb_find_alt_setting() 317 if (intf_cache->altsetting[i].desc.bAlternateSetting == alt_num) in usb_find_alt_setting() 318 return &intf_cache->altsetting[i]; in usb_find_alt_setting() 357 if (config->interface[i]->altsetting[0] in usb_ifnum_to_if() 391 if (intf->altsetting[i].desc.bAlternateSetting == altnum) in usb_altnum_to_altsetting() 392 return &intf->altsetting[i]; in usb_altnum_to_altsetting()
|