Home
last modified time | relevance | path

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

12

/Linux-v5.10/sound/usb/
Dquirks.c103 struct usb_host_interface *alts; in create_standard_audio_quirk() local
110 alts = &iface->altsetting[0]; in create_standard_audio_quirk()
111 altsd = get_iface_desc(alts); in create_standard_audio_quirk()
132 struct usb_host_interface *alts; in create_fixed_stream_quirk() local
166 alts = &iface->altsetting[fp->altset_idx]; in create_fixed_stream_quirk()
167 altsd = get_iface_desc(alts); in create_fixed_stream_quirk()
176 fp->datainterval = snd_usb_parse_datainterval(chip, alts); in create_fixed_stream_quirk()
178 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in create_fixed_stream_quirk()
180 snd_usb_init_pitch(chip, fp->iface, alts, fp); in create_fixed_stream_quirk()
181 snd_usb_init_sample_rate(chip, fp->iface, alts, fp, fp->rate_max); in create_fixed_stream_quirk()
[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 …]
Dpcm.c142 struct usb_host_interface *alts, in init_pitch_v1() argument
150 if (get_iface_desc(alts)->bNumEndpoints < 1) in init_pitch_v1()
152 ep = get_endpoint(alts, 0)->bEndpointAddress; in init_pitch_v1()
169 struct usb_host_interface *alts, in init_pitch_v2() argument
194 struct usb_host_interface *alts, in snd_usb_init_pitch() argument
204 return init_pitch_v1(chip, iface, alts, fmt); in snd_usb_init_pitch()
207 return init_pitch_v2(chip, iface, alts, fmt); in snd_usb_init_pitch()
292 struct usb_host_interface **alts, in search_roland_implicit_fb() argument
302 *alts = &iface->altsetting[altsetting]; in search_roland_implicit_fb()
303 altsd = get_iface_desc(*alts); in search_roland_implicit_fb()
[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()
Dendpoint.c462 struct usb_host_interface *alts, in snd_usb_add_endpoint() argument
468 if (WARN_ON(!alts)) in snd_usb_add_endpoint()
475 ep->iface == alts->desc.bInterfaceNumber && in snd_usb_add_endpoint()
476 ep->altsetting == alts->desc.bAlternateSetting) { in snd_usb_add_endpoint()
497 ep->iface = alts->desc.bInterfaceNumber; in snd_usb_add_endpoint()
498 ep->altsetting = alts->desc.bAlternateSetting; in snd_usb_add_endpoint()
508 if (get_endpoint(alts, 1)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE && in snd_usb_add_endpoint()
509 get_endpoint(alts, 1)->bRefresh >= 1 && in snd_usb_add_endpoint()
510 get_endpoint(alts, 1)->bRefresh <= 9) in snd_usb_add_endpoint()
511 ep->syncinterval = get_endpoint(alts, 1)->bRefresh; in snd_usb_add_endpoint()
[all …]
Dclock.c485 struct usb_host_interface *alts, in set_sample_rate_v1() argument
493 if (get_iface_desc(alts)->bNumEndpoints < 1) in set_sample_rate_v1()
495 ep = get_endpoint(alts, 0)->bEndpointAddress; in set_sample_rate_v1()
564 struct usb_host_interface *alts, in set_sample_rate_v2v3() argument
658 struct usb_host_interface *alts, in snd_usb_init_sample_rate() argument
664 return set_sample_rate_v1(chip, iface, alts, fmt, rate); in snd_usb_init_sample_rate()
675 return set_sample_rate_v2v3(chip, iface, alts, fmt, rate); in snd_usb_init_sample_rate()
Dcard.c137 struct usb_host_interface *alts; in snd_usb_create_stream() local
147 alts = &iface->altsetting[0]; in snd_usb_create_stream()
148 altsd = get_iface_desc(alts); in snd_usb_create_stream()
163 alts = &iface->altsetting[0]; in snd_usb_create_stream()
164 altsd = get_iface_desc(alts); in snd_usb_create_stream()
703 struct usb_host_interface *alts; in usb_audio_probe() local
707 alts = &intf->altsetting[0]; in usb_audio_probe()
708 ifnum = get_iface_desc(alts)->bInterfaceNumber; in usb_audio_probe()
787 chip->ctrl_intf = alts; in usb_audio_probe()
Dclock.h6 struct usb_host_interface *alts,
Dpcm.h13 struct usb_host_interface *alts,
Dformat.c290 struct usb_host_interface *alts; in focusrite_valid_sample_rate() local
298 alts = &iface->altsetting[fp->altset_idx]; in focusrite_valid_sample_rate()
299 fmt = snd_usb_find_csint_desc(alts->extra, alts->extralen, in focusrite_valid_sample_rate()
Dendpoint.h9 struct usb_host_interface *alts,
Dhelper.h15 struct usb_host_interface *alts);
Dmixer_quirks.c1499 struct usb_host_interface *alts; in snd_microii_spdif_default_get() local
1518 alts = &iface->altsetting[1]; in snd_microii_spdif_default_get()
1519 if (get_iface_desc(alts)->bNumEndpoints < 1) { in snd_microii_spdif_default_get()
1523 ep = get_endpoint(alts, 0)->bEndpointAddress; in snd_microii_spdif_default_get()
Dmixer.c2983 struct usb_host_interface *alts; in snd_usb_mixer_controls_badd() local
3008 alts = &iface->altsetting[1]; in snd_usb_mixer_controls_badd()
3009 altsd = get_iface_desc(alts); in snd_usb_mixer_controls_badd()
3015 dir_in = (get_endpoint(alts, 0)->bEndpointAddress & USB_DIR_IN); in snd_usb_mixer_controls_badd()
3016 maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in snd_usb_mixer_controls_badd()
/Linux-v5.10/drivers/media/usb/uvc/
Duvc_driver.c228 struct usb_host_endpoint *uvc_find_endpoint(struct usb_host_interface *alts, in uvc_find_endpoint() argument
234 for (i = 0; i < alts->desc.bNumEndpoints; ++i) { in uvc_find_endpoint()
235 ep = &alts->endpoint[i]; in uvc_find_endpoint()
505 struct usb_host_interface *alts = intf->cur_altsetting; in uvc_parse_format() local
525 alts->desc.bInterfaceNumber); in uvc_parse_format()
589 alts->desc.bInterfaceNumber); in uvc_parse_format()
605 alts->desc.bInterfaceNumber); in uvc_parse_format()
623 alts->desc.bInterfaceNumber, buffer[8]); in uvc_parse_format()
651 dev->udev->devnum, alts->desc.bInterfaceNumber, in uvc_parse_format()
677 alts->desc.bInterfaceNumber); in uvc_parse_format()
[all …]
Duvc_video.c1847 struct usb_host_interface *alts; in uvc_video_start_transfer() local
1850 alts = &intf->altsetting[i]; in uvc_video_start_transfer()
1851 ep = uvc_find_endpoint(alts, in uvc_video_start_transfer()
1859 altsetting = alts->desc.bAlternateSetting; in uvc_video_start_transfer()
Duvcvideo.h869 struct usb_host_endpoint *uvc_find_endpoint(struct usb_host_interface *alts,
/Linux-v5.10/tools/objtool/
Dspecial.c123 int special_get_alts(struct elf *elf, struct list_head *alts) in special_get_alts() argument
131 INIT_LIST_HEAD(alts); in special_get_alts()
158 list_add_tail(&alt->list, alts); in special_get_alts()
Dspecial.h32 int special_get_alts(struct elf *elf, struct list_head *alts);
Dcheck.h42 struct list_head alts; member
Dcheck.c116 return list_empty(&insn->alts); in is_sibling_call()
285 INIT_LIST_HEAD(&insn->alts); in decode_instructions()
1009 INIT_LIST_HEAD(&fake_jump->alts); in handle_group_alt()
1192 list_add_tail(&alt->list, &orig_insn->alts); in add_special_section_alts()
1245 list_add_tail(&alt->list, &insn->alts); in add_jump_table()
2468 if (!insn->ignore_alts && !list_empty(&insn->alts)) { in validate_branch()
2471 list_for_each_entry(alt, &insn->alts, list) { in validate_branch()
/Linux-v5.10/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-v5.10/sound/usb/misc/
Dua101.c458 struct usb_host_interface *alts; in enable_iso_interface() local
460 alts = ua->intf[intf_index]->cur_altsetting; in enable_iso_interface()
461 if (alts->desc.bAlternateSetting != 1) { in enable_iso_interface()
463 alts->desc.bInterfaceNumber, 1); in enable_iso_interface()
476 struct usb_host_interface *alts; in disable_iso_interface() local
481 alts = ua->intf[intf_index]->cur_altsetting; in disable_iso_interface()
482 if (alts->desc.bAlternateSetting != 0) { in disable_iso_interface()
484 alts->desc.bInterfaceNumber, 0); in disable_iso_interface()
/Linux-v5.10/drivers/usb/class/
Dusblp.c1310 int r, alts; in usblp_set_protocol() local
1315 alts = usblp->protocol[protocol].alt_setting; in usblp_set_protocol()
1316 if (alts < 0) in usblp_set_protocol()
1318 r = usb_set_interface(usblp->dev, usblp->ifnum, alts); in usblp_set_protocol()
1321 alts, usblp->ifnum); in usblp_set_protocol()
/Linux-v5.10/drivers/usb/core/
Ddevio.c835 struct usb_host_interface *alts; in findintfep() local
845 alts = &intf->altsetting[j]; in findintfep()
846 for (e = 0; e < alts->desc.bNumEndpoints; e++) { in findintfep()
847 endpt = &alts->endpoint[e].desc; in findintfep()
849 return alts->desc.bInterfaceNumber; in findintfep()

12