Searched refs:new_sz (Results 1 - 12 of 12) sorted by relevance

/linux-master/net/core/
H A Dnetprio_cgroup.c44 size_t new_sz, new_len; local
56 new_sz = PRIOMAP_MIN_SZ;
58 new_len = (new_sz - offsetof(struct netprio_map, priomap)) /
62 new_sz *= 2;
64 if (WARN_ON(new_sz < PRIOMAP_MIN_SZ))
69 new = kzalloc(new_sz, GFP_KERNEL);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dglobal_map_resize.c25 size_t array_len, actual_sz, new_sz; local
45 new_sz = sizeof(skel->data_percpu_arr->percpu_arr[0]) * libbpf_num_possible_cpus();
46 err = bpf_map__set_value_size(skel->maps.data_percpu_arr, new_sz);
94 size_t array_len, actual_sz, new_sz; local
115 new_sz = sizeof(skel->data_percpu_arr->percpu_arr[0]) * libbpf_num_possible_cpus();
116 err = bpf_map__set_value_size(skel->maps.data_percpu_arr, new_sz);
/linux-master/tools/perf/util/
H A Dutil.c514 size_t new_sz = *arr_sz; local
518 if (!new_sz)
519 new_sz = msz >= 64 ? 1 : roundup(64, msz); /* Start with at least 64 bytes */
520 while (x >= new_sz) {
521 if (check_mul_overflow(new_sz, (size_t)2, &new_sz))
524 if (new_sz == *arr_sz)
526 new_arr = calloc(new_sz, msz);
532 for (i = *arr_sz; i < new_sz; i++)
536 *arr_sz = new_sz;
[all...]
H A Dthread-stack.c121 size_t sz, new_sz; local
123 new_sz = ts->sz + STACK_GROWTH;
124 sz = new_sz * sizeof(struct thread_stack_entry);
131 ts->sz = new_sz;
180 unsigned int new_sz = 1; local
183 new_sz = roundup_pow_of_two(cpu + 1);
185 if (!ts || new_sz > old_sz) {
186 new_ts = calloc(new_sz, sizeof(*ts));
191 new_ts->arr_sz = new_sz;
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dmod_hdr.c164 size_t new_sz, old_sz; local
177 new_sz = MLX5_MH_ACT_SZ * new_num_actions;
181 ret = kzalloc(new_sz, GFP_KERNEL);
187 ret = krealloc(mod_hdr_acts->actions, new_sz, GFP_KERNEL);
189 memset(ret + old_sz, 0, new_sz - old_sz);
/linux-master/tools/lib/bpf/
H A Drelo_core.h67 __u32 new_sz; member in struct:bpf_core_relo_res
H A Drelo_core.c893 res->orig_sz = res->new_sz = 0;
901 &res->new_val, &res->new_sz,
910 if (res->orig_sz != res->new_sz) {
1092 if (res->new_sz != res->orig_sz) {
1102 insn_bpf_sz = insn_bytes_to_bpf_size(res->new_sz);
1105 prog_name, relo_idx, insn_idx, res->new_sz);
1111 prog_name, relo_idx, insn_idx, res->orig_sz, res->new_sz);
H A Dlibbpf.c1724 static int bpf_map_mmap_resize(struct bpf_map *map, size_t old_sz, size_t new_sz) argument
1731 if (old_sz == new_sz)
1734 mmaped = mmap(NULL, new_sz, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0);
1738 memcpy(mmaped, map->mmaped, min(old_sz, new_sz));
6050 size_t old_sz, new_sz; local
6080 new_sz = old_sz + (copy_end - copy_start);
6081 new_prog_info = realloc(*prog_info, new_sz);
6085 *prog_rec_cnt = new_sz / ext_info->rec_size;
6096 rec_end = new_prog_info + new_sz;
7033 int i, j, nrels, new_sz; local
[all...]
/linux-master/fs/ntfs3/
H A Dxattr.c328 u64 new_sz; local
457 new_sz = size;
458 err = attr_set_size(ni, ATTR_EA, NULL, 0, &ea_run, new_sz, &new_sz,
H A Dfslog.c3030 struct NEW_ATTRIBUTE_SIZES *new_sz; local
3350 new_sz = data;
3354 attr->nres.alloc_size = new_sz->alloc_size;
3355 attr->nres.data_size = new_sz->data_size;
3356 attr->nres.valid_size = new_sz->valid_size;
3359 attr->nres.total_size = new_sz->total_size;
/linux-master/fs/ubifs/
H A Ddir.c1306 int unlink = !!new_inode, new_sz, old_sz; local
1355 new_sz = CALC_DENT_SIZE(fname_len(&new_nm));
1473 new_dir->i_size += new_sz;
1529 new_dir->i_size -= new_sz;
/linux-master/drivers/infiniband/hw/bnxt_re/
H A Dqplib_fp.c2216 u32 pg_sz, lvl, new_sz; local
2236 new_sz = (new_cqes << CMDQ_RESIZE_CQ_NEW_CQ_SIZE_SFT) &
2238 req.new_cq_size_pg_size_lvl = cpu_to_le32(new_sz | pg_sz | lvl);

Completed in 244 milliseconds