Lines Matching +full:irqs +full:- +full:map +full:- +full:range

1 /* SPDX-License-Identifier: GPL-2.0 */
12 #include <linux/pinctrl/pinconf-generic.h>
30 * struct gpio_irq_chip - GPIO interrupt controller
67 * If non-NULL, will be set as the parent of this GPIO interrupt
79 * hardware IRQs correspond to the GPIO index 0..ngpio-1 (see the
86 * If some ranges of hardware IRQs do not have a corresponding parent
87 * HWIRQ, return -EINVAL, but also make sure to fill in @valid_mask and
102 * &gpiochip_populate_parent_fwspec_twocell will be used. A four-cell
136 * GPIO IRQs, provided by GPIO driver.
194 * @map:
198 unsigned int *map; member
220 * bits from 0..(ngpios-1) set to "1" as in valid. The callback can
240 * will allocate and map all IRQs during initialization.
283 * struct gpio_chip - abstract a GPIO controller
285 * number or the name of the SoC IP-block implementing it.
289 * @request: optional hook for chip-specific activation, such as
291 * @free: optional hook for chip-specific deactivation, such as
296 * function, even on input-only or output-only gpio chips.
298 * This can be omitted on input-only or output-only gpio chips.
300 * This can be omitted on input-only or output-only gpio chips.
308 * @to_irq: optional hook supporting non-static gpio_to_irq() mappings;
320 * DEPRECATION: providing anything non-negative and nailing the base
321 * offset of GPIO chips is deprecated. Please pass -1 as base to
325 * handled is (base + ngpio - 1).
334 * implies that if the chip supports IRQs, these IRQs need to be threaded
351 * @bgpio_lock: used to lock chip->bgpio_data. Also, this is needed to keep
365 * by "offset" values in the range 0..(@ngpio - 1). When those signals
434 * to handle IRQs for most practical cases.
441 * used to handle IRQs for most practical cases.
477 * Callback to translate a device tree GPIO specifier into a chip-
492 * for_each_requested_gpio_in_range - iterates over requested GPIOs in a given range
495 * @base: first GPIO in the range
505 for_each_requested_gpio_in_range(chip, i, 0, chip->ngpio, label)
513 * gpiochip_add_data() - register a gpio_chip
514 * @gc: the chip to register, with gc->base initialized
515 * @data: driver-private data associated with this chip
517 * Context: potentially before irqs will work
520 * can be freely used, the gc->parent device must be registered before
527 * If gc->base is negative, this requests dynamic assignment of
528 * a range of valid GPIOs.
532 * gc->base is invalid or already associated with a different chip.
662 return -EINVAL; in gpiochip_irqchip_add_domain()
730 * struct gpio_pin_range - pin range controlled by a gpio chip
733 * @range: actual range of pins controlled by a gpio controller
738 struct pinctrl_gpio_range range; member
797 return ERR_PTR(-ENODEV); in gpiod_to_chip()
804 return -EINVAL; in gpiochip_lock_as_irq()