Home
last modified time | relevance | path

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

/linux-6.12.1/arch/riscv/kernel/
Dvector.c69 static bool insn_is_vector(u32 insn_buf) in insn_is_vector() argument
71 u32 opcode = insn_buf & __INSN_OPCODE_MASK; in insn_is_vector()
78 if (unlikely(GET_INSN_LENGTH(insn_buf) != 4)) in insn_is_vector()
86 width = RVV_EXRACT_VL_VS_WIDTH(insn_buf); in insn_is_vector()
93 csr = RVG_EXTRACT_SYSTEM_CSR(insn_buf); in insn_is_vector()
/linux-6.12.1/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.12.1/kernel/bpf/
Dverifier.c19690 struct bpf_insn *insn_buf = env->insn_buf; in convert_ctx_accesses() local
19708 insn_buf[cnt++] = BPF_STX_MEM(BPF_DW, BPF_REG_FP, BPF_REG_1, in convert_ctx_accesses()
19710 insn_buf[cnt++] = env->prog->insnsi[0]; in convert_ctx_accesses()
19711 new_prog = bpf_patch_insn_data(env, 0, insn_buf, cnt); in convert_ctx_accesses()
19724 cnt = ops->gen_prologue(insn_buf, env->seen_direct_write, in convert_ctx_accesses()
19730 new_prog = bpf_patch_insn_data(env, 0, insn_buf, cnt); in convert_ctx_accesses()
19780 insn_buf[0] = BPF_JMP32_A(epilogue_idx - i - delta - 1); in convert_ctx_accesses()
19783 memcpy(insn_buf, epilogue_buf, in convert_ctx_accesses()
19893 cnt = convert_ctx_access(type, insn, insn_buf, env->prog, in convert_ctx_accesses()
19910 insn_buf[cnt++] = BPF_ALU32_IMM(BPF_RSH, in convert_ctx_accesses()
[all …]
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()
253 static int percpu_array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in percpu_array_map_gen_lookup() argument
256 struct bpf_insn *insn = insn_buf; in percpu_array_map_gen_lookup()
281 return insn - insn_buf; in percpu_array_map_gen_lookup()
1375 struct bpf_insn *insn_buf) in array_of_map_gen_lookup() argument
1379 struct bpf_insn *insn = insn_buf; in array_of_map_gen_lookup()
1402 return insn - insn_buf; in array_of_map_gen_lookup()
Dhashtab.c723 static int htab_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in htab_map_gen_lookup() argument
725 struct bpf_insn *insn = insn_buf; in htab_map_gen_lookup()
735 return insn - insn_buf; in htab_map_gen_lookup()
763 struct bpf_insn *insn_buf) in htab_lru_map_gen_lookup() argument
765 struct bpf_insn *insn = insn_buf; in htab_lru_map_gen_lookup()
784 return insn - insn_buf; in htab_lru_map_gen_lookup()
2324 static int htab_percpu_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in htab_percpu_map_gen_lookup() argument
2326 struct bpf_insn *insn = insn_buf; in htab_percpu_map_gen_lookup()
2340 return insn - insn_buf; in htab_percpu_map_gen_lookup()
2608 struct bpf_insn *insn_buf) in htab_of_map_gen_lookup() argument
[all …]
Dcgroup.c2241 struct bpf_insn *insn_buf, in sysctl_convert_ctx_access() argument
2244 struct bpf_insn *insn = insn_buf; in sysctl_convert_ctx_access()
2300 return insn - insn_buf; in sysctl_convert_ctx_access()
2445 struct bpf_insn *insn_buf, in cg_sockopt_convert_ctx_access() argument
2449 struct bpf_insn *insn = insn_buf; in cg_sockopt_convert_ctx_access()
2518 return insn - insn_buf; in cg_sockopt_convert_ctx_access()
2521 static int cg_sockopt_get_prologue(struct bpf_insn *insn_buf, in cg_sockopt_get_prologue() argument
/linux-6.12.1/net/xdp/
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()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dctx_rewrite.c649 char insn_buf[64]; in match_program() local
690 insn = disasm_insn(insn, insn_buf, sizeof(insn_buf)); in match_program()
691 fprintf(prog_out, "%s\n", insn_buf); in match_program()
/linux-6.12.1/arch/x86/kernel/cpu/mce/
Dseverity.c237 u8 insn_buf[MAX_INSN_SIZE]; in is_copy_from_user() local
245 if (copy_from_kernel_nofault(insn_buf, (void *)regs->ip, MAX_INSN_SIZE)) in is_copy_from_user()
248 ret = insn_decode_kernel(&insn, insn_buf); in is_copy_from_user()
/linux-6.12.1/net/core/
Dfilter.c303 struct bpf_insn *insn_buf) in convert_skb_access() argument
305 struct bpf_insn *insn = insn_buf; in convert_skb_access()
346 return insn - insn_buf; in convert_skb_access()
7129 struct bpf_insn *insn_buf, in bpf_tcp_sock_convert_ctx_access() argument
7132 struct bpf_insn *insn = insn_buf; in bpf_tcp_sock_convert_ctx_access()
7247 return insn - insn_buf; in bpf_tcp_sock_convert_ctx_access()
7323 struct bpf_insn *insn_buf, in bpf_xdp_sock_convert_ctx_access() argument
7326 struct bpf_insn *insn = insn_buf; in bpf_xdp_sock_convert_ctx_access()
7343 return insn - insn_buf; in bpf_xdp_sock_convert_ctx_access()
8858 static int bpf_noop_prologue(struct bpf_insn *insn_buf, bool direct_write, in bpf_noop_prologue() argument
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/bpf_testmod/
Dbpf_testmod.c1191 static int st_ops_gen_prologue(struct bpf_insn *insn_buf, bool direct_write, in st_ops_gen_prologue() argument
1194 struct bpf_insn *insn = insn_buf; in st_ops_gen_prologue()
1211 return insn - insn_buf; in st_ops_gen_prologue()
1214 static int st_ops_gen_epilogue(struct bpf_insn *insn_buf, const struct bpf_prog *prog, in st_ops_gen_epilogue() argument
1217 struct bpf_insn *insn = insn_buf; in st_ops_gen_epilogue()
1241 return insn - insn_buf; in st_ops_gen_epilogue()
/linux-6.12.1/arch/x86/kernel/
Dtraps.c550 u8 insn_buf[MAX_INSN_SIZE]; in get_kernel_gp_address() local
554 if (copy_from_kernel_nofault(insn_buf, (void *)regs->ip, in get_kernel_gp_address()
558 ret = insn_decode_kernel(&insn, insn_buf); in get_kernel_gp_address()
/linux-6.12.1/include/linux/
Dbpf.h120 int (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf);
991 struct bpf_insn *insn_buf);
3305 struct bpf_insn *insn_buf,
3325 struct bpf_insn *insn_buf, in bpf_sock_convert_ctx_access() argument
3354 struct bpf_insn *insn_buf,
3363 struct bpf_insn *insn_buf,
3376 struct bpf_insn *insn_buf, in bpf_tcp_sock_convert_ctx_access() argument
3391 struct bpf_insn *insn_buf, in bpf_xdp_sock_convert_ctx_access() argument
Dbpf_verifier.h785 struct bpf_insn insn_buf[INSN_BUF_SIZE]; member
/linux-6.12.1/kernel/trace/
Dbpf_trace.c2115 struct bpf_insn *insn_buf, in pe_prog_convert_ctx_access() argument
2118 struct bpf_insn *insn = insn_buf; in pe_prog_convert_ctx_access()
2146 return insn - insn_buf; in pe_prog_convert_ctx_access()