Lines Matching refs:lcs
30 lws_led_state_t *lcs = LWS_PLAT_TIMER_CB_GET_OPAQUE(th); in LWS_PLAT_TIMER_CB() local
32 lws_seq_timer_handle(lcs); in LWS_PLAT_TIMER_CB()
46 lws_led_state_t *lcs = lws_zalloc(sizeof(lws_led_state_t) + in lws_led_gpio_create() local
51 if (!lcs) in lws_led_gpio_create()
54 lcs->controller = lgc; in lws_led_gpio_create()
57 lcs->timer = LWS_PLAT_TIMER_CREATE("leds", in lws_led_gpio_create()
58 LWS_LED_SEQUENCER_UPDATE_INTERVAL_MS, 1, lcs, in lws_led_gpio_create()
60 if (!lcs->timer) in lws_led_gpio_create()
77 return lcs; in lws_led_gpio_create()
81 lws_led_gpio_destroy(struct lws_led_state *lcs) in lws_led_gpio_destroy() argument
84 LWS_PLAT_TIMER_DELETE(lcs->timer); in lws_led_gpio_destroy()
86 lws_free(lcs); in lws_led_gpio_destroy()