Home
last modified time | relevance | path

Searched refs:fanp (Results 1 – 12 of 12) sorted by relevance

/titanic_44/usr/src/cmd/picl/plugins/sun4u/taco/envd/
H A Dpiclenvd.c619 env_fan_t *fanp; in fan_lookup() local
621 for (i = 0; (fanp = envd_fans[i]) != NULL; i++) { in fan_lookup()
622 if (strcmp(fanp->name, name) == 0) in fan_lookup()
623 return (fanp); in fan_lookup()
708 get_raw_fan_speed(env_fan_t *fanp, uint8_t *fanspeedp) in get_raw_fan_speed() argument
713 fan_fd = fanp->fd; in get_raw_fan_speed()
729 get_fan_speed(env_fan_t *fanp, fanspeed_t *fanspeedp) in get_fan_speed() argument
734 fan_fd = fanp->fd; in get_fan_speed()
746 if (mon_fanstat && (!fanp->fanstat || tach == FAN_OUT_OF_RANGE)) { in get_fan_speed()
750 tach_to_rpm(fanp->speedrange, tach); in get_fan_speed()
[all …]
H A Dpiclenvsetup.c109 env_fan_t *fanp; /* fan information */ member
186 if (fnodep->fanp->fd == -1) in set_current_speed()
191 ret = set_fan_speed(fnodep->fanp, speed); in set_current_speed()
227 if (fnodep->fanp->fd == -1) in get_current_speed()
229 if (get_fan_speed(fnodep->fanp, &speed) < 0) in get_current_speed()
452 env_fan_t *fanp; in add_fan_nodes_and_props() local
489 fanp = fnodep->fanp; in add_fan_nodes_and_props()
490 devfs_path = fanp->devfs_path; in add_fan_nodes_and_props()
736 fnodep->fanp = fan_lookup(fnodep->fan_name); in env_picl_setup()
H A Denvd.h305 void *fanp; member
/titanic_44/usr/src/cmd/picl/plugins/sun4u/grover/envd/
H A Dpiclenvd.c259 env_fan_t *fanp; in fan_lookup() local
261 for (i = 0; (fanp = envd_fans[i]) != NULL; i++) { in fan_lookup()
262 if (strcmp(fanp->name, name) == 0) in fan_lookup()
263 return (fanp); in fan_lookup()
316 get_fan_speed(env_fan_t *fanp, fanspeed_t *fanspeedp) in get_fan_speed() argument
321 fan_fd = fanp->fd; in get_fan_speed()
333 set_fan_speed(env_fan_t *fanp, fanspeed_t fanspeed) in set_fan_speed() argument
338 fan_fd = fanp->fd; in set_fan_speed()
353 env_fan_t *fanp; in envd_close_fans() local
355 for (i = 0; (fanp = envd_fans[i]) != NULL; i++) { in envd_close_fans()
[all …]
H A Dpiclenvsetup.c157 env_fan_t *fanp; /* fan information */ member
232 if (get_fan_speed(fnodep->fanp, &speed) < 0) in get_current_speed()
626 env_fan_t *fanp; in add_fan_nodes_and_props() local
647 if (fnodep->nodeh != NULL || fnodep->fanp == NULL) in add_fan_nodes_and_props()
668 fanp = fnodep->fanp; in add_fan_nodes_and_props()
669 devfs_path = fanp->devfs_path; in add_fan_nodes_and_props()
805 fnodep->fanp = fan_lookup(fnodep->fan_name); in env_picl_setup()
/titanic_44/usr/src/cmd/picl/plugins/sun4u/enchilada/envd/
H A Dpiclenvd.c773 env_fan_t *fanp; in fan_lookup() local
775 for (i = 0; (fanp = envd_fans[i]) != NULL; i++) { in fan_lookup()
776 if (strcmp(fanp->name, name) == 0) in fan_lookup()
777 return (fanp); in fan_lookup()
897 get_raw_fan_speed(env_fan_t *fanp, uint8_t *fanspeedp) in get_raw_fan_speed() argument
902 fan_fd = fanp->fd; in get_raw_fan_speed()
921 get_fan_speed(env_fan_t *fanp, fanspeed_t *fanspeedp) in get_fan_speed() argument
926 fan_fd = fanp->fd; in get_fan_speed()
930 if (fanp->id == DIMM_FAN_ID) { in get_fan_speed()
942 if (mon_fanstat && (!fanp->fanstat || tach == FAN_OUT_OF_RANGE)) { in get_fan_speed()
[all …]
H A Dpiclenvsetup.c118 env_fan_t *fanp; /* fan information */ member
253 if (fnodep->fanp->fd == -1) in set_current_speed()
258 ret = set_fan_speed(fnodep->fanp, speed); in set_current_speed()
295 if (fnodep->fanp->fd == -1) in get_current_speed()
297 if (get_fan_speed(fnodep->fanp, &speed) < 0) in get_current_speed()
656 env_fan_t *fanp; in add_fan_nodes_and_props() local
667 if (fnodep->fanp->present == B_FALSE) in add_fan_nodes_and_props()
698 fanp = fnodep->fanp; in add_fan_nodes_and_props()
699 devfs_path = fanp->devfs_path; in add_fan_nodes_and_props()
714 if (fanp->id == DIMM_FAN_ID) { in add_fan_nodes_and_props()
[all …]
H A Denvd.h386 void *fanp; member
/titanic_44/usr/src/cmd/picl/plugins/sun4u/chicago/envd/
H A Dpiclenvd.c84 static boolean_t has_fan_failed(env_fan_t *fanp);
468 env_fan_t *fanp; in fan_lookup() local
470 for (i = 0; (fanp = envd_fans[i]) != NULL; i++) { in fan_lookup()
471 if (strcmp(fanp->name, name) == 0) in fan_lookup()
472 return (fanp); in fan_lookup()
578 get_fan_speed(env_fan_t *fanp, fanspeed_t *fanspeedp) in get_fan_speed() argument
584 if (fanp->fd == -1) in get_fan_speed()
587 if (has_fan_failed(fanp)) { in get_fan_speed()
594 if (ioctl(fanp->fd, PIC_GET_FAN_SPEED, &tach) == 0) in get_fan_speed()
621 set_fan_speed(env_fan_t *fanp, fanspeed_t fanspeed) in set_fan_speed() argument
[all …]
H A Dpiclenvsetup.c112 env_fan_t *fanp; /* fan information */ member
243 if (fnodep->fanp->fd == -1) in set_current_speed()
248 ret = set_fan_speed(fnodep->fanp, speed); in set_current_speed()
285 if (fnodep->fanp->fd == -1) in get_current_speed()
287 if (get_fan_speed(fnodep->fanp, &speed) < 0) in get_current_speed()
657 env_fan_t *fanp; in add_fan_nodes_and_props() local
670 if (fnodep->fanp == NULL) in add_fan_nodes_and_props()
672 if (fnodep->fanp->present == B_FALSE) in add_fan_nodes_and_props()
703 fanp = fnodep->fanp; in add_fan_nodes_and_props()
704 devfs_path = fanp->devfs_path; in add_fan_nodes_and_props()
[all …]
/titanic_44/usr/src/cmd/picl/plugins/sun4u/excalibur/envd/
H A Dpiclenvd.c1243 env_fan_t *fanp; in fan_lookup() local
1245 for (i = 0; (fanp = envd_fans[i]) != NULL; i++) { in fan_lookup()
1246 if (strcmp(fanp->name, name) == 0) in fan_lookup()
1247 return (fanp); in fan_lookup()
1307 get_fan_speed(env_fan_t *fanp, fanspeed_t *fanspeedp) in get_fan_speed() argument
1312 fan_fd = fanp->fd; in get_fan_speed()
1324 set_fan_speed(env_fan_t *fanp, fanspeed_t fanspeed) in set_fan_speed() argument
1329 fan_fd = fanp->fd; in set_fan_speed()
1344 env_fan_t *fanp; in envd_close_fans() local
1346 for (i = 0; (fanp = envd_fans[i]) != NULL; i++) { in envd_close_fans()
[all …]
H A Dpiclenvsetup.c136 env_fan_t *fanp; /* fan information */ member
252 if (get_fan_speed(fnodep->fanp, &speed) < 0) in get_current_speed()
254 speed = (fanspeed_t)(speed * 100/fnodep->fanp->speed_max); in get_current_speed()
664 env_fan_t *fanp; in add_fan_nodes_and_props() local
685 if (fnodep->nodeh != NULL || fnodep->fanp == NULL) in add_fan_nodes_and_props()
706 fanp = fnodep->fanp; in add_fan_nodes_and_props()
707 devfs_path = fanp->devfs_path; in add_fan_nodes_and_props()
855 fnodep->fanp = fan_lookup(fnodep->fan_name); in env_picl_setup()