Lines Matching refs:lgc
39 lws_led_gpio_controller_t *lgc = (lws_led_gpio_controller_t *)led_ops; in lws_led_gpio_create() local
47 (lgc->count_leds * sizeof(lws_led_state_chs_t)), in lws_led_gpio_create()
54 lcs->controller = lgc; in lws_led_gpio_create()
64 for (n = 0; n < lgc->count_leds; n++) { in lws_led_gpio_create()
65 const lws_led_gpio_map_t *map = &lgc->led_map[n]; in lws_led_gpio_create()
68 lgc->gpio_ops->mode(map->gpio, LWSGGPIO_FL_READ); in lws_led_gpio_create()
69 lgc->gpio_ops->set(map->gpio, 0); in lws_led_gpio_create()
71 lgc->gpio_ops->mode(map->gpio, LWSGGPIO_FL_WRITE); in lws_led_gpio_create()
72 lgc->gpio_ops->set(map->gpio, in lws_led_gpio_create()
73 !lgc->led_map[n].active_level); in lws_led_gpio_create()
92 const lws_led_gpio_controller_t *lgc = (lws_led_gpio_controller_t *)lo; in lws_led_gpio_lookup() local
95 for (n = 0; n < lgc->count_leds; n++) in lws_led_gpio_lookup()
96 if (!strcmp(name, lgc->led_map[n].name)) in lws_led_gpio_lookup()
106 const lws_led_gpio_controller_t *lgc = (lws_led_gpio_controller_t *)lo; in lws_led_gpio_intensity() local
113 map = &lgc->led_map[idx]; in lws_led_gpio_intensity()
118 lgc->gpio_ops->set(map->gpio, in lws_led_gpio_intensity()