Home
last modified time | relevance | path

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

/linux-6.6.21/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
298 vclock_index = kzalloc(size, GFP_KERNEL); in max_vclocks_store()
299 if (!vclock_index) { in max_vclocks_store()
305 memcpy(vclock_index, ptp->vclock_index, size); in max_vclocks_store()
307 kfree(ptp->vclock_index); in max_vclocks_store()
308 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
/linux-6.6.21/include/linux/
Dptp_clock_kernel.h435 int ptp_get_vclocks_index(int pclock_index, int **vclock_index);
445 ktime_t ptp_convert_timestamp(const ktime_t *hwtstamp, int vclock_index);
447 static inline int ptp_get_vclocks_index(int pclock_index, int **vclock_index) in ptp_get_vclocks_index() argument
450 int vclock_index) in ptp_convert_timestamp() argument
Dethtool.h999 int ethtool_get_phc_vclocks(struct net_device *dev, int **vclock_index);
/linux-6.6.21/net/ethtool/
Dcommon.c652 int ethtool_get_phc_vclocks(struct net_device *dev, int **vclock_index) in ethtool_get_phc_vclocks() argument
658 num = ptp_get_vclocks_index(info.phc_index, vclock_index); in ethtool_get_phc_vclocks()
/linux-6.6.21/net/core/
Dsock.c871 int *vclock_index; in sock_timestamping_bind_phc() local
882 num = ethtool_get_phc_vclocks(dev, &vclock_index); in sock_timestamping_bind_phc()
886 if (*(vclock_index + i) == phc_index) { in sock_timestamping_bind_phc()
893 kfree(vclock_index); in sock_timestamping_bind_phc()