Lines Matching refs:ngpio

76 		if (chip->base <= gpio && chip->base + chip->ngpio > gpio) {  in gpio_to_desc()
97 if (hwnum >= chip->ngpio) in gpiochip_get_desc()
126 static int gpiochip_find_base(int ngpio) in gpiochip_find_base() argument
129 int base = ARCH_NR_GPIOS - ngpio; in gpiochip_find_base()
133 if (chip->base + chip->ngpio <= base) in gpiochip_find_base()
137 base = chip->base - ngpio; in gpiochip_find_base()
200 if (_chip->base >= chip->base + chip->ngpio) in gpiochip_add_to_list()
207 if (_chip->base + _chip->ngpio > chip->base) { in gpiochip_add_to_list()
233 for (i = 0; i != chip->ngpio; ++i) { in gpio_name_to_desc()
265 for (i = 0; i != gc->ngpio; ++i) { in gpiochip_set_desc_names()
276 for (i = 0; i != gc->ngpio; ++i) in gpiochip_set_desc_names()
307 descs = kcalloc(chip->ngpio, sizeof(descs[0]), GFP_KERNEL); in gpiochip_add()
314 base = gpiochip_find_base(chip->ngpio); in gpiochip_add()
329 for (id = 0; id < chip->ngpio; id++) { in gpiochip_add()
369 chip->base, chip->base + chip->ngpio - 1, in gpiochip_add()
388 chip->base, chip->base + chip->ngpio - 1, in gpiochip_add()
417 for (id = 0; id < chip->ngpio; id++) { in gpiochip_remove()
525 for (offset = 0; offset < gpiochip->ngpio; offset++) in gpiochip_set_chained_irqchip()
634 for (offset = 0; offset < gpiochip->ngpio; offset++) in gpiochip_irqchip_remove()
705 gpiochip->ngpio, first_irq, in _gpiochip_irqchip_add()
727 for (offset = 0; offset < gpiochip->ngpio; offset++) { in _gpiochip_irqchip_add()
1027 if (offset >= chip->ngpio) in gpiochip_is_requested()
1426 for (i = 0; i < chip->ngpio; i++) { in gpio_chip_set_multiple()
1449 unsigned long mask[BITS_TO_LONGS(chip->ngpio)]; in gpiod_set_array_value_priv()
1450 unsigned long bits[BITS_TO_LONGS(chip->ngpio)]; in gpiod_set_array_value_priv()
1620 if (offset >= chip->ngpio) in gpiochip_lock_as_irq()
1645 if (offset >= chip->ngpio) in gpiochip_unlock_as_irq()
1950 if (chip->ngpio <= p->chip_hwnum) { in gpiod_find()
1953 idx, chip->ngpio, chip->label); in gpiod_find()
2331 for (id = 0; id < chip->ngpio; id++) { in gpiochip_free_hogs()
2440 for (i = 0; i < chip->ngpio; i++, gpio++, gdesc++) { in gpiolib_dbg_show()
2511 chip->base, chip->base + chip->ngpio - 1); in gpiolib_seq_show()