Searched refs:old_sz (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | mod_hdr.c | 164 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/fs/ubifs/ |
H A D | dir.c | 1333 int unlink = !!new_inode, new_sz, old_sz; in do_rename() local 1383 old_sz = CALC_DENT_SIZE(fname_len(&old_nm)); in do_rename() 1441 old_sz -= CALC_DENT_SIZE(fname_len(&old_nm)); in do_rename() 1477 old_dir->i_size -= old_sz; in do_rename() 1555 old_dir->i_size += old_sz; in do_rename()
|
/linux/tools/perf/util/ |
H A D | thread-stack.c | 179 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 D | libbpf.c | 1802 static int bpf_map_mmap_resize(struct bpf_map *map, size_t old_sz, size_t new_sz) in bpf_map_mmap_resize() argument 1809 if (old_sz == new_sz) in bpf_map_mmap_resize() 1816 memcpy(mmaped, map->mmaped, min(old_sz, new_sz)); in bpf_map_mmap_resize() 1817 munmap(map->mmaped, old_sz); in bpf_map_mmap_resize() 6180 size_t old_sz, new_sz; in adjust_prog_btf_ext_info() local 6209 old_sz = (size_t)(*prog_rec_cnt) * ext_info->rec_size; in adjust_prog_btf_ext_info() 6210 new_sz = old_sz + (copy_end - copy_start); in adjust_prog_btf_ext_info() 6216 memcpy(new_prog_info + old_sz, copy_start, copy_end - copy_start); in adjust_prog_btf_ext_info() 6225 rec = new_prog_info + old_sz; in adjust_prog_btf_ext_info()
|