Lines Matching refs:temp
481 int32_t auxtemp[2], temp;
488 temp = imax(auxtemp[0], auxtemp[1]);
493 temp = imax(auxtemp[0], auxtemp[1]);
496 temp = sc->sc_gettemp(dev, sensor);
499 error = sysctl_handle_int(oidp, &temp, 0, req);
510 uint32_t mask, offset, temp;
513 temp = pci_read_config(dev, AMDTEMP_THERMTP_STAT, 1);
514 temp &= ~(AMDTEMP_TTSR_SELCORE | AMDTEMP_TTSR_SELSENSOR);
517 temp |= AMDTEMP_TTSR_SELSENSOR;
522 temp |= AMDTEMP_TTSR_SELCORE;
525 temp |= AMDTEMP_TTSR_SELSENSOR;
530 temp |= AMDTEMP_TTSR_SELCORE;
533 pci_write_config(dev, AMDTEMP_THERMTP_STAT, temp, 1);
537 temp = pci_read_config(dev, AMDTEMP_THERMTP_STAT, 4);
538 temp = ((temp >> 14) & mask) * 5 / 2;
539 temp += AMDTEMP_ZERO_C_TO_K + (sc->sc_offset - offset) * 10;
541 return (temp);
548 uint32_t temp;
550 temp = pci_read_config(dev, AMDTEMP_REPTMP_CTRL, 4);
551 temp = ((temp >> 21) & 0x7ff) * 5 / 4;
552 temp += AMDTEMP_ZERO_C_TO_K + sc->sc_offset * 10;
554 return (temp);