/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() 261 sizeof(*pdata) + nchannels * sizeof(*ch), in gsc_hwmon_get_devtree_pdata() 267 pdata->nchannels = nchannels; in gsc_hwmon_get_devtree_pdata() 341 for (i = 0, i_in = 0, i_temp = 0, i_fan = 0; i < hwmon->pdata->nchannels; i++) { in gsc_hwmon_probe()
|
/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_of_xlate() 425 for (i = 0; i < adc->nchannels; i++) { in adc7_of_xlate() 813 adc->nchannels = of_get_available_child_count(node); in adc5_get_dt_data() 814 if (!adc->nchannels) in adc5_get_dt_data() 817 adc->iio_chans = devm_kcalloc(adc->dev, adc->nchannels, in adc5_get_dt_data() 822 adc->chan_props = devm_kcalloc(adc->dev, adc->nchannels, in adc5_get_dt_data() 911 indio_dev->num_channels = adc->nchannels; in adc5_probe()
|
D | qcom-spmi-vadc.c | 115 unsigned int nchannels; member 291 for (i = 0; i < vadc->nchannels; i++) in vadc_get_channel() 490 for (i = 0; i < vadc->nchannels; i++) in vadc_of_xlate() 743 vadc->nchannels = of_get_available_child_count(node); in vadc_get_dt_data() 744 if (!vadc->nchannels) in vadc_get_dt_data() 747 vadc->iio_chans = devm_kcalloc(vadc->dev, vadc->nchannels, in vadc_get_dt_data() 752 vadc->chan_props = devm_kcalloc(vadc->dev, vadc->nchannels, in vadc_get_dt_data() 913 indio_dev->num_channels = vadc->nchannels; in vadc_probe()
|
/drivers/thermal/qcom/ |
D | qcom-spmi-adc-tm5.c | 135 unsigned int nchannels; member 182 for (i = 0; i < chip->nchannels; i++) { in adc_tm5_isr() 354 for (i = 0; i < adc_tm->nchannels; i++) { in adc_tm5_register_tzd() 391 for (i = 0; i < chip->nchannels; i++) { in adc_tm5_init() 505 adc_tm->nchannels = of_get_available_child_count(node); in adc_tm5_get_dt_data() 506 if (!adc_tm->nchannels) in adc_tm5_get_dt_data() 509 adc_tm->channels = devm_kcalloc(dev, adc_tm->nchannels, in adc_tm5_get_dt_data()
|
/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()
|
/drivers/net/can/usb/kvaser_usb/ |
D | kvaser_usb_leaf.c | 129 u8 nchannels; member 755 dev->nchannels = cmd.u.cardinfo.nchannels; in kvaser_usb_leaf_get_card_info() 756 if (dev->nchannels > KVASER_USB_MAX_NET_DEVICES || in kvaser_usb_leaf_get_card_info() 758 dev->nchannels > MAX_USBCAN_NET_DEVICES)) in kvaser_usb_leaf_get_card_info() 809 for (i = 0; i < dev->nchannels; i++) { in kvaser_usb_leaf_get_single_capability() 886 if (channel >= dev->nchannels) { in kvaser_usb_leaf_tx_acknowledge() 1042 if (es->channel >= dev->nchannels) { in kvaser_usb_leaf_rx_error() 1151 if (channel >= dev->nchannels) { in kvaser_usb_leaf_usbcan_conditionally_rx_error() 1205 if (dev->nchannels == MAX_USBCAN_NET_DEVICES) { in kvaser_usb_leaf_usbcan_rx_error() 1286 if (channel >= dev->nchannels) { in kvaser_usb_leaf_rx_can_msg() [all …]
|
D | kvaser_usb_core.c | 356 for (i = 0; i < dev->nchannels; i++) { in kvaser_usb_read_bulk_callback() 495 for (i = 0; i < dev->nchannels; i++) { in kvaser_usb_unlink_all_urbs() 761 for (i = 0; i < dev->nchannels; i++) { in kvaser_usb_remove_interfaces() 770 for (i = 0; i < dev->nchannels; i++) { in kvaser_usb_remove_interfaces() 951 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() 1901 dev->nchannels = cmd.card_info.nchannels; in kvaser_usb_hydra_get_card_info() 1902 if (dev->nchannels > KVASER_USB_MAX_NET_DEVICES) in kvaser_usb_hydra_get_card_info()
|
/drivers/net/wan/ |
D | cosa.c | 136 int nchannels; /* # of channels on this card */ member 397 for (i = 0; i < cosa->nchannels; i++) { in cosa_exit() 524 cosa->nchannels = 2; /* FIXME: how to determine this? */ in cosa_probe() 543 cosa->chan = kcalloc(cosa->nchannels, sizeof(struct channel_data), GFP_KERNEL); in cosa_probe() 549 for (i = 0; i < cosa->nchannels; i++) { in cosa_probe() 585 cosa->datareg, cosa->irq, cosa->dma, cosa->nchannels); in cosa_probe() 931 if (n >= cosa->nchannels) { in cosa_open() 1155 return cosa->nchannels; in cosa_ioctl_common() 1690 if (cosa->txchan >= cosa->nchannels) in tx_interrupt() 1698 if (i > cosa->nchannels) { in tx_interrupt() [all …]
|
/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 | 439 part->nchannels = XPC_MAX_NCHANNELS; in xpc_setup_ch_structures() 444 for (ch_number = 0; ch_number < part->nchannels; ch_number++) { in xpc_setup_ch_structures()
|
D | xpc.h | 497 u8 nchannels; /* #of defined channels supported */ member
|
D | xpc_uv.c | 1021 for (ch_number = 0; ch_number < part->nchannels; ch_number++) { in xpc_setup_ch_structures_uv() 1420 if (unlikely(ch_number >= part->nchannels)) { in xpc_handle_notify_mq_msg_uv()
|
/drivers/atm/ |
D | firestream.c | 789 if (channo < dev->nchannels) in process_incoming() 1774 dev->nchannels = FS50_NR_CHANNELS; in fs_init() 1792 dev->nchannels = FS155_NR_CHANNELS; in fs_init() 1794 dev->atm_vccs = kcalloc (dev->nchannels, sizeof (struct atm_vcc *), in fs_init() 1797 dev->atm_vccs, dev->nchannels * sizeof (struct atm_vcc *)); in fs_init() 1805 dev->tx_inuse = kzalloc (dev->nchannels / 8 /* bits/byte */ , GFP_KERNEL); in fs_init() 1807 dev->atm_vccs, dev->nchannels / 8); in fs_init() 1961 for (i=0;i < dev->nchannels;i++) { in firestream_remove_one()
|
D | firestream.h | 472 int nchannels; member
|
/drivers/scsi/megaraid/ |
D | mbox_defs.h | 336 uint8_t nchannels; member 510 uint8_t nchannels; member
|
D | megaraid_mbox.c | 2950 adapter->max_channel = pinfo->nchannels; in megaraid_mbox_product_info()
|
/drivers/scsi/ |
D | megaraid.h | 236 u8 nchannels; /* Number of SCSI Channels detected */ member 333 u8 nchannels; /* Number of channels on HBA */ member
|
D | megaraid.c | 284 adapter->product_info.nchannels + NVIRT_CHAN -1; in mega_query_adapter() 551 adapter->product_info.nchannels; in mega_build_cmd() 1779 product_info->nchannels = inquiry->adapter_info.nchannels; in mega_8_to_40ld() 2085 adapter->numldrv, adapter->product_info.nchannels); in proc_show_config() 2369 max_channels = adapter->product_info.nchannels; in proc_show_pdrv() 3637 for( i = 0; i < adapter->product_info.nchannels; i++ ) { in mega_enum_raid_scsi() 4379 j = adapter->product_info.nchannels; in megaraid_probe_one()
|
/drivers/iio/dac/ |
D | ad5064.c | 450 #define LTC2631_INFO(vref, pchannels, nchannels) \ argument 455 .num_channels = nchannels, \
|
/drivers/staging/media/tegra-video/ |
D | vi.c | 1328 unsigned int nchannels = vi->soc->vi_max_channels; in tegra_vi_tpg_channels_alloc() local 1331 for (port_num = 0; port_num < nchannels; port_num++) { in tegra_vi_tpg_channels_alloc()
|