Lines Matching refs:cacheindex
304 int cacheindex = 0; /* which cache set is used */ in poll_common() local
436 error = pcacheset_cache_list(ps, fds, &fdcnt, cacheindex); in poll_common()
448 for (cacheindex = 0; cacheindex < ps->ps_nsets; cacheindex++) { in poll_common()
449 if (pcset[cacheindex].pcs_usradr == (uintptr_t)fds) { in poll_common()
450 if ((++pcset[cacheindex].pcs_count) == 0) { in poll_common()
454 pcacheset_reset_count(ps, cacheindex); in poll_common()
465 cacheindex); in poll_common()
480 if (pcset[cacheindex].pcs_usradr == NULL) { in poll_common()
486 cacheindex); in poll_common()
494 if (cacheindex == ps->ps_nsets) { in poll_common()
500 cacheindex = pcacheset_replace(ps); in poll_common()
501 ASSERT(cacheindex < ps->ps_nsets); in poll_common()
502 pcset[cacheindex].pcs_usradr = (uintptr_t)fds; in poll_common()
503 error = pcacheset_resolve(ps, nfds, &fdcnt, cacheindex); in poll_common()
524 error = pcache_poll(pollfdp, ps, nfds, &fdcnt, cacheindex); in poll_common()
2481 int cacheindex, int flag) in pcacheset_remove_list() argument
2489 if (pcache_delete_fd(ps, pollfdp[i].fd, i, cacheindex, in pcacheset_remove_list()
2498 (ssize_t)j, cacheindex); in pcacheset_remove_list()
2548 pollcheckxref(pollstate_t *ps, int cacheindex) in pollcheckxref() argument
2550 pollfd_t *pollfdp = ps->ps_pcacheset[cacheindex].pcs_pollfd; in pollcheckxref()
2556 for (i = 0; i < ps->ps_pcacheset[cacheindex].pcs_nfds; i++) { in pollcheckxref()
2563 refp = &pdp->pd_ref[cacheindex]; in pollcheckxref()
2572 j < ps->ps_pcacheset[cacheindex].pcs_nfds; in pollcheckxref()
2656 pollcheckrevents(pollstate_t *ps, int begin, int end, int cacheindex) in pollcheckrevents() argument
2672 refp = &pdp->pd_ref[cacheindex]; in pollcheckrevents()