/linux-6.1.9/sound/synth/emux/ |
D | emux_seq.c | 127 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()
|
D | emux_effect.c | 276 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()
|
D | emux_oss.c | 330 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()
|
/linux-6.1.9/sound/virtio/ |
D | virtio_chmap.c | 125 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.1.9/drivers/hwmon/ |
D | powr1220.c | 79 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()
|
/linux-6.1.9/drivers/gpu/host1x/ |
D | channel.c | 104 unsigned int max_channels = host->info->nb_channels; in acquire_unused_channel() local 107 index = find_first_zero_bit(chlist->allocated_channels, max_channels); in acquire_unused_channel() 108 if (index >= max_channels) { in acquire_unused_channel()
|
/linux-6.1.9/sound/core/seq/ |
D | seq_midi_emul.c | 89 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.1.9/drivers/xen/events/ |
D | events_internal.h | 13 unsigned (*max_channels)(void); member 43 return evtchn_ops->max_channels(); in xen_evtchn_max_channels()
|
/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | dce3_1_afmt.c | 89 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()
|
D | dce6_afmt.c | 231 int max_channels = -1; in dce6_afmt_write_sad_regs() local 238 if (sad->channels > max_channels) { in dce6_afmt_write_sad_regs() 242 max_channels = sad->channels; in dce6_afmt_write_sad_regs()
|
D | evergreen_hdmi.c | 179 int max_channels = -1; in evergreen_hdmi_write_sad_regs() local 186 if (sad->channels > max_channels) { in evergreen_hdmi_write_sad_regs() 190 max_channels = sad->channels; in evergreen_hdmi_write_sad_regs()
|
/linux-6.1.9/sound/core/ |
D | pcm_drm_eld.c | 38 unsigned max_channels = sad_max_channels(sad); in eld_limit_rates() local 44 if (c->min <= max_channels) in eld_limit_rates()
|
/linux-6.1.9/drivers/net/ethernet/sfc/siena/ |
D | efx_channels.c | 126 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() 580 efx->max_channels = EFX_MAX_CHANNELS; in efx_siena_init_channels()
|
/linux-6.1.9/drivers/net/ethernet/sfc/ |
D | efx_channels.c | 125 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() 578 efx->max_channels = EFX_MAX_CHANNELS; in efx_init_channels()
|
/linux-6.1.9/drivers/media/pci/tw686x/ |
D | tw686x-core.c | 230 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()
|
D | tw686x-audio.c | 37 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()
|
D | tw686x-video.c | 307 channels = max_channels(dev); in tw686x_sg_setup() 316 sg_table_size = max_channels(dev) * TW686X_SG_TABLE_SIZE; in tw686x_sg_setup() 1092 for_each_set_bit(ch, &requests, max_channels(dev)) { in tw686x_video_irq() 1148 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_video_free() 1184 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_video_init() 1191 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_video_init() 1291 for (ch = 0; ch < max_channels(dev); ch++) in tw686x_video_init() 1298 if (max_channels(dev) > 4) { in tw686x_video_init()
|
/linux-6.1.9/sound/pci/echoaudio/ |
D | echoaudio.c | 266 signed char max_channels) in pcm_open() argument 273 if (max_channels <= 0) in pcm_open() 286 dev_dbg(chip->card->dev, "max_channels=%d\n", max_channels); in pcm_open() 289 for (i = 0; channels_list[i] <= max_channels; i++); in pcm_open() 291 if (pipe->hw.channels_max > max_channels) in pcm_open() 292 pipe->hw.channels_max = max_channels; in pcm_open() 390 int max_channels, err; in pcm_analog_out_open() local 393 max_channels = num_pipes_out(chip); in pcm_analog_out_open() 395 max_channels = num_analog_busses_out(chip); in pcm_analog_out_open() 397 err = pcm_open(substream, max_channels - substream->number); in pcm_analog_out_open() [all …]
|
/linux-6.1.9/drivers/iio/adc/ |
D | ti-ads131e08.c | 81 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() 723 if (num_channels > st->info->max_channels) { in ads131e08_alloc_channels()
|
D | stm32-adc.c | 286 int max_channels; member 298 .max_channels = 16, 310 .max_channels = STM32_ADC_CH_MAX, 1873 if (ret > adc_info->max_channels) { in stm32_adc_get_legacy_chan_count() 1889 if (ret > adc_info->max_channels) { in stm32_adc_get_legacy_chan_count() 1929 if (diff[i].vinp >= adc_info->max_channels || in stm32_adc_legacy_chan_init() 1930 diff[i].vinn >= adc_info->max_channels) { in stm32_adc_legacy_chan_init() 1949 if (chans[c] >= adc_info->max_channels) { in stm32_adc_legacy_chan_init() 2065 if (val >= adc_info->max_channels) { in stm32_adc_generic_chan_init() 2076 if (vin[0] != val || vin[1] >= adc_info->max_channels) { in stm32_adc_generic_chan_init() [all …]
|
/linux-6.1.9/drivers/net/can/rcar/ |
D | rcar_canfd.c | 551 u32 max_channels; member 724 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->max_channels) { in rcar_canfd_reset_controller() 765 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->max_channels) { in rcar_canfd_configure_controller() 1145 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->max_channels) in rcar_canfd_global_err_interrupt() 1177 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->max_channels) in rcar_canfd_global_receive_fifo_interrupt() 1191 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->max_channels) { in rcar_canfd_global_interrupt() 1287 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->max_channels) { in rcar_canfd_channel_interrupt() 1830 int max_channels; in rcar_canfd_probe() local 1835 max_channels = chip_id == RENESAS_R8A779A0 ? 8 : 2; in rcar_canfd_probe() 1840 for (i = 0; i < max_channels; ++i) { in rcar_canfd_probe() [all …]
|
/linux-6.1.9/drivers/bus/mhi/host/ |
D | pci_generic.c | 252 .max_channels = 128, 316 .max_channels = 128, 355 .max_channels = 128, 402 .max_channels = 128, 450 .max_channels = 128, 482 .max_channels = 128, 524 .max_channels = 128,
|
/linux-6.1.9/drivers/dma/ |
D | dmatest.c | 37 static unsigned int max_channels; variable 38 module_param(max_channels, uint, 0644); 39 MODULE_PARM_DESC(max_channels, 113 unsigned int max_channels; member 1085 if (params->max_channels && in request_channels() 1086 info->nr_channels >= params->max_channels) in request_channels() 1100 params->max_channels = max_channels; in add_threaded_test()
|
/linux-6.1.9/drivers/dma/xilinx/ |
D | xilinx_dma.c | 475 const int max_channels; member 1778 chan_offset = chan->xdev->dma_config->max_channels / 2; in xilinx_mcdma_irq_handler() 2835 chan->tdest = chan->id - xdev->dma_config->max_channels / 2; in xilinx_dma_chan_probe() 2961 if (chan_id >= xdev->dma_config->max_channels || !xdev->chan[chan_id]) in of_dma_xilinx_xlate() 2971 .max_channels = XILINX_DMA_MAX_CHANS_PER_DEVICE, 2978 .max_channels = XILINX_MCDMA_MAX_CHANS_PER_DEVICE, 2984 .max_channels = XILINX_CDMA_MAX_CHANS_PER_DEVICE, 2991 .max_channels = XILINX_DMA_MAX_CHANS_PER_DEVICE, 3049 xdev->s2mm_chan_id = xdev->dma_config->max_channels / 2; in xilinx_dma_probe() 3151 for (i = 0; i < xdev->dma_config->max_channels; i++) in xilinx_dma_probe() [all …]
|
/linux-6.1.9/sound/pci/ |
D | atiixp.c | 263 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()
|