| /linux/kernel/bpf/ |
| H A D | fixups.c | 644 struct bpf_insn *zext_patch = env->insn_buf; in bpf_opt_subreg_zext_lo32_rnd_hi32() 645 struct bpf_insn *rnd_hi32_patch = &env->insn_buf[2]; in bpf_opt_subreg_zext_lo32_rnd_hi32() 748 struct bpf_insn *insn_buf = env->insn_buf; in bpf_convert_ctx_accesses() local 766 insn_buf[cnt++] = BPF_STX_MEM(BPF_DW, BPF_REG_FP, BPF_REG_1, in bpf_convert_ctx_accesses() 768 insn_buf[cnt++] = env->prog->insnsi[0]; in bpf_convert_ctx_accesses() 769 new_prog = bpf_patch_insn_data(env, 0, insn_buf, cnt); in bpf_convert_ctx_accesses() 786 cnt = ops->gen_prologue(insn_buf, env->seen_direct_write, in bpf_convert_ctx_accesses() 792 new_prog = bpf_patch_insn_data(env, 0, insn_buf, cnt); in bpf_convert_ctx_accesses() 799 ret = add_kfunc_in_insns(env, insn_buf, cnt - 1); in bpf_convert_ctx_accesses() 820 struct bpf_insn *patch = insn_buf; in bpf_convert_ctx_accesses() [all …]
|
| H A D | arraymap.c | 218 static int array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in array_map_gen_lookup() argument 221 struct bpf_insn *insn = insn_buf; in array_map_gen_lookup() 247 return insn - insn_buf; in array_map_gen_lookup() 294 static int percpu_array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in percpu_array_map_gen_lookup() argument 297 struct bpf_insn *insn = insn_buf; in percpu_array_map_gen_lookup() 322 return insn - insn_buf; in percpu_array_map_gen_lookup() 1474 struct bpf_insn *insn_buf) in array_of_map_gen_lookup() argument 1478 struct bpf_insn *insn = insn_buf; in array_of_map_gen_lookup() 1501 return insn - insn_buf; in array_of_map_gen_lookup()
|
| H A D | hashtab.c | 776 static int htab_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in htab_map_gen_lookup() argument 778 struct bpf_insn *insn = insn_buf; in htab_map_gen_lookup() 788 return insn - insn_buf; in htab_map_gen_lookup() 816 struct bpf_insn *insn_buf) in htab_lru_map_gen_lookup() argument 818 struct bpf_insn *insn = insn_buf; in htab_lru_map_gen_lookup() 837 return insn - insn_buf; in htab_lru_map_gen_lookup() 2414 static int htab_percpu_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in htab_percpu_map_gen_lookup() argument 2416 struct bpf_insn *insn = insn_buf; in htab_percpu_map_gen_lookup() 2430 return insn - insn_buf; in htab_percpu_map_gen_lookup() 2705 struct bpf_insn *insn_buf) in htab_of_map_gen_lookup() argument [all …]
|
| H A D | cgroup.c | 2480 struct bpf_insn *insn_buf, in sysctl_convert_ctx_access() argument 2483 struct bpf_insn *insn = insn_buf; in sysctl_convert_ctx_access() 2539 return insn - insn_buf; in sysctl_convert_ctx_access() 2680 struct bpf_insn *insn_buf, in cg_sockopt_convert_ctx_access() argument 2684 struct bpf_insn *insn = insn_buf; in cg_sockopt_convert_ctx_access() 2753 return insn - insn_buf; in cg_sockopt_convert_ctx_access() 2756 static int cg_sockopt_get_prologue(struct bpf_insn *insn_buf, in cg_sockopt_get_prologue() argument
|
| H A D | verifier.c | 20634 struct bpf_insn *insn_buf, in __fixup_collection_insert_kfunc() argument 20640 insn_buf[0] = addr[0]; in __fixup_collection_insert_kfunc() 20641 insn_buf[1] = addr[1]; in __fixup_collection_insert_kfunc() 20642 insn_buf[2] = BPF_MOV64_IMM(node_offset_reg, insn_aux->insert_off); in __fixup_collection_insert_kfunc() 20643 insn_buf[3] = *insn; in __fixup_collection_insert_kfunc() 20648 struct bpf_insn *insn_buf, int insn_idx, int *cnt) in bpf_fixup_kfunc_call() argument 20689 insn_buf[0] = BPF_MOV64_IMM(BPF_REG_1, obj_new_size); in bpf_fixup_kfunc_call() 20690 insn_buf[1] = addr[0]; in bpf_fixup_kfunc_call() 20691 insn_buf[2] = addr[1]; in bpf_fixup_kfunc_call() 20692 insn_buf[3] = *insn; in bpf_fixup_kfunc_call() [all …]
|
| /linux/net/sched/ |
| H A D | bpf_qdisc.c | 135 static int bpf_qdisc_gen_prologue(struct bpf_insn *insn_buf, bool direct_write, in BTF_ID_LIST_SINGLE() 138 struct bpf_insn *insn = insn_buf; in BTF_ID_LIST_SINGLE() 160 return insn - insn_buf; in BTF_ID_LIST_SINGLE() 165 static int bpf_qdisc_gen_epilogue(struct bpf_insn *insn_buf, const struct bpf_prog *prog, in BTF_ID_LIST_SINGLE() 168 struct bpf_insn *insn = insn_buf; in BTF_ID_LIST_SINGLE() 184 return insn - insn_buf; in BTF_ID_LIST_SINGLE()
|
| /linux/drivers/comedi/drivers/ |
| H A D | usbduxsigma.c | 149 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 D | usbdux.c | 186 __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/tools/testing/selftests/bpf/test_kmods/ |
| H A D | bpf_testmod.c | 1765 static int st_ops_gen_prologue_with_kfunc(struct bpf_insn *insn_buf, bool direct_write, in st_ops_gen_prologue_with_kfunc() argument 1768 struct bpf_insn *insn = insn_buf; in st_ops_gen_prologue_with_kfunc() 1797 return insn - insn_buf; in st_ops_gen_prologue_with_kfunc() 1800 static int st_ops_gen_epilogue_with_kfunc(struct bpf_insn *insn_buf, const struct bpf_prog *prog, in st_ops_gen_epilogue_with_kfunc() argument 1803 struct bpf_insn *insn = insn_buf; in st_ops_gen_epilogue_with_kfunc() 1837 return insn - insn_buf; in st_ops_gen_epilogue_with_kfunc() 1841 static int st_ops_gen_prologue(struct bpf_insn *insn_buf, bool direct_write, in st_ops_gen_prologue() argument 1844 struct bpf_insn *insn = insn_buf; in st_ops_gen_prologue() 1851 return st_ops_gen_prologue_with_kfunc(insn_buf, direct_write, prog); in st_ops_gen_prologue() 1864 return insn - insn_buf; in st_ops_gen_prologue() [all …]
|
| /linux/net/xdp/ |
| H A D | xskmap.c | 121 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/tools/testing/selftests/bpf/prog_tests/ |
| H A D | ctx_rewrite.c | 650 char insn_buf[64]; in match_program() 691 insn = disasm_insn(insn, insn_buf, sizeof(insn_buf)); in match_program() 692 fprintf(prog_out, "%s\n", insn_buf); in match_program() 651 char insn_buf[64]; match_program() local
|
| /linux/net/core/ |
| H A D | filter.c | 319 struct bpf_insn *insn_buf) in convert_skb_access() argument 321 struct bpf_insn *insn = insn_buf; in convert_skb_access() 362 return insn - insn_buf; in convert_skb_access() 7614 struct bpf_insn *insn_buf, in bpf_tcp_sock_convert_ctx_access() argument 7617 struct bpf_insn *insn = insn_buf; in bpf_tcp_sock_convert_ctx_access() 7732 return insn - insn_buf; in bpf_tcp_sock_convert_ctx_access() 7808 struct bpf_insn *insn_buf, in bpf_xdp_sock_convert_ctx_access() argument 7811 struct bpf_insn *insn = insn_buf; in bpf_xdp_sock_convert_ctx_access() 7830 return insn - insn_buf; in bpf_xdp_sock_convert_ctx_access() 9343 static int bpf_noop_prologue(struct bpf_insn *insn_buf, bool direct_write, in bpf_noop_prologue() argument [all …]
|
| /linux/include/linux/ |
| H A D | bpf.h | 127 int (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf); 1159 struct bpf_insn *insn_buf); 3963 struct bpf_insn *insn_buf, 3983 struct bpf_insn *insn_buf, in bpf_sock_convert_ctx_access() argument 4012 struct bpf_insn *insn_buf, 4021 struct bpf_insn *insn_buf, 4034 struct bpf_insn *insn_buf, in bpf_tcp_sock_convert_ctx_access() argument 4049 struct bpf_insn *insn_buf, in bpf_xdp_sock_convert_ctx_access() argument
|
| H A D | bpf_verifier.h | 1037 struct bpf_insn insn_buf[INSN_BUF_SIZE]; member 1697 struct bpf_insn *insn_buf, int insn_idx, int *cnt);
|
| /linux/kernel/trace/ |
| H A D | bpf_trace.c | 1904 struct bpf_insn *insn_buf, in pe_prog_convert_ctx_access() argument 1907 struct bpf_insn *insn = insn_buf; in pe_prog_convert_ctx_access() 1935 return insn - insn_buf; in pe_prog_convert_ctx_access()
|