Searched refs:off_arr (Results 1 – 2 of 2) sorted by relevance
615 kfree(map->off_arr); in bpf_map_free_deferred()924 u32 *off_base = map->off_arr->field_off; in map_off_arr_swap()928 sz_a = map->off_arr->field_sz + (a - off_base); in map_off_arr_swap()929 sz_b = map->off_arr->field_sz + (b - off_base); in map_off_arr_swap()940 struct bpf_map_off_arr *off_arr; in bpf_map_alloc_off_arr() local944 map->off_arr = NULL; in bpf_map_alloc_off_arr()948 off_arr = kmalloc(sizeof(*map->off_arr), GFP_KERNEL | __GFP_NOWARN); in bpf_map_alloc_off_arr()949 if (!off_arr) in bpf_map_alloc_off_arr()951 map->off_arr = off_arr; in bpf_map_alloc_off_arr()953 off_arr->cnt = 0; in bpf_map_alloc_off_arr()[all …]
230 struct bpf_map_off_arr *off_arr; member306 if (likely(!map->off_arr)) { in __copy_map_value()314 for (i = 0; i < map->off_arr->cnt; i++) { in __copy_map_value()315 u32 next_off = map->off_arr->field_off[i]; in __copy_map_value()318 curr_off = next_off + map->off_arr->field_sz[i]; in __copy_map_value()338 if (likely(!map->off_arr)) { in zero_map_value()343 for (i = 0; i < map->off_arr->cnt; i++) { in zero_map_value()344 u32 next_off = map->off_arr->field_off[i]; in zero_map_value()347 curr_off = next_off + map->off_arr->field_sz[i]; in zero_map_value()