Home
last modified time | relevance | path

Searched refs:gpiochip (Results 1 – 18 of 18) sorted by relevance

/Linux-v5.4/drivers/i2c/muxes/
Di2c-mux-ltc4306.c49 struct gpio_chip gpiochip; member
159 data->gpiochip.label = dev_name(dev); in ltc4306_gpio_init()
160 data->gpiochip.base = -1; in ltc4306_gpio_init()
161 data->gpiochip.ngpio = data->chip->num_gpios; in ltc4306_gpio_init()
162 data->gpiochip.parent = dev; in ltc4306_gpio_init()
163 data->gpiochip.can_sleep = true; in ltc4306_gpio_init()
164 data->gpiochip.get_direction = ltc4306_gpio_get_direction; in ltc4306_gpio_init()
165 data->gpiochip.direction_input = ltc4306_gpio_direction_input; in ltc4306_gpio_init()
166 data->gpiochip.direction_output = ltc4306_gpio_direction_output; in ltc4306_gpio_init()
167 data->gpiochip.get = ltc4306_gpio_get; in ltc4306_gpio_init()
[all …]
/Linux-v5.4/drivers/gpio/
Dgpiolib.c85 static int gpiochip_add_irqchip(struct gpio_chip *gpiochip,
88 static void gpiochip_irqchip_remove(struct gpio_chip *gpiochip);
89 static int gpiochip_irqchip_init_hw(struct gpio_chip *gpiochip);
90 static int gpiochip_irqchip_init_valid_mask(struct gpio_chip *gpiochip);
91 static void gpiochip_irqchip_free_valid_mask(struct gpio_chip *gpiochip);
387 static void gpiochip_free_valid_mask(struct gpio_chip *gpiochip) in gpiochip_free_valid_mask() argument
389 bitmap_free(gpiochip->valid_mask); in gpiochip_free_valid_mask()
390 gpiochip->valid_mask = NULL; in gpiochip_free_valid_mask()
393 bool gpiochip_line_is_valid(const struct gpio_chip *gpiochip, in gpiochip_line_is_valid() argument
397 if (likely(!gpiochip->valid_mask)) in gpiochip_line_is_valid()
[all …]
DTODO95 Currently we set up the irqchip after setting up the gpiochip
Dgpiolib-sysfs.c445 ATTRIBUTE_GROUPS(gpiochip);
/Linux-v5.4/include/linux/gpio/
Ddriver.h580 void gpiochip_set_chained_irqchip(struct gpio_chip *gpiochip,
585 void gpiochip_set_nested_irqchip(struct gpio_chip *gpiochip,
589 int gpiochip_irqchip_add_key(struct gpio_chip *gpiochip,
598 bool gpiochip_irqchip_irq_valid(const struct gpio_chip *gpiochip,
609 static inline int gpiochip_irqchip_add(struct gpio_chip *gpiochip, in gpiochip_irqchip_add() argument
618 return gpiochip_irqchip_add_key(gpiochip, irqchip, first_irq, in gpiochip_irqchip_add()
623 static inline int gpiochip_irqchip_add_nested(struct gpio_chip *gpiochip, in gpiochip_irqchip_add_nested() argument
633 return gpiochip_irqchip_add_key(gpiochip, irqchip, first_irq, in gpiochip_irqchip_add_nested()
638 static inline int gpiochip_irqchip_add(struct gpio_chip *gpiochip, in gpiochip_irqchip_add() argument
644 return gpiochip_irqchip_add_key(gpiochip, irqchip, first_irq, in gpiochip_irqchip_add()
[all …]
/Linux-v5.4/tools/testing/selftests/gpio/
Dgpio-mockup-sysfs.sh101 echo `ls -d $GPIO_DRV_SYSFS/gpiochip* 2>/dev/null`
121 gpiochip=`list_chip $module`
122 if [ X"$gpiochip" = X ]; then
130 for chip in $gpiochip; do
/Linux-v5.4/drivers/iio/dac/
Dad5592r-base.c134 st->gpiochip.label = dev_name(st->dev); in ad5592r_gpio_init()
135 st->gpiochip.base = -1; in ad5592r_gpio_init()
136 st->gpiochip.ngpio = 8; in ad5592r_gpio_init()
137 st->gpiochip.parent = st->dev; in ad5592r_gpio_init()
138 st->gpiochip.can_sleep = true; in ad5592r_gpio_init()
139 st->gpiochip.direction_input = ad5592r_gpio_direction_input; in ad5592r_gpio_init()
140 st->gpiochip.direction_output = ad5592r_gpio_direction_output; in ad5592r_gpio_init()
141 st->gpiochip.get = ad5592r_gpio_get; in ad5592r_gpio_init()
142 st->gpiochip.set = ad5592r_gpio_set; in ad5592r_gpio_init()
143 st->gpiochip.request = ad5592r_gpio_request; in ad5592r_gpio_init()
[all …]
Dad5592r-base.h53 struct gpio_chip gpiochip; member
/Linux-v5.4/Documentation/ABI/testing/
Dgpio-cdev1 What: /dev/gpiochip[0-9]+
6 The character device files /dev/gpiochip* are the interface
/Linux-v5.4/Documentation/ABI/obsolete/
Dsysfs-gpio24 /gpiochipN ... for each gpiochip; #N is its first GPIO
/Linux-v5.4/Documentation/devicetree/bindings/power/supply/
Dbq24190.txt47 interrupts-extended = <&gpiochip 10 IRQ_TYPE_EDGE_FALLING>;
/Linux-v5.4/Documentation/translations/zh_CN/
Dgpio.txt623 有所不同。在这种情况下,你可能需要使用 gpiochip 节点(尽可能地结合电路图)来
/Linux-v5.4/Documentation/admin-guide/gpio/
Dsysfs.rst136 gpiochip nodes (possibly in conjunction with schematics) to determine
/Linux-v5.4/Documentation/driver-api/gpio/
Dboard.rst194 The line will be hogged as soon as the gpiochip is created or - in case the
Ddriver.rst493 gpiochip. It will pass the struct gpio_chip* for the chip to all IRQ
498 - gpiochip_irqchip_add_nested(): adds a nested cascaded irqchip to a gpiochip,
514 these helpers, we can set .irq.need_valid_mask of the gpiochip before
Dlegacy.rst728 gpiochip nodes (possibly in conjunction with schematics) to determine
/Linux-v5.4/drivers/hid/
DKconfig273 and gpiochip to expose these functions of the CP2112. The
/Linux-v5.4/Documentation/admin-guide/
Dkernel-parameters.txt1367 [HW] Sets the ranges of gpiochip of for this device.