Home
last modified time | relevance | path

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

/linux/net/core/
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/perf/util/
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/
A Drelo_core.c764 __u32 new_sz; member
788 res->orig_sz = res->new_sz = 0; in bpf_core_calc_relo()
796 &res->new_val, &res->new_sz, in bpf_core_calc_relo()
805 if (res->orig_sz != res->new_sz) { in bpf_core_calc_relo()
984 if (res->new_sz != res->orig_sz) { in bpf_core_patch_insn()
994 insn_bpf_sz = insn_bytes_to_bpf_size(res->new_sz); in bpf_core_patch_insn()
997 prog_name, relo_idx, insn_idx, res->new_sz); in bpf_core_patch_insn()
1003 prog_name, relo_idx, insn_idx, res->orig_sz, res->new_sz); in bpf_core_patch_insn()
A Dlibbpf.c5657 size_t old_sz, new_sz; in adjust_prog_btf_ext_info() local
5688 new_sz = old_sz + (copy_end - copy_start); in adjust_prog_btf_ext_info()
5689 new_prog_info = realloc(*prog_info, new_sz); in adjust_prog_btf_ext_info()
5693 *prog_rec_cnt = new_sz / ext_info->rec_size; in adjust_prog_btf_ext_info()
5704 rec_end = new_prog_info + new_sz; in adjust_prog_btf_ext_info()
6156 int i, j, nrels, new_sz; in bpf_object__collect_map_relos() local
6248 new_sz = moff + 1; in bpf_object__collect_map_relos()
6249 tmp = libbpf_reallocarray(map->init_slots, new_sz, host_ptr_sz); in bpf_object__collect_map_relos()
6254 (new_sz - map->init_slots_sz) * host_ptr_sz); in bpf_object__collect_map_relos()
6255 map->init_slots_sz = new_sz; in bpf_object__collect_map_relos()
/linux/fs/ntfs3/
A Dxattr.c278 u64 new_sz; in ntfs_set_ea() local
409 new_sz = size; in ntfs_set_ea()
410 err = attr_set_size(ni, ATTR_EA, NULL, 0, &ea_run, new_sz, &new_sz, in ntfs_set_ea()
A Dfslog.c3050 struct NEW_ATTRIBUTE_SIZES *new_sz; in do_action() local
3370 new_sz = data; in do_action()
3374 attr->nres.alloc_size = new_sz->alloc_size; in do_action()
3375 attr->nres.data_size = new_sz->data_size; in do_action()
3376 attr->nres.valid_size = new_sz->valid_size; in do_action()
3379 attr->nres.total_size = new_sz->total_size; in do_action()
/linux/fs/ubifs/
A Ddir.c1262 int unlink = !!new_inode, new_sz, old_sz; in do_rename() local
1308 new_sz = CALC_DENT_SIZE(fname_len(&new_nm)); in do_rename()
1406 new_dir->i_size += new_sz; in do_rename()
1470 new_dir->i_size -= new_sz; in do_rename()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_tc.c2913 size_t new_sz, old_sz; in alloc_mod_hdr_actions() local
2929 new_sz = action_size * new_num_actions; in alloc_mod_hdr_actions()
2931 ret = krealloc(mod_hdr_acts->actions, new_sz, GFP_KERNEL); in alloc_mod_hdr_actions()
2935 memset(ret + old_sz, 0, new_sz - old_sz); in alloc_mod_hdr_actions()

Completed in 49 milliseconds