Home
last modified time | relevance | path

Searched refs:altsetting (Results 1 – 25 of 96) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/usb/serial/
Dqcserial.c197 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 …]
/kernel/linux/linux-5.10/drivers/usb/atm/
Dxusbatm.c38 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()
Dspeedtch.c59 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 …]
/kernel/linux/linux-5.10/sound/usb/
Dquirks-table.h59 .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 …]
Dformat.c85 fp->iface, fp->altsetting); in parse_audio_format_i_type()
97 fp->iface, fp->altsetting, in parse_audio_format_i_type()
123 fp->iface, fp->altsetting, in parse_audio_format_i_type()
148 fp->iface, fp->altsetting, format); in parse_audio_format_i_type()
188 fp->iface, fp->altsetting); in parse_audio_format_rates_v1()
217 fp->altsetting == 5 && fp->maxpacksize == 392) in parse_audio_format_rates_v1()
268 switch (fp->altsetting) { in s1810c_valid_sample_rate()
302 alts = &iface->altsetting[fp->altset_idx]; in focusrite_valid_sample_rate()
319 fp->iface, fp->altsetting, max_rate); in focusrite_valid_sample_rate()
559 fp->altsetting == 6) in parse_audio_format_i()
[all …]
Dquirks.c37 int probed_ifnum = get_iface_desc(iface->altsetting)->bInterfaceNumber; in create_composite_quirk()
114 alts = &iface->altsetting[0]; in create_standard_audio_quirk()
165 if (fp->iface != get_iface_desc(&iface->altsetting[0])->bInterfaceNumber || in create_fixed_stream_quirk()
170 alts = &iface->altsetting[fp->altset_idx]; in create_fixed_stream_quirk()
215 alts = &iface->altsetting[1]; in create_auto_pcm_quirk()
330 alts = &iface->altsetting[0]; in create_auto_midi_quirk()
374 int probed_ifnum = get_iface_desc(iface->altsetting)->bInterfaceNumber; in create_autodetect_quirks()
392 get_iface_desc(iface->altsetting)->bInterfaceClass != in create_autodetect_quirks()
421 .altsetting = 1, in create_uaxx_quirk()
433 alts = &iface->altsetting[1]; in create_uaxx_quirk()
[all …]
Dclock.c526 iface, fmt->altsetting, rate, ep); in set_sample_rate_v1()
544 iface, fmt->altsetting, ep); in set_sample_rate_v1()
565 int altsetting, int clock) in get_sample_rate_v2v3() argument
578 iface, altsetting, err); in get_sample_rate_v2v3()
613 prev_rate = get_sample_rate_v2v3(chip, iface, fmt->altsetting, clock); in set_sample_rate_v2v3()
641 iface, fmt->altsetting, rate, err); in set_sample_rate_v2v3()
646 fmt->altsetting, clock); in set_sample_rate_v2v3()
655 iface, fmt->altsetting, rate, cur_rate); in set_sample_rate_v2v3()
668 usb_set_interface(dev, iface, fmt->altsetting); in set_sample_rate_v2v3()
Dpcm.c183 iface, fmt->altsetting); in init_pitch_v2()
236 subs->data_endpoint->altsetting != subs->sync_endpoint->altsetting) { in start_endpoints()
239 subs->sync_endpoint->altsetting); in start_endpoints()
245 subs->sync_endpoint->altsetting, err); in start_endpoints()
288 unsigned int altsetting, in search_roland_implicit_fb() argument
297 if (!iface || iface->num_altsetting < altsetting + 1) in search_roland_implicit_fb()
299 *alts = &iface->altsetting[altsetting]; in search_roland_implicit_fb()
301 if (altsd->bAlternateSetting != altsetting || in search_roland_implicit_fb()
410 alts = &iface->altsetting[1]; in set_sync_ep_implicit_fb_quirk()
489 fmt->iface, fmt->altsetting, in set_sync_endpoint()
[all …]
Dcard.h20 unsigned char altsetting; /* corresponding alternate setting */ member
108 int iface, altsetting; member
/kernel/linux/linux-5.10/drivers/net/usb/
Dcdc-phonet.c326 data = intf->altsetting->extra; in usbpn_probe()
327 len = intf->altsetting->extralen; in usbpn_probe()
341 if (data_intf->altsetting[0].desc.bNumEndpoints == 0 && in usbpn_probe()
342 data_intf->altsetting[1].desc.bNumEndpoints == 2) in usbpn_probe()
343 data_desc = data_intf->altsetting + 1; in usbpn_probe()
345 if (data_intf->altsetting[0].desc.bNumEndpoints == 2 && in usbpn_probe()
346 data_intf->altsetting[1].desc.bNumEndpoints == 0) in usbpn_probe()
347 data_desc = data_intf->altsetting; in usbpn_probe()
377 pnd->active_setting = data_desc - data_intf->altsetting; in usbpn_probe()
/kernel/linux/linux-5.10/sound/usb/line6/
Dpod.c433 .altsetting = 5,
446 .altsetting = 1,
459 .altsetting = 5,
470 .altsetting = 0,
482 .altsetting = 5,
495 .altsetting = 1,
508 .altsetting = 5,
Dpodhd.c454 .altsetting = 5,
465 .altsetting = 5,
476 .altsetting = 1,
488 .altsetting = 1,
500 .altsetting = 1,
512 .altsetting = 1,
524 .altsetting = 1,
Dtoneport.c495 .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 */
Dvariax.c198 .altsetting = 1,
209 .altsetting = 1,
/kernel/linux/linux-5.10/drivers/usb/image/
Dmicrotek.c670 struct usb_host_interface *altsetting; in mts_usb_probe() local
682 altsetting = intf->cur_altsetting; in mts_usb_probe()
687 if ( altsetting->desc.bNumEndpoints != MTS_EP_TOTAL ) { in mts_usb_probe()
689 (int)MTS_EP_TOTAL, (int)altsetting->desc.bNumEndpoints ); in mts_usb_probe()
693 for( i = 0; i < altsetting->desc.bNumEndpoints; i++ ) { in mts_usb_probe()
694 if ((altsetting->endpoint[i].desc.bmAttributes & in mts_usb_probe()
698 (int)altsetting->endpoint[i].desc.bEndpointAddress ); in mts_usb_probe()
700 if (altsetting->endpoint[i].desc.bEndpointAddress & in mts_usb_probe()
703 = altsetting->endpoint[i].desc.bEndpointAddress & in mts_usb_probe()
711 ep_out = altsetting->endpoint[i].desc.bEndpointAddress & in mts_usb_probe()
/kernel/linux/linux-5.10/drivers/media/rc/
Dttusbir.c190 int altsetting = -1; in ttusbir_probe() local
200 for (i = 0; i < intf->num_altsetting && altsetting == -1; i++) { in ttusbir_probe()
203 idesc = &intf->altsetting[i].desc; in ttusbir_probe()
206 desc = &intf->altsetting[i].endpoint[j].desc; in ttusbir_probe()
220 altsetting = i; in ttusbir_probe()
226 if (altsetting == -1) { in ttusbir_probe()
236 ret = usb_set_interface(tt->udev, 0, altsetting); in ttusbir_probe()
/kernel/linux/linux-5.10/drivers/media/usb/stk1160/
Dstk1160-core.c183 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()
/kernel/linux/linux-5.10/drivers/media/usb/cx231xx/
Dcx231xx-cards.c1567 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 …]
Dcx231xx-audio.c614 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()
/kernel/linux/linux-5.10/drivers/media/usb/tm6000/
Dtm6000-cards.c1235 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 …]
/kernel/linux/linux-5.10/drivers/media/usb/usbtv/
Dusbtv-core.c79 if (intf->altsetting[1].desc.bNumEndpoints != 4) in usbtv_probe()
82 ep = &intf->altsetting[1].endpoint[0]; in usbtv_probe()
/kernel/linux/linux-5.10/drivers/usb/core/
Dusb.c232 if (config->intf_cache[i]->altsetting[0].desc.bInterfaceNumber in usb_find_alt_setting()
241 if (intf_cache->altsetting[i].desc.bAlternateSetting == alt_num) in usb_find_alt_setting()
242 return &intf_cache->altsetting[i]; in usb_find_alt_setting()
281 if (config->interface[i]->altsetting[0] in usb_ifnum_to_if()
315 if (intf->altsetting[i].desc.bAlternateSetting == altnum) in usb_altnum_to_altsetting()
316 return &intf->altsetting[i]; in usb_altnum_to_altsetting()
/kernel/linux/linux-5.10/drivers/pinctrl/nomadik/
Dpinctrl-abx500.h55 int altsetting; member
Dpinctrl-nomadik.h120 int altsetting; member
/kernel/linux/linux-5.10/drivers/input/mouse/
Dsynaptics_usb.c299 unsigned int altsetting = min(intf->num_altsetting, 1U); in synusb_probe() local
302 error = usb_set_interface(udev, intf_num, altsetting); in synusb_probe()
306 altsetting, error); in synusb_probe()

1234