Searched refs:nfp_map (Results 1 – 3 of 3) sorted by relevance
122 void nfp_bpf_ctrl_free_map(struct nfp_app_bpf *bpf, struct nfp_bpf_map *nfp_map) in nfp_bpf_ctrl_free_map() argument136 req->tid = cpu_to_be32(nfp_map->tid); in nfp_bpf_ctrl_free_map()200 nfp_bpf_ctrl_op_cache_get(struct nfp_bpf_map *nfp_map, enum nfp_ccm_type op, in nfp_bpf_ctrl_op_cache_get() argument204 struct bpf_map *map = &nfp_map->offmap->map; in nfp_bpf_ctrl_op_cache_get()205 struct nfp_app_bpf *bpf = nfp_map->bpf; in nfp_bpf_ctrl_op_cache_get()211 spin_lock(&nfp_map->cache_lock); in nfp_bpf_ctrl_op_cache_get()212 *cache_gen = nfp_map->cache_gen; in nfp_bpf_ctrl_op_cache_get()213 if (nfp_map->cache_blockers) in nfp_bpf_ctrl_op_cache_get()221 if (!nfp_map->cache) in nfp_bpf_ctrl_op_cache_get()223 if (nfp_map->cache_to < ktime_get_ns()) in nfp_bpf_ctrl_op_cache_get()[all …]
257 static void nfp_map_bpf_byte_swap(struct nfp_bpf_map *nfp_map, void *value) in nfp_map_bpf_byte_swap() argument262 for (i = 0; i < DIV_ROUND_UP(nfp_map->offmap->map.value_size, 4); i++) in nfp_map_bpf_byte_swap()263 if (nfp_map->use_map[i].type == NFP_MAP_USE_ATOMIC_CNT) in nfp_map_bpf_byte_swap()271 nfp_map_bpf_byte_swap_record(struct nfp_bpf_map *nfp_map, void *value) in nfp_map_bpf_byte_swap_record() argument276 for (i = 0; i < DIV_ROUND_UP(nfp_map->offmap->map.value_size, 4); i++) in nfp_map_bpf_byte_swap_record()277 if (nfp_map->use_map[i].type == NFP_MAP_UNUSED && in nfp_map_bpf_byte_swap_record()279 nfp_map->use_map[i].non_zero_update = 1; in nfp_map_bpf_byte_swap_record()332 struct nfp_bpf_map *nfp_map; in nfp_bpf_map_alloc() local383 nfp_map = kzalloc(sizeof(*nfp_map) + use_map_size, GFP_USER); in nfp_bpf_map_alloc()384 if (!nfp_map) in nfp_bpf_map_alloc()[all …]
597 nfp_bpf_ctrl_free_map(struct nfp_app_bpf *bpf, struct nfp_bpf_map *nfp_map);