Lines Matching refs:virtbase

156 	void __iomem		*virtbase;  member
193 val = stu300_r8(dev->virtbase + I2C_CR); in stu300_irq_enable()
196 stu300_wr8(val, dev->virtbase + I2C_CR); in stu300_irq_enable()
197 stu300_wr8(val, dev->virtbase + I2C_CR); in stu300_irq_enable()
203 val = stu300_r8(dev->virtbase + I2C_CR); in stu300_irq_disable()
206 stu300_wr8(val, dev->virtbase + I2C_CR); in stu300_irq_disable()
207 stu300_wr8(val, dev->virtbase + I2C_CR); in stu300_irq_disable()
229 status1 = stu300_r8(dev->virtbase + I2C_SR1); in stu300_event_occurred()
235 status2 = stu300_r8(dev->virtbase + I2C_SR2); in stu300_event_occurred()
340 stu300_wr8(cr_value, dev->virtbase + I2C_CR); in stu300_start_and_await_event()
436 if ((stu300_r8(dev->virtbase + I2C_SR1) & in stu300_wait_while_busy()
447 "0x%08x, reinit hardware\n", (u32) dev->virtbase); in stu300_wait_while_busy()
495 dev->virtbase + I2C_OAR2); in stu300_set_clk()
498 "virtbase %p\n", clkrate, dev->speed, dev->virtbase); in stu300_set_clk()
524 dev->virtbase + I2C_CCR); in stu300_set_clk()
530 dev->virtbase + I2C_CCR); in stu300_set_clk()
537 dev->virtbase + I2C_ECCR); in stu300_set_clk()
550 stu300_wr8(0x00, dev->virtbase + I2C_CR); in stu300_init_hw()
555 stu300_wr8(0x00, dev->virtbase + I2C_OAR1); in stu300_init_hw()
573 dev->virtbase + I2C_CR); in stu300_init_hw()
575 dev->virtbase + I2C_CR); in stu300_init_hw()
577 dummy = stu300_r8(dev->virtbase + I2C_SR2); in stu300_init_hw()
578 dummy = stu300_r8(dev->virtbase + I2C_SR1); in stu300_init_hw()
610 stu300_wr8(val, dev->virtbase + I2C_DR); in stu300_send_address()
621 stu300_wr8(val, dev->virtbase + I2C_DR); in stu300_send_address()
637 val = stu300_r8(dev->virtbase + I2C_CR); in stu300_send_address()
639 stu300_wr8(val, dev->virtbase + I2C_CR); in stu300_send_address()
744 dev->virtbase + I2C_CR); in stu300_xfer_msg()
751 msg->buf[i] = (u8) stu300_r8(dev->virtbase + I2C_DR); in stu300_xfer_msg()
758 dev->virtbase + I2C_DR); in stu300_xfer_msg()
770 if (stu300_r8(dev->virtbase + I2C_SR2) & in stu300_xfer_msg()
782 stu300_wr8(val, dev->virtbase + I2C_CR); in stu300_xfer_msg()
795 val = stu300_r8(dev->virtbase + I2C_SR2); in stu300_xfer_msg()
796 val = stu300_r8(dev->virtbase + I2C_SR1); in stu300_xfer_msg()
801 stu300_wr8(0x00, dev->virtbase + I2C_CR); in stu300_xfer_msg()
880 dev->virtbase = devm_ioremap_resource(&pdev->dev, res); in stu300_probe()
882 "base %p\n", bus_nr, dev->virtbase); in stu300_probe()
883 if (IS_ERR(dev->virtbase)) in stu300_probe()
884 return PTR_ERR(dev->virtbase); in stu300_probe()
927 dev->virtbase, dev->irq); in stu300_probe()
938 stu300_wr8(0x00, dev->virtbase + I2C_CR); in stu300_suspend()
968 stu300_wr8(0x00, dev->virtbase + I2C_CR); in stu300_remove()