Home
last modified time | relevance | path

Searched refs:adjust_head (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.c213 nfp_err(cpp, "truncated adjust_head TLV: %d\n", length); in nfp_bpf_parse_cap_adjust_head()
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()
224 nfp_err(cpp, "invalid adjust_head TLV: min > max\n"); in nfp_bpf_parse_cap_adjust_head()
227 if (!FIELD_FIT(UR_REG_IMM_MAX, bpf->adjust_head in nfp_bpf_parse_cap_adjust_head()
[all...]
H A Dverifier.c65 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()
183 pr_vlog(env, "adjust_head not supported by FW\n"); in nfp_bpf_check_helper_call()
186 if (!(bpf->adjust_head.flags & NFP_BPF_ADJUST_HEAD_NO_META)) { in nfp_bpf_check_helper_call()
187 pr_vlog(env, "adjust_head: FW requires shifting metadata, not supported by the driver\n"); in nfp_bpf_check_helper_call()
H A Dmain.h104 * @adjust_head: adjust head capability
105 * @adjust_head.flags: extra flags for adjust head
106 * @adjust_head.off_min: minimal packet offset within buffer required
107 * @adjust_head.off_max: maximum packet offset within buffer required
108 * @adjust_head.guaranteed_sub: negative adjustment guaranteed possible
109 * @adjust_head.guaranteed_add: positive adjustment guaranteed possible
155 } adjust_head; member
H A Djit.c1600 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()
3345 return adjust_head(nfp_prog, meta); in helper_call()
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.c213 nfp_err(cpp, "truncated adjust_head TLV: %d\n", length); in nfp_bpf_parse_cap_adjust_head()
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()
224 nfp_err(cpp, "invalid adjust_head TLV: min > max\n"); in nfp_bpf_parse_cap_adjust_head()
227 if (!FIELD_FIT(UR_REG_IMM_MAX, bpf->adjust_head in nfp_bpf_parse_cap_adjust_head()
[all...]
H A Dverifier.c65 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()
183 pr_vlog(env, "adjust_head not supported by FW\n"); in nfp_bpf_check_helper_call()
186 if (!(bpf->adjust_head.flags & NFP_BPF_ADJUST_HEAD_NO_META)) { in nfp_bpf_check_helper_call()
187 pr_vlog(env, "adjust_head: FW requires shifting metadata, not supported by the driver\n"); in nfp_bpf_check_helper_call()
H A Dmain.h104 * @adjust_head: adjust head capability
105 * @adjust_head.flags: extra flags for adjust head
106 * @adjust_head.off_min: minimal packet offset within buffer required
107 * @adjust_head.off_max: maximum packet offset within buffer required
108 * @adjust_head.guaranteed_sub: negative adjustment guaranteed possible
109 * @adjust_head.guaranteed_add: positive adjustment guaranteed possible
155 } adjust_head; member
H A Djit.c1600 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()

Completed in 19 milliseconds