Home
last modified time | relevance | path

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

/linux/drivers/ptp/
H A Dptp_sysfs.c196 size = sysfs_emit(page, "%u\n", ptp->n_vclocks); in n_vclocks_show()
224 if (num > ptp->n_vclocks) { in n_vclocks_store()
225 for (i = 0; i < num - ptp->n_vclocks; i++) { in n_vclocks_store()
230 *(ptp->vclock_index + ptp->n_vclocks + i) = in n_vclocks_store()
239 if (num < ptp->n_vclocks) { in n_vclocks_store()
240 i = ptp->n_vclocks - num; in n_vclocks_store()
244 for (i = 1; i <= ptp->n_vclocks - num; i++) in n_vclocks_store()
245 *(ptp->vclock_index + ptp->n_vclocks - i) = -1; in n_vclocks_store()
256 ptp->n_vclocks = num; in n_vclocks_store()
264 static DEVICE_ATTR_RW(n_vclocks);
[all …]
H A Dptp_private.h59 unsigned int n_vclocks; member
106 if (!ptp->is_virtual_clock && ptp->n_vclocks) in ptp_vclock_in_use()
H A Dptp_vclock.c255 *vclock_index = kzalloc(sizeof(int) * ptp->n_vclocks, GFP_KERNEL); in ptp_get_vclocks_index()
259 memcpy(*vclock_index, ptp->vclock_index, sizeof(int) * ptp->n_vclocks); in ptp_get_vclocks_index()
260 num = ptp->n_vclocks; in ptp_get_vclocks_index()
/linux/Documentation/ABI/testing/
H A Dsysfs-ptp71 What: /sys/class/ptp/ptp<N>/n_vclocks