Home
last modified time | relevance | path

Searched refs:uac2_opts (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/drivers/usb/gadget/function/
Df_uac2.c684 static int get_max_bw_for_bint(const struct f_uac2_opts *uac2_opts, in get_max_bw_for_bint() argument
691 chmask = uac2_opts->p_chmask; in get_max_bw_for_bint()
692 srate = get_max_srate(uac2_opts->p_srates); in get_max_bw_for_bint()
693 ssize = uac2_opts->p_ssize; in get_max_bw_for_bint()
695 chmask = uac2_opts->c_chmask; in get_max_bw_for_bint()
696 srate = get_max_srate(uac2_opts->c_srates); in get_max_bw_for_bint()
697 ssize = uac2_opts->c_ssize; in get_max_bw_for_bint()
700 if (is_playback || (uac2_opts->c_sync == USB_ENDPOINT_SYNC_ASYNC)) { in get_max_bw_for_bint()
703 srate = srate * (1000 + uac2_opts->fb_max) / 1000; in get_max_bw_for_bint()
715 static int set_ep_max_packet_size_bint(struct device *dev, const struct f_uac2_opts *uac2_opts, in set_ep_max_packet_size_bint() argument
[all …]
/linux-5.19.10/drivers/usb/gadget/legacy/
Daudio.c256 struct f_uac2_opts *uac2_opts; in audio_bind() local
283 uac2_opts = container_of(fi_uac2, struct f_uac2_opts, func_inst); in audio_bind()
284 uac2_opts->p_chmask = p_chmask; in audio_bind()
287 uac2_opts->p_srates[i] = p_srates[i]; in audio_bind()
289 uac2_opts->p_ssize = p_ssize; in audio_bind()
290 uac2_opts->p_hs_bint = p_hs_bint; in audio_bind()
291 uac2_opts->c_chmask = c_chmask; in audio_bind()
294 uac2_opts->c_srates[i] = c_srates[i]; in audio_bind()
296 uac2_opts->c_ssize = c_ssize; in audio_bind()
297 uac2_opts->c_hs_bint = c_hs_bint; in audio_bind()
[all …]