Searched refs:new_sz (Results 1 – 10 of 10) sorted by relevance
/Linux-v6.1/tools/perf/util/ |
D | util.c | 512 size_t new_sz = *arr_sz; in do_realloc_array_as_needed() local 516 if (!new_sz) in do_realloc_array_as_needed() 517 new_sz = msz >= 64 ? 1 : roundup(64, msz); /* Start with at least 64 bytes */ in do_realloc_array_as_needed() 518 while (x >= new_sz) { in do_realloc_array_as_needed() 519 if (check_mul_overflow(new_sz, (size_t)2, &new_sz)) in do_realloc_array_as_needed() 522 if (new_sz == *arr_sz) in do_realloc_array_as_needed() 524 new_arr = calloc(new_sz, msz); in do_realloc_array_as_needed() 529 for (i = *arr_sz; i < new_sz; i++) in do_realloc_array_as_needed() 533 *arr_sz = new_sz; in do_realloc_array_as_needed()
|
D | thread-stack.c | 121 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-v6.1/net/core/ |
D | netprio_cgroup.c | 44 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-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | mod_hdr.c | 163 size_t new_sz, old_sz; in mlx5e_mod_hdr_alloc() local 176 new_sz = MLX5_MH_ACT_SZ * new_num_actions; in mlx5e_mod_hdr_alloc() 180 ret = kzalloc(new_sz, GFP_KERNEL); in mlx5e_mod_hdr_alloc() 186 ret = krealloc(mod_hdr_acts->actions, new_sz, GFP_KERNEL); in mlx5e_mod_hdr_alloc() 188 memset(ret + old_sz, 0, new_sz - old_sz); in mlx5e_mod_hdr_alloc()
|
/Linux-v6.1/tools/lib/bpf/ |
D | relo_core.h | 67 __u32 new_sz; member
|
D | relo_core.c | 893 res->orig_sz = res->new_sz = 0; in bpf_core_calc_relo() 901 &res->new_val, &res->new_sz, in bpf_core_calc_relo() 910 if (res->orig_sz != res->new_sz) { in bpf_core_calc_relo() 1092 if (res->new_sz != res->orig_sz) { in bpf_core_patch_insn() 1102 insn_bpf_sz = insn_bytes_to_bpf_size(res->new_sz); in bpf_core_patch_insn() 1105 prog_name, relo_idx, insn_idx, res->new_sz); in bpf_core_patch_insn() 1111 prog_name, relo_idx, insn_idx, res->orig_sz, res->new_sz); in bpf_core_patch_insn()
|
D | libbpf.c | 5896 size_t old_sz, new_sz; in adjust_prog_btf_ext_info() local 5926 new_sz = old_sz + (copy_end - copy_start); in adjust_prog_btf_ext_info() 5927 new_prog_info = realloc(*prog_info, new_sz); in adjust_prog_btf_ext_info() 5931 *prog_rec_cnt = new_sz / ext_info->rec_size; in adjust_prog_btf_ext_info() 5942 rec_end = new_prog_info + new_sz; in adjust_prog_btf_ext_info() 6429 int i, j, nrels, new_sz; in bpf_object__collect_map_relos() local 6544 new_sz = moff + 1; in bpf_object__collect_map_relos() 6545 tmp = libbpf_reallocarray(map->init_slots, new_sz, host_ptr_sz); in bpf_object__collect_map_relos() 6550 (new_sz - map->init_slots_sz) * host_ptr_sz); in bpf_object__collect_map_relos() 6551 map->init_slots_sz = new_sz; in bpf_object__collect_map_relos()
|
/Linux-v6.1/fs/ntfs3/ |
D | xattr.c | 278 u64 new_sz; in ntfs_set_ea() local 410 new_sz = size; in ntfs_set_ea() 411 err = attr_set_size(ni, ATTR_EA, NULL, 0, &ea_run, new_sz, &new_sz, in ntfs_set_ea()
|
D | fslog.c | 3048 struct NEW_ATTRIBUTE_SIZES *new_sz; in do_action() local 3368 new_sz = data; in do_action() 3372 attr->nres.alloc_size = new_sz->alloc_size; in do_action() 3373 attr->nres.data_size = new_sz->data_size; in do_action() 3374 attr->nres.valid_size = new_sz->valid_size; in do_action() 3377 attr->nres.total_size = new_sz->total_size; in do_action()
|
/Linux-v6.1/fs/ubifs/ |
D | dir.c | 1300 int unlink = !!new_inode, new_sz, old_sz; in do_rename() local 1348 new_sz = CALC_DENT_SIZE(fname_len(&new_nm)); in do_rename() 1470 new_dir->i_size += new_sz; in do_rename() 1526 new_dir->i_size -= new_sz; in do_rename()
|