Lines Matching full:cap

29 	return nn->cap & NFP_NET_CFG_CTRL_BPF &&  in nfp_net_ebpf_capable()
203 struct nfp_bpf_cap_tlv_adjust_head __iomem *cap = value; in nfp_bpf_parse_cap_adjust_head() local
206 if (length < sizeof(*cap)) { in nfp_bpf_parse_cap_adjust_head()
211 bpf->adjust_head.flags = readl(&cap->flags); in nfp_bpf_parse_cap_adjust_head()
212 bpf->adjust_head.off_min = readl(&cap->off_min); in nfp_bpf_parse_cap_adjust_head()
213 bpf->adjust_head.off_max = readl(&cap->off_max); in nfp_bpf_parse_cap_adjust_head()
214 bpf->adjust_head.guaranteed_sub = readl(&cap->guaranteed_sub); in nfp_bpf_parse_cap_adjust_head()
215 bpf->adjust_head.guaranteed_add = readl(&cap->guaranteed_add); in nfp_bpf_parse_cap_adjust_head()
234 struct nfp_bpf_cap_tlv_func __iomem *cap = value; in nfp_bpf_parse_cap_func() local
236 if (length < sizeof(*cap)) { in nfp_bpf_parse_cap_func()
241 switch (readl(&cap->func_id)) { in nfp_bpf_parse_cap_func()
243 bpf->helpers.map_lookup = readl(&cap->func_addr); in nfp_bpf_parse_cap_func()
246 bpf->helpers.map_update = readl(&cap->func_addr); in nfp_bpf_parse_cap_func()
249 bpf->helpers.map_delete = readl(&cap->func_addr); in nfp_bpf_parse_cap_func()
252 bpf->helpers.perf_event_output = readl(&cap->func_addr); in nfp_bpf_parse_cap_func()
262 struct nfp_bpf_cap_tlv_maps __iomem *cap = value; in nfp_bpf_parse_cap_maps() local
264 if (length < sizeof(*cap)) { in nfp_bpf_parse_cap_maps()
269 bpf->maps.types = readl(&cap->types); in nfp_bpf_parse_cap_maps()
270 bpf->maps.max_maps = readl(&cap->max_maps); in nfp_bpf_parse_cap_maps()
271 bpf->maps.max_elems = readl(&cap->max_elems); in nfp_bpf_parse_cap_maps()
272 bpf->maps.max_key_sz = readl(&cap->max_key_sz); in nfp_bpf_parse_cap_maps()
273 bpf->maps.max_val_sz = readl(&cap->max_val_sz); in nfp_bpf_parse_cap_maps()
274 bpf->maps.max_elem_sz = readl(&cap->max_elem_sz); in nfp_bpf_parse_cap_maps()
336 mem = nfp_rtsym_map(app->pf->rtbl, "_abi_bpf_capabilities", "bpf.cap", in nfp_bpf_parse_capabilities()