Lines Matching refs:rb
99 void __iomem *rb = priv->reg_base; in is_eeprom_responsive() local
104 rb + MMAP_EEPROM_OFFSET(EEPROM_CMD_REG)); in is_eeprom_responsive()
106 rb + MMAP_EEPROM_OFFSET(EEPROM_CMD_REG)); in is_eeprom_responsive()
111 true, rb + MMAP_EEPROM_OFFSET(EEPROM_CMD_REG)); in is_eeprom_responsive()
124 void __iomem *rb = priv->reg_base; in pci1xxxx_eeprom_read() local
141 writel(EEPROM_CMD_EPC_BUSY_BIT | (off + byte), rb + in pci1xxxx_eeprom_read()
148 rb + MMAP_EEPROM_OFFSET(EEPROM_CMD_REG)); in pci1xxxx_eeprom_read()
154 buf[byte] = readl(rb + MMAP_EEPROM_OFFSET(EEPROM_DATA_REG)); in pci1xxxx_eeprom_read()
166 void __iomem *rb = priv->reg_base; in pci1xxxx_eeprom_write() local
183 writel(*(value + byte), rb + MMAP_EEPROM_OFFSET(EEPROM_DATA_REG)); in pci1xxxx_eeprom_write()
186 writel(regval, rb + MMAP_EEPROM_OFFSET(EEPROM_CMD_REG)); in pci1xxxx_eeprom_write()
188 rb + MMAP_EEPROM_OFFSET(EEPROM_CMD_REG)); in pci1xxxx_eeprom_write()
194 rb + MMAP_EEPROM_OFFSET(EEPROM_CMD_REG)); in pci1xxxx_eeprom_write()
221 void __iomem *rb = priv->reg_base; in pci1xxxx_otp_read() local
240 data = readl(rb + MMAP_OTP_OFFSET(OTP_FUNC_CMD_OFFSET)); in pci1xxxx_otp_read()
242 rb + MMAP_OTP_OFFSET(OTP_FUNC_CMD_OFFSET)); in pci1xxxx_otp_read()
243 data = readl(rb + MMAP_OTP_OFFSET(OTP_CMD_GO_OFFSET)); in pci1xxxx_otp_read()
245 rb + MMAP_OTP_OFFSET(OTP_CMD_GO_OFFSET)); in pci1xxxx_otp_read()
251 rb + MMAP_OTP_OFFSET(OTP_STATUS_OFFSET)); in pci1xxxx_otp_read()
253 data = readl(rb + MMAP_OTP_OFFSET(OTP_PASS_FAIL_OFFSET)); in pci1xxxx_otp_read()
259 buf[byte] = readl(rb + MMAP_OTP_OFFSET(OTP_RD_DATA_OFFSET)); in pci1xxxx_otp_read()
271 void __iomem *rb = priv->reg_base; in pci1xxxx_otp_write() local
295 data = readl(rb + MMAP_OTP_OFFSET(OTP_PRGM_MODE_OFFSET)); in pci1xxxx_otp_write()
297 rb + MMAP_OTP_OFFSET(OTP_PRGM_MODE_OFFSET)); in pci1xxxx_otp_write()
298 writel(*(value + byte), rb + MMAP_OTP_OFFSET(OTP_PRGM_DATA_OFFSET)); in pci1xxxx_otp_write()
299 data = readl(rb + MMAP_OTP_OFFSET(OTP_FUNC_CMD_OFFSET)); in pci1xxxx_otp_write()
301 rb + MMAP_OTP_OFFSET(OTP_FUNC_CMD_OFFSET)); in pci1xxxx_otp_write()
302 data = readl(rb + MMAP_OTP_OFFSET(OTP_CMD_GO_OFFSET)); in pci1xxxx_otp_write()
304 rb + MMAP_OTP_OFFSET(OTP_CMD_GO_OFFSET)); in pci1xxxx_otp_write()
310 rb + MMAP_OTP_OFFSET(OTP_STATUS_OFFSET)); in pci1xxxx_otp_write()
312 data = readl(rb + MMAP_OTP_OFFSET(OTP_PASS_FAIL_OFFSET)); in pci1xxxx_otp_write()