Lines Matching defs:gc
176 struct gpio_desc *gpiochip_get_desc(struct gpio_chip *gc, in gpiochip_get_desc()
463 struct gpio_chip *gc; in gpio_name_to_desc() local
495 static void gpiochip_set_desc_names(struct gpio_chip *gc) in gpiochip_set_desc_names()
593 static unsigned long *gpiochip_allocate_mask(struct gpio_chip *gc) in gpiochip_allocate_mask()
613 static unsigned int gpiochip_count_reserved_ranges(struct gpio_chip *gc) in gpiochip_count_reserved_ranges()
626 static int gpiochip_apply_reserved_ranges(struct gpio_chip *gc) in gpiochip_apply_reserved_ranges()
662 static int gpiochip_init_valid_mask(struct gpio_chip *gc) in gpiochip_init_valid_mask()
685 static void gpiochip_free_valid_mask(struct gpio_chip *gc) in gpiochip_free_valid_mask()
690 static int gpiochip_add_pin_ranges(struct gpio_chip *gc) in gpiochip_add_pin_ranges()
706 bool gpiochip_line_is_valid(const struct gpio_chip *gc, in gpiochip_line_is_valid()
780 static void gpiochip_machine_hog(struct gpio_chip *gc, struct gpiod_hog *hog) in gpiochip_machine_hog()
798 static void machine_gpiochip_add(struct gpio_chip *gc) in machine_gpiochip_add()
828 static void gpiochip_set_data(struct gpio_chip *gc, void *data) in gpiochip_set_data()
840 void *gpiochip_get_data(struct gpio_chip *gc) in gpiochip_get_data()
846 int gpiochip_get_ngpios(struct gpio_chip *gc, struct device *dev) in gpiochip_get_ngpios()
880 int gpiochip_add_data_with_key(struct gpio_chip *gc, void *data, in gpiochip_add_data_with_key()
1121 void gpiochip_remove(struct gpio_chip *gc) in gpiochip_remove()
1180 int (*match)(struct gpio_chip *gc, in gpio_device_find()
1184 struct gpio_chip *gc; in gpio_device_find() local
1212 static int gpio_chip_match_by_label(struct gpio_chip *gc, const void *label) in gpio_chip_match_by_label()
1232 static int gpio_chip_match_by_fwnode(struct gpio_chip *gc, const void *fwnode) in gpio_chip_match_by_fwnode()
1299 static int gpiochip_irqchip_init_hw(struct gpio_chip *gc) in gpiochip_irqchip_init_hw()
1309 static int gpiochip_irqchip_init_valid_mask(struct gpio_chip *gc) in gpiochip_irqchip_init_valid_mask()
1325 static void gpiochip_irqchip_free_valid_mask(struct gpio_chip *gc) in gpiochip_irqchip_free_valid_mask()
1330 static bool gpiochip_irqchip_irq_valid(const struct gpio_chip *gc, in gpiochip_irqchip_irq_valid()
1350 static void gpiochip_set_hierarchical_irqchip(struct gpio_chip *gc, in gpiochip_set_hierarchical_irqchip()
1441 struct gpio_chip *gc = d->host_data; in gpiochip_hierarchy_irq_domain_alloc() local
1508 static unsigned int gpiochip_child_offset_to_irq_noop(struct gpio_chip *gc, in gpiochip_child_offset_to_irq_noop()
1530 struct gpio_chip *gc = domain->host_data; in gpiochip_irq_domain_activate() local
1548 struct gpio_chip *gc = domain->host_data; in gpiochip_irq_domain_deactivate() local
1573 static struct irq_domain *gpiochip_hierarchy_create_domain(struct gpio_chip *gc) in gpiochip_hierarchy_create_domain()
1608 static bool gpiochip_hierarchy_is_hierarchical(struct gpio_chip *gc) in gpiochip_hierarchy_is_hierarchical()
1613 int gpiochip_populate_parent_fwspec_twocell(struct gpio_chip *gc, in gpiochip_populate_parent_fwspec_twocell()
1629 int gpiochip_populate_parent_fwspec_fourcell(struct gpio_chip *gc, in gpiochip_populate_parent_fwspec_fourcell()
1649 static struct irq_domain *gpiochip_hierarchy_create_domain(struct gpio_chip *gc) in gpiochip_hierarchy_create_domain()
1654 static bool gpiochip_hierarchy_is_hierarchical(struct gpio_chip *gc) in gpiochip_hierarchy_is_hierarchical()
1677 struct gpio_chip *gc = d->host_data; in gpiochip_irq_map() local
1715 struct gpio_chip *gc = d->host_data; in gpiochip_irq_unmap() local
1730 static struct irq_domain *gpiochip_simple_create_domain(struct gpio_chip *gc) in gpiochip_simple_create_domain()
1743 static int gpiochip_to_irq(struct gpio_chip *gc, unsigned int offset) in gpiochip_to_irq()
1778 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in gpiochip_irq_reqres() local
1787 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in gpiochip_irq_relres() local
1796 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in gpiochip_irq_mask() local
1806 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in gpiochip_irq_unmask() local
1816 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in gpiochip_irq_enable() local
1825 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in gpiochip_irq_disable() local
1832 static void gpiochip_set_irq_hooks(struct gpio_chip *gc) in gpiochip_set_irq_hooks()
1877 static int gpiochip_irqchip_add_allocated_domain(struct gpio_chip *gc, in gpiochip_irqchip_add_allocated_domain()
1911 static int gpiochip_add_irqchip(struct gpio_chip *gc, in gpiochip_add_irqchip()
1991 static void gpiochip_irqchip_remove(struct gpio_chip *gc) in gpiochip_irqchip_remove()
2049 int gpiochip_irqchip_add_domain(struct gpio_chip *gc, in gpiochip_irqchip_add_domain()
2058 static inline int gpiochip_add_irqchip(struct gpio_chip *gc, in gpiochip_add_irqchip()
2064 static void gpiochip_irqchip_remove(struct gpio_chip *gc) {} in gpiochip_irqchip_remove()
2066 static inline int gpiochip_irqchip_init_hw(struct gpio_chip *gc) in gpiochip_irqchip_init_hw()
2071 static inline int gpiochip_irqchip_init_valid_mask(struct gpio_chip *gc) in gpiochip_irqchip_init_valid_mask()
2075 static inline void gpiochip_irqchip_free_valid_mask(struct gpio_chip *gc) in gpiochip_irqchip_free_valid_mask()
2088 int gpiochip_generic_request(struct gpio_chip *gc, unsigned int offset) in gpiochip_generic_request()
2104 void gpiochip_generic_free(struct gpio_chip *gc, unsigned int offset) in gpiochip_generic_free()
2124 int gpiochip_generic_config(struct gpio_chip *gc, unsigned int offset, in gpiochip_generic_config()
2153 int gpiochip_add_pingroup_range(struct gpio_chip *gc, in gpiochip_add_pingroup_range()
2211 int gpiochip_add_pin_range(struct gpio_chip *gc, const char *pinctl_name, in gpiochip_add_pin_range()
2255 void gpiochip_remove_pin_ranges(struct gpio_chip *gc) in gpiochip_remove_pin_ranges()
2421 char *gpiochip_dup_line_label(struct gpio_chip *gc, unsigned int offset) in gpiochip_dup_line_label()
2469 struct gpio_desc *gpiochip_request_own_desc(struct gpio_chip *gc, in gpiochip_request_own_desc()
2523 static int gpio_do_set_config(struct gpio_chip *gc, unsigned int offset, in gpio_do_set_config()
2979 static int gpio_chip_get_value(struct gpio_chip *gc, const struct gpio_desc *desc) in gpio_chip_get_value()
3009 struct gpio_chip *gc; in gpiod_get_raw_value_commit() local
3027 static int gpio_chip_get_multiple(struct gpio_chip *gc, in gpio_chip_get_multiple()
3047 static bool gpio_device_chip_cmp(struct gpio_device *gdev, struct gpio_chip *gc) in gpio_device_chip_cmp()
3352 static void gpio_chip_set_multiple(struct gpio_chip *gc, in gpio_chip_set_multiple()
3636 struct gpio_chip *gc; in gpiod_to_irq() local
3689 int gpiochip_lock_as_irq(struct gpio_chip *gc, unsigned int offset) in gpiochip_lock_as_irq()
3735 void gpiochip_unlock_as_irq(struct gpio_chip *gc, unsigned int offset) in gpiochip_unlock_as_irq()
3748 void gpiochip_disable_irq(struct gpio_chip *gc, unsigned int offset) in gpiochip_disable_irq()
3758 void gpiochip_enable_irq(struct gpio_chip *gc, unsigned int offset) in gpiochip_enable_irq()
3775 bool gpiochip_line_is_irq(struct gpio_chip *gc, unsigned int offset) in gpiochip_line_is_irq()
3784 int gpiochip_reqres_irq(struct gpio_chip *gc, unsigned int offset) in gpiochip_reqres_irq()
3801 void gpiochip_relres_irq(struct gpio_chip *gc, unsigned int offset) in gpiochip_relres_irq()
3808 bool gpiochip_line_is_open_drain(struct gpio_chip *gc, unsigned int offset) in gpiochip_line_is_open_drain()
3817 bool gpiochip_line_is_open_source(struct gpio_chip *gc, unsigned int offset) in gpiochip_line_is_open_source()
3826 bool gpiochip_line_is_persistent(struct gpio_chip *gc, unsigned int offset) in gpiochip_line_is_persistent()
4152 struct gpio_chip *gc; in gpiod_find() local
4618 static void gpiochip_free_hogs(struct gpio_chip *gc) in gpiochip_free_hogs()
4647 struct gpio_chip *gc; in gpiod_get_array() local
4880 struct gpio_chip *gc; in gpiolib_dbg_show() local
4967 struct gpio_chip *gc; in gpiolib_seq_show() local