/linux/sound/soc/tegra/ |
H A D | tegra210_admaif.c | 84 unsigned int num_ch = admaif->soc_data->num_ch; in tegra_admaif_wr_reg() local 89 unsigned int rx_max = rx_base + (num_ch * ch_stride); in tegra_admaif_wr_reg() 90 unsigned int tx_max = tx_base + (num_ch * ch_stride); in tegra_admaif_wr_reg() 118 unsigned int num_ch = admaif->soc_data->num_ch; in tegra_admaif_rd_reg() local 123 unsigned int rx_max = rx_base + (num_ch * ch_stride); in tegra_admaif_rd_reg() 124 unsigned int tx_max = tx_base + (num_ch * ch_stride); in tegra_admaif_rd_reg() 162 unsigned int num_ch = admaif->soc_data->num_ch; in tegra_admaif_volatile_reg() local 167 unsigned int rx_max = rx_base + (num_ch * ch_stride); in tegra_admaif_volatile_reg() 168 unsigned int tx_max = tx_base + (num_ch * ch_stride); in tegra_admaif_volatile_reg() 719 .num_ch = TEGRA210_ADMAIF_CHANNEL_COUNT, [all …]
|
H A D | tegra210_admaif.h | 150 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/ |
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 | 1559 int num_ch = indio_dev->num_channels; in stm32_dfsdm_chan_init() local 1563 for (chan_idx = 0; chan_idx < num_ch; chan_idx++) { in stm32_dfsdm_chan_init() 1599 int num_ch, ret; in stm32_dfsdm_audio_init() local 1602 num_ch = of_property_count_u32_elems(indio_dev->dev.of_node, "st,adc-channels"); in stm32_dfsdm_audio_init() 1603 if (num_ch == 1) in stm32_dfsdm_audio_init() 1635 int num_ch, ret; in stm32_dfsdm_adc_init() local 1643 num_ch = device_get_child_node_count(&indio_dev->dev); in stm32_dfsdm_adc_init() 1644 if (!num_ch) { in stm32_dfsdm_adc_init() 1646 num_ch = of_property_count_u32_elems(indio_dev->dev.of_node, "st,adc-channels"); in stm32_dfsdm_adc_init() 1647 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
|
H A D | sst_drv_interface.c | 362 (u64)stream->num_ch * SST_GET_BYTES_PER_SAMPLE(24)); in sst_cdev_tstamp()
|
/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/hwmon/ |
H A D | mr75203.c | 689 int i, ret, num_ch; in pvt_get_pre_scaler() local 697 num_ch = device_property_count_u8(dev, "moortec,vm-pre-scaler-x2"); in pvt_get_pre_scaler() 698 if (num_ch <= 0) in pvt_get_pre_scaler() 701 pre_scaler_ch_list = kcalloc(num_ch, sizeof(*pre_scaler_ch_list), in pvt_get_pre_scaler() 708 pre_scaler_ch_list, num_ch); in pvt_get_pre_scaler() 712 for (i = 0; i < num_ch; i++) { in pvt_get_pre_scaler()
|
/linux/drivers/iio/dac/ |
H A D | ad3552r.c | 29 unsigned int num_ch; member 487 dac->num_ch = device_get_child_node_count(dev); in ad3552r_configure_device() 488 if (!dac->num_ch) { in ad3552r_configure_device() 567 dac->num_ch = cnt; in ad3552r_configure_device() 637 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
|
H A D | intel_hdmi_audio.c | 366 cfg_val.regx.num_ch = channels - 2; in had_init_audio_ctrl()
|
/linux/include/linux/iio/common/ |
H A D | st_sensors.h | 209 int num_ch; member
|
/linux/drivers/mailbox/ |
H A D | arm_mhuv2.c | 50 u32 num_ch : 7; member 976 mhu->windows = readl_relaxed_bitfield(&mhu->send->mhu_cfg, struct mhu_cfg_t, num_ch); in mhuv2_tx_init() 1030 mhu->windows = readl_relaxed_bitfield(&mhu->recv->mhu_cfg, struct mhu_cfg_t, num_ch); in mhuv2_rx_init()
|
/linux/drivers/soundwire/ |
H A D | intel_ace2x.c | 582 unsigned int *num_ch) in intel_pdi_get_ch_update() argument 593 *num_ch = ch_count; in intel_pdi_get_ch_update()
|
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()
|
/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76_connac_mcu.c | 2118 int j, msg_len, num_ch; in mt76_connac_mcu_rate_txpower_band() local 2121 num_ch = i == batch_size - 1 ? n_chan - i * batch_len : batch_len; in mt76_connac_mcu_rate_txpower_band() 2122 msg_len = sizeof(tx_power_tlv) + num_ch * sizeof(sku_tlbv); in mt76_connac_mcu_rate_txpower_band() 2133 tx_power_tlv.n_chan = num_ch; in mt76_connac_mcu_rate_txpower_band() 2147 for (j = 0; j < num_ch; j++, idx++) { in mt76_connac_mcu_rate_txpower_band()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7925/ |
H A D | mcu.c | 3382 int j, msg_len, num_ch; in mt7925_mcu_rate_txpower_band() local 3385 num_ch = i == batch_size - 1 ? n_chan % batch_len : batch_len; in mt7925_mcu_rate_txpower_band() 3386 msg_len = sizeof(*tx_power_tlv) + num_ch * sku_len; in mt7925_mcu_rate_txpower_band() 3398 tx_power_tlv->n_chan = num_ch; in mt7925_mcu_rate_txpower_band() 3414 for (j = 0; j < num_ch; j++, idx++) { in mt7925_mcu_rate_txpower_band()
|
/linux/drivers/net/wireless/ath/ath6kl/ |
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()
|