Searched refs:nfp_prog (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/bpf/ |
D | jit.c | 22 #define nfp_for_each_insn_walk2(nfp_prog, pos, next) \ argument 23 for (pos = list_first_entry(&(nfp_prog)->insns, typeof(*pos), l), \ 25 &(nfp_prog)->insns != &pos->l && \ 26 &(nfp_prog)->insns != &next->l; \ 30 #define nfp_for_each_insn_walk3(nfp_prog, pos, next, next2) \ argument 31 for (pos = list_first_entry(&(nfp_prog)->insns, typeof(*pos), l), \ 34 &(nfp_prog)->insns != &pos->l && \ 35 &(nfp_prog)->insns != &next->l && \ 36 &(nfp_prog)->insns != &next2->l; \ 42 nfp_meta_has_prev(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta) in nfp_meta_has_prev() argument [all …]
|
D | offload.c | 31 nfp_map_ptr_record(struct nfp_app_bpf *bpf, struct nfp_prog *nfp_prog, in nfp_map_ptr_record() argument 41 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() 78 nfp_map_ptrs_forget(struct nfp_app_bpf *bpf, struct nfp_prog *nfp_prog) in nfp_map_ptrs_forget() argument 83 for (i = 0; i < nfp_prog->map_records_cnt; i++) { in nfp_map_ptrs_forget() 84 if (--nfp_prog->map_records[i]->count) { in nfp_map_ptrs_forget() 85 nfp_prog->map_records[i] = NULL; in nfp_map_ptrs_forget() 90 &nfp_prog->map_records[i]->l, in nfp_map_ptrs_forget() 98 for (i = 0; i < nfp_prog->map_records_cnt; i++) in nfp_map_ptrs_forget() 99 if (nfp_prog->map_records[i]) { in nfp_map_ptrs_forget() [all …]
|
D | verifier.c | 20 nfp_bpf_goto_meta(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta, in nfp_bpf_goto_meta() argument 28 if (min(forward, backward) > nfp_prog->n_insns - insn_idx - 1) { in nfp_bpf_goto_meta() 29 backward = nfp_prog->n_insns - insn_idx - 1; in nfp_bpf_goto_meta() 30 meta = nfp_prog_last_meta(nfp_prog); in nfp_bpf_goto_meta() 34 meta = nfp_prog_first_meta(nfp_prog); in nfp_bpf_goto_meta() 48 nfp_record_adjust_head(struct nfp_app_bpf *bpf, struct nfp_prog *nfp_prog, in nfp_record_adjust_head() argument 69 if (nfp_prog->adjust_head_location) { in nfp_record_adjust_head() 71 if (nfp_prog->adjust_head_location != meta->n) in nfp_record_adjust_head() 80 nfp_prog->adjust_head_location = location; in nfp_record_adjust_head() 170 nfp_bpf_check_helper_call(struct nfp_prog *nfp_prog, in nfp_bpf_check_helper_call() argument [all …]
|
D | main.h | 233 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 …]
|