adjust_head
struct nfp_bpf_cap_adjust_head *adjust_head;
adjust_head = &nfp_prog->bpf->adjust_head;
tmp, ALU_OP_SUB, reg_imm(adjust_head->off_min));
reg_imm(adjust_head->off_max), ALU_OP_SUB, tmp);
return adjust_head(nfp_prog, meta);
bpf->adjust_head.flags = readl(&cap->flags);
bpf->adjust_head.off_min = readl(&cap->off_min);
bpf->adjust_head.off_max = readl(&cap->off_max);
bpf->adjust_head.guaranteed_sub = readl(&cap->guaranteed_sub);
bpf->adjust_head.guaranteed_add = readl(&cap->guaranteed_add);
if (bpf->adjust_head.off_min > bpf->adjust_head.off_max) {
if (!FIELD_FIT(UR_REG_IMM_MAX, bpf->adjust_head.off_min) ||
!FIELD_FIT(UR_REG_IMM_MAX, bpf->adjust_head.off_max)) {
memset(&bpf->adjust_head, 0, sizeof(bpf->adjust_head));
} adjust_head;
if (!bpf->adjust_head.off_max) {
if (!(bpf->adjust_head.flags & NFP_BPF_ADJUST_HEAD_NO_META)) {
if (imm > (int)bpf->adjust_head.guaranteed_add ||
imm < -bpf->adjust_head.guaranteed_sub)