Home
last modified time | relevance | path

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

/linux/tools/perf/arch/x86/util/
H A Dintel-bts.c283 int cnt = btsr->snapshot_ref_cnt, new_cnt = cnt * 2; in intel_bts_alloc_snapshot_refs() local
286 if (!new_cnt) in intel_bts_alloc_snapshot_refs()
287 new_cnt = 16; in intel_bts_alloc_snapshot_refs()
289 while (new_cnt <= idx) in intel_bts_alloc_snapshot_refs()
290 new_cnt *= 2; in intel_bts_alloc_snapshot_refs()
292 refs = calloc(new_cnt, sz); in intel_bts_alloc_snapshot_refs()
299 btsr->snapshot_ref_cnt = new_cnt; in intel_bts_alloc_snapshot_refs()
H A Dintel-pt.c926 int cnt = ptr->snapshot_ref_cnt, new_cnt = cnt * 2; in intel_pt_alloc_snapshot_refs() local
929 if (!new_cnt) in intel_pt_alloc_snapshot_refs()
930 new_cnt = 16; in intel_pt_alloc_snapshot_refs()
932 while (new_cnt <= idx) in intel_pt_alloc_snapshot_refs()
933 new_cnt *= 2; in intel_pt_alloc_snapshot_refs()
935 refs = calloc(new_cnt, sz); in intel_pt_alloc_snapshot_refs()
942 ptr->snapshot_ref_cnt = new_cnt; in intel_pt_alloc_snapshot_refs()
/linux/tools/crypto/tcrypt/
H A Dtcrypt_speed_compare.py159 new_cnt = item[f"new_{key}"]
161 new_sum += new_cnt
162 differ = round((new_cnt - base_cnt)*100/base_cnt, 2)
/linux/tools/perf/arch/arm64/util/
H A Darm-spe.c500 int cnt = ptr->wrapped_cnt, new_cnt, i; in arm_spe_alloc_wrapped_array() local
511 new_cnt = idx + 1; in arm_spe_alloc_wrapped_array()
516 wrapped = reallocarray(ptr->wrapped, new_cnt, sizeof(bool)); in arm_spe_alloc_wrapped_array()
523 for (i = cnt; i < new_cnt; i++) in arm_spe_alloc_wrapped_array()
526 ptr->wrapped_cnt = new_cnt; in arm_spe_alloc_wrapped_array()
/linux/drivers/rtc/
H A Dsysfs.c310 size_t old_cnt = 0, add_cnt = 0, new_cnt; in rtc_add_groups() local
328 new_cnt = old_cnt + add_cnt + 1; in rtc_add_groups()
329 groups = devm_kcalloc(&rtc->dev, new_cnt, sizeof(*groups), GFP_KERNEL); in rtc_add_groups()
/linux/drivers/vhost/
H A Dvsock.c319 int new_cnt; in vhost_transport_cancel_pkt() local
321 new_cnt = atomic_sub_return(cnt, &vsock->queued_replies); in vhost_transport_cancel_pkt()
322 if (new_cnt + cnt >= tx_vq->num && new_cnt < tx_vq->num) in vhost_transport_cancel_pkt()
/linux/drivers/perf/hisilicon/
H A Dhisi_pcie_pmu.c449 u64 new_cnt, prev_cnt, delta; in hisi_pcie_pmu_event_update() local
453 new_cnt = hisi_pcie_pmu_read_counter(event); in hisi_pcie_pmu_event_update()
455 new_cnt) != prev_cnt); in hisi_pcie_pmu_event_update()
457 delta = (new_cnt - prev_cnt) & HISI_PCIE_MAX_PERIOD; in hisi_pcie_pmu_event_update()
/linux/drivers/perf/
H A Dcxl_pmu.c688 u64 new_cnt, prev_cnt, delta; in __cxl_pmu_read() local
692 new_cnt = cxl_pmu_read_counter(event); in __cxl_pmu_read()
693 } while (local64_cmpxchg(&hwc->prev_count, prev_cnt, new_cnt) != prev_cnt); in __cxl_pmu_read()
699 delta = (new_cnt - prev_cnt) & GENMASK_ULL(info->counter_width - 1, 0); in __cxl_pmu_read()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ras.c3288 unsigned long *new_cnt) in amdgpu_ras_save_bad_pages() argument
3296 if (new_cnt) in amdgpu_ras_save_bad_pages()
3297 *new_cnt = 0; in amdgpu_ras_save_bad_pages()
3305 if (new_cnt) in amdgpu_ras_save_bad_pages()
3306 *new_cnt = 0; in amdgpu_ras_save_bad_pages()
3324 if (new_cnt) in amdgpu_ras_save_bad_pages()
3325 *new_cnt = unit_num; in amdgpu_ras_save_bad_pages()
/linux/tools/perf/
H A Dbuiltin-inject.c1284 static int synthesize_id_index(struct perf_inject *inject, size_t new_cnt) in synthesize_id_index() argument
1289 size_t from = evlist->core.nr_entries - new_cnt; in synthesize_id_index()
/linux/kernel/bpf/
H A Dverifier.c23897 int i, ret, new_cnt; in do_check_subprogs() local
23907 new_cnt = 0; in do_check_subprogs()
23931 new_cnt++; in do_check_subprogs()
23937 if (new_cnt) in do_check_subprogs()