Lines Matching refs:key_posn

1101 	int		key_posn;
1149 for (key_posn = 0; key_posn < SGENV_MAX_HPU_KEYS; key_posn++) {
1150 if (vol_sensor_count[key_posn] <= 0)
1153 ASSERT(vol_sensor_count[key_posn] <=
1164 if (env_cache[key_posn] == NULL) {
1166 "disappeared", key_posn);
1167 vol_sensor_count[key_posn] = 0;
1171 bcopy(&env_cache[key_posn][0], ptr,
1173 vol_sensor_count[key_posn]);
1174 ptr += vol_sensor_count[key_posn];
1942 sgenv_get_env_data(envresp_key_t key, int key_posn, uint16_t flag, int *status)
1961 ASSERT(env_cache[key_posn] != NULL);
2059 env_cache[key_posn][i].sd_id.tag_id =
2061 env_cache[key_posn][i].sd_lo =
2063 env_cache[key_posn][i].sd_hi =
2067 env_cache[key_posn][i].sd_value =
2069 env_cache[key_posn][i].sd_infostamp =
2072 sgenv_set_sensor_status(&env_cache[key_posn][i]);
2075 env_cache[key_posn][i].sd_lo_warn =
2077 env_cache[key_posn][i].sd_hi_warn =
2083 vol_sensor_count[key_posn] = resp.msg_data[0];
2108 sgenv_handle_env_data_error(int err, int status, int key_posn,
2128 " while %s", key_posn, key, str);
2143 sgenv_clear_env_cache_entry(key_posn);
2154 sgenv_clear_env_cache_entry(int key_posn)
2158 if (env_cache[key_posn] != NULL) {
2159 kmem_free(env_cache[key_posn], sizeof (env_sensor_t) *
2161 env_cache[key_posn] = NULL;
2162 vol_sensor_count[key_posn] = 0;
2203 * key_posn - The position in the env_cache for which we want to
2212 sgenv_create_env_cache_entry(int key_posn)
2216 ASSERT(key_posn < SGENV_MAX_HPU_KEYS);
2217 ASSERT(key_posn >= 0);
2219 env_cache[key_posn] = (env_sensor_t *)kmem_zalloc(
2221 if (env_cache[key_posn] == NULL) {
2223 key_posn);
2228 env_cache[key_posn][i].sd_status = SG_SENSOR_STATUS_OK;