Lines Matching defs:off
54 static int rpi_exp_gpio_get_polarity(struct gpio_chip *gc, unsigned int off)
62 get.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */
68 off, ret, get.gpio);
74 static int rpi_exp_gpio_dir_in(struct gpio_chip *gc, unsigned int off)
82 set_in.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */
88 ret = rpi_exp_gpio_get_polarity(gc, off);
97 off, ret, set_in.gpio);
103 static int rpi_exp_gpio_dir_out(struct gpio_chip *gc, unsigned int off, int val)
111 set_out.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */
117 ret = rpi_exp_gpio_get_polarity(gc, off);
126 off, ret, set_out.gpio);
132 static int rpi_exp_gpio_get_direction(struct gpio_chip *gc, unsigned int off)
140 get.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */
146 "Failed to get GPIO %u config (%d %x)\n", off, ret,
156 static int rpi_exp_gpio_get(struct gpio_chip *gc, unsigned int off)
164 get.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */
171 "Failed to get GPIO %u state (%d %x)\n", off, ret,
178 static void rpi_exp_gpio_set(struct gpio_chip *gc, unsigned int off, int val)
186 set.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */
193 "Failed to set GPIO %u state (%d %x)\n", off, ret,