Home
last modified time | relevance | path

Searched refs:nchannels (Results 1 – 25 of 30) sorted by relevance

12

/Linux-v6.6/sound/core/oss/
Dcopy.c33 unsigned int nchannels; in copy_transfer() local
39 nchannels = plugin->src_format.channels; in copy_transfer()
40 for (channel = 0; channel < nchannels; channel++) { in copy_transfer()
Dmulaw.c175 int nchannels = plugin->src_format.channels; in mulaw_decode() local
176 for (channel = 0; channel < nchannels; ++channel) { in mulaw_decode()
221 int nchannels = plugin->src_format.channels; in mulaw_encode() local
222 for (channel = 0; channel < nchannels; ++channel) { in mulaw_encode()
Dlinear.c62 int nchannels = plugin->src_format.channels; in convert() local
63 for (channel = 0; channel < nchannels; ++channel) { in convert()
Dpcm_plugin.c565 int width, nchannels, channel; in snd_pcm_plug_client_channels_buf() local
582 nchannels = format->channels; in snd_pcm_plug_client_channels_buf()
586 for (channel = 0; channel < nchannels; channel++, v++) { in snd_pcm_plug_client_channels_buf()
592 v->area.step = nchannels * width; in snd_pcm_plug_client_channels_buf()
/Linux-v6.6/drivers/hwmon/
Dgsc-hwmon.c254 int nchannels; in gsc_hwmon_get_devtree_pdata() local
256 nchannels = device_get_child_node_count(dev); in gsc_hwmon_get_devtree_pdata()
257 if (nchannels == 0) in gsc_hwmon_get_devtree_pdata()
260 pdata = devm_kzalloc(dev, struct_size(pdata, channels, nchannels), in gsc_hwmon_get_devtree_pdata()
264 pdata->nchannels = nchannels; in gsc_hwmon_get_devtree_pdata()
342 for (i = 0, i_in = 0, i_temp = 0, i_fan = 0; i < hwmon->pdata->nchannels; i++) { in gsc_hwmon_probe()
/Linux-v6.6/drivers/iio/adc/
Dtwl6030-gpadc.c116 const int nchannels; member
442 i = twl6030_gpadc_lookup(ideal, channel, pdata->nchannels); in twl6030_channel_calibrated()
454 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); in twl6030_gpadc_make_correction()
500 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); in twl6030_gpadc_get_processed()
578 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); in twl6030_calibrate_channel()
848 .nchannels = TWL6030_GPADC_USED_CHANNELS,
857 .nchannels = TWL6032_GPADC_USED_CHANNELS,
900 pdata->nchannels, in twl6030_gpadc_probe()
966 indio_dev->num_channels = pdata->nchannels; in twl6030_gpadc_probe()
Dqcom-spmi-adc5.c149 unsigned int nchannels; member
412 for (i = 0; i < adc->nchannels; i++) in adc5_fwnode_xlate()
425 for (i = 0; i < adc->nchannels; i++) { in adc7_fwnode_xlate()
832 adc->nchannels = device_get_child_node_count(adc->dev); in adc5_get_fw_data()
833 if (!adc->nchannels) in adc5_get_fw_data()
836 adc->iio_chans = devm_kcalloc(adc->dev, adc->nchannels, in adc5_get_fw_data()
841 adc->chan_props = devm_kcalloc(adc->dev, adc->nchannels, in adc5_get_fw_data()
927 indio_dev->num_channels = adc->nchannels; in adc5_probe()
Dqcom-spmi-vadc.c118 unsigned int nchannels; member
294 for (i = 0; i < vadc->nchannels; i++) in vadc_get_channel()
493 for (i = 0; i < vadc->nchannels; i++) in vadc_fwnode_xlate()
761 vadc->nchannels = device_get_child_node_count(vadc->dev); in vadc_get_fw_data()
762 if (!vadc->nchannels) in vadc_get_fw_data()
765 vadc->iio_chans = devm_kcalloc(vadc->dev, vadc->nchannels, in vadc_get_fw_data()
770 vadc->chan_props = devm_kcalloc(vadc->dev, vadc->nchannels, in vadc_get_fw_data()
930 indio_dev->num_channels = vadc->nchannels; in vadc_probe()
/Linux-v6.6/drivers/clk/
Dclk-apple-nco.c264 unsigned int nchannels; in applnco_probe() local
273 nchannels = (resource_size(res) - NCO_CHANNEL_REGSIZE) in applnco_probe()
277 nchannels), GFP_KERNEL); in applnco_probe()
280 onecell_data->num = nchannels; in applnco_probe()
287 for (i = 0; i < nchannels; i++) { in applnco_probe()
/Linux-v6.6/arch/mips/lantiq/xway/
Ddma.c242 unsigned int id, nchannels; in ltq_dma_init() local
264 nchannels = ((id & DMA_ID_CHNR) >> 20); in ltq_dma_init()
265 for (i = 0; i < nchannels; i++) { in ltq_dma_init()
274 id & 0x1f, (id >> 16) & 0xf, nchannels); in ltq_dma_init()
/Linux-v6.6/drivers/dma/
Dapple-admac.c130 int nchannels; member
588 if (index >= ad->nchannels) { in admac_dma_of_xlate()
690 for (i = 0; i < ad->nchannels; i += 2) { in admac_interrupt()
696 for (i = 1; i < ad->nchannels; i += 2) { in admac_interrupt()
803 int nchannels; in admac_probe() local
806 err = of_property_read_u32(np, "dma-channels", &nchannels); in admac_probe()
807 if (err || nchannels > NCHANNELS_MAX) { in admac_probe()
812 ad = devm_kzalloc(&pdev->dev, struct_size(ad, channels, nchannels), GFP_KERNEL); in admac_probe()
818 ad->nchannels = nchannels; in admac_probe()
873 for (i = 0; i < nchannels; i++) { in admac_probe()
/Linux-v6.6/drivers/thermal/qcom/
Dqcom-spmi-adc-tm5.c234 unsigned int nchannels; member
274 for (i = 0; i < chip->nchannels; i++) { in adc_tm5_isr()
335 for (i = 0; i < chip->nchannels; i++) { in adc_tm5_gen2_isr()
673 for (i = 0; i < adc_tm->nchannels; i++) { in adc_tm5_register_tzd()
703 for (i = 0; i < chip->nchannels; i++) { in adc_tm_hc_init()
733 for (i = 0; i < chip->nchannels; i++) { in adc_tm5_init()
768 for (i = 0; i < chip->nchannels; i++) { in adc_tm5_gen2_init()
949 adc_tm->nchannels = of_get_available_child_count(node); in adc_tm5_get_dt_data()
950 if (!adc_tm->nchannels) in adc_tm5_get_dt_data()
953 adc_tm->channels = devm_kcalloc(dev, adc_tm->nchannels, in adc_tm5_get_dt_data()
/Linux-v6.6/drivers/gpu/drm/msm/hdmi/
Dhdmi_audio.c11 static int nchannels[] = { 2, 4, 6, 8 }; variable
228 if (num_of_channels >= ARRAY_SIZE(nchannels)) in msm_hdmi_audio_info_setup()
232 audio->infoframe.channels = nchannels[num_of_channels]; in msm_hdmi_audio_info_setup()
/Linux-v6.6/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_leaf.c129 u8 nchannels; member
756 dev->nchannels = cmd.u.cardinfo.nchannels; in kvaser_usb_leaf_get_card_info()
757 if (dev->nchannels > KVASER_USB_MAX_NET_DEVICES || in kvaser_usb_leaf_get_card_info()
759 dev->nchannels > MAX_USBCAN_NET_DEVICES)) in kvaser_usb_leaf_get_card_info()
810 for (i = 0; i < dev->nchannels; i++) { in kvaser_usb_leaf_get_single_capability()
887 if (channel >= dev->nchannels) { in kvaser_usb_leaf_tx_acknowledge()
1057 if (es->channel >= dev->nchannels) { in kvaser_usb_leaf_rx_error()
1168 if (channel >= dev->nchannels) { in kvaser_usb_leaf_usbcan_conditionally_rx_error()
1222 if (dev->nchannels == MAX_USBCAN_NET_DEVICES) { in kvaser_usb_leaf_usbcan_rx_error()
1303 if (channel >= dev->nchannels) { in kvaser_usb_leaf_rx_can_msg()
[all …]
Dkvaser_usb_core.c353 for (i = 0; i < dev->nchannels; i++) { in kvaser_usb_read_bulk_callback()
492 for (i = 0; i < dev->nchannels; i++) { in kvaser_usb_unlink_all_urbs()
771 for (i = 0; i < dev->nchannels; i++) { in kvaser_usb_remove_interfaces()
780 for (i = 0; i < dev->nchannels; i++) { in kvaser_usb_remove_interfaces()
967 for (i = 0; i < dev->nchannels; i++) { in kvaser_usb_probe()
Dkvaser_usb.h102 unsigned int nchannels; member
Dkvaser_usb_hydra.c119 u8 nchannels; member
516 if (channel >= dev->nchannels) in kvaser_usb_hydra_net_priv_from_cmd()
794 for (i = 0; i < dev->nchannels; i++) { in kvaser_usb_hydra_get_single_capability()
1902 dev->nchannels = cmd.card_info.nchannels; in kvaser_usb_hydra_get_card_info()
1903 if (dev->nchannels > KVASER_USB_MAX_NET_DEVICES) in kvaser_usb_hydra_get_card_info()
/Linux-v6.6/include/linux/platform_data/
Dgsc_hwmon.h39 int nchannels; member
/Linux-v6.6/drivers/misc/sgi-xp/
Dxpc_channel.c563 for (ch_number = 0; ch_number < part->nchannels; ch_number++) { in xpc_process_sent_chctl_flags()
633 for (ch_number = 0; ch_number < part->nchannels; ch_number++) { in xpc_partition_going_down()
882 DBUG_ON(ch_number < 0 || ch_number >= part->nchannels); in xpc_initiate_send()
933 DBUG_ON(ch_number < 0 || ch_number >= part->nchannels); in xpc_initiate_send_notify()
1004 DBUG_ON(ch_number < 0 || ch_number >= part->nchannels); in xpc_initiate_received()
/Linux-v6.6/sound/soc/apple/
Dmca.c600 int nchannels = params_channels(params); in mca_fe_hw_params() local
602 if (nchannels > 2) { in mca_fe_hw_params()
607 if ((bclk_ratio % nchannels) != 0) { in mca_fe_hw_params()
609 bclk_ratio, nchannels); in mca_fe_hw_params()
613 tdm_slot_width = bclk_ratio / nchannels; in mca_fe_hw_params()
615 if (tdm_slot_width > 32 && nchannels == 1) in mca_fe_hw_params()
/Linux-v6.6/drivers/scsi/megaraid/
Dmbox_defs.h336 uint8_t nchannels; member
510 uint8_t nchannels; member
/Linux-v6.6/drivers/gpu/drm/vc4/tests/
Dvc4_test_pv_muxing.c50 size_t nchannels; member
57 .nchannels = sizeof((unsigned int[]) { __VA_ARGS__ }) / \
75 for (j = 0; j < constraint->nchannels; j++) { in __check_encoder_constraints()
/Linux-v6.6/drivers/scsi/
Dmegaraid.h237 u8 nchannels; /* Number of SCSI Channels detected */ member
334 u8 nchannels; /* Number of channels on HBA */ member
Dmegaraid.c286 adapter->product_info.nchannels + NVIRT_CHAN -1; in mega_query_adapter()
549 adapter->product_info.nchannels; in mega_build_cmd()
1771 product_info->nchannels = inquiry->adapter_info.nchannels; in mega_8_to_40ld()
2077 adapter->numldrv, adapter->product_info.nchannels); in proc_show_config()
2361 max_channels = adapter->product_info.nchannels; in proc_show_pdrv()
3625 for( i = 0; i < adapter->product_info.nchannels; i++ ) { in mega_enum_raid_scsi()
4358 j = adapter->product_info.nchannels; in megaraid_probe_one()
/Linux-v6.6/drivers/iio/dac/
Dad5064.c450 #define LTC2631_INFO(vref, pchannels, nchannels) \ argument
455 .num_channels = nchannels, \

12