Home
last modified time | relevance | path

Searched refs:alts (Results 1 – 24 of 24) sorted by relevance

/linux-6.1.9/sound/usb/
Dimplicit.c85 const struct usb_host_interface *alts) in add_implicit_fb_sync_ep() argument
89 if (!alts) { in add_implicit_fb_sync_ep()
93 alts = &iface->altsetting[1]; in add_implicit_fb_sync_ep()
98 fmt->sync_altsetting = alts->desc.bAlternateSetting; in add_implicit_fb_sync_ep()
115 struct usb_host_interface *alts; in add_generic_uac2_implicit_fb() local
118 alts = snd_usb_get_host_interface(chip, ifnum, altsetting); in add_generic_uac2_implicit_fb()
119 if (!alts) in add_generic_uac2_implicit_fb()
121 if (alts->desc.bInterfaceClass != USB_CLASS_AUDIO || in add_generic_uac2_implicit_fb()
122 alts->desc.bInterfaceSubClass != USB_SUBCLASS_AUDIOSTREAMING || in add_generic_uac2_implicit_fb()
123 alts->desc.bInterfaceProtocol != UAC_VERSION_2 || in add_generic_uac2_implicit_fb()
[all …]
Dstream.c574 struct usb_host_interface *alts, in parse_uac_endpoint_attributes() argument
580 struct usb_interface_descriptor *altsd = get_iface_desc(alts); in parse_uac_endpoint_attributes()
583 …csep = snd_usb_find_desc(alts->endpoint[0].extra, alts->endpoint[0].extralen, NULL, USB_DT_CS_ENDP… in parse_uac_endpoint_attributes()
587 …csep = snd_usb_find_desc(alts->endpoint[1].extra, alts->endpoint[1].extralen, NULL, USB_DT_CS_ENDP… in parse_uac_endpoint_attributes()
595 csep = snd_usb_find_desc(alts->extra, alts->extralen, NULL, USB_DT_CS_ENDPOINT); in parse_uac_endpoint_attributes()
676 struct usb_host_interface *alts, in audio_format_alloc_init() argument
689 fp->endpoint = get_endpoint(alts, 0)->bEndpointAddress; in audio_format_alloc_init()
690 fp->ep_attr = get_endpoint(alts, 0)->bmAttributes; in audio_format_alloc_init()
691 fp->datainterval = snd_usb_parse_datainterval(chip, alts); in audio_format_alloc_init()
693 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in audio_format_alloc_init()
[all …]
Dquirks.c94 struct usb_host_interface *alts; in create_standard_audio_quirk() local
98 alts = &iface->altsetting[0]; in create_standard_audio_quirk()
99 altsd = get_iface_desc(alts); in create_standard_audio_quirk()
154 struct usb_host_interface *alts; in create_fixed_stream_quirk() local
183 alts = &iface->altsetting[fp->altset_idx]; in create_fixed_stream_quirk()
184 altsd = get_iface_desc(alts); in create_fixed_stream_quirk()
193 fp->datainterval = snd_usb_parse_datainterval(chip, alts); in create_fixed_stream_quirk()
195 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, fp->ep_idx)->wMaxPacketSize); in create_fixed_stream_quirk()
219 struct usb_host_interface *alts; in create_auto_pcm_quirk() local
235 alts = &iface->altsetting[1]; in create_auto_pcm_quirk()
[all …]
Dhelper.c107 struct usb_host_interface *alts) in snd_usb_parse_datainterval() argument
114 if (get_endpoint(alts, 0)->bInterval >= 1 && in snd_usb_parse_datainterval()
115 get_endpoint(alts, 0)->bInterval <= 4) in snd_usb_parse_datainterval()
116 return get_endpoint(alts, 0)->bInterval - 1; in snd_usb_parse_datainterval()
Dpcm.c316 struct usb_host_interface *alts; in snd_usb_audioformat_set_sync_ep() local
325 alts = snd_usb_get_host_interface(chip, fmt->iface, fmt->altsetting); in snd_usb_audioformat_set_sync_ep()
326 if (!alts) in snd_usb_audioformat_set_sync_ep()
328 altsd = get_iface_desc(alts); in snd_usb_audioformat_set_sync_ep()
330 err = snd_usb_parse_implicit_fb_quirk(chip, fmt, alts); in snd_usb_audioformat_set_sync_ep()
341 is_playback = !(get_endpoint(alts, 0)->bEndpointAddress & USB_DIR_IN); in snd_usb_audioformat_set_sync_ep()
348 sync_attr = get_endpoint(alts, 1)->bmAttributes; in snd_usb_audioformat_set_sync_ep()
361 (get_endpoint(alts, 1)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE && in snd_usb_audioformat_set_sync_ep()
362 get_endpoint(alts, 1)->bSynchAddress != 0)) { in snd_usb_audioformat_set_sync_ep()
366 get_endpoint(alts, 1)->bmAttributes, in snd_usb_audioformat_set_sync_ep()
[all …]
Dcard.c142 struct usb_host_interface *alts; in snd_usb_create_stream() local
152 alts = &iface->altsetting[0]; in snd_usb_create_stream()
153 altsd = get_iface_desc(alts); in snd_usb_create_stream()
168 alts = &iface->altsetting[0]; in snd_usb_create_stream()
169 altsd = get_iface_desc(alts); in snd_usb_create_stream()
775 struct usb_host_interface *alts; in usb_audio_probe() local
779 alts = &intf->altsetting[0]; in usb_audio_probe()
780 ifnum = get_iface_desc(alts)->bInterfaceNumber; in usb_audio_probe()
868 chip->ctrl_intf = alts; in usb_audio_probe()
Dimplicit.h7 struct usb_host_interface *alts);
Dhelper.h15 struct usb_host_interface *alts);
Dformat.c306 struct usb_host_interface *alts; in focusrite_valid_sample_rate() local
314 alts = &iface->altsetting[fp->altset_idx]; in focusrite_valid_sample_rate()
315 fmt = snd_usb_find_csint_desc(alts->extra, alts->extralen, in focusrite_valid_sample_rate()
Dendpoint.c701 struct usb_host_interface *alts; in endpoint_set_syncinterval() local
704 alts = snd_usb_get_host_interface(chip, ep->iface, ep->altsetting); in endpoint_set_syncinterval()
705 if (!alts) in endpoint_set_syncinterval()
708 desc = get_endpoint(alts, ep->ep_idx); in endpoint_set_syncinterval()
Dmixer.c3070 struct usb_host_interface *alts; in snd_usb_mixer_controls_badd() local
3095 alts = &iface->altsetting[1]; in snd_usb_mixer_controls_badd()
3096 altsd = get_iface_desc(alts); in snd_usb_mixer_controls_badd()
3102 dir_in = (get_endpoint(alts, 0)->bEndpointAddress & USB_DIR_IN); in snd_usb_mixer_controls_badd()
3103 maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in snd_usb_mixer_controls_badd()
Dmixer_quirks.c1641 struct usb_host_interface *alts; in snd_microii_spdif_default_get() local
1660 alts = &iface->altsetting[1]; in snd_microii_spdif_default_get()
1661 if (get_iface_desc(alts)->bNumEndpoints < 1) { in snd_microii_spdif_default_get()
1665 ep = get_endpoint(alts, 0)->bEndpointAddress; in snd_microii_spdif_default_get()
/linux-6.1.9/drivers/media/usb/uvc/
Duvc_driver.c42 struct usb_host_endpoint *uvc_find_endpoint(struct usb_host_interface *alts, in uvc_find_endpoint() argument
48 for (i = 0; i < alts->desc.bNumEndpoints; ++i) { in uvc_find_endpoint()
49 ep = &alts->endpoint[i]; in uvc_find_endpoint()
226 struct usb_host_interface *alts = intf->cur_altsetting; in uvc_parse_format() local
246 alts->desc.bInterfaceNumber); in uvc_parse_format()
311 alts->desc.bInterfaceNumber); in uvc_parse_format()
327 alts->desc.bInterfaceNumber); in uvc_parse_format()
345 alts->desc.bInterfaceNumber, buffer[8]); in uvc_parse_format()
373 dev->udev->devnum, alts->desc.bInterfaceNumber, in uvc_parse_format()
401 alts->desc.bInterfaceNumber); in uvc_parse_format()
[all …]
Duvc_video.c1940 struct usb_host_interface *alts; in uvc_video_start_transfer() local
1943 alts = &intf->altsetting[i]; in uvc_video_start_transfer()
1944 ep = uvc_find_endpoint(alts, in uvc_video_start_transfer()
1952 altsetting = alts->desc.bAlternateSetting; in uvc_video_start_transfer()
Duvcvideo.h770 struct usb_host_endpoint *uvc_find_endpoint(struct usb_host_interface *alts,
/linux-6.1.9/tools/objtool/
Dspecial.c139 int special_get_alts(struct elf *elf, struct list_head *alts) in special_get_alts() argument
147 INIT_LIST_HEAD(alts); in special_get_alts()
176 list_add_tail(&alt->list, alts); in special_get_alts()
Dcheck.c392 INIT_LIST_HEAD(&insn->alts); in decode_instructions()
1619 INIT_LIST_HEAD(&nop->alts); in handle_group_alt()
1818 list_add_tail(&alt->list, &orig_insn->alts); in add_special_section_alts()
1877 list_add_tail(&alt->list, &insn->alts); in add_jump_table()
3425 if (!insn->ignore_alts && !list_empty(&insn->alts)) { in validate_branch()
3428 list_for_each_entry(alt, &insn->alts, list) { in validate_branch()
3627 if (!insn->ignore_alts && !list_empty(&insn->alts)) { in validate_entry()
3631 list_for_each_entry(alt, &insn->alts, list) { in validate_entry()
/linux-6.1.9/drivers/media/i2c/
Dov9640.c396 u32 code, struct ov9640_reg_alt *alts) in ov9640_write_regs() argument
454 val |= alts->com7; in ov9640_write_regs()
457 val |= alts->com12; in ov9640_write_regs()
460 val |= alts->com13; in ov9640_write_regs()
463 val |= alts->com15; in ov9640_write_regs()
507 struct ov9640_reg_alt alts = {0}; in ov9640_s_fmt() local
510 ov9640_alter_regs(mf->code, &alts); in ov9640_s_fmt()
518 return ov9640_write_regs(client, mf->width, mf->code, &alts); in ov9640_s_fmt()
/linux-6.1.9/tools/objtool/include/objtool/
Dspecial.h33 int special_get_alts(struct elf *elf, struct list_head *alts);
Dcheck.h69 struct list_head alts; member
/linux-6.1.9/sound/usb/misc/
Dua101.c457 struct usb_host_interface *alts; in enable_iso_interface() local
459 alts = ua->intf[intf_index]->cur_altsetting; in enable_iso_interface()
460 if (alts->desc.bAlternateSetting != 1) { in enable_iso_interface()
462 alts->desc.bInterfaceNumber, 1); in enable_iso_interface()
475 struct usb_host_interface *alts; in disable_iso_interface() local
480 alts = ua->intf[intf_index]->cur_altsetting; in disable_iso_interface()
481 if (alts->desc.bAlternateSetting != 0) { in disable_iso_interface()
483 alts->desc.bInterfaceNumber, 0); in disable_iso_interface()
/linux-6.1.9/drivers/usb/class/
Dusblp.c1335 int r, alts; in usblp_set_protocol() local
1342 alts = usblp->protocol[protocol].alt_setting; in usblp_set_protocol()
1343 if (alts < 0) in usblp_set_protocol()
1345 r = usb_set_interface(usblp->dev, usblp->ifnum, alts); in usblp_set_protocol()
1348 alts, usblp->ifnum); in usblp_set_protocol()
/linux-6.1.9/drivers/usb/core/
Ddevio.c848 struct usb_host_interface *alts; in findintfep() local
858 alts = &intf->altsetting[j]; in findintfep()
859 for (e = 0; e < alts->desc.bNumEndpoints; e++) { in findintfep()
860 endpt = &alts->endpoint[e].desc; in findintfep()
862 return alts->desc.bInterfaceNumber; in findintfep()
/linux-6.1.9/drivers/bluetooth/
Dbtusb.c1955 static const int alts[3] = { 2, 4, 5 }; in btusb_work() local
1957 new_alts = alts[data->sco_num - 1]; in btusb_work()