Home
last modified time | relevance | path

Searched refs:insn (Results 1 – 25 of 122) sorted by relevance

12345

/drivers/comedi/kcomedilib/
Dkcomedilib_main.c67 struct comedi_insn *insn, in comedi_do_insn() argument
81 if (insn->subdev >= dev->n_subdevices) { in comedi_do_insn()
85 s = &dev->subdevices[insn->subdev]; in comedi_do_insn()
89 "%d not usable subdevice\n", insn->subdev); in comedi_do_insn()
96 ret = comedi_check_chanlist(s, 1, &insn->chanspec); in comedi_do_insn()
109 switch (insn->insn) { in comedi_do_insn()
111 ret = s->insn_bits(dev, s, insn, data); in comedi_do_insn()
115 ret = s->insn_config(dev, s, insn, data); in comedi_do_insn()
132 struct comedi_insn insn; in comedi_dio_get_config() local
136 memset(&insn, 0, sizeof(insn)); in comedi_dio_get_config()
[all …]
/drivers/net/ethernet/netronome/nfp/bpf/
Djit.c47 static void nfp_prog_push(struct nfp_prog *nfp_prog, u64 insn) in nfp_prog_push() argument
56 nfp_prog->prog[nfp_prog->prog_len] = insn; in nfp_prog_push()
83 u64 insn; in __emit_cmd() local
85 insn = FIELD_PREP(OP_CMD_A_SRC, areg) | in __emit_cmd()
96 nfp_prog_push(nfp_prog, insn); in __emit_cmd()
145 u64 insn; in __emit_br() local
150 insn = OP_BR_BASE | in __emit_br()
158 nfp_prog_push(nfp_prog, insn); in __emit_br()
190 u64 insn; in __emit_br_bit() local
195 insn = OP_BR_BIT_BASE | in __emit_br_bit()
[all …]
Dmain.h301 struct bpf_insn insn; member
353 return BPF_CLASS(meta->insn.code); in mbpf_class()
358 return BPF_SRC(meta->insn.code); in mbpf_src()
363 return BPF_OP(meta->insn.code); in mbpf_op()
368 return BPF_MODE(meta->insn.code); in mbpf_mode()
378 return (meta->insn.code & ~BPF_SIZE_MASK) == (BPF_LDX | BPF_MEM); in is_mbpf_load()
398 return (meta->insn.code & ~BPF_SIZE_MASK) == (BPF_STX | BPF_MEM); in is_mbpf_store()
413 u8 code = meta->insn.code; in is_mbpf_classic_load()
421 u8 code = meta->insn.code; in is_mbpf_classic_store()
433 return (meta->insn.code & ~BPF_SIZE_MASK) == (BPF_STX | BPF_ATOMIC); in is_mbpf_atomic()
[all …]
Dverifier.c178 u32 func_id = meta->insn.imm; in nfp_bpf_check_helper_call()
431 off = reg->var_off.value + meta->insn.off + reg->off; in nfp_bpf_map_mark_used()
432 size = BPF_LDST_BYTES(&meta->insn); in nfp_bpf_map_mark_used()
505 const struct bpf_reg_state *reg = cur_regs(env) + meta->insn.dst_reg; in nfp_bpf_check_store()
510 switch (meta->insn.off) { in nfp_bpf_check_store()
522 return nfp_bpf_check_ptr(nfp_prog, meta, env, meta->insn.dst_reg); in nfp_bpf_check_store()
529 const struct bpf_reg_state *sreg = cur_regs(env) + meta->insn.src_reg; in nfp_bpf_check_atomic()
530 const struct bpf_reg_state *dreg = cur_regs(env) + meta->insn.dst_reg; in nfp_bpf_check_atomic()
532 if (meta->insn.imm != BPF_ADD) { in nfp_bpf_check_atomic()
533 pr_vlog(env, "atomic op not implemented: %d\n", meta->insn.imm); in nfp_bpf_check_atomic()
[all …]
/drivers/comedi/drivers/
Dmultiq3.c82 struct comedi_insn *insn, in multiq3_ai_status() argument
95 struct comedi_insn *insn, in multiq3_ai_insn_read() argument
98 unsigned int chan = CR_CHAN(insn->chanspec); in multiq3_ai_insn_read()
105 ret = comedi_timeout(dev, s, insn, multiq3_ai_status, in multiq3_ai_insn_read()
110 for (i = 0; i < insn->n; i++) { in multiq3_ai_insn_read()
113 ret = comedi_timeout(dev, s, insn, multiq3_ai_status, in multiq3_ai_insn_read()
127 return insn->n; in multiq3_ai_insn_read()
132 struct comedi_insn *insn, in multiq3_ao_insn_write() argument
135 unsigned int chan = CR_CHAN(insn->chanspec); in multiq3_ao_insn_write()
139 for (i = 0; i < insn->n; i++) { in multiq3_ao_insn_write()
[all …]
Dicp_multi.c89 struct comedi_insn *insn, in icp_multi_ai_eoc() argument
102 struct comedi_insn *insn, in icp_multi_ai_insn_read() argument
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()
122 for (n = 0; n < insn->n; n++) { in icp_multi_ai_insn_read()
130 ret = comedi_timeout(dev, s, insn, icp_multi_ai_eoc, 0); in icp_multi_ai_insn_read()
142 struct comedi_insn *insn, in icp_multi_ao_ready() argument
155 struct comedi_insn *insn, in icp_multi_ao_insn_write() argument
158 unsigned int chan = CR_CHAN(insn->chanspec); in icp_multi_ao_insn_write()
[all …]
Ds526.c197 struct comedi_insn *insn, in s526_gpct_rinsn() argument
200 unsigned int chan = CR_CHAN(insn->chanspec); in s526_gpct_rinsn()
203 for (i = 0; i < insn->n; i++) in s526_gpct_rinsn()
206 return insn->n; in s526_gpct_rinsn()
211 struct comedi_insn *insn, in s526_gpct_insn_config() argument
215 unsigned int chan = CR_CHAN(insn->chanspec); in s526_gpct_insn_config()
377 return insn->n; in s526_gpct_insn_config()
382 struct comedi_insn *insn, in s526_gpct_winsn() argument
386 unsigned int chan = CR_CHAN(insn->chanspec); in s526_gpct_winsn()
413 return insn->n; in s526_gpct_winsn()
[all …]
Daddi_apci_1564.c265 struct comedi_insn *insn, in apci1564_di_insn_bits() argument
270 return insn->n; in apci1564_di_insn_bits()
275 struct comedi_insn *insn, in apci1564_do_insn_bits() argument
285 return insn->n; in apci1564_do_insn_bits()
290 struct comedi_insn *insn, in apci1564_diag_insn_bits() argument
295 return insn->n; in apci1564_diag_insn_bits()
330 struct comedi_insn *insn, in apci1564_cos_insn_config() argument
405 return insn->n; in apci1564_cos_insn_config()
410 struct comedi_insn *insn, in apci1564_cos_insn_bits() argument
493 struct comedi_insn *insn, in apci1564_timer_insn_config() argument
[all …]
Daio_aio12_8.c100 struct comedi_insn *insn, in aio_aio12_8_ai_eoc() argument
113 struct comedi_insn *insn, in aio_aio12_8_ai_read() argument
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()
133 for (i = 0; i < insn->n; i++) { in aio_aio12_8_ai_read()
138 ret = comedi_timeout(dev, s, insn, aio_aio12_8_ai_eoc, 0); in aio_aio12_8_ai_read()
151 return insn->n; in aio_aio12_8_ai_read()
156 struct comedi_insn *insn, in aio_aio12_8_ao_insn_write() argument
159 unsigned int chan = CR_CHAN(insn->chanspec); in aio_aio12_8_ao_insn_write()
166 for (i = 0; i < insn->n; i++) { in aio_aio12_8_ao_insn_write()
[all …]
Ddas08.c156 struct comedi_insn *insn, in das08_ai_eoc() argument
169 struct comedi_insn *insn, unsigned int *data) in das08_ai_insn_read() argument
179 chan = CR_CHAN(insn->chanspec); in das08_ai_insn_read()
180 range = CR_RANGE(insn->chanspec); in das08_ai_insn_read()
196 range = CR_RANGE(insn->chanspec); in das08_ai_insn_read()
201 for (n = 0; n < insn->n; n++) { in das08_ai_insn_read()
210 ret = comedi_timeout(dev, s, insn, das08_ai_eoc, 0); in das08_ai_insn_read()
252 struct comedi_insn *insn, unsigned int *data) in das08_di_insn_bits() argument
257 return insn->n; in das08_di_insn_bits()
262 struct comedi_insn *insn, unsigned int *data) in das08_do_insn_bits() argument
[all …]
Drti800.c135 struct comedi_insn *insn, in rti800_ai_eoc() argument
152 struct comedi_insn *insn, in rti800_ai_insn_read() argument
156 unsigned int chan = CR_CHAN(insn->chanspec); in rti800_ai_insn_read()
157 unsigned int gain = CR_RANGE(insn->chanspec); in rti800_ai_insn_read()
173 if (insn->n > 0) { in rti800_ai_insn_read()
182 for (i = 0; i < insn->n; i++) { in rti800_ai_insn_read()
187 ret = comedi_timeout(dev, s, insn, rti800_ai_eoc, 0); in rti800_ai_insn_read()
200 return insn->n; in rti800_ai_insn_read()
205 struct comedi_insn *insn, in rti800_ao_insn_write() argument
209 unsigned int chan = CR_CHAN(insn->chanspec); in rti800_ao_insn_write()
[all …]
Dcb_das16_cs.c126 struct comedi_insn *insn, in das16cs_ai_eoc() argument
139 struct comedi_insn *insn, in das16cs_ai_insn_read() argument
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()
178 for (i = 0; i < insn->n; i++) { in das16cs_ai_insn_read()
181 ret = comedi_timeout(dev, s, insn, das16cs_ai_eoc, 0); in das16cs_ai_insn_read()
193 struct comedi_insn *insn, in das16cs_ao_insn_write() argument
197 unsigned int chan = CR_CHAN(insn->chanspec); in das16cs_ao_insn_write()
203 for (i = 0; i < insn->n; i++) { in das16cs_ao_insn_write()
[all …]
Dke_counter.c42 struct comedi_insn *insn, in ke_counter_insn_write() argument
45 unsigned int chan = CR_CHAN(insn->chanspec); in ke_counter_insn_write()
49 for (i = 0; i < insn->n; i++) { in ke_counter_insn_write()
59 return insn->n; in ke_counter_insn_write()
64 struct comedi_insn *insn, in ke_counter_insn_read() argument
67 unsigned int chan = CR_CHAN(insn->chanspec); in ke_counter_insn_read()
71 for (i = 0; i < insn->n; i++) { in ke_counter_insn_read()
83 return insn->n; in ke_counter_insn_read()
96 struct comedi_insn *insn, in ke_counter_insn_config() argument
144 return insn->n; in ke_counter_insn_config()
[all …]
Dni_daq_700.c75 struct comedi_insn *insn, in daq700_dio_insn_bits() argument
92 return insn->n; in daq700_dio_insn_bits()
97 struct comedi_insn *insn, in daq700_dio_insn_config() argument
102 ret = comedi_dio_insn_config(dev, s, insn, data, 0); in daq700_dio_insn_config()
109 return insn->n; in daq700_dio_insn_config()
114 struct comedi_insn *insn, in daq700_ai_eoc() argument
132 struct comedi_insn *insn, unsigned int *data) in daq700_ai_rinsn() argument
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()
[all …]
Dadq12b.c94 struct comedi_insn *insn, in adq12b_ai_eoc() argument
107 struct comedi_insn *insn, in adq12b_ai_insn_read() argument
111 unsigned int chan = CR_CHAN(insn->chanspec); in adq12b_ai_insn_read()
112 unsigned int range = CR_RANGE(insn->chanspec); in adq12b_ai_insn_read()
127 for (i = 0; i < insn->n; i++) { in adq12b_ai_insn_read()
128 ret = comedi_timeout(dev, s, insn, adq12b_ai_eoc, 0); in adq12b_ai_insn_read()
138 return insn->n; in adq12b_ai_insn_read()
143 struct comedi_insn *insn, unsigned int *data) in adq12b_di_insn_bits() argument
148 return insn->n; in adq12b_di_insn_bits()
153 struct comedi_insn *insn, in adq12b_do_insn_bits() argument
[all …]
Dmf6x4.c85 struct comedi_insn *insn, in mf6x4_di_insn_bits() argument
90 return insn->n; in mf6x4_di_insn_bits()
95 struct comedi_insn *insn, in mf6x4_do_insn_bits() argument
103 return insn->n; in mf6x4_do_insn_bits()
108 struct comedi_insn *insn, in mf6x4_ai_eoc() argument
123 struct comedi_insn *insn, in mf6x4_ai_insn_read() argument
126 unsigned int chan = CR_CHAN(insn->chanspec); in mf6x4_ai_insn_read()
134 for (i = 0; i < insn->n; i++) { in mf6x4_ai_insn_read()
138 ret = comedi_timeout(dev, s, insn, mf6x4_ai_eoc, 0); in mf6x4_ai_insn_read()
151 return insn->n; in mf6x4_ai_insn_read()
[all …]
Dni_at_ao.c126 struct comedi_insn *insn, in atao_ao_insn_write() argument
129 unsigned int chan = CR_CHAN(insn->chanspec); in atao_ao_insn_write()
136 for (i = 0; i < insn->n; i++) { in atao_ao_insn_write()
148 return insn->n; in atao_ao_insn_write()
153 struct comedi_insn *insn, in atao_dio_insn_bits() argument
161 return insn->n; in atao_dio_insn_bits()
166 struct comedi_insn *insn, in atao_dio_insn_config() argument
170 unsigned int chan = CR_CHAN(insn->chanspec); in atao_dio_insn_config()
179 ret = comedi_dio_insn_config(dev, s, insn, data, mask); in atao_dio_insn_config()
194 return insn->n; in atao_dio_insn_config()
[all …]
Ddyna_pci10xx.c50 struct comedi_insn *insn, in dyna_pci10xx_ai_eoc() argument
63 struct comedi_insn *insn, in dyna_pci10xx_insn_read_ai() argument
73 chan = CR_CHAN(insn->chanspec); in dyna_pci10xx_insn_read_ai()
74 range = range_codes_pci1050_ai[CR_RANGE((insn->chanspec))]; in dyna_pci10xx_insn_read_ai()
78 for (n = 0; n < insn->n; n++) { in dyna_pci10xx_insn_read_ai()
84 ret = comedi_timeout(dev, s, insn, dyna_pci10xx_ai_eoc, 0); in dyna_pci10xx_insn_read_ai()
103 struct comedi_insn *insn, in dyna_pci10xx_insn_write_ao() argument
110 for (n = 0; n < insn->n; n++) { in dyna_pci10xx_insn_write_ao()
123 struct comedi_insn *insn, in dyna_pci10xx_di_insn_bits() argument
138 return insn->n; in dyna_pci10xx_di_insn_bits()
[all …]
Dadl_pci6208.c43 struct comedi_insn *insn, in pci6208_ao_eoc() argument
56 struct comedi_insn *insn, in pci6208_ao_insn_write() argument
59 unsigned int chan = CR_CHAN(insn->chanspec); in pci6208_ao_insn_write()
63 for (i = 0; i < insn->n; i++) { in pci6208_ao_insn_write()
67 ret = comedi_timeout(dev, s, insn, pci6208_ao_eoc, 0); in pci6208_ao_insn_write()
78 return insn->n; in pci6208_ao_insn_write()
83 struct comedi_insn *insn, in pci6208_di_insn_bits() argument
93 return insn->n; in pci6208_di_insn_bits()
98 struct comedi_insn *insn, in pci6208_do_insn_bits() argument
106 return insn->n; in pci6208_do_insn_bits()
Dcb_pcimdas.c158 struct comedi_insn *insn, in cb_pcimdas_ai_eoc() argument
172 struct comedi_insn *insn, in cb_pcimdas_ai_insn_read() argument
176 unsigned int chan = CR_CHAN(insn->chanspec); in cb_pcimdas_ai_insn_read()
177 unsigned int range = CR_RANGE(insn->chanspec); in cb_pcimdas_ai_insn_read()
202 for (n = 0; n < insn->n; n++) { in cb_pcimdas_ai_insn_read()
207 ret = comedi_timeout(dev, s, insn, cb_pcimdas_ai_eoc, 0); in cb_pcimdas_ai_insn_read()
221 struct comedi_insn *insn, in cb_pcimdas_ao_insn_write() argument
225 unsigned int chan = CR_CHAN(insn->chanspec); in cb_pcimdas_ao_insn_write()
229 for (i = 0; i < insn->n; i++) { in cb_pcimdas_ao_insn_write()
235 return insn->n; in cb_pcimdas_ao_insn_write()
[all …]
Dc6xdigio.c150 struct comedi_insn *insn, in c6xdigio_pwm_insn_write() argument
153 unsigned int chan = CR_CHAN(insn->chanspec); in c6xdigio_pwm_insn_write()
157 for (i = 0; i < insn->n; i++) { in c6xdigio_pwm_insn_write()
171 return insn->n; in c6xdigio_pwm_insn_write()
176 struct comedi_insn *insn, in c6xdigio_pwm_insn_read() argument
179 unsigned int chan = CR_CHAN(insn->chanspec); in c6xdigio_pwm_insn_read()
185 for (i = 0; i < insn->n; i++) in c6xdigio_pwm_insn_read()
188 return insn->n; in c6xdigio_pwm_insn_read()
193 struct comedi_insn *insn, in c6xdigio_encoder_insn_read() argument
196 unsigned int chan = CR_CHAN(insn->chanspec); in c6xdigio_encoder_insn_read()
[all …]
Daddi_watchdog.c34 struct comedi_insn *insn, in addi_watchdog_insn_config() argument
59 return insn->n; in addi_watchdog_insn_config()
64 struct comedi_insn *insn, in addi_watchdog_insn_read() argument
70 for (i = 0; i < insn->n; i++) in addi_watchdog_insn_read()
73 return insn->n; in addi_watchdog_insn_read()
78 struct comedi_insn *insn, in addi_watchdog_insn_write() argument
90 for (i = 0; i < insn->n; i++) { in addi_watchdog_insn_write()
95 return insn->n; in addi_watchdog_insn_write()
Dme_daq.c150 struct comedi_insn *insn, in me_dio_insn_config() argument
154 unsigned int chan = CR_CHAN(insn->chanspec); in me_dio_insn_config()
163 ret = comedi_dio_insn_config(dev, s, insn, data, mask); in me_dio_insn_config()
178 return insn->n; in me_dio_insn_config()
183 struct comedi_insn *insn, in me_dio_insn_bits() argument
211 return insn->n; in me_dio_insn_bits()
216 struct comedi_insn *insn, in me_ai_eoc() argument
229 struct comedi_insn *insn, in me_ai_insn_read() argument
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()
[all …]
Daddi_apci_3501.c108 struct comedi_insn *insn, in apci3501_ao_insn_write() argument
111 unsigned int chan = CR_CHAN(insn->chanspec); in apci3501_ao_insn_write()
112 unsigned int range = CR_RANGE(insn->chanspec); in apci3501_ao_insn_write()
131 for (i = 0; i < insn->n; i++) { in apci3501_ao_insn_write()
152 return insn->n; in apci3501_ao_insn_write()
157 struct comedi_insn *insn, in apci3501_di_insn_bits() argument
162 return insn->n; in apci3501_di_insn_bits()
167 struct comedi_insn *insn, in apci3501_do_insn_bits() argument
177 return insn->n; in apci3501_do_insn_bits()
256 struct comedi_insn *insn, in apci3501_eeprom_insn_read() argument
[all …]
Dvmk80xx.c236 struct comedi_insn *insn, in vmk80xx_ai_insn_read() argument
245 chan = CR_CHAN(insn->chanspec); in vmk80xx_ai_insn_read()
263 for (n = 0; n < insn->n; n++) { in vmk80xx_ai_insn_read()
284 struct comedi_insn *insn, in vmk80xx_ao_insn_write() argument
294 chan = CR_CHAN(insn->chanspec); in vmk80xx_ao_insn_write()
311 for (n = 0; n < insn->n; n++) { in vmk80xx_ao_insn_write()
325 struct comedi_insn *insn, in vmk80xx_ao_insn_read() argument
334 chan = CR_CHAN(insn->chanspec); in vmk80xx_ao_insn_read()
340 for (n = 0; n < insn->n; n++) { in vmk80xx_ao_insn_read()
354 struct comedi_insn *insn, in vmk80xx_di_insn_bits() argument
[all …]

12345