Lines Matching refs:hq

1065 	nfsidhq_t	*hq = NULL;  in nfs_idmap_cache_create()  local
1070 for (i = 0, hq = cip->table; i < NFSID_CACHE_ANCHORS; i++, hq++) { in nfs_idmap_cache_create()
1071 hq->hq_que_forw = hq; in nfs_idmap_cache_create()
1072 hq->hq_que_back = hq; in nfs_idmap_cache_create()
1073 mutex_init(&(hq->hq_lock), NULL, MUTEX_DEFAULT, NULL); in nfs_idmap_cache_create()
1093 nfsidhq_t *hq; in nfs_idmap_cache_destroy() local
1103 for (i = 0, hq = cip->table; i < NFSID_CACHE_ANCHORS; i++, hq++) in nfs_idmap_cache_destroy()
1104 mutex_destroy(&(hq->hq_lock)); in nfs_idmap_cache_destroy()
1172 nfsidhq_t *hq; in nfs_idmap_cache_flush() local
1174 for (i = 0, hq = cip->table; i < NFSID_CACHE_ANCHORS; i++, hq++) { in nfs_idmap_cache_flush()
1176 mutex_enter(&(hq->hq_lock)); in nfs_idmap_cache_flush()
1182 p = hq->hq_lru_forw; in nfs_idmap_cache_flush()
1183 hq->hq_que_forw = hq; in nfs_idmap_cache_flush()
1184 hq->hq_que_back = hq; in nfs_idmap_cache_flush()
1186 mutex_exit(&(hq->hq_lock)); in nfs_idmap_cache_flush()
1193 while (p != (nfsidmap_t *)hq) { in nfs_idmap_cache_flush()
1207 nfsidhq_t *hq; in nfs_idmap_cache_reclaim() local
1220 for (i = 0, hq = cip->table; i < NFSID_CACHE_ANCHORS; i++, hq++) { in nfs_idmap_cache_reclaim()
1221 if (!mutex_tryenter(&(hq->hq_lock))) in nfs_idmap_cache_reclaim()
1227 for (p = hq->hq_lru_back; p != (nfsidmap_t *)hq; p = pprev) { in nfs_idmap_cache_reclaim()
1240 mutex_exit(&(hq->hq_lock)); in nfs_idmap_cache_reclaim()
1282 nfsidhq_t *hq; in nfs_idmap_cache_s2i_lkup() local
1298 hq = &cip->table[*hashno]; in nfs_idmap_cache_s2i_lkup()
1303 mutex_enter(&(hq->hq_lock)); in nfs_idmap_cache_s2i_lkup()
1304 for (p = hq->hq_lru_forw; p != (nfsidmap_t *)hq; p = pnext) { in nfs_idmap_cache_s2i_lkup()
1329 insque(p, hq); in nfs_idmap_cache_s2i_lkup()
1337 mutex_exit(&(hq->hq_lock)); in nfs_idmap_cache_s2i_lkup()
1364 nfsidhq_t *hq; in nfs_idmap_cache_s2i_insert() local
1391 hq = &cip->table[hashno]; in nfs_idmap_cache_s2i_insert()
1399 mutex_enter(&(hq->hq_lock)); in nfs_idmap_cache_s2i_insert()
1400 for (p = hq->hq_lru_forw; p != (nfsidmap_t *)hq; p = pnext) { in nfs_idmap_cache_s2i_insert()
1424 insque(p, hq); in nfs_idmap_cache_s2i_insert()
1427 mutex_exit(&(hq->hq_lock)); in nfs_idmap_cache_s2i_insert()
1443 insque(newp, hq); in nfs_idmap_cache_s2i_insert()
1445 mutex_exit(&(hq->hq_lock)); in nfs_idmap_cache_s2i_insert()
1467 nfsidhq_t *hq; in nfs_idmap_cache_i2s_lkup() local
1475 hq = &cip->table[hash]; in nfs_idmap_cache_i2s_lkup()
1480 mutex_enter(&(hq->hq_lock)); in nfs_idmap_cache_i2s_lkup()
1481 for (p = hq->hq_lru_forw; p != (nfsidmap_t *)hq; p = pnext) { in nfs_idmap_cache_i2s_lkup()
1507 insque(p, hq); in nfs_idmap_cache_i2s_lkup()
1514 mutex_exit(&(hq->hq_lock)); in nfs_idmap_cache_i2s_lkup()
1537 nfsidhq_t *hq; in nfs_idmap_cache_i2s_insert() local
1556 hq = &cip->table[hashno]; in nfs_idmap_cache_i2s_insert()
1564 mutex_enter(&(hq->hq_lock)); in nfs_idmap_cache_i2s_insert()
1565 for (p = hq->hq_lru_forw; p != (nfsidmap_t *)hq; p = pnext) { in nfs_idmap_cache_i2s_insert()
1586 insque(p, hq); in nfs_idmap_cache_i2s_insert()
1589 mutex_exit(&(hq->hq_lock)); in nfs_idmap_cache_i2s_insert()
1603 insque(newp, hq); in nfs_idmap_cache_i2s_insert()
1605 mutex_exit(&(hq->hq_lock)); in nfs_idmap_cache_i2s_insert()