Lines Matching +full:reg +full:- +full:names
1 /* SPDX-License-Identifier: GPL-2.0 */
12 #include <linux/pinctrl/pinconf-generic.h>
29 * struct gpio_irq_chip - GPIO interrupt controller
66 * If non-NULL, will be set as the parent of this GPIO interrupt
78 * hardware IRQs correspond to the GPIO index 0..ngpio-1 (see the
86 * HWIRQ, return -EINVAL, but also make sure to fill in @valid_mask and
101 * &gpiochip_populate_parent_fwspec_twocell will be used. A four-cell
219 * bits from 0..(ngpios-1) set to "1" as in valid. The callback can
272 * struct gpio_chip - abstract a GPIO controller
274 * number or the name of the SoC IP-block implementing it.
278 * @request: optional hook for chip-specific activation, such as
280 * @free: optional hook for chip-specific deactivation, such as
285 * function, even on input-only or output-only gpio chips.
287 * This can be omitted on input-only or output-only gpio chips.
289 * This can be omitted on input-only or output-only gpio chips.
297 * @to_irq: optional hook supporting non-static gpio_to_irq() mappings;
309 * DEPRECATION: providing anything non-negative and nailing the base
310 * offset of GPIO chips is deprecated. Please pass -1 as base to
314 * handled is (base + ngpio - 1).
315 * @names: if set, must be an array of strings to use as alternative
316 * names for the GPIOs in this chip. Any entry in the array
340 * @bgpio_lock: used to lock chip->bgpio_data. Also, this is needed to keep
354 * by "offset" values in the range 0..(@ngpio - 1). When those signals
401 const char *const *names; member
405 unsigned long (*read_reg)(void __iomem *reg);
406 void (*write_reg)(void __iomem *reg, unsigned long data);
466 * Callback to translate a device tree GPIO specifier into a chip-
478 * for_each_requested_gpio_in_range - iterates over requested GPIOs in a given range
491 for_each_requested_gpio_in_range(chip, i, 0, chip->ngpio, label)
499 * gpiochip_add_data() - register a gpio_chip
500 * @gc: the chip to register, with gc->base initialized
501 * @data: driver-private data associated with this chip
506 * can be freely used, the gc->parent device must be registered before
513 * If gc->base is negative, this requests dynamic assignment of
518 * gc->base is invalid or already associated with a different chip.
707 * struct gpio_pin_range - pin range controlled by a gpio chip
774 return ERR_PTR(-ENODEV); in gpiod_to_chip()
781 return -EINVAL; in gpiochip_lock_as_irq()