Home
last modified time | relevance | path

Searched refs:pm_fd (Results 1 – 11 of 11) sorted by relevance

/titanic_44/usr/src/cmd/picl/plugins/sun4u/grover/envd/
H A Dpiclenvd.c196 static int pm_fd; /* PM device file descriptor */ variable
386 if (pm_fd != -1) { in envd_close_pm()
387 (void) close(pm_fd); in envd_close_pm()
388 pm_fd = -1; in envd_close_pm()
713 if (ioctl(pm_fd, PM_GET_STATE_CHANGE_WAIT, &pmstate) != 0) { in pmthr()
737 } while (ioctl(pm_fd, PM_GET_STATE_CHANGE, &pmstate) == 0); in pmthr()
999 pm_fd = open(PM_DEVICE, O_RDONLY); in envd_setup()
1000 if (pm_fd == -1 || pthread_create(&pmthr_tid, &thr_attr, in envd_setup()
/titanic_44/usr/src/cmd/power/
H A Dhandlers.c74 if (ioctl(pm_fd, PM_GET_CMD_NAME, &req) < 0) { in pm_map()
90 ret = ioctl(pm_fd, PM_SEARCH_LIST, &sl); in isonlist()
100 if (ioctl(pm_fd, ioctl_cmd, NULL) == -1) { in do_ioctl()
159 if (ioctl(pm_fd, bp->cmd, NULL) == -1 && errno != bp->Errno) { in cpupm()
195 if (ioctl(pm_fd, bp->cmd, NULL) == -1 && errno != bp->Errno) { in cpuidle()
461 if (ioctl(pm_fd, bp->cmd, NULL) == -1 && errno != bp->Errno) { in autopm()
472 if (ioctl(pm_fd, bp->cmd, NULL) == -1 && errno != bp->Errno) { in autopm()
639 if ((upval = ioctl(pm_fd, cmd, &pmreq)) == -1) { in dev_dep_common()
804 if (upval != NOUP && (upval = ioctl(pm_fd, cmd, &pmreq)) == -1) in devthr()
1222 (void) ioctl(pm_fd, req, value); in cmnthr()
H A Dconf.c80 int pm_fd; variable
212 if ((pm_fd = open("/dev/pm", O_RDWR)) == -1) in pm_rem_reset()
214 else if (ioctl(pm_fd, PM_RESET_PM, 0) == -1) in pm_rem_reset()
556 (void) close(pm_fd); in main()
H A Dparse.c464 int ret = ioctl(pm_fd, PM_GET_PM_STATE, NULL); in parse_conf_file()
477 ret = ioctl(pm_fd, PM_GET_S3_SUPPORT_STATE, NULL); in parse_conf_file()
490 ret = ioctl(pm_fd, PM_GET_AUTOS3_STATE, NULL); in parse_conf_file()
H A Dpmconfig.h104 extern int pm_fd, ua_err;
H A Dpowerd.c190 int pm_fd; in main() local
224 pm_fd = open(PM, O_RDWR); in main()
225 if (pm_fd == -1) { in main()
230 (void) close(pm_fd); in main()
/titanic_44/usr/src/cmd/hal/addons/cpufreq/
H A Daddon-cpufreq.c422 int pm_fd; in get_cur_val() local
426 pm_fd = open (PM, O_RDONLY); in get_cur_val()
427 if (pm_fd == -1) { in get_cur_val()
438 pm_ret = ioctl (pm_fd, PM_GET_CPUPM_STATE); in get_cur_val()
457 pm_ret = ioctl (pm_fd, PM_GET_PM_STATE); in get_cur_val()
487 pm_ret = ioctl (pm_fd, PM_GET_CPU_THRESHOLD); in get_cur_val()
496 pm_ret = ioctl (pm_fd, PM_GET_SYSTEM_THRESHOLD); in get_cur_val()
516 close (pm_fd); in get_cur_val()
/titanic_44/usr/src/cmd/picl/plugins/sun4u/excalibur/envd/
H A Dpiclenvd.c333 static int pm_fd = -1; /* PM device file descriptor */ variable
1376 pm_fd = open(PM_DEVICE, O_RDONLY); in envd_open_pm()
1377 if (pm_fd != -1) in envd_open_pm()
1378 (void) fcntl(pm_fd, F_SETFD, FD_CLOEXEC); in envd_open_pm()
1387 if (pm_fd != -1) { in envd_close_pm()
1388 (void) close(pm_fd); in envd_close_pm()
1389 pm_fd = -1; in envd_close_pm()
1558 cur_power = ioctl(pm_fd, PM_GET_CURRENT_POWER, &pmreq); in update_pmdev_power()
1734 ncomp = ioctl(pm_fd, PM_GET_NUM_COMPONENTS, &pmreq); in envd_setup_sensors()
1738 if (ioctl(pm_fd, PM_GET_COMPONENT_NAME, &pmreq) <= 0) in envd_setup_sensors()
[all …]
/titanic_44/usr/src/cmd/picl/plugins/sun4u/taco/envd/
H A Dpiclenvd.c122 static int pm_fd = -1; /* PM device file descriptor */ variable
1093 pm_fd = open(PM_DEVICE, O_RDWR); in pmthr()
1094 if (pm_fd == -1) { in pmthr()
1107 if (ioctl(pm_fd, PM_GET_STATE_CHANGE_WAIT, &pmstate) != 0) { in pmthr()
1125 } while (ioctl(pm_fd, PM_GET_STATE_CHANGE, &pmstate) == 0); in pmthr()
/titanic_44/usr/src/cmd/picl/plugins/sun4u/chicago/envd/
H A Dpiclenvd.c181 static int pm_fd = -1; /* PM device file descriptor */ variable
1136 pm_fd = open(PM_DEVICE, O_RDWR); in pmthr()
1137 if (pm_fd == -1) { in pmthr()
1150 if (ioctl(pm_fd, PM_GET_STATE_CHANGE_WAIT, &pmstate) != 0) { in pmthr()
1169 } while (ioctl(pm_fd, PM_GET_STATE_CHANGE, &pmstate) == 0); in pmthr()
/titanic_44/usr/src/cmd/picl/plugins/sun4u/enchilada/envd/
H A Dpiclenvd.c142 static int pm_fd = -1; /* PM device file descriptor */ variable
1461 pm_fd = open(PM_DEVICE, O_RDWR); in pmthr()
1462 if (pm_fd == -1) { in pmthr()
1475 if (ioctl(pm_fd, PM_GET_STATE_CHANGE_WAIT, &pmstate) != 0) { in pmthr()
1493 } while (ioctl(pm_fd, PM_GET_STATE_CHANGE, &pmstate) == 0); in pmthr()