Lines Matching full:wr
44 static inline void WR(struct i2c_au1550_data *a, int r, unsigned long v) in WR() function
104 WR(adap, PSC_SMBEVNT, PSC_SMBEVNT_ALLCLR); in do_address()
107 WR(adap, PSC_SMBPCR, PSC_SMBPCR_DC); in do_address()
123 WR(adap, PSC_SMBTXRX, addr); in do_address()
124 WR(adap, PSC_SMBPCR, PSC_SMBPCR_MS); in do_address()
168 WR(adap, PSC_SMBTXRX, 0); in i2c_read()
176 WR(adap, PSC_SMBTXRX, PSC_SMBTXRX_STP); in i2c_read()
196 WR(adap, PSC_SMBTXRX, data); in i2c_write()
205 WR(adap, PSC_SMBTXRX, data); in i2c_write()
218 WR(adap, PSC_CTRL, PSC_CTRL_ENABLE); in au1550_xfer()
237 WR(adap, PSC_CTRL, PSC_CTRL_SUSPEND); in au1550_xfer()
256 WR(priv, PSC_CTRL, PSC_CTRL_DISABLE); in i2c_au1550_setup()
257 WR(priv, PSC_SEL, PSC_SEL_PS_SMBUSMODE); in i2c_au1550_setup()
258 WR(priv, PSC_SMBCFG, 0); in i2c_au1550_setup()
259 WR(priv, PSC_CTRL, PSC_CTRL_ENABLE); in i2c_au1550_setup()
264 WR(priv, PSC_SMBCFG, cfg); in i2c_au1550_setup()
270 WR(priv, PSC_SMBCFG, cfg); in i2c_au1550_setup()
271 WR(priv, PSC_SMBMSK, PSC_SMBMSK_ALLMASK); in i2c_au1550_setup()
276 WR(priv, PSC_SMBTMR, PSC_SMBTMR_SET_TH(0) | PSC_SMBTMR_SET_PS(20) | \ in i2c_au1550_setup()
282 WR(priv, PSC_SMBCFG, cfg); in i2c_au1550_setup()
286 WR(priv, PSC_CTRL, PSC_CTRL_SUSPEND); in i2c_au1550_setup()
291 WR(priv, PSC_SMBCFG, 0); in i2c_au1550_disable()
292 WR(priv, PSC_CTRL, PSC_CTRL_DISABLE); in i2c_au1550_disable()