Lines Matching defs:res
419 int res;
424 res = ioctl(lom_fd, LOMIOCTEMP, &lom_temp);
427 if (res == 0) {
447 int res;
457 res = ioctl(lom_fd, LOMIOCVOLTS, &voltsdata);
459 if (res < 0) {
474 int res;
476 if ((res = update_voltage_stats()) != PICL_SUCCESS)
477 return (res);
490 int res;
492 if ((res = update_voltage_stats()) != PICL_SUCCESS)
493 return (res);
511 int res;
520 res = ioctl(lom_fd, LOMIOCFANSTATE, &fandata);
522 if (res < 0) {
538 int res;
540 if ((res = update_fan_stats()) != PICL_SUCCESS)
541 return (res);
716 int res;
732 res = open_lom_rd(&lom_fd);
733 if (res != PICL_SUCCESS)
734 return (res);
749 res = ioctl(lom_fd, LOMIOCLEDSTATE, &led_data);
751 if (res != 0 || led_data.state == LOM_LED_NOT_IMPLEMENTED ||
762 res = ioctl(lom_fd, LOMIOCLEDSTATE, &led_data);
764 if (res != 0) {
775 res = ioctl(lom_fd, LOMIOCLEDSTATE, &led_data);
777 if (res == 0 &&
796 res = lookup_led_status(led_data.state, &string);
798 return (res);
857 int res;
862 res = ioctl(lom_fd, LOMIOCTEMP, &lom_temp);
864 if ((res == 0) && (lom_temp.num > 0)) {
951 int res;
956 res = ioctl(lom_fd, LOMIOCVOLTS, &voltsdata);
958 if ((res == 0) && (voltsdata.num > 0)) {
1087 int res;
1097 res = ioctl(lom_fd, LOMIOCLEDSTATE, &led_data);
1099 if (res != 0)
1141 res = ioctl(lom_fd, LOMIOCLEDSTATE, &led_data);
1143 if (res != 0)
1168 int res;
1172 res = ioctl(lom_fd, LOMIOCFANSTATE, &fandata);
1174 if (res == 0) {