Lines Matching refs:smu
213 DRIVER_MODULE(smu, ofwbus, smu_driver, 0, 0);
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()
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()
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()
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()
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()