Lines Matching full:each
56 /* incremented each time the mon timer cb happens */
91 lws_button_each_t *each = (lws_button_each_t *)arg; in lws_button_irq_cb_t() local
93 each->isr_pending = 1; in lws_button_irq_cb_t()
94 LWS_PLAT_TIMER_START(each->bcs->timer); in lws_button_irq_cb_t()
109 lws_button_each_t *each = (lws_button_each_t *)&bcs[1]; in LWS_PLAT_TIMER_CB() local
113 * The ISR and bottom-half is shared by all the buttons. Each gpio in LWS_PLAT_TIMER_CB()
116 * each->isr_pending and schedules this bottom half. in LWS_PLAT_TIMER_CB()
126 if (!each[n].isr_pending) in LWS_PLAT_TIMER_CB()
137 each[n].isr_pending = 0; in LWS_PLAT_TIMER_CB()
148 if (each[n].state == LBCS_IDLE) { in LWS_PLAT_TIMER_CB()
155 each[n].state = LBCS_MIN_DOWN_QUALIFY; in LWS_PLAT_TIMER_CB()
156 each[n].mon_timer_comp = bcs->mon_timer_count; in LWS_PLAT_TIMER_CB()
196 lws_button_irq_cb_t, &each[n]); in LWS_PLAT_TIMER_CB()
205 lws_button_each_t *each = (lws_button_each_t *)&bcs[1]; in LWS_PLAT_TIMER_CB() local
217 if (each[n].state == LBCS_IDLE) in LWS_PLAT_TIMER_CB()
225 comp_age_ms = (bcs->mon_timer_count - each[n].mon_timer_comp) * in LWS_PLAT_TIMER_CB()
231 // lwsl_notice("%d\n", each[n].state); in LWS_PLAT_TIMER_CB()
233 switch (each[n].state) { in LWS_PLAT_TIMER_CB()
255 each[n].mon_timer_comp = bcs->mon_timer_count; in LWS_PLAT_TIMER_CB()
256 each[n].state = LBCS_UP_SETTLE2; in LWS_PLAT_TIMER_CB()
268 each[n].state = LBCS_ASSESS_DOWN_HOLD; in LWS_PLAT_TIMER_CB()
282 each[n].state = LBCS_WAIT_UP; in LWS_PLAT_TIMER_CB()
303 each[n].mon_timer_comp = bcs->mon_timer_count; in LWS_PLAT_TIMER_CB()
304 each[n].state = LBCS_UP_SETTLE1; in LWS_PLAT_TIMER_CB()
313 each[n].state = LBCS_WAIT_DOUBLECLICK; in LWS_PLAT_TIMER_CB()
323 each[n].mon_timer_comp = bcs->mon_timer_count; in LWS_PLAT_TIMER_CB()
324 each[n].state = LBCS_MIN_DOWN_QUALIFY2; in LWS_PLAT_TIMER_CB()
350 each[n].mon_timer_comp = bcs->mon_timer_count; in LWS_PLAT_TIMER_CB()
351 each[n].state = LBCS_UP_SETTLE2; in LWS_PLAT_TIMER_CB()
360 each[n].state = LBCS_WAIT_UP; in LWS_PLAT_TIMER_CB()
367 each[n].mon_timer_comp = bcs->mon_timer_count; in LWS_PLAT_TIMER_CB()
368 each[n].state = LBCS_UP_SETTLE2; in LWS_PLAT_TIMER_CB()
376 each[n].state = LBCS_IDLE; in LWS_PLAT_TIMER_CB()
404 lws_button_each_t *each = (lws_button_each_t *)&bcs[1]; in lws_button_controller_create() local
414 each[n].bcs = bcs; in lws_button_controller_create()
466 lws_button_each_t *each = (lws_button_each_t *)&bcs[1]; in lws_button_enable() local
487 lws_button_irq_cb_t, &each[n]); in lws_button_enable()