Searched refs:vclock_index (Results 1 – 8 of 8) sorted by relevance
/linux-6.6.21/drivers/ptp/ |
D | ptp_vclock.c | 233 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()
|
D | ptp_sysfs.c | 228 *(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()
|
D | ptp_clock.c | 175 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()
|
D | ptp_private.h | 52 int *vclock_index; member
|
/linux-6.6.21/include/linux/ |
D | ptp_clock_kernel.h | 435 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
|
D | ethtool.h | 999 int ethtool_get_phc_vclocks(struct net_device *dev, int **vclock_index);
|
/linux-6.6.21/net/ethtool/ |
D | common.c | 652 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/ |
D | sock.c | 871 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()
|