/linux-6.6.21/sound/core/oss/ |
D | copy.c | 33 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()
|
D | mulaw.c | 175 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()
|
D | linear.c | 62 int nchannels = plugin->src_format.channels; in convert() local 63 for (channel = 0; channel < nchannels; ++channel) { in convert()
|
D | pcm_plugin.c | 565 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-6.6.21/drivers/hwmon/ |
D | gsc-hwmon.c | 254 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-6.6.21/drivers/iio/adc/ |
D | twl6030-gpadc.c | 116 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()
|
D | qcom-spmi-adc5.c | 149 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()
|
D | qcom-spmi-vadc.c | 118 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-6.6.21/drivers/clk/ |
D | clk-apple-nco.c | 264 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-6.6.21/arch/mips/lantiq/xway/ |
D | dma.c | 242 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-6.6.21/drivers/dma/ |
D | apple-admac.c | 132 int nchannels; member 590 if (index >= ad->nchannels) { in admac_dma_of_xlate() 692 for (i = 0; i < ad->nchannels; i += 2) { in admac_interrupt() 698 for (i = 1; i < ad->nchannels; i += 2) { in admac_interrupt() 806 int nchannels; in admac_probe() local 809 err = of_property_read_u32(np, "dma-channels", &nchannels); in admac_probe() 810 if (err || nchannels > NCHANNELS_MAX) { in admac_probe() 815 ad = devm_kzalloc(&pdev->dev, struct_size(ad, channels, nchannels), GFP_KERNEL); in admac_probe() 821 ad->nchannels = nchannels; in admac_probe() 876 for (i = 0; i < nchannels; i++) { in admac_probe()
|
/linux-6.6.21/drivers/thermal/qcom/ |
D | qcom-spmi-adc-tm5.c | 234 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-6.6.21/drivers/gpu/drm/msm/hdmi/ |
D | hdmi_audio.c | 11 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-6.6.21/drivers/net/can/usb/kvaser_usb/ |
D | kvaser_usb_leaf.c | 129 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 …]
|
D | kvaser_usb_core.c | 353 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()
|
D | kvaser_usb.h | 102 unsigned int nchannels; member
|
D | kvaser_usb_hydra.c | 119 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-6.6.21/include/linux/platform_data/ |
D | gsc_hwmon.h | 39 int nchannels; member
|
/linux-6.6.21/drivers/misc/sgi-xp/ |
D | xpc_channel.c | 563 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()
|
D | xpc_main.c | 430 part->nchannels = XPC_MAX_NCHANNELS; in xpc_setup_ch_structures() 435 for (ch_number = 0; ch_number < part->nchannels; ch_number++) { in xpc_setup_ch_structures()
|
/linux-6.6.21/sound/soc/apple/ |
D | mca.c | 600 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-6.6.21/drivers/scsi/megaraid/ |
D | mbox_defs.h | 336 uint8_t nchannels; member 510 uint8_t nchannels; member
|
/linux-6.6.21/drivers/gpu/drm/vc4/tests/ |
D | vc4_test_pv_muxing.c | 50 size_t nchannels; member 57 .nchannels = sizeof((unsigned int[]) { __VA_ARGS__ }) / \ 75 for (j = 0; j < constraint->nchannels; j++) { in __check_encoder_constraints()
|
/linux-6.6.21/drivers/scsi/ |
D | megaraid.h | 237 u8 nchannels; /* Number of SCSI Channels detected */ member 334 u8 nchannels; /* Number of channels on HBA */ member
|
D | megaraid.c | 286 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()
|