Home
last modified time | relevance | path

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

12345

/linux/drivers/comedi/
H A Drange.c109 unsigned int chanspec; in comedi_check_chanlist() local
113 chanspec = chanlist[i]; in comedi_check_chanlist()
114 chan = CR_CHAN(chanspec); in comedi_check_chanlist()
122 CR_RANGE(chanspec) >= range_len) { in comedi_check_chanlist()
125 i, chanspec, chan, range_len); in comedi_check_chanlist()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A 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()
576 static bool brcms_c_chspec_malformed(u16 chanspec) in brcms_c_chspec_malformed() argument
579 if (!CHSPEC_IS5G(chanspec) && !CHSPEC_IS2G(chanspec)) in brcms_c_chspec_malformed()
582 if (!CHSPEC_IS40(chanspec) && !CHSPEC_IS20(chanspec)) in brcms_c_chspec_malformed()
586 if (CHSPEC_IS20(chanspec)) { in brcms_c_chspec_malformed()
[all …]
H A 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,
H A Dmain.c411 static int brcms_chspec_bw(u16 chanspec) in brcms_chspec_bw() argument
413 if (CHSPEC_IS40(chanspec)) in brcms_chspec_bw()
415 if (CHSPEC_IS20(chanspec)) in brcms_chspec_bw()
907 CHSPEC_CHANNEL(wlc->default_bss->chanspec)); in brcms_c_dotxstatus()
1213 wlc_hw->chanspec = ch20mhz_chspec(1); in brcms_b_info_init()
1688 static void brcms_b_bsinit(struct brcms_c_info *wlc, u16 chanspec) in brcms_b_bsinit() argument
1697 wlc_phy_init(wlc_hw->band->pi, chanspec); in brcms_b_bsinit()
1806 u16 chanspec) { in brcms_b_setband() argument
1824 brcms_b_bsinit(wlc, chanspec); in brcms_b_setband()
3328 static void brcms_b_init(struct brcms_hardware *wlc_hw, u16 chanspec) in brcms_b_init() argument
[all …]
H A 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()
/linux/drivers/comedi/drivers/
H A Dpcm3724.c87 struct comedi_subdevice *s, int chanspec) in do_3724_config() argument
121 int chanspec) in enable_chan() argument
130 mask = 1 << CR_CHAN(chanspec); in enable_chan()
163 unsigned int chan = CR_CHAN(insn->chanspec); in subdev_3724_insn_config()
180 do_3724_config(dev, s, insn->chanspec); in subdev_3724_insn_config()
181 enable_chan(dev, s, insn->chanspec); in subdev_3724_insn_config()
H A Ddas6402.c206 unsigned int chanspec, in das6402_ai_set_mode() argument
209 unsigned int range = CR_RANGE(chanspec); in das6402_ai_set_mode()
210 unsigned int aref = CR_AREF(chanspec); in das6402_ai_set_mode()
381 unsigned int chan = CR_CHAN(insn->chanspec); in das6402_ai_insn_read()
382 unsigned int aref = CR_AREF(insn->chanspec); in das6402_ai_insn_read()
392 das6402_ai_set_mode(dev, s, insn->chanspec, DAS6402_MODE_POLLED); in das6402_ai_insn_read()
420 unsigned int chan = CR_CHAN(insn->chanspec); in das6402_ao_insn_write()
421 unsigned int range = CR_RANGE(insn->chanspec); in das6402_ao_insn_write()
479 unsigned int chan = CR_CHAN(insn->chanspec); in das6402_ao_insn_read()
H A Dicp_multi.c105 unsigned int chan = CR_CHAN(insn->chanspec); in icp_multi_ai_insn_read()
106 unsigned int range = CR_RANGE(insn->chanspec); in icp_multi_ai_insn_read()
107 unsigned int aref = CR_AREF(insn->chanspec); in icp_multi_ai_insn_read()
158 unsigned int chan = CR_CHAN(insn->chanspec); in icp_multi_ao_insn_write()
159 unsigned int range = CR_RANGE(insn->chanspec); in icp_multi_ao_insn_write()
H A Dpcmmio.c393 unsigned int chanspec = cmd->chanlist[i]; in pcmmio_start_intr() local
394 unsigned int chan = CR_CHAN(chanspec); in pcmmio_start_intr()
395 unsigned int range = CR_RANGE(chanspec); in pcmmio_start_intr()
396 unsigned int aref = CR_AREF(chanspec); in pcmmio_start_intr()
535 unsigned int chan = CR_CHAN(insn->chanspec); in pcmmio_ai_insn_read()
536 unsigned int range = CR_RANGE(insn->chanspec); in pcmmio_ai_insn_read()
537 unsigned int aref = CR_AREF(insn->chanspec); in pcmmio_ai_insn_read()
618 unsigned int chan = CR_CHAN(insn->chanspec); in pcmmio_ao_insn_write()
619 unsigned int range = CR_RANGE(insn->chanspec); in pcmmio_ao_insn_write()
H A Daio_aio12_8.c116 unsigned int chan = CR_CHAN(insn->chanspec); in aio_aio12_8_ai_read()
117 unsigned int range = CR_RANGE(insn->chanspec); in aio_aio12_8_ai_read()
159 unsigned int chan = CR_CHAN(insn->chanspec); in aio_aio12_8_ao_insn_write()
180 unsigned int chan = CR_CHAN(insn->chanspec); in aio_aio12_8_counter_insn_config()
H A Drtd520.c414 unsigned int chanspec, int index) in rtd_convert_chan_gain() argument
417 unsigned int chan = CR_CHAN(chanspec); in rtd_convert_chan_gain()
418 unsigned int range = CR_RANGE(chanspec); in rtd_convert_chan_gain()
419 unsigned int aref = CR_AREF(chanspec); in rtd_convert_chan_gain()
483 unsigned int chanspec = CR_PACK(0, 0, AREF_GROUND); in rtd520_probe_fifo_depth() local
489 rtd_load_channelgain_list(dev, 1, &chanspec); in rtd520_probe_fifo_depth()
536 unsigned int range = CR_RANGE(insn->chanspec); in rtd_ai_rinsn()
544 rtd_load_channelgain_list(dev, 1, &insn->chanspec); in rtd_ai_rinsn()
997 unsigned int chan = CR_CHAN(insn->chanspec); in rtd_ao_eoc()
1013 unsigned int chan = CR_CHAN(insn->chanspec); in rtd_ao_insn_write()
[all …]
H A Dpcl711.c209 unsigned int chanspec) in pcl711_set_changain() argument
211 unsigned int chan = CR_CHAN(chanspec); in pcl711_set_changain()
212 unsigned int range = CR_RANGE(chanspec); in pcl711_set_changain()
213 unsigned int aref = CR_AREF(chanspec); in pcl711_set_changain()
254 pcl711_set_changain(dev, s, insn->chanspec); in pcl711_ai_insn_read()
367 unsigned int chan = CR_CHAN(insn->chanspec); in pcl711_ao_insn_write()
H A Dii_pci20kc.c149 unsigned int chan = CR_CHAN(insn->chanspec); in ii20k_ao_insn_write()
184 unsigned int chanspec) in ii20k_ai_setup() argument
187 unsigned int chan = CR_CHAN(chanspec); in ii20k_ai_setup()
188 unsigned int range = CR_RANGE(chanspec); in ii20k_ai_setup()
231 ii20k_ai_setup(dev, s, insn->chanspec); in ii20k_ai_insn_read()
322 unsigned int chan = CR_CHAN(insn->chanspec); in ii20k_dio_insn_config()
H A Dme_daq.c154 unsigned int chan = CR_CHAN(insn->chanspec); in me_dio_insn_config()
233 unsigned int chan = CR_CHAN(insn->chanspec); in me_ai_insn_read()
234 unsigned int range = CR_RANGE(insn->chanspec); in me_ai_insn_read()
235 unsigned int aref = CR_AREF(insn->chanspec); in me_ai_insn_read()
300 unsigned int chan = CR_CHAN(insn->chanspec); in me_ao_insn_write()
301 unsigned int range = CR_RANGE(insn->chanspec); in me_ao_insn_write()
H A Dmultiq3.c98 unsigned int chan = CR_CHAN(insn->chanspec); in multiq3_ai_insn_read()
135 unsigned int chan = CR_CHAN(insn->chanspec); in multiq3_ao_insn_write()
178 unsigned int chan = CR_CHAN(insn->chanspec); in multiq3_encoder_insn_read()
237 unsigned int chan = CR_CHAN(insn->chanspec); in multiq3_encoder_insn_config()
H A Dcb_das16_cs.c143 int chan = CR_CHAN(insn->chanspec); in das16cs_ai_insn_read()
144 int range = CR_RANGE(insn->chanspec); in das16cs_ai_insn_read()
145 int aref = CR_AREF(insn->chanspec); in das16cs_ai_insn_read()
197 unsigned int chan = CR_CHAN(insn->chanspec); in das16cs_ao_insn_write()
261 unsigned int chan = CR_CHAN(insn->chanspec); in das16cs_dio_insn_config()
H A Ds526.c200 unsigned int chan = CR_CHAN(insn->chanspec); in s526_gpct_rinsn()
215 unsigned int chan = CR_CHAN(insn->chanspec); in s526_gpct_insn_config()
386 unsigned int chan = CR_CHAN(insn->chanspec); in s526_gpct_winsn()
438 unsigned int chan = CR_CHAN(insn->chanspec); in s526_ai_insn_read()
477 unsigned int chan = CR_CHAN(insn->chanspec); in s526_ao_insn_write()
519 unsigned int chan = CR_CHAN(insn->chanspec); in s526_dio_insn_config()
H A Ddac02.c72 unsigned int chan = CR_CHAN(insn->chanspec); in dac02_ao_insn_write()
73 unsigned int range = CR_RANGE(insn->chanspec); in dac02_ao_insn_write()
H A Dni_daq_700.c137 unsigned int chan = CR_CHAN(insn->chanspec); in daq700_ai_rinsn()
138 unsigned int aref = CR_AREF(insn->chanspec); in daq700_ai_rinsn()
139 unsigned int range = CR_RANGE(insn->chanspec); in daq700_ai_rinsn()
H A Daddi_apci_3xxx.c379 static int apci3xxx_ai_setup(struct comedi_device *dev, unsigned int chanspec) in apci3xxx_ai_setup() argument
381 unsigned int chan = CR_CHAN(chanspec); in apci3xxx_ai_setup()
382 unsigned int range = CR_RANGE(chanspec); in apci3xxx_ai_setup()
383 unsigned int aref = CR_AREF(chanspec); in apci3xxx_ai_setup()
439 ret = apci3xxx_ai_setup(dev, insn->chanspec); in apci3xxx_ai_insn_read()
613 unsigned int chan = CR_CHAN(insn->chanspec); in apci3xxx_ao_insn_write()
614 unsigned int range = CR_RANGE(insn->chanspec); in apci3xxx_ao_insn_write()
668 unsigned int chan = CR_CHAN(insn->chanspec); in apci3xxx_dio_insn_config()
H A Ddt2811.c242 unsigned int chanspec) in dt2811_ai_set_chanspec() argument
244 unsigned int chan = CR_CHAN(chanspec); in dt2811_ai_set_chanspec()
245 unsigned int range = CR_RANGE(chanspec); in dt2811_ai_set_chanspec()
482 dt2811_ai_set_chanspec(dev, insn->chanspec); in dt2811_ai_insn_read()
499 unsigned int chan = CR_CHAN(insn->chanspec); in dt2811_ao_insn_write()
H A Dni_labpc_common.c235 unsigned int chan = CR_CHAN(insn->chanspec); in labpc_ai_insn_read()
236 unsigned int range = CR_RANGE(insn->chanspec); in labpc_ai_insn_read()
237 unsigned int aref = CR_AREF(insn->chanspec); in labpc_ai_insn_read()
623 unsigned int chanspec = (mode == MODE_MULT_CHAN_UP) ? in labpc_ai_cmd() local
626 unsigned int chan = CR_CHAN(chanspec); in labpc_ai_cmd()
627 unsigned int range = CR_RANGE(chanspec); in labpc_ai_cmd()
628 unsigned int aref = CR_AREF(chanspec); in labpc_ai_cmd()
917 channel = CR_CHAN(insn->chanspec); in labpc_ao_insn_write()
931 range = CR_RANGE(insn->chanspec); in labpc_ao_insn_write()
1129 unsigned int chan = CR_CHAN(insn->chanspec); in labpc_calib_insn_write()
[all …]
/linux/drivers/comedi/kcomedilib/
H A Dkcomedilib_main.c96 ret = comedi_check_chanlist(s, 1, &insn->chanspec); in comedi_do_insn()
140 insn.chanspec = CR_PACK(chan, 0, 0); in comedi_dio_get_config()
159 insn.chanspec = CR_PACK(chan, 0, 0); in comedi_dio_config()
182 insn.chanspec = base_channel; in comedi_dio_bitfield2()
196 insn.chanspec = 0; in comedi_dio_bitfield2()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
H A Dphy_hal.h121 u16 chanspec; /* txpwr report for this channel */ member
179 void wlc_phy_init(struct brcms_phy_pub *ppi, u16 chanspec);
186 void wlc_phy_chanspec_set(struct brcms_phy_pub *ppi, u16 chanspec);
218 u16 chanspec);
233 s8 wlc_phy_stf_ssmode_get(struct brcms_phy_pub *pih, u16 chanspec);
/linux/drivers/iio/adc/
H A Dmax11410.c695 struct iio_chan_spec chanspec = chanspec_template; in max11410_parse_channels() local
730 chanspec.differential = 1; in max11410_parse_channels()
735 chanspec.differential = 0; in max11410_parse_channels()
781 &chanspec.info_mask_separate_available); in max11410_parse_channels()
791 cfg->scale_avail[2 * i + 1] = chanspec.scan_type.realbits; in max11410_parse_channels()
795 &chanspec.info_mask_separate_available); in max11410_parse_channels()
798 chanspec.address = chan_idx; in max11410_parse_channels()
799 chanspec.scan_index = chan_idx; in max11410_parse_channels()
800 chanspec.channel = inputs[0]; in max11410_parse_channels()
801 chanspec.channel2 = inputs[1]; in max11410_parse_channels()
[all …]

12345