Searched refs:adjust_head (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/bpf/ |
D | main.c | 254 bpf->adjust_head.flags = readl(&cap->flags); in nfp_bpf_parse_cap_adjust_head() 255 bpf->adjust_head.off_min = readl(&cap->off_min); in nfp_bpf_parse_cap_adjust_head() 256 bpf->adjust_head.off_max = readl(&cap->off_max); in nfp_bpf_parse_cap_adjust_head() 257 bpf->adjust_head.guaranteed_sub = readl(&cap->guaranteed_sub); in nfp_bpf_parse_cap_adjust_head() 258 bpf->adjust_head.guaranteed_add = readl(&cap->guaranteed_add); in nfp_bpf_parse_cap_adjust_head() 260 if (bpf->adjust_head.off_min > bpf->adjust_head.off_max) { in nfp_bpf_parse_cap_adjust_head() 264 if (!FIELD_FIT(UR_REG_IMM_MAX, bpf->adjust_head.off_min) || in nfp_bpf_parse_cap_adjust_head() 265 !FIELD_FIT(UR_REG_IMM_MAX, bpf->adjust_head.off_max)) { in nfp_bpf_parse_cap_adjust_head() 267 memset(&bpf->adjust_head, 0, sizeof(bpf->adjust_head)); in nfp_bpf_parse_cap_adjust_head()
|
D | verifier.c | 93 if (imm > (int)bpf->adjust_head.guaranteed_add || in nfp_record_adjust_head() 94 imm < -bpf->adjust_head.guaranteed_sub) in nfp_record_adjust_head() 169 if (!bpf->adjust_head.off_max) { in nfp_bpf_check_call() 173 if (!(bpf->adjust_head.flags & NFP_BPF_ADJUST_HEAD_NO_META)) { in nfp_bpf_check_call()
|
D | main.h | 179 } adjust_head; member
|
D | jit.c | 1565 static int adjust_head(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta) in adjust_head() function 1568 struct nfp_bpf_cap_adjust_head *adjust_head; in adjust_head() local 1571 adjust_head = &nfp_prog->bpf->adjust_head; in adjust_head() 1604 tmp, ALU_OP_SUB, reg_imm(adjust_head->off_min)); in adjust_head() 1607 reg_imm(adjust_head->off_max), ALU_OP_SUB, tmp); in adjust_head() 3088 return adjust_head(nfp_prog, meta); in call()
|