/linux-6.3-rc2/drivers/comedi/ |
A D | range.c | 109 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-6.3-rc2/drivers/comedi/drivers/ |
A D | pcm3724.c | 87 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()
|
A D | icp_multi.c | 105 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()
|
A D | das6402.c | 206 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()
|
A D | pcmmio.c | 393 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()
|
A D | aio_aio12_8.c | 116 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()
|
A D | ii_pci20kc.c | 149 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()
|
A D | pcl711.c | 209 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()
|
A D | rtd520.c | 414 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() 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() 1014 unsigned int range = CR_RANGE(insn->chanspec); in rtd_ao_insn_write() [all …]
|
A D | me_daq.c | 154 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()
|
A D | dac02.c | 72 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()
|
A D | multiq3.c | 98 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()
|
A D | cb_das16_cs.c | 143 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()
|
A D | ni_daq_700.c | 137 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()
|
A D | s526.c | 200 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()
|
A D | dt2811.c | 242 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()
|
A D | addi_apci_3xxx.c | 379 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()
|
A D | pcmad.c | 72 unsigned int chan = CR_CHAN(insn->chanspec); in pcmad_ai_insn_read() 73 unsigned int range = CR_RANGE(insn->chanspec); in pcmad_ai_insn_read()
|
/linux-6.3-rc2/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
A D | channel.c | 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() 587 if (!CHSPEC_SB_NONE(chanspec)) in brcms_c_chspec_malformed() [all …]
|
A D | channel.h | 41 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,
|
A D | stf.c | 88 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()
|
A D | main.c | 1813 u16 chanspec) { in brcms_b_setband() argument 3384 u16 chanspec) in brcms_c_set_phy_chanspec() argument 3387 wlc->chanspec = chanspec; in brcms_c_set_phy_chanspec() 3394 chanspec); in brcms_c_set_phy_chanspec() 3826 wlc->bsscfg->current_bss->chanspec = chanspec; in brcms_c_set_home_chanspec() 3837 chanspec); in brcms_b_set_chanspec() 3839 wlc_hw->chanspec = chanspec; in brcms_b_set_chanspec() 3864 chanspec); in brcms_b_set_chanspec() 4732 u16 chanspec; in brcms_c_bss_default_init() local 4744 wlc->home_chanspec = bi->chanspec = chanspec; in brcms_c_bss_default_init() [all …]
|
/linux-6.3-rc2/drivers/comedi/kcomedilib/ |
A D | kcomedilib_main.c | 96 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-6.3-rc2/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
A D | phy_hal.h | 121 u16 chanspec; /* txpwr report for this channel */ member 184 void wlc_phy_init(struct brcms_phy_pub *ppi, u16 chanspec); 191 void wlc_phy_chanspec_set(struct brcms_phy_pub *ppi, u16 chanspec); 223 u16 chanspec); 238 s8 wlc_phy_stf_ssmode_get(struct brcms_phy_pub *pih, u16 chanspec);
|
/linux-6.3-rc2/drivers/iio/adc/ |
A D | max11410.c | 691 struct iio_chan_spec chanspec = chanspec_template; in max11410_parse_channels() local 727 chanspec.differential = 1; in max11410_parse_channels() 732 chanspec.differential = 0; in max11410_parse_channels() 788 &chanspec.info_mask_separate_available); in max11410_parse_channels() 800 cfg->scale_avail[2 * i + 1] = chanspec.scan_type.realbits; in max11410_parse_channels() 804 &chanspec.info_mask_separate_available); in max11410_parse_channels() 807 chanspec.address = chan_idx; in max11410_parse_channels() 808 chanspec.scan_index = chan_idx; in max11410_parse_channels() 809 chanspec.channel = inputs[0]; in max11410_parse_channels() 810 chanspec.channel2 = inputs[1]; in max11410_parse_channels() [all …]
|