Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/i2c/muxes/
Di2c-mux-ltc4306.c50 struct gpio_chip gpiochip; member
160 data->gpiochip.label = dev_name(dev); in ltc4306_gpio_init()
161 data->gpiochip.base = -1; in ltc4306_gpio_init()
162 data->gpiochip.ngpio = data->chip->num_gpios; in ltc4306_gpio_init()
163 data->gpiochip.parent = dev; in ltc4306_gpio_init()
164 data->gpiochip.can_sleep = true; in ltc4306_gpio_init()
165 data->gpiochip.get_direction = ltc4306_gpio_get_direction; in ltc4306_gpio_init()
166 data->gpiochip.direction_input = ltc4306_gpio_direction_input; in ltc4306_gpio_init()
167 data->gpiochip.direction_output = ltc4306_gpio_direction_output; in ltc4306_gpio_init()
168 data->gpiochip.get = ltc4306_gpio_get; in ltc4306_gpio_init()
[all …]
/Linux-v4.19/drivers/gpio/
Dgpiolib.c83 static int gpiochip_add_irqchip(struct gpio_chip *gpiochip,
86 static void gpiochip_irqchip_remove(struct gpio_chip *gpiochip);
87 static int gpiochip_irqchip_init_valid_mask(struct gpio_chip *gpiochip);
88 static void gpiochip_irqchip_free_valid_mask(struct gpio_chip *gpiochip);
362 static int gpiochip_init_valid_mask(struct gpio_chip *gpiochip) in gpiochip_init_valid_mask() argument
366 struct device_node *np = gpiochip->of_node; in gpiochip_init_valid_mask()
370 gpiochip->need_valid_mask = true; in gpiochip_init_valid_mask()
373 if (!gpiochip->need_valid_mask) in gpiochip_init_valid_mask()
376 gpiochip->valid_mask = gpiochip_allocate_mask(gpiochip); in gpiochip_init_valid_mask()
377 if (!gpiochip->valid_mask) in gpiochip_init_valid_mask()
[all …]
Dgpiolib-sysfs.c445 ATTRIBUTE_GROUPS(gpiochip);
/Linux-v4.19/include/linux/gpio/
Ddriver.h447 void gpiochip_set_chained_irqchip(struct gpio_chip *gpiochip,
452 void gpiochip_set_nested_irqchip(struct gpio_chip *gpiochip,
456 int gpiochip_irqchip_add_key(struct gpio_chip *gpiochip,
465 bool gpiochip_irqchip_irq_valid(const struct gpio_chip *gpiochip,
476 static inline int gpiochip_irqchip_add(struct gpio_chip *gpiochip, in gpiochip_irqchip_add() argument
485 return gpiochip_irqchip_add_key(gpiochip, irqchip, first_irq, in gpiochip_irqchip_add()
490 static inline int gpiochip_irqchip_add_nested(struct gpio_chip *gpiochip, in gpiochip_irqchip_add_nested() argument
500 return gpiochip_irqchip_add_key(gpiochip, irqchip, first_irq, in gpiochip_irqchip_add_nested()
505 static inline int gpiochip_irqchip_add(struct gpio_chip *gpiochip, in gpiochip_irqchip_add() argument
511 return gpiochip_irqchip_add_key(gpiochip, irqchip, first_irq, in gpiochip_irqchip_add()
[all …]
/Linux-v4.19/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-v4.19/drivers/iio/dac/
Dad5592r-base.c135 st->gpiochip.label = dev_name(st->dev); in ad5592r_gpio_init()
136 st->gpiochip.base = -1; in ad5592r_gpio_init()
137 st->gpiochip.ngpio = 8; in ad5592r_gpio_init()
138 st->gpiochip.parent = st->dev; in ad5592r_gpio_init()
139 st->gpiochip.can_sleep = true; in ad5592r_gpio_init()
140 st->gpiochip.direction_input = ad5592r_gpio_direction_input; in ad5592r_gpio_init()
141 st->gpiochip.direction_output = ad5592r_gpio_direction_output; in ad5592r_gpio_init()
142 st->gpiochip.get = ad5592r_gpio_get; in ad5592r_gpio_init()
143 st->gpiochip.set = ad5592r_gpio_set; in ad5592r_gpio_init()
144 st->gpiochip.request = ad5592r_gpio_request; in ad5592r_gpio_init()
[all …]
Dad5592r-base.h54 struct gpio_chip gpiochip; member
/Linux-v4.19/Documentation/ABI/testing/
Dgpio-cdev1 What: /dev/gpiochip[0-9]+
6 The character device files /dev/gpiochip* are the interface
/Linux-v4.19/Documentation/devicetree/bindings/power/supply/
Dbq24190.txt39 interrupts-extended = <&gpiochip 10 IRQ_TYPE_EDGE_FALLING>;
/Linux-v4.19/Documentation/ABI/obsolete/
Dsysfs-gpio24 /gpiochipN ... for each gpiochip; #N is its first GPIO
/Linux-v4.19/Documentation/translations/zh_CN/
Dgpio.txt623 有所不同。在这种情况下,你可能需要使用 gpiochip 节点(尽可能地结合电路图)来
/Linux-v4.19/Documentation/driver-api/gpio/
Ddriver.rst302 * gpiochip_irqchip_add(): adds a chained irqchip to a gpiochip. It will pass
308 * gpiochip_irqchip_add_nested(): adds a nested irqchip to a gpiochip.
322 set .irq.need_valid_mask of the gpiochip before gpiochip_add_data() is
Dboard.rst194 The line will be hogged as soon as the gpiochip is created or - in case the
Dlegacy.rst729 gpiochip nodes (possibly in conjunction with schematics) to determine
/Linux-v4.19/Documentation/gpio/
Dsysfs.txt125 gpiochip nodes (possibly in conjunction with schematics) to determine
/Linux-v4.19/drivers/hid/
DKconfig248 and gpiochip to expose these functions of the CP2112. The
/Linux-v4.19/Documentation/admin-guide/
Dkernel-parameters.txt1317 [HW] Sets the ranges of gpiochip of for this device.