Home
last modified time | relevance | path

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

1234

/linux-6.12.1/sound/synth/emux/
Demux_seq.c128 int max_channels, int oss_port, in snd_emux_create_port() argument
139 p->chset.channels = kcalloc(max_channels, sizeof(*p->chset.channels), in snd_emux_create_port()
145 for (i = 0; i < max_channels; i++) in snd_emux_create_port()
148 p->chset.max_channels = max_channels; in snd_emux_create_port()
166 cap, type, max_channels, in snd_emux_create_port()
229 for (i = 0; i < port->chset.max_channels; i++) { in snd_emux_reset_port()
Demux_effect.c276 p->effect = kcalloc(p->chset.max_channels, in snd_emux_create_effect()
279 for (i = 0; i < p->chset.max_channels; i++) in snd_emux_create_effect()
282 for (i = 0; i < p->chset.max_channels; i++) in snd_emux_create_effect()
299 p->chset.max_channels); in snd_emux_clear_effect()
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-6.12.1/drivers/devfreq/event/
Drockchip-dfi.c108 unsigned int max_channels; member
138 for (i = 0; i < dfi->max_channels; i++) { in rockchip_dfi_enable()
193 for (i = 0; i < dfi->max_channels; i++) { in rockchip_dfi_disable()
214 for (i = 0; i < dfi->max_channels; i++) { in rockchip_dfi_read_counters()
261 for (i = 0; i < dfi->max_channels; i++) { in rockchip_dfi_get_event()
300 for (i = 0; i < dfi->max_channels; i++) { in rockchip_ddr_perf_counters_add()
441 for (i = 0; i < dfi->max_channels; i++) in rockchip_ddr_perf_event_get_count()
445 for (i = 0; i < dfi->max_channels; i++) in rockchip_ddr_perf_event_get_count()
473 for (i = 0; i < dfi->max_channels; i++) in rockchip_ddr_perf_event_get_count()
687 dfi->max_channels = 2; in rk3399_dfi_init()
[all …]
/linux-6.12.1/sound/virtio/
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-6.12.1/drivers/hwmon/
Dpowr1220.c79 u8 max_channels; member
179 if (channel >= chip_data->max_channels) in powr1220_is_visible()
298 data->max_channels = 10; in powr1220_probe()
301 data->max_channels = 12; in powr1220_probe()
Dtmp513.c181 u8 max_channels; member
446 if (channel >= data->max_channels) in tmp51x_is_visible()
595 if (data->max_channels == TMP513_MAX_CHANNELS) { in tmp51x_init()
677 data->max_channels - 1); in tmp51x_read_properties()
699 data->temp_config = TMP51X_TEMP_CONFIG_DEFAULT(data->max_channels); in tmp51x_configure()
720 data->max_channels = (uintptr_t)i2c_get_match_data(client); in tmp51x_probe()
/linux-6.12.1/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()
/linux-6.12.1/drivers/gpu/host1x/
Dchannel.c125 unsigned int max_channels = host->info->nb_channels; in acquire_unused_channel() local
130 index = find_first_zero_bit(chlist->allocated_channels, max_channels); in acquire_unused_channel()
131 if (index >= max_channels) { in acquire_unused_channel()
/linux-6.12.1/drivers/xen/events/
Devents_internal.h13 unsigned (*max_channels)(void); member
42 return evtchn_ops->max_channels(); in xen_evtchn_max_channels()
/linux-6.12.1/drivers/gpu/drm/radeon/
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()
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()
/linux-6.12.1/drivers/net/ethernet/sfc/
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-6.12.1/drivers/net/ethernet/sfc/siena/
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-6.12.1/sound/pci/echoaudio/
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-6.12.1/drivers/leds/flash/
Dleds-qcom-flash.c156 u8 max_channels; member
712 if (count > flash_data->max_channels) { in qcom_flash_register_led_device()
714 count, flash_data->max_channels); in qcom_flash_register_led_device()
730 if ((channels[i] == 0) || (channels[i] > flash_data->max_channels)) { in qcom_flash_register_led_device()
732 flash_data->max_channels); in qcom_flash_register_led_device()
857 flash_data->max_channels = 3; in qcom_flash_led_probe()
861 flash_data->max_channels = 4; in qcom_flash_led_probe()
889 if (count == 0 || count > flash_data->max_channels) { in qcom_flash_led_probe()
890 dev_err(dev, "No child or child count exceeds %d\n", flash_data->max_channels); in qcom_flash_led_probe()
/linux-6.12.1/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()
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-6.12.1/drivers/iio/adc/
Dti-ads131e08.c81 unsigned int max_channels; member
119 .max_channels = 4,
123 .max_channels = 6,
127 .max_channels = 8,
278 st->info->max_channels; in ads131e08_set_data_rate()
429 for_each_clear_bit(i, &active_channels, st->info->max_channels) { in ads131e08_initial_config()
722 if (num_channels > st->info->max_channels) { in ads131e08_alloc_channels()
Dstm32-adc.c299 int max_channels; member
311 .max_channels = 16,
323 .max_channels = STM32_ADC_CH_MAX,
330 .max_channels = 19,
1999 if (ret > adc_info->max_channels) { in stm32_adc_get_legacy_chan_count()
2013 if (ret > adc_info->max_channels) { in stm32_adc_get_legacy_chan_count()
2055 if (diff[i].vinp >= adc_info->max_channels || in stm32_adc_legacy_chan_init()
2056 diff[i].vinn >= adc_info->max_channels) { in stm32_adc_legacy_chan_init()
2076 if (chans[c] >= adc_info->max_channels) { in stm32_adc_legacy_chan_init()
2220 if (val >= adc_info->max_channels) in stm32_adc_generic_chan_init()
[all …]
/linux-6.12.1/sound/core/
Dpcm_drm_eld.c106 unsigned max_channels = sad_max_channels(sad); in eld_limit_rates() local
112 if (c->min <= max_channels) in eld_limit_rates()
/linux-6.12.1/drivers/net/can/rcar/
Drcar_canfd.c514 u8 max_channels; member
590 .max_channels = 2,
596 .max_channels = 8,
602 .max_channels = 2,
691 gpriv->info->max_channels) in rcar_canfd_set_mode()
739 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->info->max_channels) { in rcar_canfd_reset_controller()
780 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->info->max_channels) { in rcar_canfd_configure_controller()
1160 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->info->max_channels) in rcar_canfd_global_err_interrupt()
1192 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->info->max_channels) in rcar_canfd_global_receive_fifo_interrupt()
1206 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->info->max_channels) { in rcar_canfd_global_interrupt()
[all …]
/linux-6.12.1/drivers/bus/mhi/host/
Dpci_generic.c279 .max_channels = 128,
289 .max_channels = 128,
366 .max_channels = 128,
417 .max_channels = 128,
426 .max_channels = 128,
553 .max_channels = 128,
601 .max_channels = 128,
633 .max_channels = 128,
675 .max_channels = 128,
/linux-6.12.1/drivers/iio/proximity/
Daw96103.c118 unsigned int max_channels; member
475 for (i = 0; i < aw96103->max_channels; i++) { in aw96103_reg_version_comp()
593 for (i = 0; i < aw96103->max_channels; i++) { in aw96103_cfg_update()
642 for (i = 0; i < aw96103->max_channels; i++) { in aw96103_irq()
773 aw96103->max_channels = chip_info->num_channels; in aw96103_i2c_probe()
/linux-6.12.1/drivers/dma/
Ddmatest.c41 static unsigned int max_channels; variable
42 module_param(max_channels, uint, 0644);
43 MODULE_PARM_DESC(max_channels,
119 unsigned int max_channels; member
1099 if (params->max_channels && in request_channels()
1100 info->nr_channels >= params->max_channels) in request_channels()
1115 params->max_channels = max_channels; in add_threaded_test()

1234