Lines Matching refs:timer
89 static void port_timer_set_timeout(struct k_timer *timer, uint8_t factor, int8_t log_seconds) in port_timer_set_timeout() argument
95 k_timer_start(timer, K_NSEC(timeout), K_NO_WAIT); in port_timer_set_timeout()
98 static void port_timer_set_timeout_random(struct k_timer *timer, in port_timer_set_timeout_random() argument
114 k_timer_start(timer, K_NSEC(timeout), K_NO_WAIT); in port_timer_set_timeout_random()
360 static void port_timer_init(struct k_timer *timer, k_timer_expiry_t timeout_fn, void *user_data) in port_timer_init() argument
362 k_timer_init(timer, timeout_fn, NULL); in port_timer_init()
363 k_timer_user_data_set(timer, user_data); in port_timer_init()
366 static void port_timer_to_handler(struct k_timer *timer) in port_timer_to_handler() argument
368 struct ptp_port *port = (struct ptp_port *)k_timer_user_data_get(timer); in port_timer_to_handler()
370 if (timer == &port->timers.announce) { in port_timer_to_handler()
372 } else if (timer == &port->timers.sync) { in port_timer_to_handler()
374 } else if (timer == &port->timers.delay) { in port_timer_to_handler()
376 } else if (timer == &port->timers.qualification) { in port_timer_to_handler()
1198 enum ptp_port_event ptp_port_timer_event_gen(struct ptp_port *port, struct k_timer *timer) in ptp_port_timer_event_gen() argument
1205 if (timer == &port->timers.qualification && in ptp_port_timer_event_gen()
1216 if (timer == &port->timers.sync && in ptp_port_timer_event_gen()
1228 if (timer == &port->timers.announce && in ptp_port_timer_event_gen()
1242 if (timer == &port->timers.delay && in ptp_port_timer_event_gen()
1261 if ((timer == &port->timers.announce || timer == &port->timers.sync) && in ptp_port_timer_event_gen()
1267 timer == &port->timers.announce ? "Announce" : "RX Sync"); in ptp_port_timer_event_gen()