Home
last modified time | relevance | path

Searched refs:insn_buf (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/drivers/comedi/drivers/
Dusbduxsigma.c149 u8 *insn_buf; member
576 devpriv->insn_buf, SIZEINSNBUF, in usbduxsigma_receive_cmd()
581 if (devpriv->insn_buf[0] == command) in usbduxsigma_receive_cmd()
739 *)(devpriv->insn_buf + 1))); in usbduxsigma_ai_insn_read()
975 s->state = devpriv->insn_buf[1] | in usbduxsigma_dio_insn_bits()
976 (devpriv->insn_buf[2] << 8) | in usbduxsigma_dio_insn_bits()
977 (devpriv->insn_buf[3] << 16); in usbduxsigma_dio_insn_bits()
1252 val = be32_to_cpu(get_unaligned((__be32 *)(devpriv->insn_buf + 1))); in usbduxsigma_getstatusinfo()
1338 devpriv->insn_buf = kzalloc(SIZEINSNBUF, GFP_KERNEL); in usbduxsigma_alloc_usb_buffers()
1341 if (!devpriv->dux_commands || !devpriv->in_buf || !devpriv->insn_buf || in usbduxsigma_alloc_usb_buffers()
[all …]
Dusbdux.c186 __le16 *insn_buf; member
617 devpriv->insn_buf, SIZEINSNBUF, in receive_dux_commands()
621 if (le16_to_cpu(devpriv->insn_buf[0]) == command) in receive_dux_commands()
765 val = le16_to_cpu(devpriv->insn_buf[1]); in usbdux_ai_insn_read()
1044 data[1] = le16_to_cpu(devpriv->insn_buf[1]); in usbdux_dio_insn_bits()
1072 data[i] = le16_to_cpu(devpriv->insn_buf[chan + 1]); in usbdux_counter_read()
1445 devpriv->insn_buf = kzalloc(SIZEINSNBUF, GFP_KERNEL); in usbdux_alloc_usb_buffers()
1450 if (!devpriv->dux_commands || !devpriv->in_buf || !devpriv->insn_buf || in usbdux_alloc_usb_buffers()
1550 kfree(devpriv->insn_buf); in usbdux_free_usb_buffers()
/linux-6.1.9/net/xdp/
Dxskmap.c113 static int xsk_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in xsk_map_gen_lookup() argument
116 struct bpf_insn *insn = insn_buf; in xsk_map_gen_lookup()
126 return insn - insn_buf; in xsk_map_gen_lookup()
/linux-6.1.9/arch/x86/kernel/cpu/mce/
Dseverity.c220 u8 insn_buf[MAX_INSN_SIZE]; in is_copy_from_user() local
228 if (copy_from_kernel_nofault(insn_buf, (void *)regs->ip, MAX_INSN_SIZE)) in is_copy_from_user()
231 ret = insn_decode_kernel(&insn, insn_buf); in is_copy_from_user()
/linux-6.1.9/net/core/
Dfilter.c294 struct bpf_insn *insn_buf) in convert_skb_access() argument
296 struct bpf_insn *insn = insn_buf; in convert_skb_access()
337 return insn - insn_buf; in convert_skb_access()
6810 struct bpf_insn *insn_buf, in bpf_tcp_sock_convert_ctx_access() argument
6813 struct bpf_insn *insn = insn_buf; in bpf_tcp_sock_convert_ctx_access()
6838 if (insn > insn_buf) in bpf_tcp_sock_convert_ctx_access()
6839 return insn - insn_buf; in bpf_tcp_sock_convert_ctx_access()
6929 return insn - insn_buf; in bpf_tcp_sock_convert_ctx_access()
7005 struct bpf_insn *insn_buf, in bpf_xdp_sock_convert_ctx_access() argument
7008 struct bpf_insn *insn = insn_buf; in bpf_xdp_sock_convert_ctx_access()
[all …]
/linux-6.1.9/kernel/bpf/
Dverifier.c13450 struct bpf_insn insn_buf[16], *insn; in convert_ctx_accesses() local
13461 cnt = ops->gen_prologue(insn_buf, env->seen_direct_write, in convert_ctx_accesses()
13463 if (cnt >= ARRAY_SIZE(insn_buf)) { in convert_ctx_accesses()
13467 new_prog = bpf_patch_insn_data(env, 0, insn_buf, cnt); in convert_ctx_accesses()
13584 cnt = convert_ctx_access(type, insn, insn_buf, env->prog, in convert_ctx_accesses()
13586 if (cnt == 0 || cnt >= ARRAY_SIZE(insn_buf) || in convert_ctx_accesses()
13595 if (shift && cnt + 1 >= ARRAY_SIZE(insn_buf)) { in convert_ctx_accesses()
13601 insn_buf[cnt++] = BPF_ALU32_IMM(BPF_RSH, in convert_ctx_accesses()
13604 insn_buf[cnt++] = BPF_ALU32_IMM(BPF_AND, insn->dst_reg, in convert_ctx_accesses()
13608 insn_buf[cnt++] = BPF_ALU64_IMM(BPF_RSH, in convert_ctx_accesses()
[all …]
Darraymap.c205 static int array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in array_map_gen_lookup() argument
208 struct bpf_insn *insn = insn_buf; in array_map_gen_lookup()
234 return insn - insn_buf; in array_map_gen_lookup()
1347 struct bpf_insn *insn_buf) in array_of_map_gen_lookup() argument
1351 struct bpf_insn *insn = insn_buf; in array_of_map_gen_lookup()
1374 return insn - insn_buf; in array_of_map_gen_lookup()
Dhashtab.c698 static int htab_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in htab_map_gen_lookup() argument
700 struct bpf_insn *insn = insn_buf; in htab_map_gen_lookup()
710 return insn - insn_buf; in htab_map_gen_lookup()
738 struct bpf_insn *insn_buf) in htab_lru_map_gen_lookup() argument
740 struct bpf_insn *insn = insn_buf; in htab_lru_map_gen_lookup()
759 return insn - insn_buf; in htab_lru_map_gen_lookup()
2498 struct bpf_insn *insn_buf) in htab_of_map_gen_lookup() argument
2500 struct bpf_insn *insn = insn_buf; in htab_of_map_gen_lookup()
2512 return insn - insn_buf; in htab_of_map_gen_lookup()
Dcgroup.c2191 struct bpf_insn *insn_buf, in sysctl_convert_ctx_access() argument
2194 struct bpf_insn *insn = insn_buf; in sysctl_convert_ctx_access()
2248 return insn - insn_buf; in sysctl_convert_ctx_access()
2386 struct bpf_insn *insn_buf, in cg_sockopt_convert_ctx_access() argument
2390 struct bpf_insn *insn = insn_buf; in cg_sockopt_convert_ctx_access()
2457 return insn - insn_buf; in cg_sockopt_convert_ctx_access()
2460 static int cg_sockopt_get_prologue(struct bpf_insn *insn_buf, in cg_sockopt_get_prologue() argument
/linux-6.1.9/arch/x86/kernel/
Dtraps.c586 u8 insn_buf[MAX_INSN_SIZE]; in get_kernel_gp_address() local
590 if (copy_from_kernel_nofault(insn_buf, (void *)regs->ip, in get_kernel_gp_address()
594 ret = insn_decode_kernel(&insn, insn_buf); in get_kernel_gp_address()
/linux-6.1.9/include/linux/
Dbpf.h106 int (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf);
724 struct bpf_insn *insn_buf);
2587 struct bpf_insn *insn_buf,
2605 struct bpf_insn *insn_buf, in bpf_sock_convert_ctx_access() argument
2629 struct bpf_insn *insn_buf,
2638 struct bpf_insn *insn_buf,
2651 struct bpf_insn *insn_buf, in bpf_tcp_sock_convert_ctx_access() argument
2666 struct bpf_insn *insn_buf, in bpf_xdp_sock_convert_ctx_access() argument
/linux-6.1.9/kernel/trace/
Dbpf_trace.c2059 struct bpf_insn *insn_buf, in pe_prog_convert_ctx_access() argument
2062 struct bpf_insn *insn = insn_buf; in pe_prog_convert_ctx_access()
2090 return insn - insn_buf; in pe_prog_convert_ctx_access()