Home
last modified time | relevance | path

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

/linux/sound/usb/
H A 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 …]
H A Dstream.c577 struct usb_host_interface *alts, in parse_uac_endpoint_attributes() argument
583 struct usb_interface_descriptor *altsd = get_iface_desc(alts); in parse_uac_endpoint_attributes()
586 …csep = snd_usb_find_desc(alts->endpoint[0].extra, alts->endpoint[0].extralen, NULL, USB_DT_CS_ENDP… in parse_uac_endpoint_attributes()
590 …csep = snd_usb_find_desc(alts->endpoint[1].extra, alts->endpoint[1].extralen, NULL, USB_DT_CS_ENDP… in parse_uac_endpoint_attributes()
598 csep = snd_usb_find_desc(alts->extra, alts->extralen, NULL, USB_DT_CS_ENDPOINT); in parse_uac_endpoint_attributes()
679 struct usb_host_interface *alts, in audio_format_alloc_init() argument
692 fp->endpoint = get_endpoint(alts, 0)->bEndpointAddress; in audio_format_alloc_init()
693 fp->ep_attr = get_endpoint(alts, 0)->bmAttributes; in audio_format_alloc_init()
694 fp->datainterval = snd_usb_parse_datainterval(chip, alts); in audio_format_alloc_init()
696 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in audio_format_alloc_init()
[all …]
H A Dquirks.c95 struct usb_host_interface *alts; in create_standard_audio_quirk() local
99 alts = &iface->altsetting[0]; in create_standard_audio_quirk()
100 altsd = get_iface_desc(alts); in create_standard_audio_quirk()
155 struct usb_host_interface *alts; in create_fixed_stream_quirk() local
184 alts = &iface->altsetting[fp->altset_idx]; in create_fixed_stream_quirk()
185 altsd = get_iface_desc(alts); in create_fixed_stream_quirk()
194 fp->datainterval = snd_usb_parse_datainterval(chip, alts); in create_fixed_stream_quirk()
196 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, fp->ep_idx)->wMaxPacketSize); in create_fixed_stream_quirk()
220 struct usb_host_interface *alts; in create_auto_pcm_quirk() local
236 alts in create_auto_pcm_quirk()
261 create_yamaha_midi_quirk(struct snd_usb_audio * chip,struct usb_interface * iface,struct usb_driver * driver,struct usb_host_interface * alts) create_yamaha_midi_quirk() argument
293 create_roland_midi_quirk(struct snd_usb_audio * chip,struct usb_interface * iface,struct usb_driver * driver,struct usb_host_interface * alts) create_roland_midi_quirk() argument
317 create_std_midi_quirk(struct snd_usb_audio * chip,struct usb_interface * iface,struct usb_driver * driver,struct usb_host_interface * alts) create_std_midi_quirk() argument
346 struct usb_host_interface *alts; create_auto_midi_quirk() local
408 struct usb_host_interface *alts; create_uaxx_quirk() local
[all...]
H A Dhelper.c107 struct usb_host_interface *alts) in snd_usb_parse_datainterval() argument
113 if (get_endpoint(alts, 0)->bInterval >= 1 && in snd_usb_parse_datainterval()
114 get_endpoint(alts, 0)->bInterval <= 4) in snd_usb_parse_datainterval()
115 return get_endpoint(alts, 0)->bInterval - 1; in snd_usb_parse_datainterval()
H A Dformat.c307 struct usb_host_interface *alts; in focusrite_valid_sample_rate() local
315 alts = &iface->altsetting[fp->altset_idx]; in focusrite_valid_sample_rate()
316 fmt = snd_usb_find_csint_desc(alts->extra, alts->extralen, in focusrite_valid_sample_rate()
470 struct usb_host_interface *alts; in validate_sample_rate_table_v2v3() local
483 alts = snd_usb_get_host_interface(chip, fp->iface, fp->altsetting); in validate_sample_rate_table_v2v3()
484 if (!alts) in validate_sample_rate_table_v2v3()
489 alts->extra, alts->extralen, NULL, UAC_AS_GENERAL); in validate_sample_rate_table_v2v3()
493 alts->extra, alts->extralen, NULL, UAC_AS_GENERAL); in validate_sample_rate_table_v2v3()
H A 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 …]
H A Dcard.c143 struct usb_host_interface *alts; in snd_usb_create_stream() local
153 alts = &iface->altsetting[0]; in snd_usb_create_stream()
154 altsd = get_iface_desc(alts); in snd_usb_create_stream()
169 alts = &iface->altsetting[0]; in snd_usb_create_stream()
170 altsd = get_iface_desc(alts); in snd_usb_create_stream()
788 struct usb_host_interface *alts; in usb_audio_probe() local
792 alts = &intf->altsetting[0]; in usb_audio_probe()
793 ifnum = get_iface_desc(alts)->bInterfaceNumber; in usb_audio_probe()
881 chip->ctrl_intf = alts; in usb_audio_probe()
H A Dimplicit.h7 struct usb_host_interface *alts);
H A Dhelper.h15 struct usb_host_interface *alts);
H A Dendpoint.c717 struct usb_host_interface *alts; in endpoint_set_syncinterval() local
720 alts = snd_usb_get_host_interface(chip, ep->iface, ep->altsetting); in endpoint_set_syncinterval()
721 if (!alts) in endpoint_set_syncinterval()
724 desc = get_endpoint(alts, ep->ep_idx); in endpoint_set_syncinterval()
H A Dmixer.c3109 struct usb_host_interface *alts; in snd_usb_mixer_controls_badd()
3134 alts = &iface->altsetting[1]; in snd_usb_mixer_controls_badd()
3135 altsd = get_iface_desc(alts); in snd_usb_mixer_controls_badd()
3141 dir_in = (get_endpoint(alts, 0)->bEndpointAddress & USB_DIR_IN); in snd_usb_mixer_controls_badd()
3142 maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in snd_usb_mixer_controls_badd()
3108 struct usb_host_interface *alts; snd_usb_mixer_controls_badd() local
H A Dmixer_quirks.c1642 struct usb_host_interface *alts; in snd_microii_spdif_default_get() local
1661 alts = &iface->altsetting[1]; in snd_microii_spdif_default_get()
1662 if (get_iface_desc(alts)->bNumEndpoints < 1) { in snd_microii_spdif_default_get()
1666 ep = get_endpoint(alts, 0)->bEndpointAddress; in snd_microii_spdif_default_get()
/linux/drivers/media/usb/uvc/
H A Duvc_driver.c44 struct usb_host_endpoint *uvc_find_endpoint(struct usb_host_interface *alts, in uvc_find_endpoint() argument
50 for (i = 0; i < alts->desc.bNumEndpoints; ++i) { in uvc_find_endpoint()
51 ep = &alts->endpoint[i]; in uvc_find_endpoint()
229 struct usb_host_interface *alts = intf->cur_altsetting; in uvc_parse_format() local
250 alts->desc.bInterfaceNumber); in uvc_parse_format()
312 alts->desc.bInterfaceNumber); in uvc_parse_format()
327 alts->desc.bInterfaceNumber); in uvc_parse_format()
335 alts->desc.bInterfaceNumber, buffer[8]); in uvc_parse_format()
360 dev->udev->devnum, alts->desc.bInterfaceNumber, in uvc_parse_format()
390 alts->desc.bInterfaceNumber); in uvc_parse_format()
[all …]
H A Duvc_video.c2009 struct usb_host_interface *alts; in uvc_video_start_transfer() local
2012 alts = &intf->altsetting[i]; in uvc_video_start_transfer()
2013 ep = uvc_find_endpoint(alts, in uvc_video_start_transfer()
2021 altsetting = alts->desc.bAlternateSetting; in uvc_video_start_transfer()
H A Duvcvideo.h799 struct usb_host_endpoint *uvc_find_endpoint(struct usb_host_interface *alts,
/linux/drivers/media/i2c/
H A 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/tools/objtool/
H A Dspecial.c140 int special_get_alts(struct elf *elf, struct list_head *alts) in special_get_alts() argument
148 INIT_LIST_HEAD(alts); in special_get_alts()
177 list_add_tail(&alt->list, alts); in special_get_alts()
H A Dcheck.c2056 alt->next = orig_insn->alts; in add_special_section_alts()
2057 orig_insn->alts = alt; in add_special_section_alts()
2117 alt->next = insn->alts; in add_jump_table()
2118 insn->alts = alt; in add_jump_table()
3745 if (!insn->ignore_alts && insn->alts) { in validate_branch()
3748 for (alt = insn->alts; alt; alt = alt->next) { in validate_branch()
3946 if (!insn->ignore_alts && insn->alts) { in validate_unret()
3950 for (alt = insn->alts; alt; alt = alt->next) { in validate_unret()
/linux/tools/objtool/include/objtool/
H A Dspecial.h33 int special_get_alts(struct elf *elf, struct list_head *alts);
H A Dcheck.h76 struct alternative *alts; member
/linux/sound/usb/misc/
H A 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/drivers/usb/class/
H A 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/drivers/usb/core/
H A Ddevio.c857 struct usb_host_interface *alts; in findintfep() local
867 alts = &intf->altsetting[j]; in findintfep()
868 for (e = 0; e < alts->desc.bNumEndpoints; e++) { in findintfep()
869 endpt = &alts->endpoint[e].desc; in findintfep()
871 return alts->desc.bInterfaceNumber; in findintfep()
/linux/drivers/bluetooth/
H A Dbtusb.c2235 static const int alts[3] = { 2, 4, 5 }; in btusb_work() local
2237 new_alts = alts[data->sco_num - 1]; in btusb_work()