Searched refs:old_sz (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
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-6.12.1/fs/ubifs/ |
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-6.12.1/tools/perf/util/ |
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-6.12.1/tools/lib/bpf/ |
D | libbpf.c | 1781 static int bpf_map_mmap_resize(struct bpf_map *map, size_t old_sz, size_t new_sz) in bpf_map_mmap_resize() argument 1788 if (old_sz == new_sz) in bpf_map_mmap_resize() 1795 memcpy(mmaped, map->mmaped, min(old_sz, new_sz)); in bpf_map_mmap_resize() 1796 munmap(map->mmaped, old_sz); in bpf_map_mmap_resize() 6135 size_t old_sz, new_sz; in adjust_prog_btf_ext_info() local 6164 old_sz = (size_t)(*prog_rec_cnt) * ext_info->rec_size; in adjust_prog_btf_ext_info() 6165 new_sz = old_sz + (copy_end - copy_start); in adjust_prog_btf_ext_info() 6171 memcpy(new_prog_info + old_sz, copy_start, copy_end - copy_start); in adjust_prog_btf_ext_info() 6180 rec = new_prog_info + old_sz; in adjust_prog_btf_ext_info()
|