Home
last modified time | relevance | path

Searched refs:num_chan (Results 1 – 25 of 35) sorted by relevance

12

/linux-6.1.9/drivers/i2c/muxes/
Di2c-demux-pinctrl.c30 int num_chan; member
169 for (i = 0; i < priv->num_chan && count < PAGE_SIZE; i++) in available_masters_show()
172 i == priv->num_chan - 1 ? '\n' : ' '); in available_masters_show()
199 if (val >= priv->num_chan) in current_master_store()
213 int num_chan, i, j, err; in i2c_demux_pinctrl_probe() local
215 num_chan = of_count_phandle_with_args(np, "i2c-parent", NULL); in i2c_demux_pinctrl_probe()
216 if (num_chan < 2) { in i2c_demux_pinctrl_probe()
221 priv = devm_kzalloc(&pdev->dev, struct_size(priv, chan, num_chan), in i2c_demux_pinctrl_probe()
224 props = devm_kcalloc(&pdev->dev, num_chan, sizeof(*props), GFP_KERNEL); in i2c_demux_pinctrl_probe()
233 for (i = 0; i < num_chan; i++) { in i2c_demux_pinctrl_probe()
[all …]
/linux-6.1.9/drivers/iio/adc/
Dstmpe-adc.c261 int num_chan = 0; in stmpe_adc_probe() local
315 stmpe_adc_voltage_chan(&info->stmpe_adc_iio_channels[num_chan], i); in stmpe_adc_probe()
316 num_chan++; in stmpe_adc_probe()
318 stmpe_adc_temp_chan(&info->stmpe_adc_iio_channels[num_chan], i); in stmpe_adc_probe()
319 num_chan++; in stmpe_adc_probe()
321 indio_dev->num_channels = num_chan; in stmpe_adc_probe()
/linux-6.1.9/drivers/net/wireless/ath/ath9k/
Dar9003_aic.c457 int i, num_chan; in ar9003_aic_cal_continue() local
459 num_chan = MS(mci_hw->config, ATH_MCI_CONFIG_AIC_CAL_NUM_CHAN); in ar9003_aic_cal_continue()
461 if (!num_chan) { in ar9003_aic_cal_continue()
505 if ((aic->aic_caled_chan >= num_chan) || cal_once) { in ar9003_aic_cal_continue()
585 int num_chan; in ar9003_aic_calibration_single() local
587 num_chan = MS(mci_hw->config, ATH_MCI_CONFIG_AIC_CAL_NUM_CHAN); in ar9003_aic_calibration_single()
589 (void) ar9003_aic_cal_start(ah, num_chan); in ar9003_aic_calibration_single()
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_sdp.c103 rsp->num_chan = NIX_CHAN_SDP_NUM_CHANS; in rvu_mbox_handler_get_sdp_chan_info()
107 rsp->num_chan = rvu_read64(rvu, blkaddr, NIX_AF_CONST1) & 0xFFFUL; in rvu_mbox_handler_get_sdp_chan_info()
/linux-6.1.9/sound/soc/intel/atom/
Dsst-mfld-dsp.h311 u8 num_chan; /* 1=Mono, 2=Stereo */ member
322 u8 num_chan; /* 1=Mono, 2=Stereo */ member
335 u8 num_chan; /* 1=Mono, 2=Stereo*/ member
348 u8 num_chan; /* 1=Mono, 2=Stereo */ member
Dsst-mfld-platform-compress.c118 str_params.sparams.uc.mp3_params.num_chan = params->codec.ch_in; in sst_platform_compr_set_params()
125 str_params.sparams.uc.aac_params.num_chan = params->codec.ch_in; in sst_platform_compr_set_params()
Dsst-mfld-platform.h70 u8 num_chan; /* 1=Mono, 2=Stereo */ member
Dsst-mfld-platform-pcm.c145 param->uc.pcm_params.num_chan = (u8) substream->runtime->channels; in sst_fill_pcm_params()
/linux-6.1.9/drivers/dma/
Dpl330.c281 unsigned int num_chan:4; member
1594 pl330->dmac_tbd.reset_chan = (1 << pl330->pcfg.num_chan) - 1; in pl330_dotask()
1599 for (i = 0; i < pl330->pcfg.num_chan; i++) { in pl330_dotask()
1651 val = readl(regs + FSC) & ((1 << pl330->pcfg.num_chan) - 1); in pl330_update()
1655 while (i < pl330->pcfg.num_chan) { in pl330_update()
1766 chans = pl330->pcfg.num_chan; in pl330_request_channel()
1832 pl330->pcfg.num_chan = val; in read_dmac_config()
1879 int chans = pl330->pcfg.num_chan; in dmac_alloc_threads()
1910 int chans = pl330->pcfg.num_chan; in dmac_alloc_resources()
1993 for (i = 0; i < pl330->pcfg.num_chan; i++) { in dmac_free_threads()
[all …]
/linux-6.1.9/drivers/iio/light/
Dgp2ap002.c441 int num_chan; in gp2ap002_probe() local
598 num_chan = ARRAY_SIZE(gp2ap002_channels); in gp2ap002_probe()
600 num_chan--; in gp2ap002_probe()
601 indio_dev->num_channels = num_chan; in gp2ap002_probe()
/linux-6.1.9/drivers/mailbox/
Dmailbox-sti.c70 unsigned int num_chan; member
333 if (instance >= pdata->num_inst || channel >= pdata->num_chan) { in sti_mbox_xlate()
392 .num_chan = 32,
/linux-6.1.9/drivers/soc/ti/
Dknav_dma.c605 int ret, len, num_chan = 0; in dma_init() local
689 num_chan++; in dma_init()
694 num_chan++; in dma_init()
710 dma->name, num_chan, dma->max_rx_flow, in dma_init()
/linux-6.1.9/sound/soc/sunxi/
Dsun4i-i2s.c85 #define SUN4I_I2S_CHAN_SEL(num_chan) (((num_chan) - 1) << 0) argument
128 #define SUN8I_I2S_TX_CHAN_EN(num_chan) (((1 << num_chan) - 1) << 4) argument
139 #define SUN50I_H6_I2S_TX_CHAN_EN(num_chan) (((1 << num_chan) - 1)) argument
/linux-6.1.9/sound/soc/intel/atom/sst/
Dsst_drv_interface.c99 return str_param->sparams.uc.pcm_params.num_chan; in sst_get_num_channel()
101 return str_param->sparams.uc.mp3_params.num_chan; in sst_get_num_channel()
103 return str_param->sparams.uc.aac_params.num_chan; in sst_get_num_channel()
/linux-6.1.9/drivers/net/ethernet/ti/
Ddavinci_cpdma.h27 int num_chan; member
Ddavinci_cpdma.c170 #define num_chan params.num_chan macro
530 if (WARN_ON(ctlr->num_chan > CPDMA_MAX_CHANNELS)) in cpdma_ctlr_create()
531 ctlr->num_chan = CPDMA_MAX_CHANNELS; in cpdma_ctlr_create()
560 for (i = 0; i < ctlr->num_chan; i++) { in cpdma_ctlr_start()
885 if (__chan_linear(chan_num) >= ctlr->num_chan) in cpdma_chan_create()
/linux-6.1.9/drivers/input/misc/
Diqs7222.c1865 int num_chan = dev_desc->reg_grps[IQS7222_REG_GRP_CHAN].num_row; in iqs7222_parse_chan() local
1866 int ext_chan = rounddown(num_chan, 10); in iqs7222_parse_chan()
2061 int num_chan = dev_desc->reg_grps[IQS7222_REG_GRP_CHAN].num_row; in iqs7222_parse_sldr() local
2062 int ext_chan = rounddown(num_chan, 10); in iqs7222_parse_sldr()
2388 int num_chan = dev_desc->reg_grps[IQS7222_REG_GRP_CHAN].num_row; in iqs7222_report() local
2411 for (i = 0; i < num_chan; i++) { in iqs7222_report()
2425 int k = 2 + j * (num_chan > 16 ? 2 : 1); in iqs7222_report()
/linux-6.1.9/drivers/net/wireless/marvell/mwifiex/
Dsta_cmdresp.c1044 u16 num_chan = buf_len / 2; in mwifiex_create_custom_regdomain() local
1052 if (WARN_ON_ONCE(num_chan > NL80211_MAX_SUPP_REG_RULES)) in mwifiex_create_custom_regdomain()
1055 regd = kzalloc(struct_size(regd, reg_rules, num_chan), GFP_KERNEL); in mwifiex_create_custom_regdomain()
1059 for (idx = 0; idx < num_chan; idx++) { in mwifiex_create_custom_regdomain()
Dscan.c2494 u8 i, num_chan; in mwifiex_update_chan_statistics() local
2500 num_chan = le16_to_cpu(tlv_stat->header.len) / in mwifiex_update_chan_statistics()
2503 for (i = 0 ; i < num_chan; i++) { in mwifiex_update_chan_statistics()
/linux-6.1.9/drivers/net/wireless/ath/ath6kl/
Dwmi.c1955 s8 num_chan, u16 *ch_list) in ath6kl_wmi_startscan_cmd() argument
1964 if (num_chan > WMI_MAX_CHANNELS) in ath6kl_wmi_startscan_cmd()
1967 skb = ath6kl_wmi_get_new_buf(struct_size(sc, ch_list, num_chan)); in ath6kl_wmi_startscan_cmd()
1977 sc->num_ch = num_chan; in ath6kl_wmi_startscan_cmd()
1979 for (i = 0; i < num_chan; i++) in ath6kl_wmi_startscan_cmd()
1997 s8 num_chan, u16 *ch_list, u32 no_cck, u32 *rates) in ath6kl_wmi_beginscan_cmd() argument
2014 num_chan, ch_list); in ath6kl_wmi_beginscan_cmd()
2020 if (num_chan > WMI_MAX_CHANNELS) in ath6kl_wmi_beginscan_cmd()
2023 skb = ath6kl_wmi_get_new_buf(struct_size(sc, ch_list, num_chan)); in ath6kl_wmi_beginscan_cmd()
2034 sc->num_ch = num_chan; in ath6kl_wmi_beginscan_cmd()
[all …]
/linux-6.1.9/drivers/crypto/bcm/
Dcipher.h420 u32 num_chan; member
Dcipher.c110 return chan_idx % iproc_priv.spu.num_chan; in select_channel()
4384 iproc_priv.mbox = devm_kcalloc(dev, iproc_priv.spu.num_chan, in spu_mb_init()
4396 for (i = 0; i < iproc_priv.spu.num_chan; i++) { in spu_mb_init()
4410 for (i = 0; i < iproc_priv.spu.num_chan; i++) { in spu_mb_init()
4422 for (i = 0; i < iproc_priv.spu.num_chan; i++) in spu_mb_release()
4433 atomic_set(&iproc_priv.next_chan, (int)iproc_priv.spu.num_chan); in spu_counters_init()
4673 spu->num_chan = of_count_phandle_with_args(dn, "mboxes", "#mbox-cells"); in spu_dt_read()
/linux-6.1.9/drivers/comedi/drivers/
Dusbduxsigma.c458 static int usbduxsigma_chans_to_interval(int num_chan) in usbduxsigma_chans_to_interval() argument
460 if (num_chan <= 2) in usbduxsigma_chans_to_interval()
462 if (num_chan <= 8) in usbduxsigma_chans_to_interval()
/linux-6.1.9/sound/pci/trident/
Dtrident_main.c2177 int num_chan = 3; in snd_trident_foldback_pcm() local
2181 num_chan = 4; in snd_trident_foldback_pcm()
2182 err = snd_pcm_new(trident->card, "trident_dx_nx", device, 0, num_chan, &foldback); in snd_trident_foldback_pcm()
2199 if (num_chan == 4) { in snd_trident_foldback_pcm()
/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Dwmi.c2173 if (params->num_chan) in ath11k_wmi_send_scan_start_cmd()
2174 len += params->num_chan * sizeof(u32); in ath11k_wmi_send_scan_start_cmd()
2229 cmd->num_chan = params->num_chan; in ath11k_wmi_send_scan_start_cmd()
2239 len = params->num_chan * sizeof(u32); in ath11k_wmi_send_scan_start_cmd()
2247 for (i = 0; i < params->num_chan; ++i) in ath11k_wmi_send_scan_start_cmd()

12