Searched refs:switch_data (Results 1 – 2 of 2) sorted by relevance
54 static struct ipso_switch_data switch_data[MAX_INSTANCE_COUNT]; variable102 if (switch_data[i].state) { in state_post_write_cb()104 switch_data[i].off_time_sec = 0; in state_post_write_cb()105 if (!switch_data[i].last_state) { in state_post_write_cb()107 switch_data[i].counter++; in state_post_write_cb()108 if (switch_data[i].counter < 0) { in state_post_write_cb()109 switch_data[i].counter = 0; in state_post_write_cb()114 switch_data[i].on_time_sec = 0; in state_post_write_cb()117 switch_data[i].last_state = switch_data[i].state; in state_post_write_cb()118 switch_data[i].trigger_offset = k_uptime_get(); in state_post_write_cb()[all …]
259 struct switch_data { struct268 static struct switch_data sw; argument453 struct switch_data *button_sw = CONTAINER_OF(work, struct switch_data, button_timer); in button_cnt_timer()470 struct switch_data *button_sw = CONTAINER_OF(work, struct switch_data, button_work); in button_pressed_worker()