Lines Matching +full:11 +full:n

16  *  PC87365     11      3       3       2       0xE5
17 * PC87366 11 3 3 3-4 0xE9
58 "Chip initialization level:\n"
59 " 0: None\n"
60 "*1: Forcibly enable internal voltage and temperature channels, except in9\n"
61 " 2: Forcibly enable all voltage and temperature channels, except in9\n"
266 "Increasing clock divider to %d for fan %d\n", in pc87360_autodiv()
278 "Decreasing clock divider to %d for fan %d\n", in pc87360_autodiv()
300 dev_dbg(dev, "Data update\n"); in pc87360_update_device()
348 if (i >= 11) in pc87360_update_device()
349 data->in_crit[i-11] = in pc87360_update_device()
411 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[attr->index], in in_input_show()
434 return sprintf(buf, "%u\n", data->in_status[attr->index]); in in_status_show()
456 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[attr->index], in in_min_show()
500 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[attr->index], in in_max_show()
557 return sprintf(buf, "%u\n", !!(data->in_status[nr] & CHAN_ALM_MIN)); in in_min_alarm_show()
580 return sprintf(buf, "%u\n", !!(data->in_status[nr] & CHAN_ALM_MAX)); in in_max_alarm_show()
609 return sprintf(buf, "%u\n", vid_from_reg(data->vid, data->vrm)); in cpu0_vid_show()
617 return sprintf(buf, "%u\n", data->vrm); in vrm_show()
643 return sprintf(buf, "%u\n", data->in_alarms); in alarms_in_show()
673 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[attr->index], in therm_input_show()
678 * the +11 term below reflects the fact that VLM units 11,12,13 are
682 SENSOR_ATTR_RO(temp4_input, therm_input, 0 + 11),
683 SENSOR_ATTR_RO(temp5_input, therm_input, 1 + 11),
684 SENSOR_ATTR_RO(temp6_input, therm_input, 2 + 11),
692 return sprintf(buf, "%u\n", data->in_status[attr->index]); in therm_status_show()
696 SENSOR_ATTR_RO(temp4_status, therm_status, 0 + 11),
697 SENSOR_ATTR_RO(temp5_status, therm_status, 1 + 11),
698 SENSOR_ATTR_RO(temp6_status, therm_status, 2 + 11),
706 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[attr->index], in therm_min_show()
732 SENSOR_ATTR_RW(temp4_min, therm_min, 0 + 11),
733 SENSOR_ATTR_RW(temp5_min, therm_min, 1 + 11),
734 SENSOR_ATTR_RW(temp6_min, therm_min, 2 + 11),
742 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[attr->index], in therm_max_show()
768 SENSOR_ATTR_RW(temp4_max, therm_max, 0 + 11),
769 SENSOR_ATTR_RW(temp5_max, therm_max, 1 + 11),
770 SENSOR_ATTR_RW(temp6_max, therm_max, 2 + 11),
778 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_crit[attr->index-11], in therm_crit_show()
796 data->in_crit[attr->index-11] = IN_TO_REG(val, data->in_vref); in therm_crit_store()
798 data->in_crit[attr->index-11]); in therm_crit_store()
804 SENSOR_ATTR_RW(temp4_crit, therm_crit, 0 + 11),
805 SENSOR_ATTR_RW(temp5_crit, therm_crit, 1 + 11),
806 SENSOR_ATTR_RW(temp6_crit, therm_crit, 2 + 11),
820 return sprintf(buf, "%u\n", !!(data->in_status[nr] & CHAN_ALM_MIN)); in therm_min_alarm_show()
824 SENSOR_ATTR_RO(temp4_min_alarm, therm_min_alarm, 0 + 11),
825 SENSOR_ATTR_RO(temp5_min_alarm, therm_min_alarm, 1 + 11),
826 SENSOR_ATTR_RO(temp6_min_alarm, therm_min_alarm, 2 + 11),
836 return sprintf(buf, "%u\n", !!(data->in_status[nr] & CHAN_ALM_MAX)); in therm_max_alarm_show()
840 SENSOR_ATTR_RO(temp4_max_alarm, therm_max_alarm, 0 + 11),
841 SENSOR_ATTR_RO(temp5_max_alarm, therm_max_alarm, 1 + 11),
842 SENSOR_ATTR_RO(temp6_max_alarm, therm_max_alarm, 2 + 11),
852 return sprintf(buf, "%u\n", !!(data->in_status[nr] & TEMP_ALM_CRIT)); in therm_crit_alarm_show()
856 SENSOR_ATTR_RO(temp4_crit_alarm, therm_crit_alarm, 0 + 11),
857 SENSOR_ATTR_RO(temp5_crit_alarm, therm_crit_alarm, 1 + 11),
858 SENSOR_ATTR_RO(temp6_crit_alarm, therm_crit_alarm, 2 + 11),
886 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in temp_input_show()
900 return sprintf(buf, "%d\n", data->temp_status[attr->index]); in temp_status_show()
914 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[attr->index])); in temp_min_show()
949 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[attr->index])); in temp_max_show()
984 return sprintf(buf, "%d\n", in temp_crit_show()
1027 return sprintf(buf, "%u\n", !!(data->temp_status[nr] & CHAN_ALM_MIN)); in temp_min_alarm_show()
1043 return sprintf(buf, "%u\n", !!(data->temp_status[nr] & CHAN_ALM_MAX)); in temp_max_alarm_show()
1059 return sprintf(buf, "%u\n", !!(data->temp_status[nr] & TEMP_ALM_CRIT)); in temp_crit_alarm_show()
1075 return sprintf(buf, "%u\n", !!(data->temp_status[nr] & TEMP_FAULT)); in temp_fault_show()
1113 return sprintf(buf, "%u\n", data->temp_alarms); in alarms_temp_show()
1123 return sprintf(buf, "%u\n", FAN_FROM_REG(data->fan[attr->index], in fan_input_show()
1138 return sprintf(buf, "%u\n", in fan_status_show()
1153 return sprintf(buf, "%u\n", in fan_div_show()
1168 return sprintf(buf, "%u\n", FAN_FROM_REG(data->fan_min[attr->index], in fan_min_show()
1241 return sprintf(buf, "%u\n", in pwm_show()
1278 return sprintf(buf, "%s\n", data->name); in name_show()
1312 "VLM conversion set to 1s period, 160us delay\n"); in pc87360_init_device()
1318 nr = data->innr < 11 ? data->innr : 11; in pc87360_init_device()
1322 dev_dbg(&pdev->dev, "bios in%d status:0x%02x\n", i, reg); in pc87360_init_device()
1326 dev_dbg(&pdev->dev, "Forcibly enabling in%d\n", in pc87360_init_device()
1339 dev_dbg(&pdev->dev, "bios thermistors:%d\n", use_thermistors); in pc87360_init_device()
1340 for (i = 11; i < data->innr; i++) { in pc87360_init_device()
1344 /* thermistors are temp[4-6], measured on vin[11-14] */ in pc87360_init_device()
1345 dev_dbg(&pdev->dev, "bios temp%d_status:0x%02x\n", i-7, reg); in pc87360_init_device()
1347 dev_dbg(&pdev->dev, "using thermistors:%d\n", use_thermistors); in pc87360_init_device()
1353 dev_dbg(&pdev->dev, "bios temp%d_status:0x%02x\n", i + 1, reg); in pc87360_init_device()
1358 "Forcibly enabling temp%d\n", i + 1); in pc87360_init_device()
1367 for (i = 11; i < data->innr; i++) { in pc87360_init_device()
1374 (i - 11) / 2, PC87365_REG_TEMP_STATUS); in pc87360_init_device()
1377 "Skipping temp%d, pin already in use by temp%d\n", in pc87360_init_device()
1378 i - 7, (i - 11) / 2); in pc87360_init_device()
1387 "Forcibly enabling temp%d\n", in pc87360_init_device()
1400 dev_dbg(&pdev->dev, "bios vin-cfg:0x%02x\n", reg); in pc87360_init_device()
1403 "Forcibly enabling monitoring (VLM)\n"); in pc87360_init_device()
1413 dev_dbg(&pdev->dev, "bios temp-cfg:0x%02x\n", reg); in pc87360_init_device()
1416 "Forcibly enabling monitoring (TMS)\n"); in pc87360_init_device()
1468 data->innr = extra_isa[1] ? 11 : 0; in pc87360_probe()
1490 "Region 0x%x-0x%x already in use!\n", in pc87360_probe()
1513 dev_dbg(dev, "Using %s reference voltage\n", in pc87360_probe()
1652 pr_info("Device 0x%02x not activated\n", logdev[i]); in pc87360_find()
1659 pr_info("Base address not set for device 0x%02x\n", in pc87360_find()
1670 pr_debug("Fan %d: mon=%d ctrl=%d inv=%d\n", 1, in pc87360_find()
1673 pr_debug("Fan %d: mon=%d ctrl=%d inv=%d\n", 2, in pc87360_find()
1676 pr_debug("Fan %d: mon=%d ctrl=%d inv=%d\n", 3, in pc87360_find()
1691 pr_info("Using thermistors for temperature monitoring\n"); in pc87360_find()
1694 pr_info("VID inputs routed (mode %u)\n", in pc87360_find()
1713 pr_err("Device allocation failed\n"); in pc87360_device_add()
1736 pr_err("Device resources addition failed (%d)\n", err); in pc87360_device_add()
1742 pr_err("Device addition failed (%d)\n", err); in pc87360_device_add()
1761 pr_warn("PC8736x not detected, module not inserted\n"); in pc87360_init()
1774 pr_warn("No active logical device, module not inserted\n"); in pc87360_init()