Home
last modified time | relevance | path

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

/linux-4.4.14/tools/perf/arch/x86/util/
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()
Dintel-pt.c749 int cnt = ptr->snapshot_ref_cnt, new_cnt = cnt * 2; in intel_pt_alloc_snapshot_refs() local
752 if (!new_cnt) in intel_pt_alloc_snapshot_refs()
753 new_cnt = 16; in intel_pt_alloc_snapshot_refs()
755 while (new_cnt <= idx) in intel_pt_alloc_snapshot_refs()
756 new_cnt *= 2; in intel_pt_alloc_snapshot_refs()
758 refs = calloc(new_cnt, sz); in intel_pt_alloc_snapshot_refs()
765 ptr->snapshot_ref_cnt = new_cnt; in intel_pt_alloc_snapshot_refs()
/linux-4.4.14/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c1124 int ocrdma_resize_cq(struct ib_cq *ibcq, int new_cnt, in ocrdma_resize_cq() argument
1130 if (new_cnt < 1 || new_cnt > cq->max_hw_cqe) { in ocrdma_resize_cq()
1134 ibcq->cqe = new_cnt; in ocrdma_resize_cq()