Home
last modified time | relevance | path

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

/openbmc/linux/arch/riscv/kernel/
H A Dvector.c50 static bool insn_is_vector(u32 insn_buf) in insn_is_vector() argument
52 u32 opcode = insn_buf & __INSN_OPCODE_MASK; in insn_is_vector()
59 if (unlikely(GET_INSN_LENGTH(insn_buf) != 4)) in insn_is_vector()
67 width = RVV_EXRACT_VL_VS_WIDTH(insn_buf); in insn_is_vector()
74 csr = RVG_EXTRACT_SYSTEM_CSR(insn_buf); in insn_is_vector()
/openbmc/linux/drivers/comedi/drivers/
H A 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 …]
H A 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()
/openbmc/linux/net/xdp/
H A Dxskmap.c121 static int xsk_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in xsk_map_gen_lookup() argument
124 struct bpf_insn *insn = insn_buf; in xsk_map_gen_lookup()
134 return insn - insn_buf; in xsk_map_gen_lookup()
/openbmc/linux/arch/x86/kernel/cpu/mce/
H A Dseverity.c225 u8 insn_buf[MAX_INSN_SIZE]; in is_copy_from_user() local
233 if (copy_from_kernel_nofault(insn_buf, (void *)regs->ip, MAX_INSN_SIZE)) in is_copy_from_user()
236 ret = insn_decode_kernel(&insn, insn_buf); in is_copy_from_user()
/openbmc/linux/net/core/
H A Dfilter.c296 struct bpf_insn *insn_buf) in convert_skb_access() argument
298 struct bpf_insn *insn = insn_buf; in convert_skb_access()
339 return insn - insn_buf; in convert_skb_access()
7091 struct bpf_insn *insn_buf, in bpf_tcp_sock_convert_ctx_access()
7094 struct bpf_insn *insn = insn_buf; in bpf_tcp_sock_convert_ctx_access()
7209 return insn - insn_buf; in BPF_CALL_1()
7285 struct bpf_insn *insn_buf, in bpf_xdp_sock_convert_ctx_access()
7288 struct bpf_insn *insn = insn_buf; in bpf_xdp_sock_convert_ctx_access()
7305 return insn - insn_buf;
8812 static int bpf_noop_prologue(struct bpf_insn *insn_buf, boo argument
7082 bpf_tcp_sock_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) bpf_tcp_sock_convert_ctx_access() argument
7276 bpf_xdp_sock_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) bpf_xdp_sock_convert_ctx_access() argument
8803 bpf_noop_prologue(struct bpf_insn * insn_buf,bool direct_write,const struct bpf_prog * prog) bpf_noop_prologue() argument
8852 bpf_gen_ld_abs(const struct bpf_insn * orig,struct bpf_insn * insn_buf) bpf_gen_ld_abs() argument
8886 tc_cls_act_prologue(struct bpf_insn * insn_buf,bool direct_write,const struct bpf_prog * prog) tc_cls_act_prologue() argument
9214 sk_skb_prologue(struct bpf_insn * insn_buf,bool direct_write,const struct bpf_prog * prog) sk_skb_prologue() argument
9338 flow_dissector_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) flow_dissector_convert_ctx_access() argument
9482 bpf_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) bpf_convert_ctx_access() argument
9848 bpf_sock_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) bpf_sock_convert_ctx_access() argument
10023 tc_cls_act_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) tc_cls_act_convert_ctx_access() argument
10047 xdp_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) xdp_convert_ctx_access() argument
10175 sock_addr_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) sock_addr_convert_ctx_access() argument
10264 sock_ops_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) sock_ops_convert_ctx_access() argument
10757 sk_skb_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) sk_skb_convert_ctx_access() argument
10797 sk_msg_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) sk_msg_convert_ctx_access() argument
11358 sk_reuseport_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) sk_reuseport_convert_ctx_access() argument
11518 sk_lookup_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) sk_lookup_convert_ctx_access() argument
[all...]
/openbmc/linux/kernel/bpf/
H A Dverifier.c18300 struct bpf_insn insn_buf[16], *insn; in convert_ctx_accesses() local
18311 cnt = ops->gen_prologue(insn_buf, env->seen_direct_write, in convert_ctx_accesses()
18313 if (cnt >= ARRAY_SIZE(insn_buf)) { in convert_ctx_accesses()
18317 new_prog = bpf_patch_insn_data(env, 0, insn_buf, cnt); in convert_ctx_accesses()
18444 cnt = convert_ctx_access(type, insn, insn_buf, env->prog, in convert_ctx_accesses()
18446 if (cnt == 0 || cnt >= ARRAY_SIZE(insn_buf) || in convert_ctx_accesses()
18455 if (shift && cnt + 1 >= ARRAY_SIZE(insn_buf)) { in convert_ctx_accesses()
18461 insn_buf[cnt++] = BPF_ALU32_IMM(BPF_RSH, in convert_ctx_accesses()
18464 insn_buf[cnt++] = BPF_ALU32_IMM(BPF_AND, insn->dst_reg, in convert_ctx_accesses()
18468 insn_buf[cnt++] = BPF_ALU64_IMM(BPF_RSH, in convert_ctx_accesses()
[all …]
H A Darraymap.c208 static int array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in array_map_gen_lookup() argument
211 struct bpf_insn *insn = insn_buf; in array_map_gen_lookup()
237 return insn - insn_buf; in array_map_gen_lookup()
1337 struct bpf_insn *insn_buf) in array_of_map_gen_lookup() argument
1341 struct bpf_insn *insn = insn_buf; in array_of_map_gen_lookup()
1364 return insn - insn_buf; in array_of_map_gen_lookup()
H A Dhashtab.c719 static int htab_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in htab_map_gen_lookup() argument
721 struct bpf_insn *insn = insn_buf; in htab_map_gen_lookup()
731 return insn - insn_buf; in htab_map_gen_lookup()
759 struct bpf_insn *insn_buf) in htab_lru_map_gen_lookup() argument
761 struct bpf_insn *insn = insn_buf; in htab_lru_map_gen_lookup()
780 return insn - insn_buf; in htab_lru_map_gen_lookup()
2592 struct bpf_insn *insn_buf) in htab_of_map_gen_lookup() argument
2594 struct bpf_insn *insn = insn_buf; in htab_of_map_gen_lookup()
2606 return insn - insn_buf; in htab_of_map_gen_lookup()
H A Dcgroup.c2243 struct bpf_insn *insn_buf, in sysctl_convert_ctx_access() argument
2246 struct bpf_insn *insn = insn_buf; in sysctl_convert_ctx_access()
2302 return insn - insn_buf; in sysctl_convert_ctx_access()
2447 struct bpf_insn *insn_buf, in cg_sockopt_convert_ctx_access() argument
2451 struct bpf_insn *insn = insn_buf; in cg_sockopt_convert_ctx_access()
2520 return insn - insn_buf; in cg_sockopt_convert_ctx_access()
2523 static int cg_sockopt_get_prologue(struct bpf_insn *insn_buf, in cg_sockopt_get_prologue() argument
/openbmc/linux/arch/x86/kernel/
H A Dtraps.c548 u8 insn_buf[MAX_INSN_SIZE]; in get_kernel_gp_address() local
552 if (copy_from_kernel_nofault(insn_buf, (void *)regs->ip, in get_kernel_gp_address()
556 ret = insn_decode_kernel(&insn, insn_buf); in get_kernel_gp_address()
/openbmc/linux/include/linux/
H A Dbpf.h114 int (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf);
960 struct bpf_insn *insn_buf);
3078 struct bpf_insn *insn_buf,
3098 struct bpf_insn *insn_buf, in bpf_sock_convert_ctx_access() argument
3127 struct bpf_insn *insn_buf,
3136 struct bpf_insn *insn_buf,
3149 struct bpf_insn *insn_buf, in bpf_tcp_sock_convert_ctx_access() argument
3164 struct bpf_insn *insn_buf, in bpf_xdp_sock_convert_ctx_access() argument
/openbmc/linux/kernel/trace/
H A Dbpf_trace.c2116 struct bpf_insn *insn_buf, in pe_prog_convert_ctx_access() argument
2119 struct bpf_insn *insn = insn_buf; in pe_prog_convert_ctx_access()
2147 return insn - insn_buf; in pe_prog_convert_ctx_access()