Lines Matching full:gpiod
28 struct gpio_desc *gpiod; member
52 led_dat->platform_gpio_blink_set(led_dat->gpiod, level, in gpio_led_set()
57 gpiod_set_value_cansleep(led_dat->gpiod, level); in gpio_led_set()
59 gpiod_set_value(led_dat->gpiod, level); in gpio_led_set()
76 return led_dat->platform_gpio_blink_set(led_dat->gpiod, GPIO_LED_BLINK, in gpio_blink_set()
89 led_dat->can_sleep = gpiod_cansleep(led_dat->gpiod); in create_gpio_led()
100 state = gpiod_get_value_cansleep(led_dat->gpiod); in create_gpio_led()
115 ret = gpiod_direction_output(led_dat->gpiod, state); in create_gpio_led()
170 * Acquire gpiod from DT with uninitialized label, which in gpio_leds_create()
174 led.gpiod = devm_fwnode_gpiod_get(dev, child, NULL, GPIOD_ASIS, in gpio_leds_create()
176 if (IS_ERR(led.gpiod)) { in gpio_leds_create()
177 dev_err_probe(dev, PTR_ERR(led.gpiod), "Failed to get GPIO '%pfw'\n", in gpio_leds_create()
180 return ERR_CAST(led.gpiod); in gpio_leds_create()
183 led_dat->gpiod = led.gpiod; in gpio_leds_create()
199 /* Set gpiod label to match the corresponding LED name. */ in gpio_leds_create()
200 gpiod_set_consumer_name(led_dat->gpiod, in gpio_leds_create()
219 struct gpio_desc *gpiod; in gpio_led_get_gpiod() local
229 gpiod = devm_gpiod_get_index_optional(dev, NULL, idx, GPIOD_OUT_LOW); in gpio_led_get_gpiod()
230 if (IS_ERR(gpiod)) in gpio_led_get_gpiod()
231 return gpiod; in gpio_led_get_gpiod()
232 if (gpiod) { in gpio_led_get_gpiod()
233 gpiod_set_consumer_name(gpiod, template->name); in gpio_led_get_gpiod()
234 return gpiod; in gpio_led_get_gpiod()
255 gpiod = gpio_to_desc(template->gpio); in gpio_led_get_gpiod()
256 if (!gpiod) in gpio_led_get_gpiod()
259 return gpiod; in gpio_led_get_gpiod()
279 if (template->gpiod) in gpio_led_probe()
280 led_dat->gpiod = template->gpiod; in gpio_led_probe()
282 led_dat->gpiod = in gpio_led_probe()
284 if (IS_ERR(led_dat->gpiod)) { in gpio_led_probe()