Lines Matching defs:offset
37 static int adnp_read(struct adnp *adnp, unsigned offset, uint8_t *value)
41 err = i2c_smbus_read_byte_data(adnp->client, offset);
52 static int adnp_write(struct adnp *adnp, unsigned offset, uint8_t value)
56 err = i2c_smbus_write_byte_data(adnp->client, offset, value);
66 static int adnp_gpio_get(struct gpio_chip *chip, unsigned offset)
69 unsigned int reg = offset >> adnp->reg_shift;
70 unsigned int pos = offset & 7;
81 static void __adnp_gpio_set(struct adnp *adnp, unsigned offset, int value)
83 unsigned int reg = offset >> adnp->reg_shift;
84 unsigned int pos = offset & 7;
100 static void adnp_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
105 __adnp_gpio_set(adnp, offset, value);
109 static int adnp_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
112 unsigned int reg = offset >> adnp->reg_shift;
113 unsigned int pos = offset & 7;
145 static int adnp_gpio_direction_output(struct gpio_chip *chip, unsigned offset,
149 unsigned int reg = offset >> adnp->reg_shift;
150 unsigned int pos = offset & 7;
175 __adnp_gpio_set(adnp, offset, value);