Home
last modified time | relevance | path

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

12

/linux/drivers/iio/adc/
H A 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/sound/soc/intel/atom/
H A 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
H A 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()
H A Dsst-mfld-platform.h70 u8 num_chan; /* 1=Mono, 2=Stereo */ member
H A Dsst-mfld-platform-pcm.c145 param->uc.pcm_params.num_chan = (u8) substream->runtime->channels; in sst_fill_pcm_params()
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_sdp.c115 rsp->num_chan = NIX_CHAN_SDP_NUM_CHANS; in rvu_mbox_handler_get_sdp_chan_info()
119 rsp->num_chan = rvu_read64(rvu, blkaddr, NIX_AF_CONST1) & 0xFFFUL; in rvu_mbox_handler_get_sdp_chan_info()
/linux/drivers/dma/
H A Dpl330.c281 unsigned int num_chan:4; member
1600 pl330->dmac_tbd.reset_chan = (1 << pl330->pcfg.num_chan) - 1; in pl330_dotask()
1605 for (i = 0; i < pl330->pcfg.num_chan; i++) { in pl330_dotask()
1657 val = readl(regs + FSC) & ((1 << pl330->pcfg.num_chan) - 1); in pl330_update()
1661 while (i < pl330->pcfg.num_chan) { in pl330_update()
1772 chans = pl330->pcfg.num_chan; in pl330_request_channel()
1838 pl330->pcfg.num_chan = val; in read_dmac_config()
1885 int chans = pl330->pcfg.num_chan; in dmac_alloc_threads()
1916 int chans = pl330->pcfg.num_chan; in dmac_alloc_resources()
1999 for (i = 0; i < pl330->pcfg.num_chan; i++) { in dmac_free_threads()
[all …]
/linux/drivers/mailbox/
H A 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/sound/soc/sunxi/
H A 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/drivers/soc/ti/
H A Dknav_dma.c605 int ret, num_chan = 0; in dma_init() local
677 num_chan++; in dma_init()
682 num_chan++; in dma_init()
698 dma->name, num_chan, dma->max_rx_flow, in dma_init()
/linux/drivers/input/misc/
H A Diqs7222.c2252 int num_chan = dev_desc->reg_grps[IQS7222_REG_GRP_CHAN].num_row; in iqs7222_parse_chan() local
2253 int ext_chan = rounddown(num_chan, 10); in iqs7222_parse_chan()
2453 int num_chan = dev_desc->reg_grps[IQS7222_REG_GRP_CHAN].num_row; in iqs7222_parse_sldr() local
2454 int ext_chan = rounddown(num_chan, 10); in iqs7222_parse_sldr()
2678 int num_chan = dev_desc->reg_grps[IQS7222_REG_GRP_CHAN].num_row; in iqs7222_parse_tpad() local
2710 tpad_setup[6] &= ~GENMASK(num_chan - 1, 0); in iqs7222_parse_tpad()
2717 if (chan_sel[i] >= num_chan) { in iqs7222_parse_tpad()
2912 int num_chan = dev_desc->reg_grps[IQS7222_REG_GRP_CHAN].num_row; in iqs7222_report() local
2935 for (i = 0; i < num_chan; i++) { in iqs7222_report()
2949 int k = 2 + j * (num_chan > 16 ? 2 : 1); in iqs7222_report()
/linux/sound/soc/intel/atom/sst/
H A 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/drivers/net/ethernet/ti/
H A 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()
H A Ddavinci_cpdma.h27 int num_chan; member
H A Dcpsw_priv.c521 dma_params.num_chan = data->channels; in cpsw_init_common()
/linux/drivers/net/wireless/marvell/mwifiex/
H A 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()
H A Dscan.c2480 u8 i, num_chan; in mwifiex_update_chan_statistics() local
2486 num_chan = le16_to_cpu(tlv_stat->header.len) / in mwifiex_update_chan_statistics()
2489 for (i = 0 ; i < num_chan; i++) { in mwifiex_update_chan_statistics()
/linux/drivers/net/wireless/ath/ath6kl/
H A 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/drivers/crypto/bcm/
H A Dcipher.h417 u32 num_chan; member
/linux/drivers/comedi/drivers/
H A 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/sound/pci/trident/
H A 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/drivers/net/wireless/ath/ath11k/
H A Dmac.c4103 arg->num_chan = req->n_channels; in ath11k_mac_op_hw_scan()
4104 arg->chan_list = kcalloc(arg->num_chan, sizeof(*arg->chan_list), in ath11k_mac_op_hw_scan()
4112 for (i = 0; i < arg->num_chan; i++) { in ath11k_mac_op_hw_scan()
4153 (arg->num_chan - 1) + (req->duration + in ath11k_mac_op_hw_scan()
4155 arg->num_chan, arg->max_scan_time); in ath11k_mac_op_hw_scan()
9271 arg->num_chan = 1; in ath11k_mac_op_remain_on_channel()
9272 arg->chan_list = kcalloc(arg->num_chan, sizeof(*arg->chan_list), in ath11k_mac_op_remain_on_channel()
H A Dwmi.c2256 if (params->num_chan) in ath11k_wmi_send_scan_start_cmd()
2257 len += params->num_chan * sizeof(u32); in ath11k_wmi_send_scan_start_cmd()
2312 cmd->num_chan = params->num_chan; in ath11k_wmi_send_scan_start_cmd()
2322 len = params->num_chan * sizeof(u32); in ath11k_wmi_send_scan_start_cmd()
2330 for (i = 0; i < params->num_chan; ++i) in ath11k_wmi_send_scan_start_cmd()
/linux/drivers/net/wireless/ath/ath12k/
H A Dwmi.c2323 if (arg->num_chan) in ath12k_wmi_send_scan_start_cmd()
2324 len += arg->num_chan * sizeof(u32); in ath12k_wmi_send_scan_start_cmd()
2385 cmd->num_chan = cpu_to_le32(arg->num_chan); in ath12k_wmi_send_scan_start_cmd()
2393 len = arg->num_chan * sizeof(u32); in ath12k_wmi_send_scan_start_cmd()
2400 memcpy(tmp_ptr, arg->chan_list, arg->num_chan * 4); in ath12k_wmi_send_scan_start_cmd()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dcfg80211.c7080 u32 num_chan; in brcmf_enable_bw40_2g() local
7125 num_chan = le32_to_cpu(list->count); in brcmf_enable_bw40_2g()
7126 if (num_chan > BRCMF_MAX_CHANSPEC_LIST) { in brcmf_enable_bw40_2g()
7128 num_chan); in brcmf_enable_bw40_2g()
7133 for (i = 0; i < num_chan; i++) { in brcmf_enable_bw40_2g()

12