Lines Matching refs:gpio_chip

23 struct gpio_chip;
90 int (*child_to_parent_hwirq)(struct gpio_chip *gc,
105 void *(*populate_parent_alloc_arg)(struct gpio_chip *gc,
117 unsigned int (*child_offset_to_irq)(struct gpio_chip *gc,
212 int (*init_hw)(struct gpio_chip *gc);
223 void (*init_valid_mask)(struct gpio_chip *gc,
358 struct gpio_chip { struct
364 int (*request)(struct gpio_chip *gc, argument
366 void (*free)(struct gpio_chip *gc, argument
368 int (*get_direction)(struct gpio_chip *gc, argument
370 int (*direction_input)(struct gpio_chip *gc, argument
372 int (*direction_output)(struct gpio_chip *gc, argument
374 int (*get)(struct gpio_chip *gc, argument
376 int (*get_multiple)(struct gpio_chip *gc, argument
379 void (*set)(struct gpio_chip *gc, argument
381 void (*set_multiple)(struct gpio_chip *gc, argument
384 int (*set_config)(struct gpio_chip *gc, argument
387 int (*to_irq)(struct gpio_chip *gc, argument
391 struct gpio_chip *gc); argument
393 int (*init_valid_mask)(struct gpio_chip *gc, argument
397 int (*add_pin_ranges)(struct gpio_chip *gc); argument
469 int (*of_xlate)(struct gpio_chip *gc, argument
474 extern const char *gpiochip_is_requested(struct gpio_chip *gc,
494 extern int gpiochip_add_data_with_key(struct gpio_chip *gc, void *data,
540 static inline int gpiochip_add(struct gpio_chip *gc) in gpiochip_add()
544 extern void gpiochip_remove(struct gpio_chip *gc);
545 extern int devm_gpiochip_add_data_with_key(struct device *dev, struct gpio_chip *gc, void *data,
549 extern struct gpio_chip *gpiochip_find(void *data,
550 int (*match)(struct gpio_chip *gc, void *data));
552 bool gpiochip_line_is_irq(struct gpio_chip *gc, unsigned int offset);
553 int gpiochip_reqres_irq(struct gpio_chip *gc, unsigned int offset);
554 void gpiochip_relres_irq(struct gpio_chip *gc, unsigned int offset);
555 void gpiochip_disable_irq(struct gpio_chip *gc, unsigned int offset);
556 void gpiochip_enable_irq(struct gpio_chip *gc, unsigned int offset);
559 bool gpiochip_line_is_open_drain(struct gpio_chip *gc, unsigned int offset);
560 bool gpiochip_line_is_open_source(struct gpio_chip *gc, unsigned int offset);
563 bool gpiochip_line_is_persistent(struct gpio_chip *gc, unsigned int offset);
564 bool gpiochip_line_is_valid(const struct gpio_chip *gc, unsigned int offset);
567 void *gpiochip_get_data(struct gpio_chip *gc);
577 void *gpiochip_populate_parent_fwspec_twocell(struct gpio_chip *gc,
580 void *gpiochip_populate_parent_fwspec_fourcell(struct gpio_chip *gc,
586 static inline void *gpiochip_populate_parent_fwspec_twocell(struct gpio_chip *gc, in gpiochip_populate_parent_fwspec_twocell()
593 static inline void *gpiochip_populate_parent_fwspec_fourcell(struct gpio_chip *gc, in gpiochip_populate_parent_fwspec_fourcell()
602 int bgpio_init(struct gpio_chip *gc, struct device *dev,
624 void gpiochip_set_nested_irqchip(struct gpio_chip *gc,
628 int gpiochip_irqchip_add_key(struct gpio_chip *gc,
637 bool gpiochip_irqchip_irq_valid(const struct gpio_chip *gc,
640 int gpiochip_irqchip_add_domain(struct gpio_chip *gc,
651 static inline int gpiochip_irqchip_add(struct gpio_chip *gc, in gpiochip_irqchip_add()
665 static inline int gpiochip_irqchip_add_nested(struct gpio_chip *gc, in gpiochip_irqchip_add_nested()
680 static inline int gpiochip_irqchip_add(struct gpio_chip *gc, in gpiochip_irqchip_add()
690 static inline int gpiochip_irqchip_add_nested(struct gpio_chip *gc, in gpiochip_irqchip_add_nested()
701 int gpiochip_generic_request(struct gpio_chip *gc, unsigned int offset);
702 void gpiochip_generic_free(struct gpio_chip *gc, unsigned int offset);
703 int gpiochip_generic_config(struct gpio_chip *gc, unsigned int offset,
720 int gpiochip_add_pin_range(struct gpio_chip *gc, const char *pinctl_name,
723 int gpiochip_add_pingroup_range(struct gpio_chip *gc,
726 void gpiochip_remove_pin_ranges(struct gpio_chip *gc);
731 gpiochip_add_pin_range(struct gpio_chip *gc, const char *pinctl_name, in gpiochip_add_pin_range()
738 gpiochip_add_pingroup_range(struct gpio_chip *gc, in gpiochip_add_pingroup_range()
746 gpiochip_remove_pin_ranges(struct gpio_chip *gc) in gpiochip_remove_pin_ranges()
752 struct gpio_desc *gpiochip_request_own_desc(struct gpio_chip *gc,
762 int gpiochip_lock_as_irq(struct gpio_chip *gc, unsigned int offset);
763 void gpiochip_unlock_as_irq(struct gpio_chip *gc, unsigned int offset);
766 struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc);
770 static inline struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc) in gpiod_to_chip()
777 static inline int gpiochip_lock_as_irq(struct gpio_chip *gc, in gpiochip_lock_as_irq()
784 static inline void gpiochip_unlock_as_irq(struct gpio_chip *gc, in gpiochip_unlock_as_irq()