Lines Matching refs:gpio_desc
61 static inline void desc_set_label(struct gpio_desc *d, const char *label) in desc_set_label()
69 struct gpio_desc *gpio_to_desc(unsigned gpio) in gpio_to_desc()
95 struct gpio_desc *gpiochip_get_desc(struct gpio_chip *chip, in gpiochip_get_desc()
109 int desc_to_gpio(const struct gpio_desc *desc) in desc_to_gpio()
120 struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc) in gpiod_to_chip()
158 int gpiod_get_direction(struct gpio_desc *desc) in gpiod_get_direction()
244 struct gpio_desc *descs; in gpiochip_add()
269 struct gpio_desc *desc = &descs[id]; in gpiochip_add()
778 static int __gpiod_request(struct gpio_desc *desc, const char *label) in __gpiod_request()
821 int gpiod_request(struct gpio_desc *desc, const char *label) in gpiod_request()
848 static bool __gpiod_free(struct gpio_desc *desc) in __gpiod_free()
881 void gpiod_free(struct gpio_desc *desc) in gpiod_free()
904 struct gpio_desc *desc; in gpiochip_is_requested()
928 struct gpio_desc *gpiochip_request_own_desc(struct gpio_chip *chip, u16 hwnum, in gpiochip_request_own_desc()
931 struct gpio_desc *desc = gpiochip_get_desc(chip, hwnum); in gpiochip_request_own_desc()
954 void gpiochip_free_own_desc(struct gpio_desc *desc) in gpiochip_free_own_desc()
979 int gpiod_direction_input(struct gpio_desc *desc) in gpiod_direction_input()
1007 static int _gpiod_direction_output_raw(struct gpio_desc *desc, int value) in _gpiod_direction_output_raw()
1055 int gpiod_direction_output_raw(struct gpio_desc *desc, int value) in gpiod_direction_output_raw()
1077 int gpiod_direction_output(struct gpio_desc *desc, int value) in gpiod_direction_output()
1097 int gpiod_set_debounce(struct gpio_desc *desc, unsigned debounce) in gpiod_set_debounce()
1124 int gpiod_is_active_low(const struct gpio_desc *desc) in gpiod_is_active_low()
1152 static bool _gpiod_get_raw_value(const struct gpio_desc *desc) in _gpiod_get_raw_value()
1175 int gpiod_get_raw_value(const struct gpio_desc *desc) in gpiod_get_raw_value()
1195 int gpiod_get_value(const struct gpio_desc *desc) in gpiod_get_value()
1216 static void _gpio_set_open_drain_value(struct gpio_desc *desc, bool value) in _gpio_set_open_drain_value()
1243 static void _gpio_set_open_source_value(struct gpio_desc *desc, bool value) in _gpio_set_open_source_value()
1265 static void _gpiod_set_raw_value(struct gpio_desc *desc, bool value) in _gpiod_set_raw_value()
1312 struct gpio_desc **desc_array, in gpiod_set_array_priv()
1328 struct gpio_desc *desc = desc_array[i]; in gpiod_set_array_priv()
1372 void gpiod_set_raw_value(struct gpio_desc *desc, int value) in gpiod_set_raw_value()
1393 void gpiod_set_value(struct gpio_desc *desc, int value) in gpiod_set_value()
1418 struct gpio_desc **desc_array, int *value_array) in gpiod_set_raw_array()
1439 struct gpio_desc **desc_array, int *value_array) in gpiod_set_array()
1452 int gpiod_cansleep(const struct gpio_desc *desc) in gpiod_cansleep()
1467 int gpiod_to_irq(const struct gpio_desc *desc) in gpiod_to_irq()
1531 int gpiod_get_raw_value_cansleep(const struct gpio_desc *desc) in gpiod_get_raw_value_cansleep()
1549 int gpiod_get_value_cansleep(const struct gpio_desc *desc) in gpiod_get_value_cansleep()
1575 void gpiod_set_raw_value_cansleep(struct gpio_desc *desc, int value) in gpiod_set_raw_value_cansleep()
1594 void gpiod_set_value_cansleep(struct gpio_desc *desc, int value) in gpiod_set_value_cansleep()
1618 struct gpio_desc **desc_array, in gpiod_set_raw_array_cansleep()
1640 struct gpio_desc **desc_array, in gpiod_set_array_cansleep()
1663 static struct gpio_desc *of_find_gpio(struct device *dev, const char *con_id, in of_find_gpio()
1669 struct gpio_desc *desc; in of_find_gpio()
1695 static struct gpio_desc *acpi_find_gpio(struct device *dev, const char *con_id, in acpi_find_gpio()
1701 struct gpio_desc *desc; in acpi_find_gpio()
1764 static struct gpio_desc *gpiod_find(struct device *dev, const char *con_id, in gpiod_find()
1768 struct gpio_desc *desc = ERR_PTR(-ENOENT); in gpiod_find()
1885 struct gpio_desc *__must_check __gpiod_get(struct device *dev, const char *con_id, in __gpiod_get()
1902 struct gpio_desc *__must_check __gpiod_get_optional(struct device *dev, in __gpiod_get_optional()
1923 static int gpiod_configure_flags(struct gpio_desc *desc, const char *con_id, in gpiod_configure_flags()
1965 struct gpio_desc *__must_check __gpiod_get_index(struct device *dev, in __gpiod_get_index()
1970 struct gpio_desc *desc = NULL; in __gpiod_get_index()
2030 struct gpio_desc *fwnode_get_named_gpiod(struct fwnode_handle *fwnode, in fwnode_get_named_gpiod()
2033 struct gpio_desc *desc = ERR_PTR(-ENODEV); in fwnode_get_named_gpiod()
2083 struct gpio_desc *__must_check __gpiod_get_index_optional(struct device *dev, in __gpiod_get_index_optional()
2088 struct gpio_desc *desc; in __gpiod_get_index_optional()
2108 int gpiod_hog(struct gpio_desc *desc, const char *name, in gpiod_hog()
2112 struct gpio_desc *local_desc; in gpiod_hog()
2176 struct gpio_desc *desc; in gpiod_get_array()
2232 void gpiod_put(struct gpio_desc *desc) in gpiod_put()
2259 struct gpio_desc *gdesc = &chip->desc[0]; in gpiolib_dbg_show()