/linux-6.6.21/sound/usb/ |
D | implicit.c | 85 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 …]
|
D | stream.c | 574 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 …]
|
D | quirks.c | 95 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 = &iface->altsetting[1]; in create_auto_pcm_quirk() [all …]
|
D | helper.c | 107 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()
|
D | format.c | 310 struct usb_host_interface *alts; in focusrite_valid_sample_rate() local 318 alts = &iface->altsetting[fp->altset_idx]; in focusrite_valid_sample_rate() 319 fmt = snd_usb_find_csint_desc(alts->extra, alts->extralen, in focusrite_valid_sample_rate() 473 struct usb_host_interface *alts; in validate_sample_rate_table_v2v3() local 486 alts = snd_usb_get_host_interface(chip, fp->iface, fp->altsetting); in validate_sample_rate_table_v2v3() 487 if (!alts) in validate_sample_rate_table_v2v3() 492 alts->extra, alts->extralen, NULL, UAC_AS_GENERAL); in validate_sample_rate_table_v2v3() 496 alts->extra, alts->extralen, NULL, UAC_AS_GENERAL); in validate_sample_rate_table_v2v3()
|
D | pcm.c | 316 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 …]
|
D | card.c | 143 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() 776 struct usb_host_interface *alts; in usb_audio_probe() local 780 alts = &intf->altsetting[0]; in usb_audio_probe() 781 ifnum = get_iface_desc(alts)->bInterfaceNumber; in usb_audio_probe() 869 chip->ctrl_intf = alts; in usb_audio_probe()
|
D | implicit.h | 7 struct usb_host_interface *alts);
|
D | helper.h | 15 struct usb_host_interface *alts);
|
D | endpoint.c | 717 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()
|
D | mixer.c | 3075 struct usb_host_interface *alts; in snd_usb_mixer_controls_badd() local 3100 alts = &iface->altsetting[1]; in snd_usb_mixer_controls_badd() 3101 altsd = get_iface_desc(alts); in snd_usb_mixer_controls_badd() 3107 dir_in = (get_endpoint(alts, 0)->bEndpointAddress & USB_DIR_IN); in snd_usb_mixer_controls_badd() 3108 maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in snd_usb_mixer_controls_badd()
|
D | mixer_quirks.c | 1641 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.6.21/drivers/media/usb/uvc/ |
D | uvc_driver.c | 43 struct usb_host_endpoint *uvc_find_endpoint(struct usb_host_interface *alts, in uvc_find_endpoint() argument 49 for (i = 0; i < alts->desc.bNumEndpoints; ++i) { in uvc_find_endpoint() 50 ep = &alts->endpoint[i]; in uvc_find_endpoint() 228 struct usb_host_interface *alts = intf->cur_altsetting; in uvc_parse_format() local 249 alts->desc.bInterfaceNumber); in uvc_parse_format() 311 alts->desc.bInterfaceNumber); in uvc_parse_format() 326 alts->desc.bInterfaceNumber); in uvc_parse_format() 334 alts->desc.bInterfaceNumber, buffer[8]); in uvc_parse_format() 359 dev->udev->devnum, alts->desc.bInterfaceNumber, in uvc_parse_format() 389 alts->desc.bInterfaceNumber); in uvc_parse_format() [all …]
|
D | uvc_video.c | 1946 struct usb_host_interface *alts; in uvc_video_start_transfer() local 1949 alts = &intf->altsetting[i]; in uvc_video_start_transfer() 1950 ep = uvc_find_endpoint(alts, in uvc_video_start_transfer() 1958 altsetting = alts->desc.bAlternateSetting; in uvc_video_start_transfer()
|
D | uvcvideo.h | 793 struct usb_host_endpoint *uvc_find_endpoint(struct usb_host_interface *alts,
|
/linux-6.6.21/tools/objtool/ |
D | special.c | 140 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()
|
D | check.c | 1985 alt->next = orig_insn->alts; in add_special_section_alts() 1986 orig_insn->alts = alt; in add_special_section_alts() 2046 alt->next = insn->alts; in add_jump_table() 2047 insn->alts = alt; in add_jump_table() 3632 if (!insn->ignore_alts && insn->alts) { in validate_branch() 3635 for (alt = insn->alts; alt; alt = alt->next) { in validate_branch() 3833 if (!insn->ignore_alts && insn->alts) { in validate_unret() 3837 for (alt = insn->alts; alt; alt = alt->next) { in validate_unret()
|
/linux-6.6.21/drivers/media/i2c/ |
D | ov9640.c | 396 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.6.21/tools/objtool/include/objtool/ |
D | special.h | 33 int special_get_alts(struct elf *elf, struct list_head *alts);
|
D | check.h | 76 struct alternative *alts; member
|
/linux-6.6.21/sound/usb/misc/ |
D | ua101.c | 457 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.6.21/drivers/usb/class/ |
D | usblp.c | 1335 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.6.21/drivers/usb/core/ |
D | devio.c | 857 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-6.6.21/drivers/bluetooth/ |
D | btusb.c | 2228 static const int alts[3] = { 2, 4, 5 }; in btusb_work() local 2230 new_alts = alts[data->sco_num - 1]; in btusb_work()
|