Lines Matching defs:offset
34 * @dir_bit_offset: Optional offset (in bits) to the first bit to switch
37 * for signal "offset"
47 unsigned offset, int value);
58 static int syscon_gpio_get(struct gpio_chip *chip, unsigned offset)
64 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset;
74 static void syscon_gpio_set(struct gpio_chip *chip, unsigned offset, int val)
79 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset;
87 static int syscon_gpio_dir_in(struct gpio_chip *chip, unsigned offset)
95 priv->data->dir_bit_offset + offset;
105 static int syscon_gpio_dir_out(struct gpio_chip *chip, unsigned offset, int val)
113 priv->data->dir_bit_offset + offset;
121 chip->set(chip, offset, val);
134 static void rockchip_gpio_set(struct gpio_chip *chip, unsigned int offset,
143 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset;
163 static void keystone_gpio_set(struct gpio_chip *chip, unsigned offset, int val)
169 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset;
238 dev_err(dev, "can't read the data register offset!\n");
245 dev_dbg(dev, "can't read the dir register offset!\n");