Lines Matching defs:offset
2016 u8 reg, u8 offset, bool set)
2023 regmap_write(jzgc->jzpc->map, jzgc->reg_base + reg, BIT(offset));
2027 u8 reg, u8 offset, bool set)
2035 jzgc->jzpc->info->reg_offset) + reg, BIT(offset));
2046 u8 offset)
2050 return !!(val & BIT(offset));
2054 u8 offset, int value)
2057 ingenic_gpio_set_bit(jzgc, JZ4760_GPIO_PAT0, offset, !!value);
2059 ingenic_gpio_set_bit(jzgc, JZ4740_GPIO_DATA, offset, !!value);
2063 u8 offset, unsigned int type)
2095 ingenic_gpio_shadow_set_bit(jzgc, reg2, offset, val1);
2096 ingenic_gpio_shadow_set_bit(jzgc, reg1, offset, val2);
2099 ingenic_gpio_set_bit(jzgc, reg2, offset, val1);
2100 ingenic_gpio_set_bit(jzgc, reg1, offset, val2);
2235 unsigned int offset, int value)
2239 ingenic_gpio_set_value(jzgc, offset, value);
2242 static int ingenic_gpio_get(struct gpio_chip *gc, unsigned int offset)
2246 return (int) ingenic_gpio_get_value(jzgc, offset);
2250 unsigned int offset)
2252 return pinctrl_gpio_direction_input(gc->base + offset);
2256 unsigned int offset, int value)
2258 ingenic_gpio_set(gc, offset, value);
2259 return pinctrl_gpio_direction_output(gc->base + offset);
2300 static int ingenic_gpio_get_direction(struct gpio_chip *gc, unsigned int offset)
2304 unsigned int pin = gc->base + offset;