Lines Matching full:temp

86 	int temp;  in sch_transaction()  local
96 temp = sch_io_rd8(priv, SMBHSTSTS) & 0x0f; in sch_transaction()
97 if (temp) { in sch_transaction()
99 if (temp & 0x01) in sch_transaction()
100 dev_dbg(&adap->dev, "Completion (%02x). Clear...\n", temp); in sch_transaction()
101 if (temp & 0x06) in sch_transaction()
102 dev_dbg(&adap->dev, "SMBus error (%02x). Resetting...\n", temp); in sch_transaction()
103 sch_io_wr8(priv, SMBHSTSTS, temp); in sch_transaction()
104 temp = sch_io_rd8(priv, SMBHSTSTS) & 0x0f; in sch_transaction()
105 if (temp) { in sch_transaction()
106 dev_err(&adap->dev, "SMBus is not ready: (%02x)\n", temp); in sch_transaction()
112 temp = sch_io_rd8(priv, SMBHSTCNT); in sch_transaction()
113 temp |= 0x10; in sch_transaction()
114 sch_io_wr8(priv, SMBHSTCNT, temp); in sch_transaction()
116 rc = read_poll_timeout(sch_io_rd8, temp, !(temp & 0x08), 200, 500000, true, priv, SMBHSTSTS); in sch_transaction()
120 } else if (temp & 0x04) { in sch_transaction()
124 } else if (temp & 0x02) { in sch_transaction()
127 } else if (temp & 0x01) { in sch_transaction()
129 sch_io_wr8(priv, SMBHSTSTS, temp & 0x0f); in sch_transaction()
130 temp = sch_io_rd8(priv, SMBHSTSTS) & 0x07; in sch_transaction()
131 if (temp & 0x06) { in sch_transaction()
134 "Failed reset at end of transaction (%02x), Bus error!\n", temp); in sch_transaction()
164 int i, len, temp, rc; in sch_access() local
167 temp = sch_io_rd8(priv, SMBHSTSTS) & 0x0f; in sch_access()
168 if (temp & 0x08) { in sch_access()
169 dev_dbg(&adap->dev, "SMBus busy (%02x)\n", temp); in sch_access()
172 temp = sch_io_rd16(priv, SMBHSTCLK); in sch_access()
173 if (!temp) { in sch_access()
231 temp = sch_io_rd8(priv, SMBHSTCNT); in sch_access()
232 temp = (temp & 0xb0) | (size & 0x7); in sch_access()
233 sch_io_wr8(priv, SMBHSTCNT, temp); in sch_access()