Searched refs:new_cnt (Results 1 – 9 of 9) sorted by relevance
/drivers/rtc/ |
D | sysfs.c | 318 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/ |
D | vsock.c | 312 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/ |
D | hisi_pcie_pmu.c | 439 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()
|
D | hns3_pmu.c | 1291 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/ |
D | dpu_encoder_phys_cmd.c | 85 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/ |
D | cxl_pmu.c | 696 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/ |
D | amdgpu_ras.c | 2161 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()
|
D | amdgpu_ras.h | 601 unsigned long *new_cnt);
|
/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 1013 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()
|