Lines Matching refs:ptp_context
322 struct ptp_context { struct
334 struct ptp_context *ptp_context = dev->data; in ptp_clock_e1000_set() argument
337 ptp_context->clock_time = tm->second * NSEC_PER_SEC + tm->nanosecond; in ptp_clock_e1000_set()
345 struct ptp_context *ptp_context = dev->data; in ptp_clock_e1000_get() local
348 tm->second = ptp_context->clock_time / NSEC_PER_SEC; in ptp_clock_e1000_get()
349 tm->nanosecond = ptp_context->clock_time - tm->second * NSEC_PER_SEC; in ptp_clock_e1000_get()
367 struct ptp_context *ptp_context = dev->data; in ptp_clock_e1000_rate_adjust() local
368 struct e1000_dev *context = ptp_context->eth_context; in ptp_clock_e1000_rate_adjust()
423 struct ptp_context *ptp_context = port->data; in ptp_e1000_init() local
424 struct e1000_dev *context = ptp_context->eth_context; in ptp_e1000_init()
427 ptp_context->clock_time = k_ticks_to_ns_floor64(k_uptime_ticks()); in ptp_e1000_init()
433 static struct ptp_context ptp_e1000_context_##inst = { \