Home
last modified time | relevance | path

Searched refs:old_sz (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dmod_hdr.c164 size_t new_sz, old_sz; in mlx5e_mod_hdr_alloc() local
178 old_sz = mod_hdr_acts->max_actions * MLX5_MH_ACT_SZ; in mlx5e_mod_hdr_alloc()
183 memcpy(ret, mod_hdr_acts->actions, old_sz); in mlx5e_mod_hdr_alloc()
189 memset(ret + old_sz, 0, new_sz - old_sz); in mlx5e_mod_hdr_alloc()
/linux/tools/perf/util/
H A Dthread-stack.c179 unsigned int old_sz = ts ? ts->arr_sz : 0; in thread_stack__new() local
185 if (!ts || new_sz > old_sz) { in thread_stack__new()
190 memcpy(new_ts, ts, old_sz * sizeof(*ts)); in thread_stack__new()
/linux/tools/lib/bpf/
H A Dlibbpf.c1849 static int bpf_map_mmap_resize(struct bpf_map *map, size_t old_sz, size_t new_sz) in bpf_map_mmap_resize()
1856 if (old_sz == new_sz) in bpf_map_mmap_resize()
1863 memcpy(mmaped, map->mmaped, min(old_sz, new_sz));
1864 munmap(map->mmaped, old_sz); in internal_map_name()
6538 size_t old_sz, new_sz; in reloc_prog_func_and_line_info()
6567 old_sz = (size_t)(*prog_rec_cnt) * ext_info->rec_size; in reloc_prog_func_and_line_info()
6568 new_sz = old_sz + (copy_end - copy_start); in reloc_prog_func_and_line_info()
6574 memcpy(new_prog_info + old_sz, copy_start, copy_end - copy_start); in reloc_prog_func_and_line_info()
6583 rec = new_prog_info + old_sz; in reloc_prog_func_and_line_info()
1844 bpf_map_mmap_resize(struct bpf_map * map,size_t old_sz,size_t new_sz) bpf_map_mmap_resize() argument
6478 size_t old_sz, new_sz; adjust_prog_btf_ext_info() local