Lines Matching refs:gc

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,
364 int (*request)(struct gpio_chip *gc,
366 void (*free)(struct gpio_chip *gc,
368 int (*get_direction)(struct gpio_chip *gc,
370 int (*direction_input)(struct gpio_chip *gc,
372 int (*direction_output)(struct gpio_chip *gc,
374 int (*get)(struct gpio_chip *gc,
376 int (*get_multiple)(struct gpio_chip *gc,
379 void (*set)(struct gpio_chip *gc,
381 void (*set_multiple)(struct gpio_chip *gc,
384 int (*set_config)(struct gpio_chip *gc,
387 int (*to_irq)(struct gpio_chip *gc,
391 struct gpio_chip *gc);
393 int (*init_valid_mask)(struct gpio_chip *gc,
397 int (*add_pin_ranges)(struct gpio_chip *gc);
469 int (*of_xlate)(struct gpio_chip *gc,
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,
522 #define gpiochip_add_data(gc, data) ({ \ argument
525 gpiochip_add_data_with_key(gc, data, &lock_key, \
528 #define devm_gpiochip_add_data(dev, gc, data) ({ \ argument
531 devm_gpiochip_add_data_with_key(dev, gc, data, &lock_key, \
535 #define gpiochip_add_data(gc, data) gpiochip_add_data_with_key(gc, data, NULL, NULL) argument
536 #define devm_gpiochip_add_data(dev, gc, data) \ argument
537 devm_gpiochip_add_data_with_key(dev, gc, data, NULL, NULL)
540 static inline int gpiochip_add(struct gpio_chip *gc) in gpiochip_add() argument
542 return gpiochip_add_data(gc, NULL); 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,
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() argument
593 static inline void *gpiochip_populate_parent_fwspec_fourcell(struct gpio_chip *gc, in gpiochip_populate_parent_fwspec_fourcell() argument
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() argument
660 return gpiochip_irqchip_add_key(gc, irqchip, first_irq, in gpiochip_irqchip_add()
665 static inline int gpiochip_irqchip_add_nested(struct gpio_chip *gc, in gpiochip_irqchip_add_nested() argument
675 return gpiochip_irqchip_add_key(gc, irqchip, first_irq, in gpiochip_irqchip_add_nested()
680 static inline int gpiochip_irqchip_add(struct gpio_chip *gc, in gpiochip_irqchip_add() argument
686 return gpiochip_irqchip_add_key(gc, irqchip, first_irq, in gpiochip_irqchip_add()
690 static inline int gpiochip_irqchip_add_nested(struct gpio_chip *gc, in gpiochip_irqchip_add_nested() argument
696 return gpiochip_irqchip_add_key(gc, irqchip, first_irq, 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() argument
738 gpiochip_add_pingroup_range(struct gpio_chip *gc, in gpiochip_add_pingroup_range() argument
746 gpiochip_remove_pin_ranges(struct gpio_chip *gc) in gpiochip_remove_pin_ranges() argument
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);
777 static inline int gpiochip_lock_as_irq(struct gpio_chip *gc, in gpiochip_lock_as_irq() argument
784 static inline void gpiochip_unlock_as_irq(struct gpio_chip *gc, in gpiochip_unlock_as_irq() argument