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