Lines Matching refs:timer
841 struct timer_list *timer = NULL; in zep_shim_timer_alloc() local
843 timer = k_malloc(sizeof(*timer)); in zep_shim_timer_alloc()
845 if (!timer) { in zep_shim_timer_alloc()
849 return timer; in zep_shim_timer_alloc()
852 static void zep_shim_timer_init(void *timer, void (*callback)(unsigned long), unsigned long data) in zep_shim_timer_init() argument
854 ((struct timer_list *)timer)->function = callback; in zep_shim_timer_init()
855 ((struct timer_list *)timer)->data = data; in zep_shim_timer_init()
857 init_timer(timer); in zep_shim_timer_init()
860 static void zep_shim_timer_free(void *timer) in zep_shim_timer_free() argument
862 k_free(timer); in zep_shim_timer_free()
865 static void zep_shim_timer_schedule(void *timer, unsigned long duration) in zep_shim_timer_schedule() argument
867 mod_timer(timer, duration); in zep_shim_timer_schedule()
870 static void zep_shim_timer_kill(void *timer) in zep_shim_timer_kill() argument
872 del_timer_sync(timer); in zep_shim_timer_kill()