Lines Matching refs:state
43 static nssad_state_t state = {0};
289 * the queue at state.qtail and the LRU entry is
290 * removed from state.qhead. state.qnext points
297 for (cp = state.qtail, prev = NULL; cp != NULL;
305 if (state.qtail != cp) {
312 if (state.qhead == cp)
313 state.qhead = prev;
314 cp->qnext = state.qtail;
315 state.qtail = cp;
346 state.qcount++;
347 if (state.qtail == NULL) {
348 state.qtail = state.qhead = cp;
353 cp->qnext = state.qtail;
354 state.qtail = cp;
357 if (state.qcount >= CFG_QUEUE_MAX_SIZE) {
359 lru = state.qhead;
361 for (prev = state.qtail; prev != NULL;
365 state.qhead = prev;
367 state.qcount--;
456 for (cp = state.qtail; cp != NULL; ) {
461 (void) memset(&state, 0, sizeof (state));
534 (void) memset(&state, 0, sizeof (state));