Lines Matching refs:gpio_chip
28 struct gpio_chip gpio_chip; member
94 ret = gpiochip_lock_as_irq(&p->gpio_chip, irqd_to_hwirq(d)); in em_gio_irq_reqres()
96 dev_err(p->gpio_chip.parent, in em_gio_irq_reqres()
108 gpiochip_unlock_as_irq(&p->gpio_chip, irqd_to_hwirq(d)); in em_gio_irq_relres()
183 static inline struct em_gio_priv *gpio_to_priv(struct gpio_chip *chip) in gpio_to_priv()
188 static int em_gio_direction_input(struct gpio_chip *chip, unsigned offset) in em_gio_direction_input()
194 static int em_gio_get(struct gpio_chip *chip, unsigned offset) in em_gio_get()
199 static void __em_gio_set(struct gpio_chip *chip, unsigned int reg, in __em_gio_set()
207 static void em_gio_set(struct gpio_chip *chip, unsigned offset, int value) in em_gio_set()
216 static int em_gio_direction_output(struct gpio_chip *chip, unsigned offset, in em_gio_direction_output()
225 static int em_gio_to_irq(struct gpio_chip *chip, unsigned offset) in em_gio_to_irq()
230 static int em_gio_request(struct gpio_chip *chip, unsigned offset) in em_gio_request()
235 static void em_gio_free(struct gpio_chip *chip, unsigned offset) in em_gio_free()
272 struct gpio_chip *gpio_chip; in em_gio_probe() local
308 gpio_chip = &p->gpio_chip; in em_gio_probe()
309 gpio_chip->of_node = dev->of_node; in em_gio_probe()
310 gpio_chip->direction_input = em_gio_direction_input; in em_gio_probe()
311 gpio_chip->get = em_gio_get; in em_gio_probe()
312 gpio_chip->direction_output = em_gio_direction_output; in em_gio_probe()
313 gpio_chip->set = em_gio_set; in em_gio_probe()
314 gpio_chip->to_irq = em_gio_to_irq; in em_gio_probe()
315 gpio_chip->request = em_gio_request; in em_gio_probe()
316 gpio_chip->free = em_gio_free; in em_gio_probe()
317 gpio_chip->label = name; in em_gio_probe()
318 gpio_chip->parent = dev; in em_gio_probe()
319 gpio_chip->owner = THIS_MODULE; in em_gio_probe()
320 gpio_chip->base = -1; in em_gio_probe()
321 gpio_chip->ngpio = ngpios; in em_gio_probe()
354 ret = devm_gpiochip_add_data(dev, gpio_chip, p); in em_gio_probe()