Lines Matching refs:WR
53 static inline void WR(struct i2c_au1550_data *a, int r, unsigned long v) in WR() function
114 WR(adap, PSC_SMBEVNT, PSC_SMBEVNT_ALLCLR); in do_address()
117 WR(adap, PSC_SMBPCR, PSC_SMBPCR_DC); in do_address()
133 WR(adap, PSC_SMBTXRX, addr); in do_address()
134 WR(adap, PSC_SMBPCR, PSC_SMBPCR_MS); in do_address()
178 WR(adap, PSC_SMBTXRX, 0); in i2c_read()
186 WR(adap, PSC_SMBTXRX, PSC_SMBTXRX_STP); in i2c_read()
206 WR(adap, PSC_SMBTXRX, data); in i2c_write()
215 WR(adap, PSC_SMBTXRX, data); in i2c_write()
228 WR(adap, PSC_CTRL, PSC_CTRL_ENABLE); in au1550_xfer()
247 WR(adap, PSC_CTRL, PSC_CTRL_SUSPEND); in au1550_xfer()
266 WR(priv, PSC_CTRL, PSC_CTRL_DISABLE); in i2c_au1550_setup()
267 WR(priv, PSC_SEL, PSC_SEL_PS_SMBUSMODE); in i2c_au1550_setup()
268 WR(priv, PSC_SMBCFG, 0); in i2c_au1550_setup()
269 WR(priv, PSC_CTRL, PSC_CTRL_ENABLE); in i2c_au1550_setup()
274 WR(priv, PSC_SMBCFG, cfg); in i2c_au1550_setup()
280 WR(priv, PSC_SMBCFG, cfg); in i2c_au1550_setup()
281 WR(priv, PSC_SMBMSK, PSC_SMBMSK_ALLMASK); in i2c_au1550_setup()
286 WR(priv, PSC_SMBTMR, PSC_SMBTMR_SET_TH(0) | PSC_SMBTMR_SET_PS(20) | \ in i2c_au1550_setup()
292 WR(priv, PSC_SMBCFG, cfg); in i2c_au1550_setup()
296 WR(priv, PSC_CTRL, PSC_CTRL_SUSPEND); in i2c_au1550_setup()
301 WR(priv, PSC_SMBCFG, 0); in i2c_au1550_disable()
302 WR(priv, PSC_CTRL, PSC_CTRL_DISABLE); in i2c_au1550_disable()