Lines Matching refs:p

209 	void __iomem *p = adap->pch_base_address;  in pch_i2c_init()  local
215 iowrite32(0x01, p + PCH_I2CSRST); in pch_i2c_init()
217 iowrite32(0x0, p + PCH_I2CSRST); in pch_i2c_init()
220 iowrite32(0x21, p + PCH_I2CNF); in pch_i2c_init()
238 iowrite32(pch_i2cbc, p + PCH_I2CBC); in pch_i2c_init()
241 iowrite32(pch_i2ctmr, p + PCH_I2CTMR); in pch_i2c_init()
244 iowrite32(reg_value, p + PCH_I2CCTL); in pch_i2c_init()
248 ioread32(p + PCH_I2CCTL), pch_i2cbc, pch_i2ctmr); in pch_i2c_init()
261 void __iomem *p = adap->pch_base_address; in pch_i2c_wait_for_bus_idle() local
265 while (ioread32(p + PCH_I2CSR) & I2CMBB_BIT) { in pch_i2c_wait_for_bus_idle()
267 pch_dbg(adap, "I2CSR = %x\n", ioread32(p + PCH_I2CSR)); in pch_i2c_wait_for_bus_idle()
296 void __iomem *p = adap->pch_base_address; in pch_i2c_start() local
297 pch_dbg(adap, "I2CCTL = %x\n", ioread32(p + PCH_I2CCTL)); in pch_i2c_start()
307 void __iomem *p = adap->pch_base_address; in pch_i2c_stop() local
308 pch_dbg(adap, "I2CCTL = %x\n", ioread32(p + PCH_I2CCTL)); in pch_i2c_stop()
316 void __iomem *p = adap->pch_base_address; in pch_i2c_wait_for_check_xfer() local
339 if (ioread32(p + PCH_I2CSR) & PCH_GETACK) { in pch_i2c_wait_for_check_xfer()
353 void __iomem *p = adap->pch_base_address; in pch_i2c_repstart() local
354 pch_dbg(adap, "I2CCTL = %x\n", ioread32(p + PCH_I2CCTL)); in pch_i2c_repstart()
379 void __iomem *p = adap->pch_base_address; in pch_i2c_writebytes() local
388 pch_dbg(adap, "I2CCTL = %x msgs->len = %d\n", ioread32(p + PCH_I2CCTL), in pch_i2c_writebytes()
398 iowrite32(addr_2_msb | TEN_BIT_ADDR_MASK, p + PCH_I2CDR); in pch_i2c_writebytes()
407 iowrite32(addr_8_lsb, p + PCH_I2CDR); in pch_i2c_writebytes()
410 iowrite32(i2c_8bit_addr_from_msg(msgs), p + PCH_I2CDR); in pch_i2c_writebytes()
421 iowrite32(buf[wrcount], p + PCH_I2CDR); in pch_i2c_writebytes()
449 void __iomem *p = adap->pch_base_address; in pch_i2c_sendack() local
450 pch_dbg(adap, "I2CCTL = %x\n", ioread32(p + PCH_I2CCTL)); in pch_i2c_sendack()
460 void __iomem *p = adap->pch_base_address; in pch_i2c_sendnack() local
461 pch_dbg(adap, "I2CCTL = %x\n", ioread32(p + PCH_I2CCTL)); in pch_i2c_sendnack()
473 void __iomem *p = adap->pch_base_address; in pch_i2c_restart() local
474 pch_dbg(adap, "I2CCTL = %x\n", ioread32(p + PCH_I2CCTL)); in pch_i2c_restart()
496 void __iomem *p = adap->pch_base_address; in pch_i2c_readbytes() local
513 iowrite32(addr_2_msb | TEN_BIT_ADDR_MASK, p + PCH_I2CDR); in pch_i2c_readbytes()
522 iowrite32(addr_8_lsb, p + PCH_I2CDR); in pch_i2c_readbytes()
531 iowrite32(addr_2_msb | TEN_BIT_ADDR_MASK, p + PCH_I2CDR); in pch_i2c_readbytes()
534 iowrite32(i2c_8bit_addr_from_msg(msgs), p + PCH_I2CDR); in pch_i2c_readbytes()
547 ioread32(p + PCH_I2CDR); /* Dummy read needs */ in pch_i2c_readbytes()
557 buf[read_index] = ioread32(p + PCH_I2CDR); in pch_i2c_readbytes()
569 buf[read_index] = ioread32(p + PCH_I2CDR); /* Read final - 1 */ in pch_i2c_readbytes()
583 buf[read_index++] = ioread32(p + PCH_I2CDR); /* Read Final */ in pch_i2c_readbytes()
597 void __iomem *p = adap->pch_base_address; in pch_i2c_cb() local
599 sts = ioread32(p + PCH_I2CSR); in pch_i2c_cb()
610 pch_dbg(adap, "PCH_I2CSR = %x\n", ioread32(p + PCH_I2CSR)); in pch_i2c_cb()
626 void __iomem *p; in pch_i2c_handler() local
630 p = adap_info->pch_data[i].pch_base_address; in pch_i2c_handler()
631 mode = ioread32(p + PCH_I2CMOD); in pch_i2c_handler()
638 reg_val = ioread32(p + PCH_I2CSR); in pch_i2c_handler()
721 void __iomem *p = adap->pch_base_address; in pch_i2c_disbl_int() local
725 iowrite32(EEPROM_RST_INTR_DISBL, p + PCH_I2CESRMSK); in pch_i2c_disbl_int()
727 iowrite32(BUFFER_MODE_INTR_DISBL, p + PCH_I2CBUFMSK); in pch_i2c_disbl_int()
855 void __iomem *p = adap_info->pch_data[0].pch_base_address; in pch_i2c_suspend() local
872 ioread32(p + PCH_I2CSR), ioread32(p + PCH_I2CBUFSTA), in pch_i2c_suspend()
873 ioread32(p + PCH_I2CESRSTA)); in pch_i2c_suspend()