| /linux/drivers/phy/ |
| H A D | phy-can-transceiver.c | 34 int num_ch; member 35 struct can_transceiver_phy can_transceiver_phy[] __counted_by(num_ch); 145 if (priv->num_ch == 1) in can_transceiver_phy_xlate() 152 if (idx >= priv->num_ch) in can_transceiver_phy_xlate() 172 int err, i, num_ch = 1; in can_transceiver_phy_probe() local 177 num_ch = 2; in can_transceiver_phy_probe() 179 priv = devm_kzalloc(dev, struct_size(priv, can_transceiver_phy, num_ch), GFP_KERNEL); in can_transceiver_phy_probe() 183 priv->num_ch = num_ch; in can_transceiver_phy_probe() 196 for (i = 0; i < num_ch; i++) { in can_transceiver_phy_probe()
|
| /linux/sound/soc/tegra/ |
| H A D | tegra210_admaif.c | 122 unsigned int num_ch = admaif->soc_data->num_ch; in tegra_admaif_wr_reg() local 127 unsigned int rx_max = rx_base + (num_ch * ch_stride); in tegra_admaif_wr_reg() 128 unsigned int tx_max = tx_base + (num_ch * ch_stride); in tegra_admaif_wr_reg() 156 unsigned int num_ch = admaif->soc_data->num_ch; in tegra_admaif_rd_reg() local 161 unsigned int rx_max = rx_base + (num_ch * ch_stride); in tegra_admaif_rd_reg() 162 unsigned int tx_max = tx_base + (num_ch * ch_stride); in tegra_admaif_rd_reg() 200 unsigned int num_ch = admaif->soc_data->num_ch; in tegra_admaif_volatile_reg() local [all...] |
| H A D | tegra_isomgr_bw.c | 100 adma_isomgr->max_pcm_device = admaif->soc_data->num_ch; in tegra_isomgr_adma_register()
|
| H A D | tegra210_admaif.h | 227 unsigned int num_ch; member
|
| /linux/drivers/iio/pressure/ |
| H A D | st_pressure_core.c | 237 .num_ch = ARRAY_SIZE(st_press_1_channels), 310 .num_ch = ARRAY_SIZE(st_press_lps001wp_channels), 362 .num_ch = ARRAY_SIZE(st_press_1_channels), 431 .num_ch = ARRAY_SIZE(st_press_lps22hb_channels), 498 .num_ch = ARRAY_SIZE(st_press_lps22hb_channels), 567 .num_ch = ARRAY_SIZE(st_press_lps22hb_channels), 763 press_data->num_data_channels = press_data->sensor_settings->num_ch - 1; in st_press_common_probe() 765 indio_dev->num_channels = press_data->sensor_settings->num_ch; in st_press_common_probe()
|
| /linux/sound/hda/core/ |
| H A D | intel-nhlt.c | 240 nhlt_get_specific_cfg(struct device *dev, struct nhlt_fmt *fmt, u8 num_ch, in nhlt_get_specific_cfg() argument 262 if (wfmt->channels == num_ch && wfmt->samples_per_sec == rate && in nhlt_get_specific_cfg() 292 u8 num_ch, u32 rate, u8 dir, u8 dev_type) in intel_nhlt_get_endpoint_blob() argument 321 num_ch, bps, rate); in intel_nhlt_get_endpoint_blob() 324 dev_dbg(dev, " ch=%d fmt=%d/%d rate=%d\n", num_ch, vbps, bps, rate); in intel_nhlt_get_endpoint_blob() 334 cfg = nhlt_get_specific_cfg(dev, fmt, num_ch, rate, in intel_nhlt_get_endpoint_blob()
|
| /linux/drivers/iio/adc/ |
| H A D | stm32-dfsdm-adc.c | 1572 int num_ch = indio_dev->num_channels; in stm32_dfsdm_chan_init() local 1576 for (chan_idx = 0; chan_idx < num_ch; chan_idx++) { in stm32_dfsdm_chan_init() 1612 int num_ch, ret; in stm32_dfsdm_audio_init() local 1615 num_ch = of_property_count_u32_elems(indio_dev->dev.of_node, "st,adc-channels"); in stm32_dfsdm_audio_init() 1616 if (num_ch == 1) in stm32_dfsdm_audio_init() 1648 int num_ch, ret; in stm32_dfsdm_adc_init() local 1656 num_ch = device_get_child_node_count(&indio_dev->dev); in stm32_dfsdm_adc_init() 1657 if (!num_ch) { in stm32_dfsdm_adc_init() 1659 num_ch = of_property_count_u32_elems(indio_dev->dev.of_node, "st,adc-channels"); in stm32_dfsdm_adc_init() 1660 if (num_ch < 0) { in stm32_dfsdm_adc_init() [all …]
|
| H A D | max11410.c | 702 unsigned int num_ch; in max11410_parse_channels() local 706 num_ch = device_get_child_node_count(dev); in max11410_parse_channels() 707 if (num_ch == 0) in max11410_parse_channels() 712 num_ch++; in max11410_parse_channels() 713 channels = devm_kcalloc(dev, num_ch, sizeof(*channels), GFP_KERNEL); in max11410_parse_channels() 717 st->channels = devm_kcalloc(dev, num_ch, sizeof(*st->channels), in max11410_parse_channels()
|
| H A D | mcp3564.c | 1002 unsigned int num_ch; in mcp3564_parse_fw_children() local 1008 num_ch = device_get_child_node_count(dev); in mcp3564_parse_fw_children() 1009 if (num_ch == 0) in mcp3564_parse_fw_children() 1014 num_ch += 2; in mcp3564_parse_fw_children() 1016 if (num_ch > adc->chip_info->num_channels) in mcp3564_parse_fw_children() 1018 num_ch, adc->chip_info->num_channels); in mcp3564_parse_fw_children() 1020 channels = devm_kcalloc(dev, num_ch, sizeof(*channels), GFP_KERNEL); in mcp3564_parse_fw_children()
|
| /linux/sound/soc/intel/atom/sst/ |
| H A D | sst_stream.c | 32 int i, num_ch, str_id; in sst_alloc_stream_mrfld() local 61 num_ch = sst_get_num_channel(str_params); in sst_alloc_stream_mrfld() 64 if (i < num_ch) in sst_alloc_stream_mrfld() 74 sst_drv_ctx->streams[str_id].num_ch = num_ch; in sst_alloc_stream_mrfld()
|
| H A D | sst.h | 207 unsigned int num_ch; member
|
| /linux/drivers/dma/dw-edma/ |
| H A D | dw-edma-v0-core.c | 174 u32 num_ch; in dw_edma_v0_core_ch_count() local 177 num_ch = FIELD_GET(EDMA_V0_WRITE_CH_COUNT_MASK, in dw_edma_v0_core_ch_count() 180 num_ch = FIELD_GET(EDMA_V0_READ_CH_COUNT_MASK, in dw_edma_v0_core_ch_count() 183 if (num_ch > EDMA_V0_MAX_NR_CH) in dw_edma_v0_core_ch_count() 184 num_ch = EDMA_V0_MAX_NR_CH; in dw_edma_v0_core_ch_count() 186 return (u16)num_ch; in dw_edma_v0_core_ch_count()
|
| /linux/include/sound/ |
| H A D | intel-nhlt.h | 144 u8 num_ch, u32 rate, u8 dir, u8 dev_type); 185 u8 num_ch, u32 rate, u8 dir, u8 dev_type) in intel_nhlt_get_endpoint_blob() argument
|
| /linux/drivers/iio/dac/ |
| H A D | ad3552r.c | 29 unsigned int num_ch; member 492 dac->num_ch = device_get_child_node_count(dev); in ad3552r_configure_device() 493 if (!dac->num_ch) { in ad3552r_configure_device() 572 dac->num_ch = cnt; in ad3552r_configure_device() 642 indio_dev->num_channels = dac->num_ch; in ad3552r_probe()
|
| /linux/drivers/input/misc/ |
| H A D | iqs626a.c | 360 int num_ch; member 368 .num_ch = 1, 379 .num_ch = IQS626_NUM_CH_TP_2, 387 .num_ch = IQS626_NUM_CH_TP_3, 395 .num_ch = 1, 408 .num_ch = 1, 421 .num_ch = 1, 434 .num_ch = 1, 769 for (i = 0; i < iqs626_channels[ch_id].num_ch; i++) { in iqs626_parse_trackpad()
|
| /linux/sound/x86/ |
| H A D | intel_hdmi_lpe_audio.h | 110 u32 num_ch:3; member
|
| /linux/include/linux/iio/common/ |
| H A D | st_sensors.h | 209 int num_ch; member
|
| /linux/drivers/net/wireless/ath/ath6kl/ |
| H A D | wmi.h | 863 u8 num_ch; member 889 u8 num_ch; member 1373 u8 num_ch; member
|
| H A D | wmi.c | 1977 sc->num_ch = num_chan; in ath6kl_wmi_startscan_cmd() 2034 sc->num_ch = num_chan; in ath6kl_wmi_beginscan_cmd()
|
| /linux/drivers/soundwire/ |
| H A D | intel.c | 596 unsigned int *num_ch) in intel_pdi_get_ch_update() argument 606 *num_ch = ch_count; in intel_pdi_get_ch_update()
|
| H A D | intel_ace2x.c | 965 unsigned int *num_ch) in intel_pdi_get_ch_update() argument 976 *num_ch = ch_count; in intel_pdi_get_ch_update()
|
| /linux/drivers/net/wireless/mediatek/mt76/ |
| H A D | mt76_connac_mcu.c | 2187 int j, msg_len, num_ch; in mt76_connac_mcu_rate_txpower_band() local 2190 num_ch = i == batch_size - 1 ? n_chan - i * batch_len : batch_len; in mt76_connac_mcu_rate_txpower_band() 2191 msg_len = sizeof(tx_power_tlv) + num_ch * sizeof(sku_tlbv); in mt76_connac_mcu_rate_txpower_band() 2202 tx_power_tlv.n_chan = num_ch; in mt76_connac_mcu_rate_txpower_band() 2216 for (j = 0; j < num_ch; j++, idx++) { in mt76_connac_mcu_rate_txpower_band()
|