Home
last modified time | relevance | path

Searched refs:nfp_map (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/bpf/
Dcmsg.c120 void nfp_bpf_ctrl_free_map(struct nfp_app_bpf *bpf, struct nfp_bpf_map *nfp_map) in nfp_bpf_ctrl_free_map() argument
134 req->tid = cpu_to_be32(nfp_map->tid); in nfp_bpf_ctrl_free_map()
198 nfp_bpf_ctrl_op_cache_get(struct nfp_bpf_map *nfp_map, enum nfp_ccm_type op, in nfp_bpf_ctrl_op_cache_get() argument
202 struct bpf_map *map = &nfp_map->offmap->map; in nfp_bpf_ctrl_op_cache_get()
203 struct nfp_app_bpf *bpf = nfp_map->bpf; in nfp_bpf_ctrl_op_cache_get()
209 spin_lock(&nfp_map->cache_lock); in nfp_bpf_ctrl_op_cache_get()
210 *cache_gen = nfp_map->cache_gen; in nfp_bpf_ctrl_op_cache_get()
211 if (nfp_map->cache_blockers) in nfp_bpf_ctrl_op_cache_get()
219 if (!nfp_map->cache) in nfp_bpf_ctrl_op_cache_get()
221 if (nfp_map->cache_to < ktime_get_ns()) in nfp_bpf_ctrl_op_cache_get()
[all …]
Doffload.c259 static void nfp_map_bpf_byte_swap(struct nfp_bpf_map *nfp_map, void *value) in nfp_map_bpf_byte_swap() argument
264 for (i = 0; i < DIV_ROUND_UP(nfp_map->offmap->map.value_size, 4); i++) in nfp_map_bpf_byte_swap()
265 if (nfp_map->use_map[i].type == NFP_MAP_USE_ATOMIC_CNT) in nfp_map_bpf_byte_swap()
273 nfp_map_bpf_byte_swap_record(struct nfp_bpf_map *nfp_map, void *value) in nfp_map_bpf_byte_swap_record() argument
278 for (i = 0; i < DIV_ROUND_UP(nfp_map->offmap->map.value_size, 4); i++) in nfp_map_bpf_byte_swap_record()
279 if (nfp_map->use_map[i].type == NFP_MAP_UNUSED && in nfp_map_bpf_byte_swap_record()
281 nfp_map->use_map[i].non_zero_update = 1; in nfp_map_bpf_byte_swap_record()
334 struct nfp_bpf_map *nfp_map; in nfp_bpf_map_alloc() local
385 nfp_map = kzalloc(sizeof(*nfp_map) + use_map_size, GFP_USER); in nfp_bpf_map_alloc()
386 if (!nfp_map) in nfp_bpf_map_alloc()
[all …]
Dverifier.c89 struct nfp_bpf_map *nfp_map; in nfp_bpf_map_update_value_ok() local
100 nfp_map = offmap->dev_priv; in nfp_bpf_map_update_value_ok()
112 if (nfp_map->use_map[i / 4].type == NFP_MAP_USE_ATOMIC_CNT) { in nfp_bpf_map_update_value_ok()
117 nfp_map->use_map[i / 4].non_zero_update = 1; in nfp_bpf_map_update_value_ok()
393 struct nfp_bpf_map *nfp_map, in nfp_bpf_map_mark_used_one() argument
396 if (nfp_map->use_map[off / 4].type != NFP_MAP_UNUSED && in nfp_bpf_map_mark_used_one()
397 nfp_map->use_map[off / 4].type != use) { in nfp_bpf_map_mark_used_one()
399 nfp_bpf_map_use_name(nfp_map->use_map[off / 4].type), in nfp_bpf_map_mark_used_one()
404 if (nfp_map->use_map[off / 4].non_zero_update && in nfp_bpf_map_mark_used_one()
411 nfp_map->use_map[off / 4].type = use; in nfp_bpf_map_mark_used_one()
[all …]
Dmain.h597 nfp_bpf_ctrl_free_map(struct nfp_app_bpf *bpf, struct nfp_bpf_map *nfp_map);
Djit.c4400 struct nfp_bpf_map *nfp_map; in nfp_bpf_replace_map_ptrs() local
4418 nfp_map = map_to_offmap(map)->dev_priv; in nfp_bpf_replace_map_ptrs()
4419 id = nfp_map->tid; in nfp_bpf_replace_map_ptrs()