Home
last modified time | relevance | path

Searched refs:chanlist (Results 1 – 25 of 50) sorted by relevance

12

/Linux-v4.19/drivers/staging/comedi/drivers/
Dpcl816.c153 unsigned int *chanlist, in pcl816_ai_setup_chanlist() argument
156 unsigned int first_chan = CR_CHAN(chanlist[0]); in pcl816_ai_setup_chanlist()
163 last_chan = CR_CHAN(chanlist[i]); in pcl816_ai_setup_chanlist()
164 range = CR_RANGE(chanlist[i]); in pcl816_ai_setup_chanlist()
281 unsigned int *chanlist, in check_channel_list() argument
295 chansegment[0] = chanlist[0]; in check_channel_list()
298 if (chanlist[0] == chanlist[i]) in check_channel_list()
302 if (nowmustbechan != CR_CHAN(chanlist[i])) { in check_channel_list()
306 i, CR_CHAN(chanlist[i]), nowmustbechan, in check_channel_list()
307 CR_CHAN(chanlist[0])); in check_channel_list()
[all …]
Dadv_pci1710.c186 unsigned int chan0 = CR_CHAN(cmd->chanlist[0]); in pci1710_ai_check_chanlist()
187 unsigned int last_aref = CR_AREF(cmd->chanlist[0]); in pci1710_ai_check_chanlist()
199 chansegment[0] = cmd->chanlist[0]; in pci1710_ai_check_chanlist()
202 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in pci1710_ai_check_chanlist()
203 unsigned int aref = CR_AREF(cmd->chanlist[i]); in pci1710_ai_check_chanlist()
205 if (cmd->chanlist[0] == cmd->chanlist[i]) in pci1710_ai_check_chanlist()
224 chansegment[i] = cmd->chanlist[i]; in pci1710_ai_check_chanlist()
230 if (cmd->chanlist[i] != chansegment[i % seglen]) { in pci1710_ai_check_chanlist()
236 CR_CHAN(cmd->chanlist[i % seglen]), in pci1710_ai_check_chanlist()
237 CR_RANGE(cmd->chanlist[i % seglen]), in pci1710_ai_check_chanlist()
[all …]
Dpcl818.c342 unsigned int *chanlist, in pcl818_ai_setup_chanlist() argument
346 unsigned int first_chan = CR_CHAN(chanlist[0]); in pcl818_ai_setup_chanlist()
356 last_chan = CR_CHAN(chanlist[i]); in pcl818_ai_setup_chanlist()
357 range = CR_RANGE(chanlist[i]); in pcl818_ai_setup_chanlist()
573 unsigned int *chanlist, unsigned int n_chan) in check_channel_list() argument
586 chansegment[0] = chanlist[0]; in check_channel_list()
591 if (chanlist[0] == chanlist[i]) in check_channel_list()
595 if (nowmustbechan != CR_CHAN(chanlist[i])) { in check_channel_list()
599 i, CR_CHAN(chanlist[i]), nowmustbechan, in check_channel_list()
600 CR_CHAN(chanlist[0])); in check_channel_list()
[all …]
Dusbduxfast.c322 unsigned int gain0 = CR_RANGE(cmd->chanlist[0]); in usbduxfast_ai_check_chanlist()
331 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in usbduxfast_ai_check_chanlist()
332 unsigned int gain = CR_RANGE(cmd->chanlist[i]); in usbduxfast_ai_check_chanlist()
419 if (cmd->chanlist && cmd->chanlist_len > 0) in usbduxfast_ai_cmdtest()
486 if (CR_RANGE(cmd->chanlist[0]) > 0) in usbduxfast_ai_cmd()
569 if (CR_RANGE(cmd->chanlist[0]) > 0) in usbduxfast_ai_cmd()
580 if (CR_RANGE(cmd->chanlist[1]) > 0) in usbduxfast_ai_cmd()
603 if (CR_RANGE(cmd->chanlist[0]) > 0) in usbduxfast_ai_cmd()
627 if (CR_RANGE(cmd->chanlist[j]) > 0) in usbduxfast_ai_cmd()
640 if (CR_RANGE(cmd->chanlist[j + 1]) > 0) in usbduxfast_ai_cmd()
[all …]
Ddas6402.c228 unsigned int chan_lo = CR_CHAN(cmd->chanlist[0]); in das6402_ai_cmd()
229 unsigned int chan_hi = CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]); in das6402_ai_cmd()
231 das6402_ai_set_mode(dev, s, cmd->chanlist[0], DAS6402_MODE_FIFONEPTY); in das6402_ai_cmd()
252 unsigned int chan0 = CR_CHAN(cmd->chanlist[0]); in das6402_ai_check_chanlist()
253 unsigned int range0 = CR_RANGE(cmd->chanlist[0]); in das6402_ai_check_chanlist()
254 unsigned int aref0 = CR_AREF(cmd->chanlist[0]); in das6402_ai_check_chanlist()
258 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in das6402_ai_check_chanlist()
259 unsigned int range = CR_RANGE(cmd->chanlist[i]); in das6402_ai_check_chanlist()
260 unsigned int aref = CR_AREF(cmd->chanlist[i]); in das6402_ai_check_chanlist()
343 if (cmd->chanlist && cmd->chanlist_len > 0) in das6402_ai_cmdtest()
Dadl_pci9111.c205 unsigned int range0 = CR_RANGE(cmd->chanlist[0]); in pci9111_ai_check_chanlist()
206 unsigned int aref0 = CR_AREF(cmd->chanlist[0]); in pci9111_ai_check_chanlist()
210 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in pci9111_ai_check_chanlist()
211 unsigned int range = CR_RANGE(cmd->chanlist[i]); in pci9111_ai_check_chanlist()
212 unsigned int aref = CR_AREF(cmd->chanlist[i]); in pci9111_ai_check_chanlist()
327 if (cmd->chanlist && cmd->chanlist_len > 0) in pci9111_ai_do_cmd_test()
341 unsigned int last_chan = CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]); in pci9111_ai_do_cmd()
342 unsigned int range0 = CR_RANGE(cmd->chanlist[0]); in pci9111_ai_do_cmd()
Dni_at_a2150.c356 unsigned int chan0 = CR_CHAN(cmd->chanlist[0]); in a2150_ai_check_chanlist()
357 unsigned int aref0 = CR_AREF(cmd->chanlist[0]); in a2150_ai_check_chanlist()
373 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in a2150_ai_check_chanlist()
374 unsigned int aref = CR_AREF(cmd->chanlist[i]); in a2150_ai_check_chanlist()
455 if (cmd->chanlist && cmd->chanlist_len > 0) in a2150_ai_cmdtest()
483 if (a2150_set_chanlist(dev, CR_CHAN(cmd->chanlist[0]), in a2150_ai_cmd()
488 if (CR_AREF(cmd->chanlist[0]) == AREF_OTHER) in a2150_ai_cmd()
492 if (CR_AREF(cmd->chanlist[2]) == AREF_OTHER) in a2150_ai_cmd()
Ddas800.c269 unsigned int chan0 = CR_CHAN(cmd->chanlist[0]); in das800_ai_check_chanlist()
270 unsigned int range0 = CR_RANGE(cmd->chanlist[0]); in das800_ai_check_chanlist()
274 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in das800_ai_check_chanlist()
275 unsigned int range = CR_RANGE(cmd->chanlist[i]); in das800_ai_check_chanlist()
357 if (cmd->chanlist && cmd->chanlist_len > 0) in das800_ai_do_cmdtest()
372 unsigned int gain = CR_RANGE(cmd->chanlist[0]); in das800_ai_do_cmd()
373 unsigned int start_chan = CR_CHAN(cmd->chanlist[0]); in das800_ai_do_cmd()
Damplc_pci230.c853 unsigned int prev_chan = CR_CHAN(cmd->chanlist[0]); in pci230_ao_check_chanlist()
854 unsigned int range0 = CR_RANGE(cmd->chanlist[0]); in pci230_ao_check_chanlist()
858 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in pci230_ao_check_chanlist()
859 unsigned int range = CR_RANGE(cmd->chanlist[i]); in pci230_ao_check_chanlist()
999 if (cmd->chanlist && cmd->chanlist_len > 0) in pci230_ao_cmdtest()
1074 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in pci230_handle_ao_nofifo()
1145 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in pci230_handle_ao_fifo()
1320 range = CR_RANGE(cmd->chanlist[0]); in pci230_ao_cmd()
1330 dacen |= 1 << CR_CHAN(cmd->chanlist[i]); in pci230_ao_cmd()
1417 unsigned int chanspec = cmd->chanlist[i]; in pci230_ai_check_chanlist()
[all …]
Ddmm32at.c237 unsigned int chan0 = CR_CHAN(cmd->chanlist[0]); in dmm32at_ai_check_chanlist()
238 unsigned int range0 = CR_RANGE(cmd->chanlist[0]); in dmm32at_ai_check_chanlist()
242 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in dmm32at_ai_check_chanlist()
243 unsigned int range = CR_RANGE(cmd->chanlist[i]); in dmm32at_ai_check_chanlist()
323 if (cmd->chanlist && cmd->chanlist_len > 0) in dmm32at_ai_cmdtest()
369 dmm32at_ai_set_chanspec(dev, s, cmd->chanlist[0], cmd->chanlist_len); in dmm32at_ai_cmd()
Dcb_pcidas.c652 unsigned int chan0 = CR_CHAN(cmd->chanlist[0]); in cb_pcidas_ai_check_chanlist()
653 unsigned int range0 = CR_RANGE(cmd->chanlist[0]); in cb_pcidas_ai_check_chanlist()
657 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in cb_pcidas_ai_check_chanlist()
658 unsigned int range = CR_RANGE(cmd->chanlist[i]); in cb_pcidas_ai_check_chanlist()
776 if (cmd->chanlist && cmd->chanlist_len > 0) in cb_pcidas_ai_cmdtest()
792 unsigned int range0 = CR_RANGE(cmd->chanlist[0]); in cb_pcidas_ai_cmd()
804 bits = PCIDAS_AI_FIRST(CR_CHAN(cmd->chanlist[0])) | in cb_pcidas_ai_cmd()
805 PCIDAS_AI_LAST(CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1])) | in cb_pcidas_ai_cmd()
811 if (CR_AREF(cmd->chanlist[0]) != AREF_DIFF) in cb_pcidas_ai_cmd()
874 unsigned int chan0 = CR_CHAN(cmd->chanlist[0]); in cb_pcidas_ao_check_chanlist()
[all …]
Damplc_pci224.c630 range_check_0 = board->ao_range_check[CR_RANGE(cmd->chanlist[0])]; in pci224_ao_check_chanlist()
632 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in pci224_ao_check_chanlist()
642 if (board->ao_range_check[CR_RANGE(cmd->chanlist[i])] != in pci224_ao_check_chanlist()
798 if (cmd->chanlist && cmd->chanlist_len > 0) in pci224_ao_cmdtest()
843 if (!cmd->chanlist || cmd->chanlist_len == 0) in pci224_ao_cmd()
850 ch = CR_CHAN(cmd->chanlist[i]); in pci224_ao_cmd()
854 if (CR_CHAN(cmd->chanlist[j]) < ch) in pci224_ao_cmd()
864 range = CR_RANGE(cmd->chanlist[0]); in pci224_ao_cmd()
929 if ((board->ao_hwrange[CR_RANGE(cmd->chanlist[0])] & in pci224_ao_munge()
Dni_labpc_common.c425 if (!cmd->chanlist) in labpc_ai_scan_mode()
428 chan0 = CR_CHAN(cmd->chanlist[0]); in labpc_ai_scan_mode()
429 chan1 = CR_CHAN(cmd->chanlist[1]); in labpc_ai_scan_mode()
445 unsigned int chan0 = CR_CHAN(cmd->chanlist[0]); in labpc_ai_check_chanlist()
446 unsigned int range0 = CR_RANGE(cmd->chanlist[0]); in labpc_ai_check_chanlist()
447 unsigned int aref0 = CR_AREF(cmd->chanlist[0]); in labpc_ai_check_chanlist()
451 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in labpc_ai_check_chanlist()
452 unsigned int range = CR_RANGE(cmd->chanlist[i]); in labpc_ai_check_chanlist()
453 unsigned int aref = CR_AREF(cmd->chanlist[i]); in labpc_ai_check_chanlist()
604 if (cmd->chanlist && cmd->chanlist_len > 0) in labpc_ai_cmdtest()
[all …]
Dcb_pcidas64.c2068 unsigned int aref0 = CR_AREF(cmd->chanlist[0]); in cb_pcidas64_ai_check_chanlist()
2072 unsigned int aref = CR_AREF(cmd->chanlist[i]); in cb_pcidas64_ai_check_chanlist()
2082 unsigned int chan0 = CR_CHAN(cmd->chanlist[0]); in cb_pcidas64_ai_check_chanlist()
2085 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in cb_pcidas64_ai_check_chanlist()
2220 if (cmd->chanlist && cmd->chanlist_len > 0) in ai_cmdtest()
2405 if (CR_CHAN(cmd->chanlist[i + 1]) != in use_internal_queue_6xxx()
2406 CR_CHAN(cmd->chanlist[i]) + 1) in use_internal_queue_6xxx()
2408 if (CR_RANGE(cmd->chanlist[i + 1]) != in use_internal_queue_6xxx()
2409 CR_RANGE(cmd->chanlist[i])) in use_internal_queue_6xxx()
2411 if (CR_AREF(cmd->chanlist[i + 1]) != CR_AREF(cmd->chanlist[i])) in use_internal_queue_6xxx()
[all …]
Dadl_pci9118.c292 unsigned int range0 = CR_RANGE(cmd->chanlist[0]); in pci9118_ai_check_chanlist()
293 unsigned int aref0 = CR_AREF(cmd->chanlist[0]); in pci9118_ai_check_chanlist()
301 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in pci9118_ai_check_chanlist()
302 unsigned int range = CR_RANGE(cmd->chanlist[i]); in pci9118_ai_check_chanlist()
303 unsigned int aref = CR_AREF(cmd->chanlist[i]); in pci9118_ai_check_chanlist()
329 int n_chan, unsigned int *chanlist, in pci9118_set_chanlist() argument
333 unsigned int chan0 = CR_CHAN(chanlist[0]); in pci9118_set_chanlist()
334 unsigned int range0 = CR_RANGE(chanlist[0]); in pci9118_set_chanlist()
335 unsigned int aref0 = CR_AREF(chanlist[0]); in pci9118_set_chanlist()
370 unsigned int chan = CR_CHAN(chanlist[i]); in pci9118_set_chanlist()
[all …]
Ddas1800.c617 unsigned int range = CR_RANGE(cmd->chanlist[0]); in das1800_ai_check_chanlist()
622 range = CR_RANGE(cmd->chanlist[i]); in das1800_ai_check_chanlist()
718 if (cmd->chanlist && cmd->chanlist_len > 0) in das1800_ai_cmdtest()
807 unsigned int *chanlist, unsigned int len) in das1800_ai_set_chanlist() argument
821 unsigned int chan = CR_CHAN(chanlist[i]); in das1800_ai_set_chanlist()
822 unsigned int range = CR_RANGE(chanlist[i]); in das1800_ai_set_chanlist()
842 unsigned int range0 = CR_RANGE(cmd->chanlist[0]); in das1800_ai_cmd()
877 control_c = das1800_ai_chanspec_bits(s, cmd->chanlist[0]); in das1800_ai_cmd()
896 das1800_ai_set_chanlist(dev, cmd->chanlist, cmd->chanlist_len); in das1800_ai_cmd()
Ddas16.c561 unsigned int chan0 = CR_CHAN(cmd->chanlist[0]); in das16_ai_check_chanlist()
562 unsigned int range0 = CR_RANGE(cmd->chanlist[0]); in das16_ai_check_chanlist()
566 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in das16_ai_check_chanlist()
567 unsigned int range = CR_RANGE(cmd->chanlist[i]); in das16_ai_check_chanlist()
676 if (cmd->chanlist && cmd->chanlist_len > 0) in das16_cmd_test()
701 unsigned int first_chan = CR_CHAN(cmd->chanlist[0]); in das16_cmd_exec()
702 unsigned int last_chan = CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]); in das16_cmd_exec()
703 unsigned int range = CR_RANGE(cmd->chanlist[0]); in das16_cmd_exec()
Dme4000.c538 unsigned int aref0 = CR_AREF(cmd->chanlist[0]); in me4000_ai_check_chanlist()
542 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in me4000_ai_check_chanlist()
543 unsigned int range = CR_RANGE(cmd->chanlist[i]); in me4000_ai_check_chanlist()
544 unsigned int aref = CR_AREF(cmd->chanlist[i]); in me4000_ai_check_chanlist()
634 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in me4000_ai_write_chanlist()
635 unsigned int range = CR_RANGE(cmd->chanlist[i]); in me4000_ai_write_chanlist()
636 unsigned int aref = CR_AREF(cmd->chanlist[i]); in me4000_ai_write_chanlist()
911 if (cmd->chanlist && cmd->chanlist_len > 0) in me4000_ai_do_cmd_test()
Dpcl812.c712 pcl812_ai_set_chan_range(dev, cmd->chanlist[0], 1); in pcl812_ai_cmd()
717 if (cmd->chanlist[0] != cmd->chanlist[i]) { in pcl812_ai_cmd()
792 if (cmd->chanlist[chan] != cmd->chanlist[next_chan]) in pcl812_handle_eoc()
793 pcl812_ai_set_chan_range(dev, cmd->chanlist[next_chan], 0); in pcl812_handle_eoc()
Ddas16m1.c155 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in das16m1_ai_check_chanlist()
230 if (cmd->chanlist && cmd->chanlist_len > 0) in das16m1_ai_cmdtest()
264 das16m1_ai_set_queue(dev, cmd->chanlist, cmd->chanlist_len); in das16m1_ai_cmd()
/Linux-v4.19/drivers/staging/comedi/
Drange.c109 unsigned int *chanlist) in comedi_check_chanlist() argument
116 chanspec = chanlist[i]; in comedi_check_chanlist()
Dcomedi_fops.c733 kfree(async->cmd.chanlist); in do_become_nonbusy()
734 async->cmd.chanlist = NULL; in do_become_nonbusy()
1626 unsigned int *chanlist; in __comedi_get_user_chanlist() local
1629 cmd->chanlist = NULL; in __comedi_get_user_chanlist()
1630 chanlist = memdup_user(user_chanlist, in __comedi_get_user_chanlist()
1632 if (IS_ERR(chanlist)) in __comedi_get_user_chanlist()
1633 return PTR_ERR(chanlist); in __comedi_get_user_chanlist()
1636 ret = comedi_check_chanlist(s, cmd->chanlist_len, chanlist); in __comedi_get_user_chanlist()
1638 kfree(chanlist); in __comedi_get_user_chanlist()
1642 cmd->chanlist = chanlist; in __comedi_get_user_chanlist()
[all …]
/Linux-v4.19/drivers/net/wireless/mediatek/mt7601u/
Dinit.c531 void *chanlist; in mt76_init_sband() local
535 chanlist = devm_kmemdup(dev->dev, chan, size, GFP_KERNEL); in mt76_init_sband()
536 if (!chanlist) in mt76_init_sband()
539 sband->channels = chanlist; in mt76_init_sband()
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/mt76x0/
Dinit.c602 void *chanlist; in mt76_init_sband() local
606 chanlist = devm_kmemdup(dev->mt76.dev, chan, size, GFP_KERNEL); in mt76_init_sband()
607 if (!chanlist) in mt76_init_sband()
610 sband->channels = chanlist; in mt76_init_sband()
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/
Dmac80211.c176 void *chanlist; in mt76_init_sband() local
180 chanlist = devm_kmemdup(dev->dev, chan, size, GFP_KERNEL); in mt76_init_sband()
181 if (!chanlist) in mt76_init_sband()
189 sband->channels = chanlist; in mt76_init_sband()

12