Home
last modified time | relevance | path

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

12

/Linux-v5.4/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-v5.4/drivers/iio/adc/
Dstmpe-adc.c260 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-v5.4/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-v5.4/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-v5.4/drivers/dma/
Dpl330.c280 unsigned int num_chan:4; member
1588 pl330->dmac_tbd.reset_chan = (1 << pl330->pcfg.num_chan) - 1; in pl330_dotask()
1593 for (i = 0; i < pl330->pcfg.num_chan; i++) { in pl330_dotask()
1645 val = readl(regs + FSC) & ((1 << pl330->pcfg.num_chan) - 1); in pl330_update()
1649 while (i < pl330->pcfg.num_chan) { in pl330_update()
1760 chans = pl330->pcfg.num_chan; in pl330_request_channel()
1826 pl330->pcfg.num_chan = val; in read_dmac_config()
1873 int chans = pl330->pcfg.num_chan; in dmac_alloc_threads()
1904 int chans = pl330->pcfg.num_chan; in dmac_alloc_resources()
1987 for (i = 0; i < pl330->pcfg.num_chan; i++) { in dmac_free_threads()
[all …]
/Linux-v5.4/drivers/misc/mic/bus/
Dscif_bus.c136 void __iomem *rdp, struct dma_chan **chan, int num_chan, in scif_register_device() argument
163 sdev->num_dma_ch = num_chan; in scif_register_device()
Dscif_bus.h112 struct dma_chan **chan, int num_chan,
/Linux-v5.4/drivers/tty/
Drocket.c1879 int num_aiops, aiop, max_num_aiops, num_chan, chan; in register_PCI() local
2151 num_chan = ports_per_aiop; in register_PCI()
2152 for (chan = 0; chan < num_chan; chan++) in register_PCI()
2160 num_chan = ports_per_aiop; in register_PCI()
2161 for (chan = 0; chan < num_chan; chan++) in register_PCI()
2164 for (chan = 0; chan < num_chan; chan++) in register_PCI()
2200 int num_aiops, num_chan = 0, total_num_chan = 0; in init_ISA() local
2272 num_chan = sGetAiopNumChan(ctlp, aiop); in init_ISA()
2273 total_num_chan += num_chan; in init_ISA()
2274 for (chan = 0; chan < num_chan; chan++) in init_ISA()
[all …]
/Linux-v5.4/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-v5.4/drivers/soc/ti/
Dknav_dma.c625 int ret, len, num_chan = 0; in dma_init() local
709 num_chan++; in dma_init()
714 num_chan++; in dma_init()
730 dma->name, num_chan, dma->max_rx_flow, in dma_init()
/Linux-v5.4/sound/soc/intel/atom/sst/
Dsst_drv_interface.c102 return str_param->sparams.uc.pcm_params.num_chan; in sst_get_num_channel()
104 return str_param->sparams.uc.mp3_params.num_chan; in sst_get_num_channel()
106 return str_param->sparams.uc.aac_params.num_chan; in sst_get_num_channel()
/Linux-v5.4/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()
Dcpsw_priv.c109 dma_params.num_chan = data->channels; in cpsw_init_common()
/Linux-v5.4/sound/soc/intel/baytrail/
Dsst-baytrail-ipc.c77 u8 num_chan; member
371 stream->request.pcm_params.num_chan = channels; in sst_byt_stream_set_channels()
403 stream->request.pcm_params.num_chan * in sst_byt_stream_buffer()
/Linux-v5.4/sound/soc/sunxi/
Dsun4i-i2s.c82 #define SUN4I_I2S_CHAN_SEL(num_chan) (((num_chan) - 1) << 0) argument
122 #define SUN8I_I2S_TX_CHAN_EN(num_chan) (((1 << num_chan) - 1) << 4) argument
/Linux-v5.4/drivers/net/wireless/ath/ath6kl/
Dwmi.c1964 s8 num_chan, u16 *ch_list) in ath6kl_wmi_startscan_cmd() argument
1976 if (num_chan > WMI_MAX_CHANNELS) in ath6kl_wmi_startscan_cmd()
1979 if (num_chan) in ath6kl_wmi_startscan_cmd()
1980 size += sizeof(u16) * (num_chan - 1); in ath6kl_wmi_startscan_cmd()
1992 sc->num_ch = num_chan; in ath6kl_wmi_startscan_cmd()
1994 for (i = 0; i < num_chan; i++) in ath6kl_wmi_startscan_cmd()
2012 s8 num_chan, u16 *ch_list, u32 no_cck, u32 *rates) in ath6kl_wmi_beginscan_cmd() argument
2029 num_chan, ch_list); in ath6kl_wmi_beginscan_cmd()
2037 if (num_chan > WMI_MAX_CHANNELS) in ath6kl_wmi_beginscan_cmd()
2040 if (num_chan) in ath6kl_wmi_beginscan_cmd()
[all …]
/Linux-v5.4/drivers/net/wireless/marvell/mwifiex/
Dsta_cmdresp.c1023 u16 num_chan = buf_len / 2; in mwifiex_create_custom_regdomain() local
1031 if (WARN_ON_ONCE(num_chan > NL80211_MAX_SUPP_REG_RULES)) in mwifiex_create_custom_regdomain()
1034 regd = kzalloc(struct_size(regd, reg_rules, num_chan), GFP_KERNEL); in mwifiex_create_custom_regdomain()
1038 for (idx = 0; idx < num_chan; idx++) { in mwifiex_create_custom_regdomain()
Dscan.c2509 u8 i, num_chan; in mwifiex_update_chan_statistics() local
2515 num_chan = le16_to_cpu(tlv_stat->header.len) / in mwifiex_update_chan_statistics()
2518 for (i = 0 ; i < num_chan; i++) { in mwifiex_update_chan_statistics()
/Linux-v5.4/drivers/crypto/bcm/
Dcipher.h418 u32 num_chan; member
Dcipher.c109 return chan_idx % iproc_priv.spu.num_chan; in select_channel()
4455 iproc_priv.mbox = devm_kcalloc(dev, iproc_priv.spu.num_chan, in spu_mb_init()
4467 for (i = 0; i < iproc_priv.spu.num_chan; i++) { in spu_mb_init()
4481 for (i = 0; i < iproc_priv.spu.num_chan; i++) { in spu_mb_init()
4493 for (i = 0; i < iproc_priv.spu.num_chan; i++) in spu_mb_release()
4504 atomic_set(&iproc_priv.next_chan, (int)iproc_priv.spu.num_chan); in spu_counters_init()
4750 spu->num_chan = of_count_phandle_with_args(dn, "mboxes", "#mbox-cells"); in spu_dt_read()
/Linux-v5.4/drivers/staging/comedi/drivers/
Dusbduxsigma.c459 static int usbduxsigma_chans_to_interval(int num_chan) in usbduxsigma_chans_to_interval() argument
461 if (num_chan <= 2) in usbduxsigma_chans_to_interval()
463 if (num_chan <= 8) in usbduxsigma_chans_to_interval()

12