Home
last modified time | relevance | path

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

/drivers/rtc/
Dsysfs.c318 size_t old_cnt = 0, add_cnt = 0, new_cnt; in rtc_add_groups() local
332 new_cnt = old_cnt + add_cnt + 1; in rtc_add_groups()
333 groups = devm_kcalloc(&rtc->dev, new_cnt, sizeof(*groups), GFP_KERNEL); in rtc_add_groups()
/drivers/vhost/
Dvsock.c312 int new_cnt; in vhost_transport_cancel_pkt() local
314 new_cnt = atomic_sub_return(cnt, &vsock->queued_replies); in vhost_transport_cancel_pkt()
315 if (new_cnt + cnt >= tx_vq->num && new_cnt < tx_vq->num) in vhost_transport_cancel_pkt()
/drivers/perf/hisilicon/
Dhisi_pcie_pmu.c439 u64 new_cnt, prev_cnt, delta; in hisi_pcie_pmu_event_update() local
443 new_cnt = hisi_pcie_pmu_read_counter(event); in hisi_pcie_pmu_event_update()
445 new_cnt) != prev_cnt); in hisi_pcie_pmu_event_update()
447 delta = (new_cnt - prev_cnt) & HISI_PCIE_MAX_PERIOD; in hisi_pcie_pmu_event_update()
Dhns3_pmu.c1291 u64 new_cnt, prev_cnt, delta; in hns3_pmu_read() local
1295 new_cnt = hns3_pmu_read_counter(event); in hns3_pmu_read()
1296 } while (local64_cmpxchg(&hwc->prev_count, prev_cnt, new_cnt) != in hns3_pmu_read()
1299 delta = new_cnt - prev_cnt; in hns3_pmu_read()
/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_encoder_phys_cmd.c85 int new_cnt; in dpu_encoder_phys_cmd_pp_tx_done_irq() local
96 new_cnt = atomic_add_unless(&phys_enc->pending_kickoff_cnt, -1, 0); in dpu_encoder_phys_cmd_pp_tx_done_irq()
101 new_cnt, event); in dpu_encoder_phys_cmd_pp_tx_done_irq()
/drivers/perf/
Dcxl_pmu.c696 u64 new_cnt, prev_cnt, delta; in __cxl_pmu_read() local
700 new_cnt = cxl_pmu_read_counter(event); in __cxl_pmu_read()
701 } while (local64_cmpxchg(&hwc->prev_count, prev_cnt, new_cnt) != prev_cnt); in __cxl_pmu_read()
707 delta = (new_cnt - prev_cnt) & GENMASK_ULL(info->counter_width - 1, 0); in __cxl_pmu_read()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ras.c2161 unsigned long *new_cnt) in amdgpu_ras_save_bad_pages() argument
2169 if (new_cnt) in amdgpu_ras_save_bad_pages()
2170 *new_cnt = 0; in amdgpu_ras_save_bad_pages()
2181 if (new_cnt) in amdgpu_ras_save_bad_pages()
2182 *new_cnt = save_count / adev->umc.retire_unit; in amdgpu_ras_save_bad_pages()
Damdgpu_ras.h601 unsigned long *new_cnt);
/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c1013 int ocrdma_resize_cq(struct ib_cq *ibcq, int new_cnt, in ocrdma_resize_cq() argument
1019 if (new_cnt < 1 || new_cnt > cq->max_hw_cqe) { in ocrdma_resize_cq()
1023 ibcq->cqe = new_cnt; in ocrdma_resize_cq()