Searched refs:n_vclocks (Results 1 – 4 of 4) sorted by relevance
196 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 …]
59 unsigned int n_vclocks; member106 if (!ptp->is_virtual_clock && ptp->n_vclocks) in ptp_vclock_in_use()
255 *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()
71 What: /sys/class/ptp/ptp<N>/n_vclocks