Lines Matching refs:WR
44 static inline void WR(struct i2c_au1550_data *a, int r, unsigned long v) in WR() function
105 WR(adap, PSC_SMBEVNT, PSC_SMBEVNT_ALLCLR); in do_address()
108 WR(adap, PSC_SMBPCR, PSC_SMBPCR_DC); in do_address()
124 WR(adap, PSC_SMBTXRX, addr); in do_address()
125 WR(adap, PSC_SMBPCR, PSC_SMBPCR_MS); in do_address()
169 WR(adap, PSC_SMBTXRX, 0); in i2c_read()
177 WR(adap, PSC_SMBTXRX, PSC_SMBTXRX_STP); in i2c_read()
197 WR(adap, PSC_SMBTXRX, data); in i2c_write()
206 WR(adap, PSC_SMBTXRX, data); in i2c_write()
219 WR(adap, PSC_CTRL, PSC_CTRL_ENABLE); in au1550_xfer()
238 WR(adap, PSC_CTRL, PSC_CTRL_SUSPEND); in au1550_xfer()
257 WR(priv, PSC_CTRL, PSC_CTRL_DISABLE); in i2c_au1550_setup()
258 WR(priv, PSC_SEL, PSC_SEL_PS_SMBUSMODE); in i2c_au1550_setup()
259 WR(priv, PSC_SMBCFG, 0); in i2c_au1550_setup()
260 WR(priv, PSC_CTRL, PSC_CTRL_ENABLE); in i2c_au1550_setup()
265 WR(priv, PSC_SMBCFG, cfg); in i2c_au1550_setup()
271 WR(priv, PSC_SMBCFG, cfg); in i2c_au1550_setup()
272 WR(priv, PSC_SMBMSK, PSC_SMBMSK_ALLMASK); in i2c_au1550_setup()
277 WR(priv, PSC_SMBTMR, PSC_SMBTMR_SET_TH(0) | PSC_SMBTMR_SET_PS(20) | \ in i2c_au1550_setup()
283 WR(priv, PSC_SMBCFG, cfg); in i2c_au1550_setup()
287 WR(priv, PSC_CTRL, PSC_CTRL_SUSPEND); in i2c_au1550_setup()
292 WR(priv, PSC_SMBCFG, 0); in i2c_au1550_disable()
293 WR(priv, PSC_CTRL, PSC_CTRL_DISABLE); in i2c_au1550_disable()