Lines Matching refs:temp

124 	unsigned char temp;  in ali15x3_setup()  local
137 pci_read_config_byte(ALI15X3_dev, SMBATPC, &temp); in ali15x3_setup()
138 if (temp & ALI15X3_LOCK) { in ali15x3_setup()
139 temp &= ~ALI15X3_LOCK; in ali15x3_setup()
140 pci_write_config_byte(ALI15X3_dev, SMBATPC, temp); in ali15x3_setup()
185 pci_read_config_byte(ALI15X3_dev, SMBCOM, &temp); in ali15x3_setup()
186 if ((temp & 1) == 0) { in ali15x3_setup()
188 pci_write_config_byte(ALI15X3_dev, SMBCOM, temp | 0x01); in ali15x3_setup()
192 pci_read_config_byte(ALI15X3_dev, SMBHSTCFG, &temp); in ali15x3_setup()
193 if ((temp & 1) == 0) { in ali15x3_setup()
195 pci_write_config_byte(ALI15X3_dev, SMBHSTCFG, temp | 0x01); in ali15x3_setup()
208 pci_read_config_byte(ALI15X3_dev, SMBREV, &temp); in ali15x3_setup()
209 dev_dbg(&ALI15X3_dev->dev, "SMBREV = 0x%X\n", temp); in ali15x3_setup()
221 int temp; in ali15x3_transaction() local
231 temp = inb_p(SMBHSTSTS); in ali15x3_transaction()
235 if (temp & ALI15X3_STS_BUSY) { in ali15x3_transaction()
258 "clear busy condition (%02x)\n", temp); in ali15x3_transaction()
260 temp = inb_p(SMBHSTSTS); in ali15x3_transaction()
264 if (temp & (ALI15X3_STS_ERR | ALI15X3_STS_BUSY)) { in ali15x3_transaction()
267 if ((temp = inb_p(SMBHSTSTS)) & in ali15x3_transaction()
274 temp); in ali15x3_transaction()
279 if (temp & ALI15X3_STS_DONE) { in ali15x3_transaction()
280 outb_p(temp, SMBHSTSTS); in ali15x3_transaction()
291 temp = inb_p(SMBHSTSTS); in ali15x3_transaction()
292 } while ((!(temp & (ALI15X3_STS_ERR | ALI15X3_STS_DONE))) in ali15x3_transaction()
301 if (temp & ALI15X3_STS_TERM) { in ali15x3_transaction()
312 if (temp & ALI15X3_STS_COLL) { in ali15x3_transaction()
320 if (temp & ALI15X3_STS_DEV) { in ali15x3_transaction()
337 int temp; in ali15x3_access() local
343 temp = inb_p(SMBHSTSTS); in ali15x3_access()
345 (timeout < MAX_TIMEOUT) && !(temp & ALI15X3_STS_IDLE); in ali15x3_access()
348 temp = inb_p(SMBHSTSTS); in ali15x3_access()
351 dev_err(&adap->dev, "Idle wait Timeout! STS=0x%02x\n", temp); in ali15x3_access()
414 temp = ali15x3_transaction(adap); in ali15x3_access()
415 if (temp) in ali15x3_access()
416 return temp; in ali15x3_access()