Lines Matching full:cap
29 return nn->cap & NFP_NET_CFG_CTRL_BPF && in nfp_net_ebpf_capable()
209 struct nfp_bpf_cap_tlv_adjust_head __iomem *cap = value; in nfp_bpf_parse_cap_adjust_head() local
212 if (length < sizeof(*cap)) { 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()
240 struct nfp_bpf_cap_tlv_func __iomem *cap = value; in nfp_bpf_parse_cap_func() local
242 if (length < sizeof(*cap)) { in nfp_bpf_parse_cap_func()
247 switch (readl(&cap->func_id)) { in nfp_bpf_parse_cap_func()
249 bpf->helpers.map_lookup = readl(&cap->func_addr); in nfp_bpf_parse_cap_func()
252 bpf->helpers.map_update = readl(&cap->func_addr); in nfp_bpf_parse_cap_func()
255 bpf->helpers.map_delete = readl(&cap->func_addr); in nfp_bpf_parse_cap_func()
258 bpf->helpers.perf_event_output = readl(&cap->func_addr); in nfp_bpf_parse_cap_func()
268 struct nfp_bpf_cap_tlv_maps __iomem *cap = value; in nfp_bpf_parse_cap_maps() local
270 if (length < sizeof(*cap)) { in nfp_bpf_parse_cap_maps()
275 bpf->maps.types = readl(&cap->types); in nfp_bpf_parse_cap_maps()
276 bpf->maps.max_maps = readl(&cap->max_maps); in nfp_bpf_parse_cap_maps()
277 bpf->maps.max_elems = readl(&cap->max_elems); in nfp_bpf_parse_cap_maps()
278 bpf->maps.max_key_sz = readl(&cap->max_key_sz); in nfp_bpf_parse_cap_maps()
279 bpf->maps.max_val_sz = readl(&cap->max_val_sz); in nfp_bpf_parse_cap_maps()
280 bpf->maps.max_elem_sz = readl(&cap->max_elem_sz); in nfp_bpf_parse_cap_maps()
342 mem = nfp_rtsym_map(app->pf->rtbl, "_abi_bpf_capabilities", "bpf.cap", in nfp_bpf_parse_capabilities()