Home
last modified time | relevance | path

Searched refs:chanspec (Results 1 – 25 of 113) sorted by relevance

12345

/drivers/staging/comedi/
Drange.c121 unsigned int chanspec; in comedi_check_chanlist() local
125 chanspec = chanlist[i]; in comedi_check_chanlist()
126 chan = CR_CHAN(chanspec); in comedi_check_chanlist()
134 CR_RANGE(chanspec) >= range_len) { in comedi_check_chanlist()
137 i, chanspec, chan, range_len); in comedi_check_chanlist()
/drivers/staging/comedi/drivers/
Dpcm3724.c87 struct comedi_subdevice *s, int chanspec) in do_3724_config() argument
122 int chanspec) in enable_chan() argument
131 mask = 1 << CR_CHAN(chanspec); in enable_chan()
164 unsigned int chan = CR_CHAN(insn->chanspec); in subdev_3724_insn_config()
181 do_3724_config(dev, s, insn->chanspec); in subdev_3724_insn_config()
182 enable_chan(dev, s, insn->chanspec); in subdev_3724_insn_config()
Ddas6402.c215 unsigned int chanspec, in das6402_ai_set_mode() argument
218 unsigned int range = CR_RANGE(chanspec); in das6402_ai_set_mode()
219 unsigned int aref = CR_AREF(chanspec); in das6402_ai_set_mode()
390 unsigned int chan = CR_CHAN(insn->chanspec); in das6402_ai_insn_read()
391 unsigned int aref = CR_AREF(insn->chanspec); in das6402_ai_insn_read()
401 das6402_ai_set_mode(dev, s, insn->chanspec, DAS6402_MODE_POLLED); in das6402_ai_insn_read()
429 unsigned int chan = CR_CHAN(insn->chanspec); in das6402_ao_insn_write()
430 unsigned int range = CR_RANGE(insn->chanspec); in das6402_ao_insn_write()
488 unsigned int chan = CR_CHAN(insn->chanspec); in das6402_ao_insn_read()
Dicp_multi.c115 unsigned int chan = CR_CHAN(insn->chanspec); in icp_multi_ai_insn_read()
116 unsigned int range = CR_RANGE(insn->chanspec); in icp_multi_ai_insn_read()
117 unsigned int aref = CR_AREF(insn->chanspec); in icp_multi_ai_insn_read()
168 unsigned int chan = CR_CHAN(insn->chanspec); in icp_multi_ao_insn_write()
169 unsigned int range = CR_RANGE(insn->chanspec); in icp_multi_ao_insn_write()
Dpcmmio.c403 unsigned int chanspec = cmd->chanlist[i]; in pcmmio_start_intr() local
404 unsigned int chan = CR_CHAN(chanspec); in pcmmio_start_intr()
405 unsigned int range = CR_RANGE(chanspec); in pcmmio_start_intr()
406 unsigned int aref = CR_AREF(chanspec); in pcmmio_start_intr()
545 unsigned int chan = CR_CHAN(insn->chanspec); in pcmmio_ai_insn_read()
546 unsigned int range = CR_RANGE(insn->chanspec); in pcmmio_ai_insn_read()
547 unsigned int aref = CR_AREF(insn->chanspec); in pcmmio_ai_insn_read()
628 unsigned int chan = CR_CHAN(insn->chanspec); in pcmmio_ao_insn_write()
629 unsigned int range = CR_RANGE(insn->chanspec); in pcmmio_ao_insn_write()
Daio_aio12_8.c126 unsigned int chan = CR_CHAN(insn->chanspec); in aio_aio12_8_ai_read()
127 unsigned int range = CR_RANGE(insn->chanspec); in aio_aio12_8_ai_read()
169 unsigned int chan = CR_CHAN(insn->chanspec); in aio_aio12_8_ao_insn_write()
190 unsigned int chan = CR_CHAN(insn->chanspec); in aio_aio12_8_counter_insn_config()
Drtd520.c424 unsigned int chanspec, int index) in rtd_convert_chan_gain() argument
427 unsigned int chan = CR_CHAN(chanspec); in rtd_convert_chan_gain()
428 unsigned int range = CR_RANGE(chanspec); in rtd_convert_chan_gain()
429 unsigned int aref = CR_AREF(chanspec); in rtd_convert_chan_gain()
493 unsigned int chanspec = CR_PACK(0, 0, AREF_GROUND); in rtd520_probe_fifo_depth() local
499 rtd_load_channelgain_list(dev, 1, &chanspec); in rtd520_probe_fifo_depth()
546 unsigned int range = CR_RANGE(insn->chanspec); in rtd_ai_rinsn()
554 rtd_load_channelgain_list(dev, 1, &insn->chanspec); in rtd_ai_rinsn()
1009 unsigned int chan = CR_CHAN(insn->chanspec); in rtd_ao_eoc()
1025 unsigned int chan = CR_CHAN(insn->chanspec); in rtd_ao_insn_write()
[all …]
Ddyna_pci10xx.c83 chan = CR_CHAN(insn->chanspec); in dyna_pci10xx_insn_read_ai()
84 range = range_codes_pci1050_ai[CR_RANGE((insn->chanspec))]; in dyna_pci10xx_insn_read_ai()
120 chan = CR_CHAN(insn->chanspec); in dyna_pci10xx_insn_write_ao()
121 range = range_codes_pci1050_ai[CR_RANGE((insn->chanspec))]; in dyna_pci10xx_insn_write_ao()
Dpcl711.c220 unsigned int chanspec) in pcl711_set_changain() argument
222 unsigned int chan = CR_CHAN(chanspec); in pcl711_set_changain()
223 unsigned int range = CR_RANGE(chanspec); in pcl711_set_changain()
224 unsigned int aref = CR_AREF(chanspec); in pcl711_set_changain()
265 pcl711_set_changain(dev, s, insn->chanspec); in pcl711_ai_insn_read()
378 unsigned int chan = CR_CHAN(insn->chanspec); in pcl711_ao_insn_write()
Dii_pci20kc.c148 unsigned int chan = CR_CHAN(insn->chanspec); in ii20k_ao_insn_write()
183 unsigned int chanspec) in ii20k_ai_setup() argument
186 unsigned int chan = CR_CHAN(chanspec); in ii20k_ai_setup()
187 unsigned int range = CR_RANGE(chanspec); in ii20k_ai_setup()
230 ii20k_ai_setup(dev, s, insn->chanspec); in ii20k_ai_insn_read()
321 unsigned int chan = CR_CHAN(insn->chanspec); in ii20k_dio_insn_config()
Dme_daq.c164 unsigned int chan = CR_CHAN(insn->chanspec); in me_dio_insn_config()
243 unsigned int chan = CR_CHAN(insn->chanspec); in me_ai_insn_read()
244 unsigned int range = CR_RANGE(insn->chanspec); in me_ai_insn_read()
245 unsigned int aref = CR_AREF(insn->chanspec); in me_ai_insn_read()
310 unsigned int chan = CR_CHAN(insn->chanspec); in me_ao_insn_write()
311 unsigned int range = CR_RANGE(insn->chanspec); in me_ao_insn_write()
Ds526.c160 unsigned int chan = CR_CHAN(insn->chanspec); in s526_gpct_rinsn()
175 unsigned int chan = CR_CHAN(insn->chanspec); in s526_gpct_insn_config()
332 unsigned int chan = CR_CHAN(insn->chanspec); in s526_gpct_winsn()
385 unsigned int chan = CR_CHAN(insn->chanspec); in s526_ai_insn_read()
424 unsigned int chan = CR_CHAN(insn->chanspec); in s526_ao_insn_write()
466 unsigned int chan = CR_CHAN(insn->chanspec); in s526_dio_insn_config()
Dmultiq3.c108 unsigned int chan = CR_CHAN(insn->chanspec); in multiq3_ai_insn_read()
145 unsigned int chan = CR_CHAN(insn->chanspec); in multiq3_ao_insn_write()
188 unsigned int chan = CR_CHAN(insn->chanspec); in multiq3_encoder_insn_read()
247 unsigned int chan = CR_CHAN(insn->chanspec); in multiq3_encoder_insn_config()
Dcb_das16_cs.c154 int chan = CR_CHAN(insn->chanspec); in das16cs_ai_insn_read()
155 int range = CR_RANGE(insn->chanspec); in das16cs_ai_insn_read()
156 int aref = CR_AREF(insn->chanspec); in das16cs_ai_insn_read()
208 unsigned int chan = CR_CHAN(insn->chanspec); in das16cs_ao_insn_write()
272 unsigned int chan = CR_CHAN(insn->chanspec); in das16cs_dio_insn_config()
Daddi_apci_3xxx.c389 static int apci3xxx_ai_setup(struct comedi_device *dev, unsigned int chanspec) in apci3xxx_ai_setup() argument
391 unsigned int chan = CR_CHAN(chanspec); in apci3xxx_ai_setup()
392 unsigned int range = CR_RANGE(chanspec); in apci3xxx_ai_setup()
393 unsigned int aref = CR_AREF(chanspec); in apci3xxx_ai_setup()
449 ret = apci3xxx_ai_setup(dev, insn->chanspec); in apci3xxx_ai_insn_read()
623 unsigned int chan = CR_CHAN(insn->chanspec); in apci3xxx_ao_insn_write()
624 unsigned int range = CR_RANGE(insn->chanspec); in apci3xxx_ao_insn_write()
678 unsigned int chan = CR_CHAN(insn->chanspec); in apci3xxx_dio_insn_config()
Dni_daq_700.c147 unsigned int chan = CR_CHAN(insn->chanspec); in daq700_ai_rinsn()
148 unsigned int aref = CR_AREF(insn->chanspec); in daq700_ai_rinsn()
149 unsigned int range = CR_RANGE(insn->chanspec); in daq700_ai_rinsn()
Ddac02.c82 unsigned int chan = CR_CHAN(insn->chanspec); in dac02_ao_insn_write()
83 unsigned int range = CR_RANGE(insn->chanspec); in dac02_ao_insn_write()
/drivers/net/wireless/brcm80211/brcmsmac/
Dchannel.c373 brcms_c_channel_set_chanspec(struct brcms_cm_info *wlc_cm, u16 chanspec, in brcms_c_channel_set_chanspec() argument
380 brcms_c_channel_reg_limits(wlc_cm, chanspec, &txpwr); in brcms_c_channel_set_chanspec()
392 brcms_b_set_chanspec(wlc->hw, chanspec, in brcms_c_channel_set_chanspec()
398 brcms_c_channel_reg_limits(struct brcms_cm_info *wlc_cm, u16 chanspec, in brcms_c_channel_reg_limits() argument
422 chan = CHSPEC_CHANNEL(chanspec); in brcms_c_channel_reg_limits()
423 band = wlc->bandstate[chspec_bandunit(chanspec)]; in brcms_c_channel_reg_limits()
578 static bool brcms_c_chspec_malformed(u16 chanspec) in brcms_c_chspec_malformed() argument
581 if (!CHSPEC_IS5G(chanspec) && !CHSPEC_IS2G(chanspec)) in brcms_c_chspec_malformed()
584 if (!CHSPEC_IS40(chanspec) && !CHSPEC_IS20(chanspec)) in brcms_c_chspec_malformed()
588 if (CHSPEC_IS20(chanspec)) { in brcms_c_chspec_malformed()
[all …]
Dchannel.h41 void brcms_c_channel_reg_limits(struct brcms_cm_info *wlc_cm, u16 chanspec,
43 void brcms_c_channel_set_chanspec(struct brcms_cm_info *wlc_cm, u16 chanspec,
Dstf.c88 u16 chanspec) in brcms_c_stf_ss_algo_channel_get() argument
102 CHSPEC_CHANNEL(chanspec)); in brcms_c_stf_ss_algo_channel_get()
104 siso_mcs_id = (CHSPEC_IS40(chanspec)) ? in brcms_c_stf_ss_algo_channel_get()
106 cdd_mcs_id = (CHSPEC_IS40(chanspec)) ? in brcms_c_stf_ss_algo_channel_get()
108 stbc_mcs_id = (CHSPEC_IS40(chanspec)) ? in brcms_c_stf_ss_algo_channel_get()
Dmain.c417 static int brcms_chspec_bw(u16 chanspec) in brcms_chspec_bw() argument
419 if (CHSPEC_IS40(chanspec)) in brcms_chspec_bw()
421 if (CHSPEC_IS20(chanspec)) in brcms_chspec_bw()
916 CHSPEC_CHANNEL(wlc->default_bss->chanspec)); in brcms_c_dotxstatus()
1228 wlc_hw->chanspec = ch20mhz_chspec(1); in brcms_b_info_init()
1703 static void brcms_b_bsinit(struct brcms_c_info *wlc, u16 chanspec) in brcms_b_bsinit() argument
1712 wlc_phy_init(wlc_hw->band->pi, chanspec); in brcms_b_bsinit()
1824 u16 chanspec) { in brcms_b_setband() argument
1842 brcms_b_bsinit(wlc, chanspec); in brcms_b_setband()
3353 static brcms_b_init(struct brcms_hardware *wlc_hw, u16 chanspec) { in brcms_b_init() argument
[all …]
/drivers/staging/comedi/kcomedilib/
Dkcomedilib_main.c105 ret = comedi_check_chanlist(s, 1, &insn->chanspec); in comedi_do_insn()
149 insn.chanspec = CR_PACK(chan, 0, 0); in comedi_dio_get_config()
168 insn.chanspec = CR_PACK(chan, 0, 0); in comedi_dio_config()
191 insn.chanspec = base_channel; in comedi_dio_bitfield2()
205 insn.chanspec = 0; in comedi_dio_bitfield2()
/drivers/net/wireless/brcm80211/brcmsmac/phy/
Dphy_hal.h132 u16 chanspec; /* txpwr report for this channel */ member
195 void wlc_phy_init(struct brcms_phy_pub *ppi, u16 chanspec);
202 void wlc_phy_chanspec_set(struct brcms_phy_pub *ppi, u16 chanspec);
234 u16 chanspec);
249 s8 wlc_phy_stf_ssmode_get(struct brcms_phy_pub *pih, u16 chanspec);
/drivers/net/wireless/brcm80211/brcmfmac/
Dp2p.c525 u16 chanspec, u16 listen_ms) in brcmf_p2p_set_discover_state() argument
532 discover_state.chspec = cpu_to_le16(chanspec); in brcmf_p2p_set_discover_state()
1251 ch.chspec = le16_to_cpu(bi->chanspec); in brcmf_p2p_scan_finding_common_channel()
1373 ch.chspec = be16_to_cpu(rxframe->chanspec); in brcmf_p2p_notify_action_frame_rx()
1873 u16 chanspec = be16_to_cpu(rxframe->chanspec); in brcmf_p2p_notify_rx_mgmt_p2p_probereq() local
1888 ch.chspec = be16_to_cpu(rxframe->chanspec); in brcmf_p2p_notify_rx_mgmt_p2p_probereq()
1926 mgmt_frame_len, e->datalen, chanspec, freq); in brcmf_p2p_notify_rx_mgmt_p2p_probereq()
1939 u16 *chanspec) in brcmf_p2p_get_current_chanspec() argument
1957 *chanspec = le16_to_cpu(bi->chanspec); in brcmf_p2p_get_current_chanspec()
1968 *chanspec = ch.chspec; in brcmf_p2p_get_current_chanspec()
[all …]
/drivers/staging/comedi/drivers/addi-data/
Dhwdrv_apci1564.c100 unsigned int chan = CR_CHAN(insn->chanspec); in apci1564_counter_insn_config()
145 unsigned int chan = CR_CHAN(insn->chanspec); in apci1564_counter_insn_write()
173 unsigned int chan = CR_CHAN(insn->chanspec); in apci1564_counter_insn_read()

12345