Home
last modified time | relevance | path

Searched refs:new_sz (Results 1 – 8 of 8) sorted by relevance

/linux/net/core/
H A Dnetprio_cgroup.c44 size_t new_sz, new_len; in extend_netdev_table() local
56 new_sz = PRIOMAP_MIN_SZ; in extend_netdev_table()
58 new_len = (new_sz - offsetof(struct netprio_map, priomap)) / in extend_netdev_table()
62 new_sz *= 2; in extend_netdev_table()
64 if (WARN_ON(new_sz < PRIOMAP_MIN_SZ)) in extend_netdev_table()
69 new = kzalloc(new_sz, GFP_KERNEL); in extend_netdev_table()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dglobal_map_resize.c25 size_t array_len, actual_sz, new_sz; in global_map_resize_bss_subtest() local
45 new_sz = sizeof(skel->data_percpu_arr->percpu_arr[0]) * libbpf_num_possible_cpus(); in global_map_resize_bss_subtest()
46 err = bpf_map__set_value_size(skel->maps.data_percpu_arr, new_sz); in global_map_resize_bss_subtest()
94 size_t array_len, actual_sz, new_sz; in global_map_resize_data_subtest() local
115 new_sz = sizeof(skel->data_percpu_arr->percpu_arr[0]) * libbpf_num_possible_cpus(); in global_map_resize_data_subtest()
116 err = bpf_map__set_value_size(skel->maps.data_percpu_arr, new_sz); in global_map_resize_data_subtest()
/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
177 new_sz = MLX5_MH_ACT_SZ * new_num_actions; in mlx5e_mod_hdr_alloc()
181 ret = kzalloc(new_sz, GFP_KERNEL); in mlx5e_mod_hdr_alloc()
187 ret = krealloc(mod_hdr_acts->actions, new_sz, GFP_KERNEL); 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.c121 size_t sz, new_sz; in thread_stack__grow() local
123 new_sz = ts->sz + STACK_GROWTH; in thread_stack__grow()
124 sz = new_sz * sizeof(struct thread_stack_entry); in thread_stack__grow()
131 ts->sz = new_sz; in thread_stack__grow()
180 unsigned int new_sz = 1; in thread_stack__new() local
183 new_sz = roundup_pow_of_two(cpu + 1); in thread_stack__new()
185 if (!ts || new_sz > old_sz) { in thread_stack__new()
186 new_ts = calloc(new_sz, sizeof(*ts)); in thread_stack__new()
191 new_ts->arr_sz = new_sz; in thread_stack__new()
/linux/tools/lib/bpf/
H A Drelo_core.h67 __u32 new_sz; member
H A Dlibbpf.c1814 static int bpf_map_mmap_resize(struct bpf_map *map, size_t old_sz, size_t new_sz) in bpf_map_mmap_resize() argument
1821 if (old_sz == new_sz) in bpf_map_mmap_resize()
1824 mmaped = mmap(NULL, new_sz, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0); in bpf_map_mmap_resize()
1828 memcpy(mmaped, map->mmaped, min(old_sz, new_sz)); in bpf_map_mmap_resize()
6204 size_t old_sz, new_sz; in adjust_prog_btf_ext_info() local
6234 new_sz = old_sz + (copy_end - copy_start); in adjust_prog_btf_ext_info()
6235 new_prog_info = realloc(*prog_info, new_sz); in adjust_prog_btf_ext_info()
6239 *prog_rec_cnt = new_sz / ext_info->rec_size; in adjust_prog_btf_ext_info()
6250 rec_end = new_prog_info + new_sz; in adjust_prog_btf_ext_info()
7187 int i, j, nrels, new_sz; in bpf_object__collect_map_relos() local
[all …]
/linux/fs/ntfs3/
H A Dxattr.c332 u64 new_sz; in ntfs_set_ea() local
461 new_sz = size; in ntfs_set_ea()
462 err = attr_set_size(ni, ATTR_EA, NULL, 0, &ea_run, new_sz, &new_sz, in ntfs_set_ea()
/linux/kernel/bpf/
H A Dverifier.c1877 u64 new_sz; in scc_visit_alloc() local
1882 new_sz = sizeof(*info) + sizeof(struct bpf_scc_visit) * (num_visits + 1); in scc_visit_alloc()
1883 info = kvrealloc(env->scc_info[scc], new_sz, GFP_KERNEL_ACCOUNT); in scc_visit_alloc()