Home
last modified time | relevance | path

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

/openbmc/linux/tools/perf/util/
H A Dutil.c514 size_t new_sz = *arr_sz; in do_realloc_array_as_needed() local
518 if (!new_sz) in do_realloc_array_as_needed()
519 new_sz = msz >= 64 ? 1 : roundup(64, msz); /* Start with at least 64 bytes */ in do_realloc_array_as_needed()
520 while (x >= new_sz) { in do_realloc_array_as_needed()
521 if (check_mul_overflow(new_sz, (size_t)2, &new_sz)) in do_realloc_array_as_needed()
524 if (new_sz == *arr_sz) in do_realloc_array_as_needed()
526 new_arr = calloc(new_sz, msz); in do_realloc_array_as_needed()
532 for (i = *arr_sz; i < new_sz; i++) in do_realloc_array_as_needed()
536 *arr_sz = new_sz; in do_realloc_array_as_needed()
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()
/openbmc/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()
/openbmc/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()
/openbmc/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()
/openbmc/u-boot/tools/
H A Dmips-relocs.c112 size_t new_sz; in add_reloc() local
130 new_sz = relocs_sz ? relocs_sz * 2 : 128; in add_reloc()
131 new = realloc(relocs, new_sz * sizeof(*relocs)); in add_reloc()
138 relocs_sz = new_sz; in add_reloc()
/openbmc/linux/tools/lib/bpf/
H A Drelo_core.h67 __u32 new_sz; member
H A Drelo_core.c893 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()
H A Dlibbpf.c1530 if (old_sz == new_sz) in bpf_map_mmap_resize()
1537 memcpy(mmaped, map->mmaped, min(old_sz, new_sz)); in bpf_map_mmap_resize()
6065 size_t old_sz, new_sz; in adjust_prog_btf_ext_info() local
6095 new_sz = old_sz + (copy_end - copy_start); in adjust_prog_btf_ext_info()
6096 new_prog_info = realloc(*prog_info, new_sz); in adjust_prog_btf_ext_info()
6100 *prog_rec_cnt = new_sz / ext_info->rec_size; in adjust_prog_btf_ext_info()
6111 rec_end = new_prog_info + new_sz; in adjust_prog_btf_ext_info()
6603 int i, j, nrels, new_sz; in bpf_object__collect_map_relos() local
6718 new_sz = moff + 1; in bpf_object__collect_map_relos()
6724 (new_sz - map->init_slots_sz) * host_ptr_sz); in bpf_object__collect_map_relos()
[all …]
/openbmc/linux/fs/ntfs3/
H A Dxattr.c328 u64 new_sz; in ntfs_set_ea() local
457 new_sz = size; in ntfs_set_ea()
458 err = attr_set_size(ni, ATTR_EA, NULL, 0, &ea_run, new_sz, &new_sz, in ntfs_set_ea()
H A Dfslog.c3031 struct NEW_ATTRIBUTE_SIZES *new_sz; in do_action() local
3351 new_sz = data; in do_action()
3355 attr->nres.alloc_size = new_sz->alloc_size; in do_action()
3356 attr->nres.data_size = new_sz->data_size; in do_action()
3357 attr->nres.valid_size = new_sz->valid_size; in do_action()
3360 attr->nres.total_size = new_sz->total_size; in do_action()
/openbmc/linux/fs/ubifs/
H A Ddir.c1296 int unlink = !!new_inode, new_sz, old_sz; in do_rename() local
1345 new_sz = CALC_DENT_SIZE(fname_len(&new_nm)); in do_rename()
1463 new_dir->i_size += new_sz; in do_rename()
1519 new_dir->i_size -= new_sz; in do_rename()
/openbmc/linux/drivers/infiniband/hw/bnxt_re/
H A Dqplib_fp.c2212 u32 pg_sz, lvl, new_sz; in bnxt_qplib_resize_cq() local
2232 new_sz = (new_cqes << CMDQ_RESIZE_CQ_NEW_CQ_SIZE_SFT) & in bnxt_qplib_resize_cq()
2234 req.new_cq_size_pg_size_lvl = cpu_to_le32(new_sz | pg_sz | lvl); in bnxt_qplib_resize_cq()