Lines Matching refs:gpio

96 	struct gpio_chip gpio;  member
106 static void ioh_gpio_set(struct gpio_chip *gpio, unsigned nr, int val) in ioh_gpio_set() argument
109 struct ioh_gpio *chip = container_of(gpio, struct ioh_gpio, gpio); in ioh_gpio_set()
123 static int ioh_gpio_get(struct gpio_chip *gpio, unsigned nr) in ioh_gpio_get() argument
125 struct ioh_gpio *chip = container_of(gpio, struct ioh_gpio, gpio); in ioh_gpio_get()
130 static int ioh_gpio_direction_output(struct gpio_chip *gpio, unsigned nr, in ioh_gpio_direction_output() argument
133 struct ioh_gpio *chip = container_of(gpio, struct ioh_gpio, gpio); in ioh_gpio_direction_output()
156 static int ioh_gpio_direction_input(struct gpio_chip *gpio, unsigned nr) in ioh_gpio_direction_input() argument
158 struct ioh_gpio *chip = container_of(gpio, struct ioh_gpio, gpio); in ioh_gpio_direction_input()
226 static int ioh_gpio_to_irq(struct gpio_chip *gpio, unsigned offset) in ioh_gpio_to_irq() argument
228 struct ioh_gpio *chip = container_of(gpio, struct ioh_gpio, gpio); in ioh_gpio_to_irq()
234 struct gpio_chip *gpio = &chip->gpio; in ioh_gpio_setup() local
236 gpio->label = dev_name(chip->dev); in ioh_gpio_setup()
237 gpio->owner = THIS_MODULE; in ioh_gpio_setup()
238 gpio->direction_input = ioh_gpio_direction_input; in ioh_gpio_setup()
239 gpio->get = ioh_gpio_get; in ioh_gpio_setup()
240 gpio->direction_output = ioh_gpio_direction_output; in ioh_gpio_setup()
241 gpio->set = ioh_gpio_set; in ioh_gpio_setup()
242 gpio->dbg_show = NULL; in ioh_gpio_setup()
243 gpio->base = -1; in ioh_gpio_setup()
244 gpio->ngpio = num_port; in ioh_gpio_setup()
245 gpio->can_sleep = false; in ioh_gpio_setup()
246 gpio->to_irq = ioh_gpio_to_irq; in ioh_gpio_setup()
453 ret = gpiochip_add(&chip->gpio); in ioh_gpio_probe()
500 gpiochip_remove(&chip->gpio); in ioh_gpio_probe()
531 gpiochip_remove(&chip->gpio); in ioh_gpio_remove()