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);
186 pci_read_config_byte(ALI15X3_dev, SMBCOM, &temp);
187 if ((temp & 1) == 0) {
189 pci_write_config_byte(ALI15X3_dev, SMBCOM, temp | 0x01);
193 pci_read_config_byte(ALI15X3_dev, SMBHSTCFG, &temp);
194 if ((temp & 1) == 0) {
196 pci_write_config_byte(ALI15X3_dev, SMBHSTCFG, temp | 0x01);
209 pci_read_config_byte(ALI15X3_dev, SMBREV, &temp);
210 dev_dbg(&ALI15X3_dev->dev, "SMBREV = 0x%X\n", temp);
222 int temp;
232 temp = inb_p(SMBHSTSTS);
236 if (temp & ALI15X3_STS_BUSY) {
259 "clear busy condition (%02x)\n", temp);
261 temp = inb_p(SMBHSTSTS);
265 if (temp & (ALI15X3_STS_ERR | ALI15X3_STS_BUSY)) {
268 if ((temp = inb_p(SMBHSTSTS)) &
275 temp);
280 if (temp & ALI15X3_STS_DONE) {
281 outb_p(temp, SMBHSTSTS);
292 temp = inb_p(SMBHSTSTS);
293 } while ((!(temp & (ALI15X3_STS_ERR | ALI15X3_STS_DONE)))
302 if (temp & ALI15X3_STS_TERM) {
313 if (temp & ALI15X3_STS_COLL) {
321 if (temp & ALI15X3_STS_DEV) {
338 int temp;
344 temp = inb_p(SMBHSTSTS);
346 (timeout < MAX_TIMEOUT) && !(temp & ALI15X3_STS_IDLE);
349 temp = inb_p(SMBHSTSTS);
352 dev_err(&adap->dev, "Idle wait Timeout! STS=0x%02x\n", temp);
415 temp = ali15x3_transaction(adap);
416 if (temp)
417 return temp;