Lines Matching refs:bit
97 static inline void rockchip_gpio_writel_bit(struct rockchip_pin_bank *bank, u32 bit, u32 value, unsigned int offset)
104 data = BIT(bit % 0x10) | BIT(bit % 0x10 + 0x10);
106 data = BIT(bit % 0x10 + 0x10);
108 writel(data, bit >= 0x10 ? reg + 0x4 : reg);
111 data &= ~BIT(bit);
113 data |= BIT(bit);
119 static inline u32 rockchip_gpio_readl_bit(struct rockchip_pin_bank *bank, u32 bit, unsigned int offset)
125 data = readl(bit >= 0x10 ? reg + 0x4 : reg);
126 data >>= bit % 0x10;
129 data >>= bit;