Lines Matching refs:offset
179 u32 offset = bank * BANK_MEM_SIZE; in sunxi_mux_reg() local
180 offset += MUX_REGS_OFFSET; in sunxi_mux_reg()
181 offset += pin % PINS_PER_BANK / MUX_PINS_PER_REG * 0x04; in sunxi_mux_reg()
182 return round_down(offset, 4); in sunxi_mux_reg()
194 u32 offset = bank * BANK_MEM_SIZE; in sunxi_data_reg() local
195 offset += DATA_REGS_OFFSET; in sunxi_data_reg()
196 offset += pin % PINS_PER_BANK / DATA_PINS_PER_REG * 0x04; in sunxi_data_reg()
197 return round_down(offset, 4); in sunxi_data_reg()
209 u32 offset = bank * BANK_MEM_SIZE; in sunxi_dlevel_reg() local
210 offset += DLEVEL_REGS_OFFSET; in sunxi_dlevel_reg()
211 offset += pin % PINS_PER_BANK / DLEVEL_PINS_PER_REG * 0x04; in sunxi_dlevel_reg()
212 return round_down(offset, 4); in sunxi_dlevel_reg()
224 u32 offset = bank * BANK_MEM_SIZE; in sunxi_pull_reg() local
225 offset += PULL_REGS_OFFSET; in sunxi_pull_reg()
226 offset += pin % PINS_PER_BANK / PULL_PINS_PER_REG * 0x04; in sunxi_pull_reg()
227 return round_down(offset, 4); in sunxi_pull_reg()