Lines Matching full:gpiod
352 struct gpio_desc *gpiod; in netxbig_gpio_ext_get() local
375 gpiod = gpiod_get_index(gpio_ext_dev, "addr", i, in netxbig_gpio_ext_get()
377 if (IS_ERR(gpiod)) in netxbig_gpio_ext_get()
378 return PTR_ERR(gpiod); in netxbig_gpio_ext_get()
379 gpiod_set_consumer_name(gpiod, "GPIO extension addr"); in netxbig_gpio_ext_get()
380 addr[i] = gpiod; in netxbig_gpio_ext_get()
397 gpiod = gpiod_get_index(gpio_ext_dev, "data", i, in netxbig_gpio_ext_get()
399 if (IS_ERR(gpiod)) in netxbig_gpio_ext_get()
400 return PTR_ERR(gpiod); in netxbig_gpio_ext_get()
401 gpiod_set_consumer_name(gpiod, "GPIO extension data"); in netxbig_gpio_ext_get()
402 data[i] = gpiod; in netxbig_gpio_ext_get()
407 gpiod = gpiod_get(gpio_ext_dev, "enable", GPIOD_OUT_LOW); in netxbig_gpio_ext_get()
408 if (IS_ERR(gpiod)) { in netxbig_gpio_ext_get()
411 return PTR_ERR(gpiod); in netxbig_gpio_ext_get()
413 gpiod_set_consumer_name(gpiod, "GPIO extension enable"); in netxbig_gpio_ext_get()
414 gpio_ext->enable = gpiod; in netxbig_gpio_ext_get()