Lines Matching refs:cacheindex
338 int cacheindex = 0; /* which cache set is used */ in poll_common() local
467 error = pcacheset_cache_list(ps, fds, &fdcnt, cacheindex); in poll_common()
479 for (cacheindex = 0; cacheindex < ps->ps_nsets; cacheindex++) { in poll_common()
480 if (pcset[cacheindex].pcs_usradr == (uintptr_t)fds) { in poll_common()
481 if ((++pcset[cacheindex].pcs_count) == 0) { in poll_common()
485 pcacheset_reset_count(ps, cacheindex); in poll_common()
496 cacheindex); in poll_common()
511 if (pcset[cacheindex].pcs_usradr == NULL) { in poll_common()
517 cacheindex); in poll_common()
525 if (cacheindex == ps->ps_nsets) { in poll_common()
531 cacheindex = pcacheset_replace(ps); in poll_common()
532 ASSERT(cacheindex < ps->ps_nsets); in poll_common()
533 pcset[cacheindex].pcs_usradr = (uintptr_t)fds; in poll_common()
534 error = pcacheset_resolve(ps, nfds, &fdcnt, cacheindex); in poll_common()
555 error = pcache_poll(pollfdp, ps, nfds, &fdcnt, cacheindex); in poll_common()
2720 int cacheindex, int flag) in pcacheset_remove_list() argument
2728 if (pcache_delete_fd(ps, pollfdp[i].fd, i, cacheindex, in pcacheset_remove_list()
2737 (ssize_t)j, cacheindex); in pcacheset_remove_list()
2787 pollcheckxref(pollstate_t *ps, int cacheindex) in pollcheckxref() argument
2789 pollfd_t *pollfdp = ps->ps_pcacheset[cacheindex].pcs_pollfd; in pollcheckxref()
2795 for (i = 0; i < ps->ps_pcacheset[cacheindex].pcs_nfds; i++) { in pollcheckxref()
2802 refp = &pdp->pd_ref[cacheindex]; in pollcheckxref()
2811 j < ps->ps_pcacheset[cacheindex].pcs_nfds; in pollcheckxref()
2895 pollcheckrevents(pollstate_t *ps, int begin, int end, int cacheindex) in pollcheckrevents() argument
2911 refp = &pdp->pd_ref[cacheindex]; in pollcheckrevents()