Lines Matching full:smu
208 "smu",
213 DRIVER_MODULE(smu, ofwbus, smu_driver, 0, 0);
214 static MALLOC_DEFINE(M_SMU, "smu", "SMU Sensor Information");
264 if (strcmp(name, "smu") != 0) in smu_probe()
288 mtx_init(&sc->sc_mtx, "smu", NULL, MTX_DEF); in smu_attach()
342 if (strncmp(name, "smu-i2c-control", 15) == 0) in smu_attach()
424 powerpc_pow_enabled = 0; /* SMU cannot work if we go to NAP */ in smu_send_cmd()
435 /* Flush the cacheline it is in -- SMU bypasses the cache */ in smu_send_cmd()
438 /* Ring SMU doorbell */ in smu_send_cmd()
445 device_t smu; in smu_doorbell_intr() local
449 smu = xdev; in smu_doorbell_intr()
451 sc = device_get_softc(smu); in smu_doorbell_intr()
480 smu_send_cmd(smu, sc->sc_cur_cmd); in smu_doorbell_intr()
514 error = tsleep(cmd, 0, "smu", 800 * hz / 1000); in smu_run_cmd()
535 /* SMU acks the command by inverting the command bits */ in smu_run_cmd()
613 /* Routines for probing the SMU doorbell GPIO */
638 if (strcmp(name, "smu-doorbell") != 0) in doorbell_probe()
641 device_set_desc(dev, "SMU Doorbell GPIO"); in doorbell_probe()
660 device_t smu = fan->dev; in smu_fan_check_old_style() local
661 struct smu_softc *sc = device_get_softc(smu); in smu_fan_check_old_style()
680 error = smu_run_cmd(smu, &cmd, 1); in smu_fan_check_old_style()
691 device_t smu = fan->dev; in smu_fan_set_rpm() local
711 error = smu_run_cmd(smu, &cmd, 1); in smu_fan_set_rpm()
720 error = smu_run_cmd(smu, &cmd, 1); in smu_fan_set_rpm()
732 device_t smu = fan->dev; in smu_fan_read_rpm() local
744 error = smu_run_cmd(smu, &cmd, 1); in smu_fan_read_rpm()
756 error = smu_run_cmd(smu, &cmd, 1); in smu_fan_read_rpm()
768 device_t smu = fan->dev; in smu_fan_set_pwm() local
792 error = smu_run_cmd(smu, &cmd, 1); in smu_fan_set_pwm()
803 error = smu_run_cmd(smu, &cmd, 1); in smu_fan_set_pwm()
815 device_t smu = fan->dev; in smu_fan_read_pwm() local
825 error = smu_run_cmd(smu, &cmd, 1); in smu_fan_read_pwm()
837 error = smu_run_cmd(smu, &cmd, 1); in smu_fan_read_pwm()
849 error = smu_run_cmd(smu, &cmd, 1); in smu_fan_read_pwm()
861 device_t smu; in smu_fanrpm_sysctl() local
866 smu = arg1; in smu_fanrpm_sysctl()
867 sc = device_get_softc(smu); in smu_fanrpm_sysctl()
1019 CTLFLAG_RD | CTLFLAG_MPSAFE, 0, "SMU Fan Information"); in smu_attach_fans()
1086 device_t smu = sens->dev; in smu_sensor_read() local
1097 error = smu_run_cmd(smu, &cmd, 1); in smu_sensor_read()
1101 sc = device_get_softc(smu); in smu_sensor_read()
1152 device_t smu; in smu_sensor_sysctl() local
1157 smu = arg1; in smu_sensor_sysctl()
1158 sc = device_get_softc(smu); in smu_sensor_sysctl()
1201 CTLFLAG_RD | CTLFLAG_MPSAFE, 0, "SMU Sensor Information"); in smu_attach_sensors()
1264 device_t smu = xdev; in smu_set_sleepled() local
1272 smu_run_cmd(smu, &cmd, 0); in smu_set_sleepled()
1280 device_t smu = arg1; in smu_server_mode() local
1287 error = smu_run_cmd(smu, &cmd, 1); in smu_server_mode()
1310 return (smu_run_cmd(smu, &cmd, 1)); in smu_server_mode()
1316 device_t smu = xdev; in smu_shutdown() local
1329 smu_run_cmd(smu, &cmd, 1); in smu_shutdown()
1382 /* SMU I2C Interface */
1415 DRIVER_MODULE(smuiic, smu, smuiic_driver, 0, 0);
1418 smu_attach_i2c(device_t smu, phandle_t i2croot) in smu_attach_i2c() argument
1439 cdev = device_add_child(smu, NULL, DEVICE_UNIT_ANY); in smu_attach_i2c()
1441 device_printf(smu, "<%s>: device_add_child failed\n", in smu_attach_i2c()
1461 device_set_desc(dev, "SMU I2C controller"); in smuiic_probe()