Home
last modified time | relevance | path

Searched refs:nfp_prog (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Djit.c56 nfp_prog->prog[nfp_prog->prog_len] = insn; in nfp_prog_push()
175 nfp_prog->prog[nfp_prog->prog_len - 1] |= in emit_br_relo()
229 nfp_prog->prog[nfp_prog->prog_len - 1] |= in emit_br_bit_relo()
959 emit_alu(nfp_prog, imm_a(nfp_prog), in construct_data_ind_ld()
1183 emit_alu(nfp_prog, imm_b(nfp_prog), in mem_op_stack()
1199 emit_alu(nfp_prog, imm_b(nfp_prog), in mem_op_stack()
1207 emit_alu(nfp_prog, imm_b(nfp_prog), in mem_op_stack()
1617 emit_alu(nfp_prog, pv_len(nfp_prog), in adjust_head()
1664 emit_alu(nfp_prog, pv_len(nfp_prog), in adjust_head()
1706 emit_alu(nfp_prog, pv_len(nfp_prog), in adjust_tail()
[all …]
H A Doffload.c41 nfp_prog->map_records[nfp_prog->map_records_cnt++] = record; in nfp_map_ptr_record()
66 nfp_prog->map_records[nfp_prog->map_records_cnt++] = record; in nfp_map_ptr_record()
178 static void nfp_prog_free(struct nfp_prog *nfp_prog) in nfp_prog_free() argument
193 struct nfp_prog *nfp_prog; in nfp_bpf_verifier_prep() local
196 nfp_prog = kzalloc(sizeof(*nfp_prog), GFP_KERNEL); in nfp_bpf_verifier_prep()
197 if (!nfp_prog) in nfp_bpf_verifier_prep()
209 nfp_prog->verifier_meta = nfp_prog_first_meta(nfp_prog); in nfp_bpf_verifier_prep()
222 struct nfp_prog *nfp_prog = prog->aux->offload->dev_priv; in nfp_bpf_translate() local
244 return nfp_map_ptrs_record(nfp_prog->bpf, nfp_prog, prog); in nfp_bpf_translate()
249 struct nfp_prog *nfp_prog = prog->aux->offload->dev_priv; in nfp_bpf_destroy() local
[all …]
H A Dverifier.c20 nfp_bpf_goto_meta(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta, in nfp_bpf_goto_meta() argument
170 nfp_bpf_check_helper_call(struct nfp_prog *nfp_prog, in nfp_bpf_check_helper_call() argument
311 nfp_bpf_check_exit(struct nfp_prog *nfp_prog, in nfp_bpf_check_exit() argument
343 nfp_bpf_check_stack_access(struct nfp_prog *nfp_prog, in nfp_bpf_check_stack_access() argument
634 struct nfp_prog *nfp_prog = env->prog->aux->offload->dev_priv; in nfp_verify_insn() local
674 struct nfp_prog *nfp_prog) in nfp_assign_subprog_idx_and_regs() argument
752 static void nfp_bpf_insn_flag_zext(struct nfp_prog *nfp_prog, in nfp_bpf_insn_flag_zext() argument
766 struct nfp_prog *nfp_prog; in nfp_bpf_finalize() local
773 nfp_prog->subprog = kcalloc(nfp_prog->subprog_cnt, in nfp_bpf_finalize()
796 nfp_prog->stack_size = nfp_bpf_get_stack_usage(nfp_prog); in nfp_bpf_finalize()
[all …]
H A Dmain.h233 struct nfp_prog;
235 typedef int (*instr_cb_t)(struct nfp_prog *, struct nfp_insn_meta *);
237 #define nfp_prog_first_meta(nfp_prog) \ argument
238 list_first_entry(&(nfp_prog)->insns, struct nfp_insn_meta, l)
239 #define nfp_prog_last_meta(nfp_prog) \ argument
240 list_last_entry(&(nfp_prog)->insns, struct nfp_insn_meta, l)
513 struct nfp_prog { struct
560 void nfp_bpf_jit_prepare(struct nfp_prog *nfp_prog); argument
561 int nfp_bpf_jit(struct nfp_prog *prog);
586 nfp_bpf_goto_meta(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta,
[all …]