/kernel/linux/linux-5.10/sound/usb/ |
H A D | endpoint.c | 692 if (ep->maxpacksize && ep->maxpacksize < maxsize) { in check_ep_params() 694 unsigned int data_maxsize = maxsize = ep->maxpacksize; in check_ep_params() 704 ret = ret && (ep->curpacksize == ep->maxpacksize); in check_ep_params() 788 ret = ret && (ep->maxpacksize == fmt->maxpacksize); in check_ep_params() 863 if (ep->maxpacksize && ep->maxpacksize < maxsize) { in data_ep_set_params() 865 unsigned int data_maxsize = maxsize = ep->maxpacksize; in data_ep_set_params() 875 ep->curpacksize = ep->maxpacksize; in data_ep_set_params() [all...] |
H A D | card.h | 27 unsigned int maxpacksize; /* max. packet size */ member 96 unsigned int maxpacksize; /* max packet size in bytes */ member
|
H A D | stream.c | 694 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in audio_format_alloc_init() 697 fp->maxpacksize = (((fp->maxpacksize >> 11) & 3) + 1) in audio_format_alloc_init() 698 * (fp->maxpacksize & 0x7ff); in audio_format_alloc_init() 884 unsigned int maxpacksize = in snd_usb_get_audioformat_uac3() local 887 switch (maxpacksize) { in snd_usb_get_audioformat_uac3() 1169 fp->maxpacksize * 2) in __snd_usb_parse_audio_interface()
|
H A D | quirks-table.h | 2638 .maxpacksize = 0x024c, 2662 .maxpacksize = 0x0126, 2906 .maxpacksize = 0x130, 2929 .maxpacksize = 0x130, 3364 .maxpacksize = 0x00d8, 3387 .maxpacksize = 0x0120,
|
H A D | quirks.c | 181 if (fp->maxpacksize == 0) in create_fixed_stream_quirk() 182 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in create_fixed_stream_quirk() 472 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in create_uaxx_quirk() 475 switch (fp->maxpacksize) { in create_uaxx_quirk()
|
H A D | format.c | 221 fp->altsetting == 5 && fp->maxpacksize == 392) in parse_audio_format_rates_v1()
|
H A D | pcm.c | 133 if (fp->maxpacksize > found->maxpacksize) { in find_format() 952 bytes_to_frames(runtime, subs->data_endpoint->maxpacksize); in snd_usb_pcm_prepare()
|
H A D | mixer.c | 2996 unsigned int maxpacksize; in snd_usb_mixer_controls_badd() local 3027 maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in snd_usb_mixer_controls_badd() 3029 switch (maxpacksize) { in snd_usb_mixer_controls_badd() 3033 maxpacksize); in snd_usb_mixer_controls_badd()
|
/kernel/linux/linux-6.6/sound/usb/ |
H A D | card.h | 33 unsigned int maxpacksize; /* max. packet size */ member 116 unsigned int maxpacksize; /* max packet size in bytes */ member
|
H A D | stream.c | 696 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in audio_format_alloc_init() 699 fp->maxpacksize = (((fp->maxpacksize >> 11) & 3) + 1) in audio_format_alloc_init() 700 * (fp->maxpacksize & 0x7ff); in audio_format_alloc_init() 886 unsigned int maxpacksize = in snd_usb_get_audioformat_uac3() local 889 switch (maxpacksize) { in snd_usb_get_audioformat_uac3() 1172 fp->maxpacksize * 2) in __snd_usb_parse_audio_interface()
|
H A D | endpoint.c | 1155 if (ep->maxpacksize && ep->maxpacksize < maxsize) { in data_ep_set_params() 1157 unsigned int data_maxsize = maxsize = ep->maxpacksize; in data_ep_set_params() 1167 ep->curpacksize = ep->maxpacksize; in data_ep_set_params() 1357 ep->maxpacksize = fmt->maxpacksize; in snd_usb_endpoint_set_params() 1395 ep->maxframesize = ep->maxpacksize / ep->cur_frame_bytes; in snd_usb_endpoint_set_params()
|
H A D | quirks-table.h | 2659 .maxpacksize = 0x024c, 2689 .maxpacksize = 0x0126, 2869 .maxpacksize = 0x130, 2893 .maxpacksize = 0x130, 3046 .maxpacksize = 0x009c, 3140 .maxpacksize = 0x138, 3163 .maxpacksize = 0x138, 3466 .maxpacksize = 0x00d8, 3490 .maxpacksize = 0x0120,
|
H A D | quirks.c | 195 if (fp->maxpacksize == 0) in create_fixed_stream_quirk() 196 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, fp->ep_idx)->wMaxPacketSize); in create_fixed_stream_quirk() 456 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in create_uaxx_quirk() 459 switch (fp->maxpacksize) { in create_uaxx_quirk()
|
H A D | format.c | 236 fp->altsetting == 5 && fp->maxpacksize == 392) in parse_audio_format_rates_v1()
|
H A D | mixer.c | 3077 unsigned int maxpacksize; in snd_usb_mixer_controls_badd() local 3108 maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in snd_usb_mixer_controls_badd() 3110 switch (maxpacksize) { in snd_usb_mixer_controls_badd() 3114 maxpacksize); in snd_usb_mixer_controls_badd()
|
H A D | pcm.c | 143 if (fp->maxpacksize > found->maxpacksize) { in find_format()
|
/kernel/linux/linux-5.10/sound/usb/usx2y/ |
H A D | usbusx2y.h | 59 unsigned int maxpacksize; /* max packet size in bytes */ member
|
H A D | usbusx2yaudio.c | 402 subs->maxpacksize = usb_maxpacket(dev, pipe, is_playback); in usx2y_urbs_allocate() 403 if (!subs->maxpacksize) in usx2y_urbs_allocate() 407 subs->tmpbuf = kcalloc(nr_of_packs(), subs->maxpacksize, GFP_KERNEL); in usx2y_urbs_allocate() 426 kmalloc_array(subs->maxpacksize, in usx2y_urbs_allocate() 476 urb->iso_frame_desc[pack].offset = subs->maxpacksize * pack; in usx2y_urbs_start() 477 urb->iso_frame_desc[pack].length = subs->maxpacksize; in usx2y_urbs_start() 479 urb->transfer_buffer_length = subs->maxpacksize * nr_of_packs(); in usx2y_urbs_start()
|
H A D | usx2yhwdeppcm.c | 309 subs->maxpacksize = usb_maxpacket(dev, pipe, is_playback); in usx2y_usbpcm_urbs_allocate() 310 if (!subs->maxpacksize) in usx2y_usbpcm_urbs_allocate() 430 urb->iso_frame_desc[pack].offset = subs->maxpacksize * (pack + u * nr_of_packs()); in usx2y_usbpcm_urbs_start() 431 urb->iso_frame_desc[pack].length = subs->maxpacksize; in usx2y_usbpcm_urbs_start() 433 urb->transfer_buffer_length = subs->maxpacksize * nr_of_packs(); in usx2y_usbpcm_urbs_start()
|
/kernel/linux/linux-6.6/sound/usb/usx2y/ |
H A D | usbusx2y.h | 58 unsigned int maxpacksize; /* max packet size in bytes */ member
|
H A D | usbusx2yaudio.c | 424 subs->maxpacksize = usb_maxpacket(dev, pipe); in usx2y_urbs_allocate() 425 if (!subs->maxpacksize) in usx2y_urbs_allocate() 429 subs->tmpbuf = kcalloc(nr_of_packs(), subs->maxpacksize, GFP_KERNEL); in usx2y_urbs_allocate() 448 kmalloc_array(subs->maxpacksize, in usx2y_urbs_allocate() 502 urb->iso_frame_desc[pack].offset = subs->maxpacksize * pack; in usx2y_urbs_start() 503 urb->iso_frame_desc[pack].length = subs->maxpacksize; in usx2y_urbs_start() 505 urb->transfer_buffer_length = subs->maxpacksize * nr_of_packs(); in usx2y_urbs_start()
|
H A D | usx2yhwdeppcm.c | 324 subs->maxpacksize = usb_maxpacket(dev, pipe); in usx2y_usbpcm_urbs_allocate() 325 if (!subs->maxpacksize) in usx2y_usbpcm_urbs_allocate() 453 urb->iso_frame_desc[pack].offset = subs->maxpacksize * (pack + u * nr_of_packs()); in usx2y_usbpcm_urbs_start() 454 urb->iso_frame_desc[pack].length = subs->maxpacksize; in usx2y_usbpcm_urbs_start() 456 urb->transfer_buffer_length = subs->maxpacksize * nr_of_packs(); in usx2y_usbpcm_urbs_start()
|