Lines Matching refs:eng
203 vs_engine_t *eng; in vs_eng_config() local
212 eng = &vs_engines[i]; in vs_eng_config()
215 vs_eng_config_close(eng, 0); in vs_eng_config()
216 eng->vse_error = B_FALSE; in vs_eng_config()
220 if (cfg->vep_maxconn < eng->vse_cfg.vep_maxconn) in vs_eng_config()
221 vs_eng_config_close(eng, cfg->vep_maxconn); in vs_eng_config()
223 eng->vse_cfg = *cfg; in vs_eng_config()
227 vs_eng_config_close(eng, 0); in vs_eng_config()
228 (void) memset(&eng->vse_cfg, 0, sizeof (vs_props_se_t)); in vs_eng_config()
231 vs_icap_config(i, eng->vse_cfg.vep_host, eng->vse_cfg.vep_port); in vs_eng_config()
249 vs_eng_config_close(vs_engine_t *eng, int start_idx) in vs_eng_config_close() argument
254 for (i = start_idx; i < eng->vse_cfg.vep_maxconn; i++) { in vs_eng_config_close()
255 cxn = &(eng->vse_cxns[i]); in vs_eng_config_close()
299 vs_engine_t *eng; in vs_eng_housekeeper() local
313 eng = &(vs_engines[i]); in vs_eng_housekeeper()
314 for (j = 0; j < eng->vse_cfg.vep_maxconn; j++) { in vs_eng_housekeeper()
315 cxn = &(eng->vse_cxns[j]); in vs_eng_housekeeper()
347 vs_engine_t *eng; in vs_eng_set_error() local
351 eng = &(vs_engines[eidx]); in vs_eng_set_error()
354 eng->vse_error = (error == 0) ? B_FALSE : B_TRUE; in vs_eng_set_error()
357 eng->vse_cxns[cidx].vsc_state = VS_ENG_CLOSE_PENDING; in vs_eng_set_error()
378 vs_engine_t *eng; in vs_eng_get() local
422 eng = &(vs_engines[eidx]); in vs_eng_get()
423 cxn = &(eng->vse_cxns[cidx]); in vs_eng_get()
426 eng->vse_inuse++; in vs_eng_get()
436 (void) strlcpy(eng_ctx->vse_engid, eng->vse_cfg.vep_engid, in vs_eng_get()
438 (void) strlcpy(eng_ctx->vse_host, eng->vse_cfg.vep_host, in vs_eng_get()
440 eng_ctx->vse_port = eng->vse_cfg.vep_port; in vs_eng_get()
535 vs_engine_t *eng; in vs_eng_find_connection() local
542 eng = &(vs_engines[idx]); in vs_eng_find_connection()
547 for (i = 0; i < eng->vse_cfg.vep_maxconn; i++) { in vs_eng_find_connection()
548 cxn = &(eng->vse_cxns[i]); in vs_eng_find_connection()
564 eng->vse_cxns[idx].vsc_state = VS_ENG_RESERVED; in vs_eng_find_connection()