Lines Matching refs:env_ind
112 static int do_psu_cmd(intptr_t arg, int mode, envmon_indicator_t *env_ind,
1827 do_psu_cmd(intptr_t arg, int mode, envmon_indicator_t *env_ind,
1836 if (ddi_copyin((caddr_t)arg, (caddr_t)env_ind,
1845 if (env_ind->id.name[0] == '\0') {
1848 env_ind->next_id.name[0] = '\0';
1850 env_ind->next_id = section->entry[0].handle_name;
1854 env_ind->id.name[ENVMON_MAXNAMELEN - 1] = '\0';
1856 env_ind->id.name, &index)) != 0) {
1857 env_ind->next_id.name[0] = '\0';
1860 env_ind->next_id =
1863 env_ind->next_id.name[0] = '\0';
1882 if ((env_ind->sensor_status = sensor_status) == ENVMON_SENSOR_OK) {
1887 env_ind->sensor_status |= ENVMON_NOT_PRESENT;
1890 env_ind->sensor_status |= ENVMON_INACCESSIBLE;
1891 env_ind->condition =
1897 env_ind->sensor_status = ENVMON_INACCESSIBLE;
1899 if (ddi_copyout((caddr_t)env_ind, (caddr_t)arg,
1924 #define env_ind env_buf.u_env_ind
2127 return (do_psu_cmd(arg, mode, &env_ind, &rmc_psu, &rmc_psu_r,
2131 return (do_psu_cmd(arg, mode, &env_ind, &rmc_psu, &rmc_psu_r,
2135 return (do_psu_cmd(arg, mode, &env_ind, &rmc_psu, &rmc_psu_r,
2331 if (ddi_copyin((caddr_t)arg, (caddr_t)&env_ind,
2343 return (do_psu_cmd(arg, mode, &env_ind, &rmc_psu,
2345 } else if (env_ind.id.name[0] == '\0') {
2349 return (do_psu_cmd(arg, mode, &env_ind,
2352 env_ind.next_id = section->entry[0].handle_name;
2356 env_ind.id.name[ENVMON_MAXNAMELEN - 1] = '\0';
2357 if (get_sensor_by_name(section, env_ind.id.name,
2360 return (do_psu_cmd(arg, mode, &env_ind,
2364 env_ind.next_id =
2372 env_ind.next_id.name[0] = '\0';
2374 env_ind.next_id =
2397 if ((env_ind.sensor_status = sensor_status) ==
2404 env_ind.sensor_status = ENVMON_INACCESSIBLE;
2405 env_ind.condition =
2415 env_ind.sensor_status = ENVMON_INACCESSIBLE;
2416 env_ind.condition = ENVMON_INACCESSIBLE;
2419 if (ddi_copyout((caddr_t)&env_ind, (caddr_t)arg,