Home
last modified time | relevance | path

Searched refs:max_channels (Results 1 – 25 of 66) sorted by relevance

123

/linux/sound/synth/emux/
H A Demux_seq.c128 int max_channels, int oss_port, in snd_emux_create_port() argument
135 p = kzalloc_flex(*p, chset.channels, max_channels); in snd_emux_create_port()
139 p->chset.max_channels = max_channels; in snd_emux_create_port()
141 for (i = 0; i < max_channels; i++) in snd_emux_create_port()
161 cap, type, max_channels, in snd_emux_create_port()
223 for (i = 0; i < port->chset.max_channels; i++) { in snd_emux_reset_port()
H A Demux_effect.c276 p->chset.max_channels); in snd_emux_create_effect()
278 for (i = 0; i < p->chset.max_channels; i++) in snd_emux_create_effect()
281 for (i = 0; i < p->chset.max_channels; i++) in snd_emux_create_effect()
298 p->chset.max_channels); in snd_emux_clear_effect()
H A Demux_oss.c332 if (voice < 0 || voice >= port->chset.max_channels) in emuspec_control()
390 for (i = 0; i < port->chset.max_channels; i++) { in emuspec_control()
430 if (voice < 0 || voice >= port->chset.max_channels) in gusspec_control()
/linux/drivers/devfreq/event/
H A Drockchip-dfi.c106 unsigned int max_channels; member
191 for (i = 0; i < dfi->max_channels; i++) { in rockchip_dfi_enable()
232 for (i = 0; i < dfi->max_channels; i++) { in rockchip_dfi_disable()
253 for (i = 0; i < dfi->max_channels; i++) { in rockchip_dfi_read_counters()
300 for (i = 0; i < dfi->max_channels; i++) { in rockchip_dfi_get_event()
339 for (i = 0; i < dfi->max_channels; i++) { in rockchip_ddr_perf_counters_add()
480 for (i = 0; i < dfi->max_channels; i++) in rockchip_ddr_perf_event_get_count()
484 for (i = 0; i < dfi->max_channels; i++) in rockchip_ddr_perf_event_get_count()
512 for (i = 0; i < dfi->max_channels; i++) in rockchip_ddr_perf_event_get_count()
729 dfi->max_channels = 2; in rk3399_dfi_init()
[all …]
/linux/sound/virtio/
H A Dvirtio_chmap.c125 int max_channels = 0; in virtsnd_chmap_add_ctls() local
128 if (max_channels < vs->chmaps[i].channels) in virtsnd_chmap_add_ctls()
129 max_channels = vs->chmaps[i].channels; in virtsnd_chmap_add_ctls()
131 return snd_pcm_add_chmap_ctls(pcm, direction, vs->chmaps, max_channels, in virtsnd_chmap_add_ctls()
/linux/sound/core/seq/
H A Dseq_midi_emul.c86 if (dest_channel >= chanset->max_channels) { in snd_midi_process_event()
88 dest_channel, chanset->max_channels); in snd_midi_process_event()
382 for (i = 0; i < chset->max_channels; i++) { in snd_midi_channel_set_clear()
531 if (p < chset->max_channels) { in sysex()
542 if (p < chset->max_channels && in sysex()
573 for (i = 0; i < chset->max_channels; i++) { in sysex()
649 for (ch = 0; ch < chset->max_channels; ch++) { in snd_midi_channel_init_set()
676 chset->max_channels = n; in reset_all_channels()
/linux/sound/hda/codecs/hdmi/
H A Dnvhdmi-mcp.c54 if (spec->multiout.max_channels == 2) in nvhdmi_mcp_init()
242 if (!err && spec->multiout.max_channels == 8) { in nvhdmi_mcp_build_pcms()
261 if (spec->multiout.max_channels != 8) in nvhdmi_mcp_build_controls()
325 spec->multiout.max_channels = 8; in nvhdmi_mcp_probe()
/linux/drivers/gpu/host1x/
H A Dchannel.c124 unsigned int max_channels = host->info->nb_channels; in acquire_unused_channel() local
129 index = find_first_zero_bit(chlist->allocated_channels, max_channels); in acquire_unused_channel()
130 if (index >= max_channels) { in acquire_unused_channel()
/linux/drivers/bus/mhi/host/
H A Dpci_generic.c282 .max_channels = 128,
347 .max_channels = 128,
356 .max_channels = 128,
366 .max_channels = 128,
463 .max_channels = 128,
531 .max_channels = 128,
540 .max_channels = 128,
549 .max_channels = 128,
698 .max_channels = 128,
746 .max_channels
[all...]
/linux/drivers/hwmon/
H A Dtmp513.c181 u8 max_channels; member
449 if (channel >= data->max_channels) in tmp51x_is_visible()
598 if (data->max_channels == TMP513_MAX_CHANNELS) { in tmp51x_init()
680 data->max_channels - 1); in tmp51x_read_properties()
702 data->temp_config = TMP51X_TEMP_CONFIG_DEFAULT(data->max_channels); in tmp51x_configure()
723 data->max_channels = (uintptr_t)i2c_get_match_data(client); in tmp51x_probe()
/linux/drivers/iio/adc/
H A Dad4851.c166 unsigned int max_channels; member
993 channels->channel2 = reg + st->info->max_channels; in ad4851_parse_channels_common()
1073 .max_channels = AD4851_MAX_CH_NR,
1082 .max_channels = AD4851_MAX_CH_NR,
1091 .max_channels = AD4851_MAX_CH_NR,
1100 .max_channels = AD4851_MAX_CH_NR,
1109 .max_channels = AD4851_MAX_CH_NR,
1118 .max_channels = AD4851_MAX_CH_NR,
1127 .max_channels = AD4851_MAX_CH_NR,
1136 .max_channels = AD4851_MAX_CH_NR,
[all …]
H A Drzt2h_adc.c46 unsigned int max_channels; member
208 if (chan_array[i].channel + 1 > adc->max_channels) in rzt2h_adc_parse_properties()
209 adc->max_channels = chan_array[i].channel + 1; in rzt2h_adc_parse_properties()
H A Dstm32-adc.c301 * @max_channels: Number of channels
308 int max_channels; member
330 .max_channels = 16,
342 .max_channels = STM32_ADC_CH_MAX,
351 .max_channels = 19,
2136 if (ret > adc_info->max_channels) { in stm32_adc_get_legacy_chan_count()
2150 if (ret > adc_info->max_channels) { in stm32_adc_get_legacy_chan_count()
2192 if (diff[i].vinp >= adc_info->max_channels || in stm32_adc_legacy_chan_init()
2193 diff[i].vinn >= adc_info->max_channels) { in stm32_adc_legacy_chan_init()
2213 if (chans[c] >= adc_info->max_channels) { in stm32_adc_legacy_chan_init()
[all...]
/linux/drivers/gpu/drm/radeon/
H A Ddce3_1_afmt.c90 int max_channels = -1; in dce3_2_afmt_write_sad_regs() local
97 if (sad->channels > max_channels) { in dce3_2_afmt_write_sad_regs()
101 max_channels = sad->channels; in dce3_2_afmt_write_sad_regs()
H A Ddce6_afmt.c232 int max_channels = -1; in dce6_afmt_write_sad_regs() local
239 if (sad->channels > max_channels) { in dce6_afmt_write_sad_regs()
243 max_channels = sad->channels; in dce6_afmt_write_sad_regs()
H A Devergreen_hdmi.c180 int max_channels = -1; in evergreen_hdmi_write_sad_regs() local
187 if (sad->channels > max_channels) { in evergreen_hdmi_write_sad_regs()
191 max_channels = sad->channels; in evergreen_hdmi_write_sad_regs()
/linux/drivers/xen/events/
H A Devents_internal.h13 unsigned (*max_channels)(void); member
42 return evtchn_ops->max_channels(); in xen_evtchn_max_channels()
/linux/drivers/net/ethernet/sfc/
H A Defx_channels.c125 unsigned int max_channels, in efx_allocate_msix_channels() argument
153 max_channels = min_t(unsigned int, vec_count, max_channels); in efx_allocate_msix_channels()
159 if (n_channels >= max_channels) { in efx_allocate_msix_channels()
163 n_xdp_ev, n_channels, max_channels); in efx_allocate_msix_channels()
173 } else if (n_channels + n_xdp_ev > max_channels) { in efx_allocate_msix_channels()
177 n_xdp_ev, n_channels, max_channels); in efx_allocate_msix_channels()
179 n_xdp_ev = max_channels - n_channels; in efx_allocate_msix_channels()
210 n_channels = min(n_channels, max_channels); in efx_allocate_msix_channels()
263 rc = efx_allocate_msix_channels(efx, efx->max_channels, in efx_probe_interrupts()
580 efx->max_channels = EFX_MAX_CHANNELS; in efx_init_channels()
/linux/drivers/net/ethernet/sfc/siena/
H A Defx_channels.c126 unsigned int max_channels, in efx_allocate_msix_channels() argument
154 max_channels = min_t(unsigned int, vec_count, max_channels); in efx_allocate_msix_channels()
160 if (n_channels >= max_channels) { in efx_allocate_msix_channels()
164 n_xdp_ev, n_channels, max_channels); in efx_allocate_msix_channels()
174 } else if (n_channels + n_xdp_ev > max_channels) { in efx_allocate_msix_channels()
178 n_xdp_ev, n_channels, max_channels); in efx_allocate_msix_channels()
180 n_xdp_ev = max_channels - n_channels; in efx_allocate_msix_channels()
211 n_channels = min(n_channels, max_channels); in efx_allocate_msix_channels()
264 rc = efx_allocate_msix_channels(efx, efx->max_channels, in efx_siena_probe_interrupts()
582 efx->max_channels = EFX_MAX_CHANNELS; in efx_siena_init_channels()
/linux/sound/pci/echoaudio/
H A Dechoaudio.c255 signed char max_channels) in pcm_open() argument
262 if (max_channels <= 0) in pcm_open()
275 dev_dbg(chip->card->dev, "max_channels=%d\n", max_channels); in pcm_open()
278 for (i = 0; channels_list[i] <= max_channels; i++); in pcm_open()
280 if (pipe->hw.channels_max > max_channels) in pcm_open()
281 pipe->hw.channels_max = max_channels; in pcm_open()
379 int max_channels, err; in pcm_analog_out_open() local
382 max_channels = num_pipes_out(chip); in pcm_analog_out_open()
384 max_channels = num_analog_busses_out(chip); in pcm_analog_out_open()
386 err = pcm_open(substream, max_channels - substream->number); in pcm_analog_out_open()
[all …]
/linux/drivers/media/pci/tw686x/
H A Dtw686x-core.c230 for (ch = 0; ch < max_channels(dev); ch++) in tw686x_dev_release()
254 max_channels(dev)); in tw686x_probe()
261 max_channels(dev)); in tw686x_probe()
304 if (max_channels(dev) > 4) in tw686x_probe()
H A Dtw686x-audio.c37 for_each_set_bit(ch, &requests, max_channels(dev)) { in tw686x_audio_irq()
274 err = snd_pcm_new(card, card->driver, 0, 0, max_channels(dev), &pcm); in tw686x_snd_pcm_init()
383 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_audio_init()
405 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_audio_init()
/linux/fs/smb/client/
H A Dfs_context.c167 fsparam_u32("max_channels", Opt_max_channels),
734 ctx->max_channels = 2;
735 } else if (ctx->max_channels == 1) {
737 "max_channels must be greater than 1 when multichannel is enabled\n");
742 ctx->max_channels = 1;
743 } else if (ctx->max_channels > 1) {
745 "max_channels must be equal to 1 when multichannel is disabled\n");
750 if (ctx->max_channels > 1)
769 static void smb3_sync_ses_chan_max(struct cifs_ses *ses, size_t max_channels); in smb3_fs_context_parse_monolithic()
1052 * @max_channels
1053 smb3_sync_ses_chan_max(struct cifs_ses * ses,size_t max_channels) smb3_sync_ses_chan_max() argument
[all...]
/linux/drivers/dma/
H A Ddmatest.c41 static unsigned int max_channels; variable
42 module_param(max_channels, uint, 0644);
43 MODULE_PARM_DESC(max_channels,
102 * @max_channels: maximum number of channels to use
119 unsigned int max_channels; member
1101 if (params->max_channels && in request_channels()
1102 info->nr_channels >= params->max_channels) in request_channels()
1117 params->max_channels = max_channels; in add_threaded_test()
/linux/drivers/dma/xilinx/
H A Dxilinx_dma.c484 const int max_channels; member
1862 chan_offset = chan->xdev->dma_config->max_channels / 2; in xilinx_mcdma_irq_handler()
3014 chan->tdest = chan->id - xdev->dma_config->max_channels / 2; in xilinx_dma_chan_probe()
3142 if (chan_id >= xdev->dma_config->max_channels || !xdev->chan[chan_id]) in of_dma_xilinx_xlate()
3152 .max_channels = XILINX_DMA_MAX_CHANS_PER_DEVICE,
3159 .max_channels = XILINX_MCDMA_MAX_CHANS_PER_DEVICE,
3165 .max_channels = XILINX_CDMA_MAX_CHANS_PER_DEVICE,
3172 .max_channels = XILINX_DMA_MAX_CHANS_PER_DEVICE,
3230 xdev->s2mm_chan_id = xdev->dma_config->max_channels / 2; in xilinx_dma_probe()
3344 for (i = 0; i < xdev->dma_config->max_channels; i++) in xilinx_dma_probe()
[all …]

123