Lines Matching refs:timer_func
75 void timer_func_init(struct timer_func_list_t *timer_func, void (*func)(void *data), void *data, ui… in timer_func_init() argument
77 list_init(&timer_func->list); in timer_func_init()
78 timer_func->func = func; in timer_func_init()
79 timer_func->data = data; in timer_func_init()
80 timer_func->expire_jiffies = cal_next_n_ms_jiffies(expire_ms); // 设置过期的时间片 in timer_func_init()
91 void timer_func_init_us(struct timer_func_list_t *timer_func, void (*func)(void *data), void *data,… in timer_func_init_us() argument
93 list_init(&timer_func->list); in timer_func_init_us()
94 timer_func->func = func; in timer_func_init_us()
95 timer_func->data = data; in timer_func_init_us()
96 timer_func->expire_jiffies = cal_next_n_us_jiffies(expire_us); // 设置过期的时间片 in timer_func_init_us()
105 void timer_func_add(struct timer_func_list_t *timer_func) in timer_func_add() argument
110 while (tmp->expire_jiffies < timer_func->expire_jiffies) in timer_func_add()
113 list_add(&tmp->list, &(timer_func->list)); in timer_func_add()
121 void timer_func_del(struct timer_func_list_t *timer_func) in timer_func_del() argument
123 list_del(&timer_func->list); in timer_func_del()