Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/sound/synth/emux/
Demux_seq.c127 int max_channels, int oss_port, in snd_emux_create_port() argument
138 p->chset.channels = kcalloc(max_channels, sizeof(*p->chset.channels), in snd_emux_create_port()
144 for (i = 0; i < max_channels; i++) in snd_emux_create_port()
147 p->chset.max_channels = max_channels; in snd_emux_create_port()
165 cap, type, max_channels, in snd_emux_create_port()
228 for (i = 0; i < port->chset.max_channels; i++) { in snd_emux_reset_port()
Demux_effect.c269 p->effect = kcalloc(p->chset.max_channels, in snd_emux_create_effect()
272 for (i = 0; i < p->chset.max_channels; i++) in snd_emux_create_effect()
275 for (i = 0; i < p->chset.max_channels; i++) in snd_emux_create_effect()
292 p->chset.max_channels); in snd_emux_clear_effect()
Demux_oss.c330 if (voice < 0 || voice >= port->chset.max_channels) in emuspec_control()
388 for (i = 0; i < port->chset.max_channels; i++) { in emuspec_control()
428 if (voice < 0 || voice >= port->chset.max_channels) in gusspec_control()
Demux_voice.h21 int max_channels, int type,
/kernel/linux/linux-5.10/drivers/gpu/host1x/
Dchannel.c100 unsigned int max_channels = host->info->nb_channels; in acquire_unused_channel() local
103 index = find_first_zero_bit(chlist->allocated_channels, max_channels); in acquire_unused_channel()
104 if (index >= max_channels) { in acquire_unused_channel()
/kernel/linux/linux-5.10/sound/core/seq/
Dseq_midi_emul.c89 if (dest_channel >= chanset->max_channels) { in snd_midi_process_event()
91 dest_channel, chanset->max_channels); in snd_midi_process_event()
385 for (i = 0; i < chset->max_channels; i++) { in snd_midi_channel_set_clear()
534 if (p < chset->max_channels) { in sysex()
545 if (p < chset->max_channels && in sysex()
576 for (i = 0; i < chset->max_channels; i++) { in sysex()
669 for (ch = 0; ch < chset->max_channels; ch++) { in reset_all_channels()
695 chset->max_channels = n; in snd_midi_channel_alloc_set()
/kernel/linux/linux-5.10/drivers/xen/events/
Devents_internal.h13 unsigned (*max_channels)(void); member
43 return evtchn_ops->max_channels(); in xen_evtchn_max_channels()
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Ddce3_1_afmt.c89 int max_channels = -1; in dce3_2_afmt_write_sad_regs() local
96 if (sad->channels > max_channels) { in dce3_2_afmt_write_sad_regs()
100 max_channels = sad->channels; in dce3_2_afmt_write_sad_regs()
Ddce6_afmt.c230 int max_channels = -1; in dce6_afmt_write_sad_regs() local
237 if (sad->channels > max_channels) { in dce6_afmt_write_sad_regs()
241 max_channels = sad->channels; in dce6_afmt_write_sad_regs()
Devergreen_hdmi.c178 int max_channels = -1; in evergreen_hdmi_write_sad_regs() local
185 if (sad->channels > max_channels) { in evergreen_hdmi_write_sad_regs()
189 max_channels = sad->channels; in evergreen_hdmi_write_sad_regs()
/kernel/linux/linux-5.10/sound/core/
Dpcm_drm_eld.c38 unsigned max_channels = sad_max_channels(sad); in eld_limit_rates() local
44 if (c->min <= max_channels) in eld_limit_rates()
/kernel/linux/linux-5.10/drivers/media/pci/tw686x/
Dtw686x-core.c230 for (ch = 0; ch < max_channels(dev); ch++) in tw686x_dev_release()
253 dev->video_channels = kcalloc(max_channels(dev), in tw686x_probe()
260 dev->audio_channels = kcalloc(max_channels(dev), in tw686x_probe()
304 if (max_channels(dev) > 4) in tw686x_probe()
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()
382 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_audio_init()
404 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_audio_init()
Dtw686x-video.c308 channels = max_channels(dev); in tw686x_sg_setup()
317 sg_table_size = max_channels(dev) * TW686X_SG_TABLE_SIZE; in tw686x_sg_setup()
1095 for_each_set_bit(ch, &requests, max_channels(dev)) { in tw686x_video_irq()
1151 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_video_free()
1187 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_video_init()
1194 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_video_init()
1294 for (ch = 0; ch < max_channels(dev); ch++) in tw686x_video_init()
1301 if (max_channels(dev) > 4) { in tw686x_video_init()
Dtw686x.h156 static inline unsigned int max_channels(struct tw686x_dev *dev) in max_channels() function
/kernel/linux/linux-5.10/sound/pci/echoaudio/
Dechoaudio.c267 signed char max_channels) in pcm_open() argument
274 if (max_channels <= 0) in pcm_open()
287 dev_dbg(chip->card->dev, "max_channels=%d\n", max_channels); in pcm_open()
290 for (i = 0; channels_list[i] <= max_channels; i++); in pcm_open()
292 if (pipe->hw.channels_max > max_channels) in pcm_open()
293 pipe->hw.channels_max = max_channels; in pcm_open()
384 int max_channels, err; in pcm_analog_out_open() local
387 max_channels = num_pipes_out(chip); in pcm_analog_out_open()
389 max_channels = num_analog_busses_out(chip); in pcm_analog_out_open()
391 if ((err = pcm_open(substream, max_channels - substream->number)) < 0) in pcm_analog_out_open()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Defx_channels.c134 unsigned int max_channels, in efx_allocate_msix_channels() argument
160 max_channels = min_t(unsigned int, vec_count, max_channels); in efx_allocate_msix_channels()
166 if (n_channels + n_xdp_ev > max_channels) { in efx_allocate_msix_channels()
169 n_xdp_ev, n_channels, max_channels); in efx_allocate_msix_channels()
199 n_channels = min(n_channels, max_channels); in efx_allocate_msix_channels()
252 rc = efx_allocate_msix_channels(efx, efx->max_channels, in efx_probe_interrupts()
560 efx->max_channels = EFX_MAX_CHANNELS; in efx_init_channels()
/kernel/linux/linux-5.10/drivers/dma/
Ddmatest.c38 static unsigned int max_channels; variable
39 module_param(max_channels, uint, S_IRUGO | S_IWUSR);
40 MODULE_PARM_DESC(max_channels,
114 unsigned int max_channels; member
1083 if (params->max_channels && in request_channels()
1084 info->nr_channels >= params->max_channels) in request_channels()
1098 params->max_channels = max_channels; in add_threaded_test()
/kernel/linux/linux-5.10/drivers/dma/xilinx/
Dxilinx_dma.c475 const int max_channels; member
1770 chan_offset = chan->xdev->dma_config->max_channels / 2; in xilinx_mcdma_irq_handler()
2820 chan->tdest = chan->id - xdev->dma_config->max_channels / 2; in xilinx_dma_chan_probe()
2941 if (chan_id >= xdev->dma_config->max_channels || !xdev->chan[chan_id]) in of_dma_xilinx_xlate()
2951 .max_channels = XILINX_DMA_MAX_CHANS_PER_DEVICE,
2958 .max_channels = XILINX_MCDMA_MAX_CHANS_PER_DEVICE,
2964 .max_channels = XILINX_CDMA_MAX_CHANS_PER_DEVICE,
2971 .max_channels = XILINX_DMA_MAX_CHANS_PER_DEVICE,
3029 xdev->s2mm_chan_id = xdev->dma_config->max_channels / 2; in xilinx_dma_probe()
3127 for (i = 0; i < xdev->dma_config->max_channels; i++) in xilinx_dma_probe()
[all …]
/kernel/linux/linux-5.10/sound/pci/
Datiixp.c264 int max_channels; /* max. channels for PCM out */ member
1083 substream->runtime->hw.channels_max = chip->max_channels; in snd_atiixp_playback_open()
1084 if (chip->max_channels > 2) in snd_atiixp_playback_open()
1260 chip->max_channels = 2; in snd_atiixp_pcm_new()
1263 chip->max_channels = 6; in snd_atiixp_pcm_new()
1265 chip->max_channels = 4; in snd_atiixp_pcm_new()
1283 snd_pcm_alt_chmaps, chip->max_channels, 0, in snd_atiixp_pcm_new()
/kernel/linux/linux-5.10/sound/soc/sh/rcar/
Dcore.c616 int max_channels) in rsnd_rdai_channels_ctrl() argument
618 if (max_channels > 0) in rsnd_rdai_channels_ctrl()
619 rdai->max_channels = max_channels; in rsnd_rdai_channels_ctrl()
621 return rdai->max_channels; in rsnd_rdai_channels_ctrl()
975 unsigned int max_channels = rsnd_rdai_channels_get(rdai); in rsnd_soc_dai_startup() local
989 if (rsnd_soc_hw_channels_list[i] > max_channels) in rsnd_soc_dai_startup()
Drsnd.h541 int max_channels; /* 2ch - 16ch */ member
563 #define rsnd_rdai_channels_set(rdai, max_channels) \ argument
564 rsnd_rdai_channels_ctrl(rdai, max_channels)
568 int max_channels);
/kernel/linux/linux-5.10/drivers/iio/adc/
Dstm32-adc.c234 int max_channels; member
246 .max_channels = 16,
258 .max_channels = STM32_ADC_CH_MAX,
1742 if (ret > adc_info->max_channels) { in stm32_adc_chan_of_init()
1751 if (ret > adc_info->max_channels) { in stm32_adc_chan_of_init()
1783 if (val >= adc_info->max_channels) { in stm32_adc_chan_of_init()
1802 if (diff[i].vinp >= adc_info->max_channels || in stm32_adc_chan_of_init()
1803 diff[i].vinn >= adc_info->max_channels) { in stm32_adc_chan_of_init()
/kernel/linux/linux-5.10/sound/soc/ti/
Ddavinci-mcasp.c1459 u32 max_channels = 0; in davinci_mcasp_startup() local
1486 max_channels++; in davinci_mcasp_startup()
1488 ruledata->serializers = max_channels; in davinci_mcasp_startup()
1490 max_channels *= tdm_slots; in davinci_mcasp_startup()
1498 if (mcasp->channels && mcasp->channels < max_channels && in davinci_mcasp_startup()
1500 max_channels = mcasp->channels; in davinci_mcasp_startup()
1505 if (max_channels < tdm_slots) in davinci_mcasp_startup()
1506 max_channels = tdm_slots; in davinci_mcasp_startup()
1510 0, max_channels); in davinci_mcasp_startup()
/kernel/linux/linux-5.10/include/sound/
Dseq_midi_emul.h58 int max_channels; /* Size of the channels array */ member

123