Home
last modified time | relevance | path

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

1234

/linux/sound/synth/emux/
H A 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()
H A 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()
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/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/drivers/hwmon/
H A 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()
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/sound/core/seq/
H A 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/sound/hda/codecs/hdmi/
H A Dnvhdmi-mcp.c54 if (spec->multiout.max_channels == 2) in nvhdmi_mcp_init()
243 if (!err && spec->multiout.max_channels == 8) { in nvhdmi_mcp_build_pcms()
262 if (spec->multiout.max_channels != 8) in nvhdmi_mcp_build_controls()
326 spec->multiout.max_channels = 8; in nvhdmi_mcp_probe()
/linux/drivers/gpu/host1x/
H A 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/drivers/bus/mhi/host/
H A Dpci_generic.c284 .max_channels = 128,
347 .max_channels = 128,
356 .max_channels = 128,
366 .max_channels = 128,
453 .max_channels = 128,
521 .max_channels = 128,
530 .max_channels = 128,
539 .max_channels = 128,
677 .max_channels = 128,
725 .max_channels
[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/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
[all...]
H A 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()
720 if (num_channels > st->info->max_channels) { in ads131e08_alloc_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()
[all...]
/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()
[all...]
/linux/drivers/leds/flash/
H A 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()
856 flash_data->max_channels = 3; in qcom_flash_led_probe()
863 flash_data->max_channels = 4; in qcom_flash_led_probe()
895 if (count == 0 || count > flash_data->max_channels) { in qcom_flash_led_probe()
896 dev_err(dev, "No child or child count exceeds %d\n", flash_data->max_channels); in qcom_flash_led_probe()
/linux/sound/pci/echoaudio/
H A Dechoaudio.c256 signed char max_channels) in pcm_open() argument
263 if (max_channels <= 0) in pcm_open()
276 dev_dbg(chip->card->dev, "max_channels=%d\n", max_channels); in pcm_open()
279 for (i = 0; channels_list[i] <= max_channels; i++); in pcm_open()
281 if (pipe->hw.channels_max > max_channels) in pcm_open()
282 pipe->hw.channels_max = max_channels; in pcm_open()
380 int max_channels, err; in pcm_analog_out_open() local
383 max_channels = num_pipes_out(chip); in pcm_analog_out_open()
385 max_channels in pcm_analog_out_open()
415 int err, max_channels; pcm_digital_in_open() local
454 int err, max_channels; pcm_digital_out_open() local
[all...]
/linux/drivers/media/pci/tw686x/
H A 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()
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()
H A Dtw686x-video.c307 channels = max_channels(dev); in tw686x_sg_setup()
316 sg_table_size = max_channels(dev) * TW686X_SG_TABLE_SIZE; in tw686x_sg_setup()
1091 for_each_set_bit(ch, &requests, max_channels(dev)) { in tw686x_video_irq()
1147 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_video_free()
1183 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_video_init()
1190 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_video_init()
1290 for (ch = 0; ch < max_channels(dev); ch++) in tw686x_video_init()
1297 if (max_channels(dev) > 4) { in tw686x_video_init()
/linux/drivers/net/can/rcar/
H A Drcar_canfd.c456 u8 max_channels; member
629 .max_channels = 2,
646 .max_channels = 8,
663 .max_channels = 2,
680 .max_channels = 6,
782 gpriv->info->max_channels) in rcar_canfd_set_mode()
830 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->info->max_channels) { in rcar_canfd_reset_controller()
870 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->info->max_channels) { in rcar_canfd_configure_controller()
1241 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->info->max_channels) in rcar_canfd_global_err_interrupt()
1273 for_each_set_bit(ch, &gpriv->channels_mask, gpriv->info->max_channels) in rcar_canfd_global_receive_fifo_interrupt()
[all...]
/linux/drivers/iio/proximity/
H A 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/sound/pci/
H A Datiixp.c263 int max_channels; /* max. channels for PCM out */ member
1081 substream->runtime->hw.channels_max = chip->max_channels; in snd_atiixp_playback_open()
1082 if (chip->max_channels > 2) in snd_atiixp_playback_open()
1258 chip->max_channels = 2; in snd_atiixp_pcm_new()
1261 chip->max_channels = 6; in snd_atiixp_pcm_new()
1263 chip->max_channels = 4; in snd_atiixp_pcm_new()
1281 snd_pcm_alt_chmaps, chip->max_channels, 0, in snd_atiixp_pcm_new()

1234