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.c339 return insn - insn_buf; in convert_skb_access()
7186 return insn - insn_buf; in bpf_tcp_sock_convert_ctx_access()
7282 return insn - insn_buf; in bpf_xdp_sock_convert_ctx_access()
8834 return insn - insn_buf; in bpf_unclone_prologue()
8869 return insn - insn_buf; in bpf_gen_ld_abs()
9351 return insn - insn_buf; in flow_dissector_convert_ctx_access()
9829 return insn - insn_buf; in bpf_convert_ctx_access()
10004 return insn - insn_buf; in bpf_sock_convert_ctx_access()
10028 return insn - insn_buf; in tc_cls_act_convert_ctx_access()
10084 return insn - insn_buf; in xdp_convert_ctx_access()
[all …]
/openbmc/linux/kernel/bpf/
H A Dverifier.c18789 insn_buf[0] = addr[0]; in __fixup_collection_insert_kfunc()
18790 insn_buf[1] = addr[1]; in __fixup_collection_insert_kfunc()
18792 insn_buf[3] = *insn; in __fixup_collection_insert_kfunc()
18829 insn_buf[1] = addr[0]; in fixup_kfunc_call()
18830 insn_buf[2] = addr[1]; in fixup_kfunc_call()
18831 insn_buf[3] = *insn; in fixup_kfunc_call()
18845 insn_buf[0] = addr[0]; in fixup_kfunc_call()
18847 insn_buf[2] = *insn; in fixup_kfunc_call()
19101 insn_buf[2] = *insn; in do_misc_fixups()
19133 insn_buf[2] = *insn; in do_misc_fixups()
[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()
2570 struct bpf_insn *insn_buf) in htab_of_map_gen_lookup() argument
2572 struct bpf_insn *insn = insn_buf; in htab_of_map_gen_lookup()
2584 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);
3081 struct bpf_insn *insn_buf,
3101 struct bpf_insn *insn_buf, in bpf_sock_convert_ctx_access() argument
3130 struct bpf_insn *insn_buf,
3139 struct bpf_insn *insn_buf,
3152 struct bpf_insn *insn_buf, in bpf_tcp_sock_convert_ctx_access() argument
3167 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()