Home
last modified time | relevance | path

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

/linux/tools/perf/util/
A Dbpf-prologue.h19 struct bpf_insn *new_prog, size_t *new_cnt,
28 size_t *new_cnt, in bpf__gen_prologue() argument
31 if (!new_cnt) in bpf__gen_prologue()
33 *new_cnt = 0; in bpf__gen_prologue()
A Dbpf-prologue.c365 struct bpf_insn *new_prog, size_t *new_cnt, in bpf__gen_prologue() argument
375 if (!new_prog || !new_cnt) in bpf__gen_prologue()
392 *new_cnt = pos_get_cnt(&pos); in bpf__gen_prologue()
504 *new_cnt = pos_get_cnt(&pos); in bpf__gen_prologue()
/linux/tools/perf/arch/x86/util/
A Dintel-bts.c282 int cnt = btsr->snapshot_ref_cnt, new_cnt = cnt * 2; in intel_bts_alloc_snapshot_refs() local
285 if (!new_cnt) in intel_bts_alloc_snapshot_refs()
286 new_cnt = 16; in intel_bts_alloc_snapshot_refs()
288 while (new_cnt <= idx) in intel_bts_alloc_snapshot_refs()
289 new_cnt *= 2; in intel_bts_alloc_snapshot_refs()
291 refs = calloc(new_cnt, sz); in intel_bts_alloc_snapshot_refs()
298 btsr->snapshot_ref_cnt = new_cnt; in intel_bts_alloc_snapshot_refs()
A Dintel-pt.c933 int cnt = ptr->snapshot_ref_cnt, new_cnt = cnt * 2; in intel_pt_alloc_snapshot_refs() local
936 if (!new_cnt) in intel_pt_alloc_snapshot_refs()
937 new_cnt = 16; in intel_pt_alloc_snapshot_refs()
939 while (new_cnt <= idx) in intel_pt_alloc_snapshot_refs()
940 new_cnt *= 2; in intel_pt_alloc_snapshot_refs()
942 refs = calloc(new_cnt, sz); in intel_pt_alloc_snapshot_refs()
949 ptr->snapshot_ref_cnt = new_cnt; in intel_pt_alloc_snapshot_refs()
/linux/tools/perf/arch/arm64/util/
A Darm-spe.c314 int cnt = ptr->wrapped_cnt, new_cnt, i; in arm_spe_alloc_wrapped_array() local
325 new_cnt = idx + 1; in arm_spe_alloc_wrapped_array()
330 wrapped = reallocarray(ptr->wrapped, new_cnt, sizeof(bool)); in arm_spe_alloc_wrapped_array()
337 for (i = cnt; i < new_cnt; i++) in arm_spe_alloc_wrapped_array()
340 ptr->wrapped_cnt = new_cnt; in arm_spe_alloc_wrapped_array()
/linux/drivers/rtc/
A Dsysfs.c317 size_t old_cnt = 0, add_cnt = 0, new_cnt; in rtc_add_groups() local
331 new_cnt = old_cnt + add_cnt + 1; in rtc_add_groups()
332 groups = devm_kcalloc(&rtc->dev, new_cnt, sizeof(*groups), GFP_KERNEL); in rtc_add_groups()
/linux/net/vmw_vsock/
A Dvirtio_transport.c231 int new_cnt; in virtio_transport_cancel_pkt() local
233 new_cnt = atomic_sub_return(cnt, &vsock->queued_replies); in virtio_transport_cancel_pkt()
234 if (new_cnt + cnt >= virtqueue_get_vring_size(rx_vq) && in virtio_transport_cancel_pkt()
235 new_cnt < virtqueue_get_vring_size(rx_vq)) in virtio_transport_cancel_pkt()
/linux/tools/lib/bpf/
A Dlinker.c249 size_t new_cnt = linker->sec_cnt ? linker->sec_cnt + 1 : 2; in add_dst_sec() local
251 secs = libbpf_reallocarray(secs, new_cnt, sizeof(*secs)); in add_dst_sec()
259 linker->sec_cnt = new_cnt; in add_dst_sec()
261 sec = &linker->secs[new_cnt - 1]; in add_dst_sec()
262 sec->id = new_cnt - 1; in add_dst_sec()
518 size_t new_cnt = obj->sec_cnt ? obj->sec_cnt + 1 : 2; in add_src_sec() local
520 secs = libbpf_reallocarray(secs, new_cnt, sizeof(*secs)); in add_src_sec()
525 memset(secs + obj->sec_cnt, 0, (new_cnt - obj->sec_cnt) * sizeof(*secs)); in add_src_sec()
528 obj->sec_cnt = new_cnt; in add_src_sec()
530 sec = &obj->secs[new_cnt - 1]; in add_src_sec()
[all …]
A Dbtf.c144 size_t new_cnt; in libbpf_add_mem() local
154 new_cnt = *cap_cnt; in libbpf_add_mem()
155 new_cnt += new_cnt / 4; /* expand by 25% */ in libbpf_add_mem()
156 if (new_cnt < 16) /* but at least 16 elements */ in libbpf_add_mem()
157 new_cnt = 16; in libbpf_add_mem()
158 if (new_cnt > max_cnt) /* but not exceeding a set limit */ in libbpf_add_mem()
159 new_cnt = max_cnt; in libbpf_add_mem()
160 if (new_cnt < cur_cnt + add_cnt) /* also ensure we have enough memory */ in libbpf_add_mem()
161 new_cnt = cur_cnt + add_cnt; in libbpf_add_mem()
163 new_data = libbpf_reallocarray(*data, new_cnt, elem_sz); in libbpf_add_mem()
[all …]
A Dlibbpf.c5807 int new_cnt = main_prog->nr_reloc + subprog->nr_reloc; in append_subprog_relos() local
5813 relos = libbpf_reallocarray(main_prog->reloc_desc, new_cnt, sizeof(*relos)); in append_subprog_relos()
5819 for (i = main_prog->nr_reloc; i < new_cnt; i++) in append_subprog_relos()
5825 main_prog->nr_reloc = new_cnt; in append_subprog_relos()
5833 size_t sub_insn_idx, insn_idx, new_cnt; in bpf_object__reloc_code() local
5913 new_cnt = main_prog->insns_cnt + subprog->insns_cnt; in bpf_object__reloc_code()
5914 insns = libbpf_reallocarray(main_prog->insns, new_cnt, sizeof(*insns)); in bpf_object__reloc_code()
5920 main_prog->insns_cnt = new_cnt; in bpf_object__reloc_code()
/linux/drivers/vhost/
A Dvsock.c342 int new_cnt; in vhost_transport_cancel_pkt() local
344 new_cnt = atomic_sub_return(cnt, &vsock->queued_replies); in vhost_transport_cancel_pkt()
345 if (new_cnt + cnt >= tx_vq->num && new_cnt < tx_vq->num) in vhost_transport_cancel_pkt()
/linux/drivers/gpu/drm/msm/disp/dpu1/
A Ddpu_encoder_phys_cmd.c80 int new_cnt; in dpu_encoder_phys_cmd_pp_tx_done_irq() local
93 new_cnt = atomic_add_unless(&phys_enc->pending_kickoff_cnt, -1, 0); in dpu_encoder_phys_cmd_pp_tx_done_irq()
98 new_cnt, event); in dpu_encoder_phys_cmd_pp_tx_done_irq()
/linux/drivers/infiniband/hw/ocrdma/
A Docrdma_verbs.c1011 int ocrdma_resize_cq(struct ib_cq *ibcq, int new_cnt, in ocrdma_resize_cq() argument
1017 if (new_cnt < 1 || new_cnt > cq->max_hw_cqe) { in ocrdma_resize_cq()
1021 ibcq->cqe = new_cnt; in ocrdma_resize_cq()

Completed in 52 milliseconds