/linux-6.6.21/drivers/comedi/ |
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.6.21/drivers/comedi/drivers/ |
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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() 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 …]
|
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
D | cb_pcimdda.c | 87 unsigned int chan = CR_CHAN(insn->chanspec); in cb_pcimdda_ao_insn_write() 117 unsigned int chan = CR_CHAN(insn->chanspec); in cb_pcimdda_ao_insn_read()
|
/linux-6.6.21/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | channel.c | 373 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 …]
|
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,
|
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()
|
D | main.c | 417 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() 914 CHSPEC_CHANNEL(wlc->default_bss->chanspec)); in brcms_c_dotxstatus() 1220 wlc_hw->chanspec = ch20mhz_chspec(1); in brcms_b_info_init() 1695 static void brcms_b_bsinit(struct brcms_c_info *wlc, u16 chanspec) in brcms_b_bsinit() argument 1704 wlc_phy_init(wlc_hw->band->pi, chanspec); in brcms_b_bsinit() 1813 u16 chanspec) { in brcms_b_setband() argument 1831 brcms_b_bsinit(wlc, chanspec); in brcms_b_setband() 3335 static void brcms_b_init(struct brcms_hardware *wlc_hw, u16 chanspec) in brcms_b_init() argument [all …]
|
/linux-6.6.21/drivers/comedi/kcomedilib/ |
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.6.21/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
D | phy_hal.h | 121 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-6.6.21/drivers/iio/adc/ |
D | max11410.c | 695 struct iio_chan_spec chanspec = chanspec_template; in max11410_parse_channels() local 731 chanspec.differential = 1; in max11410_parse_channels() 736 chanspec.differential = 0; in max11410_parse_channels() 792 &chanspec.info_mask_separate_available); in max11410_parse_channels() 804 cfg->scale_avail[2 * i + 1] = chanspec.scan_type.realbits; in max11410_parse_channels() 808 &chanspec.info_mask_separate_available); in max11410_parse_channels() 811 chanspec.address = chan_idx; in max11410_parse_channels() 812 chanspec.scan_index = chan_idx; in max11410_parse_channels() 813 chanspec.channel = inputs[0]; in max11410_parse_channels() 814 chanspec.channel2 = inputs[1]; in max11410_parse_channels() [all …]
|