Home
last modified time | relevance | path

Searched refs:vclock_index (Results 1 – 4 of 4) sorted by relevance

/drivers/ptp/
Dptp_vclock.c233 int ptp_get_vclocks_index(int pclock_index, int **vclock_index) in ptp_get_vclocks_index() argument
255 *vclock_index = kzalloc(sizeof(int) * ptp->n_vclocks, GFP_KERNEL); in ptp_get_vclocks_index()
256 if (!(*vclock_index)) in ptp_get_vclocks_index()
259 memcpy(*vclock_index, ptp->vclock_index, sizeof(int) * ptp->n_vclocks); in ptp_get_vclocks_index()
268 ktime_t ptp_convert_timestamp(const ktime_t *hwtstamp, int vclock_index) in ptp_convert_timestamp() argument
270 unsigned int hash = vclock_index % HASH_SIZE(vclock_hash); in ptp_convert_timestamp()
280 if (vclock->clock->index != vclock_index) in ptp_convert_timestamp()
Dptp_sysfs.c228 *(ptp->vclock_index + ptp->n_vclocks + i) = in n_vclocks_store()
243 *(ptp->vclock_index + ptp->n_vclocks - i) = -1; in n_vclocks_store()
280 unsigned int *vclock_index; in max_vclocks_store() local
297 vclock_index = kcalloc(max, sizeof(int), GFP_KERNEL); in max_vclocks_store()
298 if (!vclock_index) { in max_vclocks_store()
304 memcpy(vclock_index, ptp->vclock_index, size); in max_vclocks_store()
306 kfree(ptp->vclock_index); in max_vclocks_store()
307 ptp->vclock_index = vclock_index; in max_vclocks_store()
Dptp_clock.c175 kfree(ptp->vclock_index); in ptp_clock_release()
272 ptp->vclock_index = kzalloc(size, GFP_KERNEL); in ptp_clock_register()
273 if (!ptp->vclock_index) { in ptp_clock_register()
329 kfree(ptp->vclock_index); in ptp_clock_register()
Dptp_private.h52 int *vclock_index; member