Lines Matching defs:offset
33 * @dir_bit_offset: Optional offset (in bits) to the first bit to switch
36 * for signal "offset"
45 unsigned offset, int value);
56 static int syscon_gpio_get(struct gpio_chip *chip, unsigned offset)
62 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset;
72 static void syscon_gpio_set(struct gpio_chip *chip, unsigned offset, int val)
77 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset;
85 static int syscon_gpio_dir_in(struct gpio_chip *chip, unsigned offset)
93 priv->data->dir_bit_offset + offset;
103 static int syscon_gpio_dir_out(struct gpio_chip *chip, unsigned offset, int val)
111 priv->data->dir_bit_offset + offset;
119 chip->set(chip, offset, val);
131 static void rockchip_gpio_set(struct gpio_chip *chip, unsigned int offset,
140 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset;
160 static void keystone_gpio_set(struct gpio_chip *chip, unsigned offset, int val)
166 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset;
227 dev_err(dev, "can't read the data register offset!\n");
234 dev_dbg(dev, "can't read the dir register offset!\n");