| /linux/sound/synth/emux/ |
| H A D | emux_seq.c | 128 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 D | emux_effect.c | 276 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 D | emux_oss.c | 332 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()
|
| H A D | emux_voice.h | 21 int max_channels, int type,
|
| /linux/drivers/devfreq/event/ |
| H A D | rockchip-dfi.c | 106 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 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/sound/core/seq/ |
| H A D | seq_midi_emul.c | 86 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/drivers/gpu/host1x/ |
| H A D | channel.c | 124 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/sound/hda/codecs/hdmi/ |
| H A D | nvhdmi-mcp.c | 54 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/xen/events/ |
| H A D | events_internal.h | 13 unsigned (*max_channels)(void); member 42 return evtchn_ops->max_channels(); in xen_evtchn_max_channels()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | dce3_1_afmt.c | 90 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 D | dce6_afmt.c | 232 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 D | evergreen_hdmi.c | 180 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/iio/adc/ |
| H A D | ad4851.c | 165 unsigned int max_channels; member 992 channels->channel2 = reg + st->info->max_channels; in ad4851_parse_channels_common() 1072 .max_channels = AD4851_MAX_CH_NR, 1081 .max_channels = AD4851_MAX_CH_NR, 1090 .max_channels = AD4851_MAX_CH_NR, 1099 .max_channels = AD4851_MAX_CH_NR, 1108 .max_channels = AD4851_MAX_CH_NR, 1117 .max_channels = AD4851_MAX_CH_NR, 1126 .max_channels = AD4851_MAX_CH_NR, 1135 .max_channels = AD4851_MAX_CH_NR, [all …]
|
| H A D | rzt2h_adc.c | 45 unsigned int max_channels; member 207 if (chan_array[i].channel + 1 > adc->max_channels) in rzt2h_adc_parse_properties() 208 adc->max_channels = chan_array[i].channel + 1; in rzt2h_adc_parse_properties()
|
| H A D | stm32-adc.c | 307 int max_channels; member 329 .max_channels = 16, 341 .max_channels = STM32_ADC_CH_MAX, 350 .max_channels = 19, 2135 if (ret > adc_info->max_channels) { in stm32_adc_get_legacy_chan_count() 2149 if (ret > adc_info->max_channels) { in stm32_adc_get_legacy_chan_count() 2191 if (diff[i].vinp >= adc_info->max_channels || in stm32_adc_legacy_chan_init() 2192 diff[i].vinn >= adc_info->max_channels) { in stm32_adc_legacy_chan_init() 2212 if (chans[c] >= adc_info->max_channels) { in stm32_adc_legacy_chan_init() 2356 if (val >= adc_info->max_channels) in stm32_adc_generic_chan_init() [all …]
|
| /linux/drivers/net/ethernet/sfc/ |
| H A 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() 580 efx->max_channels = EFX_MAX_CHANNELS; in efx_init_channels()
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A 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() 582 efx->max_channels = EFX_MAX_CHANNELS; in efx_siena_init_channels()
|
| /linux/sound/pci/echoaudio/ |
| H A D | echoaudio.c | 255 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/net/can/rcar/ |
| H A D | rcar_canfd.c | 439 u8 max_channels; member 614 .max_channels = 2, 631 .max_channels = 8, 648 .max_channels = 2, 665 .max_channels = 6, 682 .max_channels = 2, 825 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->info->max_channels) { in rcar_canfd_reset_controller() 890 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->info->max_channels) { in rcar_canfd_configure_controller() 1261 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->info->max_channels) in rcar_canfd_global_err_interrupt() 1293 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->info->max_channels) in rcar_canfd_global_receive_fifo_interrupt() [all …]
|
| /linux/drivers/media/pci/tw686x/ |
| H A 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()
|
| H A D | tw686x.h | 156 static inline unsigned int max_channels(struct tw686x_dev *dev) in max_channels() function
|
| /linux/drivers/dma/xilinx/ |
| H A D | xilinx_dma.c | 486 const int max_channels; member 1874 chan_offset = chan->xdev->dma_config->max_channels / 2; in xilinx_mcdma_irq_handler() 3030 chan->tdest = chan->id - xdev->dma_config->max_channels / 2; in xilinx_dma_chan_probe() 3158 if (chan_id >= xdev->dma_config->max_channels || !xdev->chan[chan_id]) in of_dma_xilinx_xlate() 3168 .max_channels = XILINX_DMA_MAX_CHANS_PER_DEVICE, 3175 .max_channels = XILINX_MCDMA_MAX_CHANS_PER_DEVICE, 3181 .max_channels = XILINX_CDMA_MAX_CHANS_PER_DEVICE, 3188 .max_channels = XILINX_DMA_MAX_CHANS_PER_DEVICE, 3246 xdev->s2mm_chan_id = xdev->dma_config->max_channels / 2; in xilinx_dma_probe() 3360 for (i = 0; i < xdev->dma_config->max_channels; i++) in xilinx_dma_probe() [all …]
|
| /linux/sound/pci/ |
| H A D | cmipci.c | 455 int max_channels; member 1670 runtime->hw.channels_max = cm->max_channels; in snd_cmipci_playback2_open() 1671 if (cm->max_channels == 4) in snd_cmipci_playback2_open() 1673 else if (cm->max_channels == 6) in snd_cmipci_playback2_open() 1675 else if (cm->max_channels == 8) in snd_cmipci_playback2_open() 1901 snd_pcm_alt_chmaps, cm->max_channels, 0, in snd_cmipci_pcm_spdif_new() 2769 cm->max_channels = 2; in query_chip() 2774 cm->max_channels = 6; in query_chip() 2776 cm->max_channels = 4; in query_chip() 2779 cm->max_channels in query_chip() [all...] |
| /linux/sound/soc/renesas/rcar/ |
| H A D | rsnd.h | 567 int max_channels; /* 2ch - 16ch */ 589 #define rsnd_rdai_channels_set(rdai, max_channels) \ 590 rsnd_rdai_channels_ctrl(rdai, max_channels) 594 int max_channels); 538 int max_channels; /* 2ch - 16ch */ global() member 560 rsnd_rdai_channels_set(rdai,max_channels) global() argument
|