Searched refs:adjust_head (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/bpf/ |
D | main.c | 217 bpf->adjust_head.flags = readl(&cap->flags); in nfp_bpf_parse_cap_adjust_head() 218 bpf->adjust_head.off_min = readl(&cap->off_min); in nfp_bpf_parse_cap_adjust_head() 219 bpf->adjust_head.off_max = readl(&cap->off_max); in nfp_bpf_parse_cap_adjust_head() 220 bpf->adjust_head.guaranteed_sub = readl(&cap->guaranteed_sub); in nfp_bpf_parse_cap_adjust_head() 221 bpf->adjust_head.guaranteed_add = readl(&cap->guaranteed_add); in nfp_bpf_parse_cap_adjust_head() 223 if (bpf->adjust_head.off_min > bpf->adjust_head.off_max) { in nfp_bpf_parse_cap_adjust_head() 227 if (!FIELD_FIT(UR_REG_IMM_MAX, bpf->adjust_head.off_min) || in nfp_bpf_parse_cap_adjust_head() 228 !FIELD_FIT(UR_REG_IMM_MAX, bpf->adjust_head.off_max)) { in nfp_bpf_parse_cap_adjust_head() 230 memset(&bpf->adjust_head, 0, sizeof(bpf->adjust_head)); in nfp_bpf_parse_cap_adjust_head()
|
D | verifier.c | 65 if (imm > (int)bpf->adjust_head.guaranteed_add || in nfp_record_adjust_head() 66 imm < -bpf->adjust_head.guaranteed_sub) in nfp_record_adjust_head() 182 if (!bpf->adjust_head.off_max) { in nfp_bpf_check_helper_call() 186 if (!(bpf->adjust_head.flags & NFP_BPF_ADJUST_HEAD_NO_META)) { in nfp_bpf_check_helper_call()
|
D | main.h | 155 } adjust_head; member
|
D | jit.c | 1600 static int adjust_head(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta) in adjust_head() function 1603 struct nfp_bpf_cap_adjust_head *adjust_head; in adjust_head() local 1606 adjust_head = &nfp_prog->bpf->adjust_head; in adjust_head() 1639 tmp, ALU_OP_SUB, reg_imm(adjust_head->off_min)); in adjust_head() 1642 reg_imm(adjust_head->off_max), ALU_OP_SUB, tmp); in adjust_head() 3351 return adjust_head(nfp_prog, meta); in helper_call()
|