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()
346 stu300_wr8(cr_value, dev->virtbase + I2C_CR); in stu300_start_and_await_event()
449 if ((stu300_r8(dev->virtbase + I2C_SR1) & in stu300_wait_while_busy()
460 "0x%08x, reinit hardware\n", (u32) dev->virtbase); in stu300_wait_while_busy()
508 dev->virtbase + I2C_OAR2); in stu300_set_clk()
511 "virtbase %p\n", clkrate, dev->speed, dev->virtbase); in stu300_set_clk()
537 dev->virtbase + I2C_CCR); in stu300_set_clk()
543 dev->virtbase + I2C_CCR); in stu300_set_clk()
550 dev->virtbase + I2C_ECCR); in stu300_set_clk()
563 stu300_wr8(0x00, dev->virtbase + I2C_CR); in stu300_init_hw()
568 stu300_wr8(0x00, dev->virtbase + I2C_OAR1); in stu300_init_hw()
586 dev->virtbase + I2C_CR); in stu300_init_hw()
588 dev->virtbase + I2C_CR); in stu300_init_hw()
590 dummy = stu300_r8(dev->virtbase + I2C_SR2); in stu300_init_hw()
591 dummy = stu300_r8(dev->virtbase + I2C_SR1); in stu300_init_hw()
619 stu300_wr8(val, dev->virtbase + I2C_DR); in stu300_send_address()
630 stu300_wr8(val, dev->virtbase + I2C_DR); in stu300_send_address()
646 val = stu300_r8(dev->virtbase + I2C_CR); in stu300_send_address()
648 stu300_wr8(val, dev->virtbase + I2C_CR); in stu300_send_address()
759 dev->virtbase + I2C_CR); in stu300_xfer_msg()
766 msg->buf[i] = (u8) stu300_r8(dev->virtbase + I2C_DR); in stu300_xfer_msg()
773 dev->virtbase + I2C_DR); in stu300_xfer_msg()
785 if (stu300_r8(dev->virtbase + I2C_SR2) & in stu300_xfer_msg()
797 stu300_wr8(val, dev->virtbase + I2C_CR); in stu300_xfer_msg()
810 val = stu300_r8(dev->virtbase + I2C_SR2); in stu300_xfer_msg()
811 val = stu300_r8(dev->virtbase + I2C_SR1); in stu300_xfer_msg()
816 stu300_wr8(0x00, dev->virtbase + I2C_CR); in stu300_xfer_msg()
883 dev->virtbase = devm_ioremap_resource(&pdev->dev, res); in stu300_probe()
885 "base %p\n", bus_nr, dev->virtbase); in stu300_probe()
886 if (IS_ERR(dev->virtbase)) in stu300_probe()
887 return PTR_ERR(dev->virtbase); in stu300_probe()
931 dev->virtbase, dev->irq); in stu300_probe()
942 stu300_wr8(0x00, dev->virtbase + I2C_CR); in stu300_suspend()
972 stu300_wr8(0x00, dev->virtbase + I2C_CR); in stu300_remove()