Searched refs:cycle_counter (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/drivers/gpu/drm/panfrost/ |
D | panfrost_gpu.c | 98 if (drm_WARN_ON(pfdev->ddev, atomic_read(&pfdev->cycle_counter.use_count) != 0)) in panfrost_gpu_soft_reset() 99 atomic_set(&pfdev->cycle_counter.use_count, 0); in panfrost_gpu_soft_reset() 351 if (atomic_inc_not_zero(&pfdev->cycle_counter.use_count)) in panfrost_cycle_counter_get() 354 spin_lock(&pfdev->cycle_counter.lock); in panfrost_cycle_counter_get() 355 if (atomic_inc_return(&pfdev->cycle_counter.use_count) == 1) in panfrost_cycle_counter_get() 357 spin_unlock(&pfdev->cycle_counter.lock); in panfrost_cycle_counter_get() 362 if (atomic_add_unless(&pfdev->cycle_counter.use_count, -1, 1)) in panfrost_cycle_counter_put() 365 spin_lock(&pfdev->cycle_counter.lock); in panfrost_cycle_counter_put() 366 if (atomic_dec_return(&pfdev->cycle_counter.use_count) == 0) in panfrost_cycle_counter_put() 368 spin_unlock(&pfdev->cycle_counter.lock); in panfrost_cycle_counter_put()
|
D | panfrost_device.h | 152 } cycle_counter; member
|
D | panfrost_device.c | 210 spin_lock_init(&pfdev->cycle_counter.lock); in panfrost_device_init()
|
/linux-6.12.1/drivers/net/ethernet/cavium/common/ |
D | cavium_ptp.c | 194 timecounter_init(&clock->time_counter, &clock->cycle_counter, nsec); in cavium_ptp_settime() 215 container_of(cc, struct cavium_ptp, cycle_counter); in cavium_ptp_cc_read() 250 cc = &clock->cycle_counter; in cavium_ptp_probe() 256 timecounter_init(&clock->time_counter, &clock->cycle_counter, in cavium_ptp_probe()
|
D | cavium_ptp.h | 17 struct cyclecounter cycle_counter; member
|
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_ptp.c | 198 struct otx2_ptp *ptp = container_of(cc, struct otx2_ptp, cycle_counter); in ptp_cc_read() 268 timecounter_init(&ptp->time_counter, &ptp->cycle_counter, nsec); in otx2_ptp_tc_settime() 449 cc = &ptp_ptr->cycle_counter; in otx2_ptp_init() 456 timecounter_init(&ptp_ptr->time_counter, &ptp_ptr->cycle_counter, in otx2_ptp_init()
|
D | otx2_common.h | 320 struct cyclecounter cycle_counter; member
|