Lines Matching defs:dcap
1145 dnlc_dir_lookup(dcanchor_t *dcap, const char *name, uint64_t *handle)
1156 if (!VALID_DIR_CACHE(dcap->dca_dircache)) {
1165 mutex_enter(&dcap->dca_lock);
1166 dcp = (dircache_t *)dcap->dca_dircache;
1176 mutex_exit(&dcap->dca_lock);
1187 mutex_exit(&dcap->dca_lock);
1190 mutex_exit(&dcap->dca_lock);
1202 dnlc_dir_start(dcanchor_t *dcap, uint_t num_entries)
1216 mutex_enter(&dcap->dca_lock);
1218 if (dcap->dca_dircache == DC_RET_LOW_MEM) {
1219 dcap->dca_dircache = NULL;
1220 mutex_exit(&dcap->dca_lock);
1229 if (dcap->dca_dircache != NULL) {
1230 mutex_exit(&dcap->dca_lock);
1252 dcp->dc_anchor = dcap; /* set back pointer to anchor */
1253 dcap->dca_dircache = dcp;
1261 mutex_exit(&dcap->dca_lock);
1276 mutex_exit(&dcap->dca_lock);
1286 dnlc_dir_add_entry(dcanchor_t *dcap, const char *name, uint64_t handle)
1328 mutex_enter(&dcap->dca_lock);
1329 dcp = (dircache_t *)dcap->dca_dircache;
1332 dcap->dca_dircache = DC_RET_LOW_MEM;
1334 mutex_exit(&dcap->dca_lock);
1345 mutex_enter(&dcap->dca_lock);
1346 dcp = (dircache_t *)dcap->dca_dircache;
1354 mutex_exit(&dcap->dca_lock);
1355 dnlc_dir_purge(dcap);
1388 mutex_exit(&dcap->dca_lock);
1392 mutex_exit(&dcap->dca_lock);
1402 dnlc_dir_add_space(dcanchor_t *dcap, uint_t len, uint64_t handle)
1436 mutex_enter(&dcap->dca_lock);
1437 dcp = (dircache_t *)dcap->dca_dircache;
1440 dcap->dca_dircache = DC_RET_LOW_MEM;
1442 mutex_exit(&dcap->dca_lock);
1454 mutex_enter(&dcap->dca_lock);
1455 dcp = (dircache_t *)dcap->dca_dircache;
1459 mutex_exit(&dcap->dca_lock);
1460 dnlc_dir_purge(dcap);
1480 mutex_exit(&dcap->dca_lock);
1484 mutex_exit(&dcap->dca_lock);
1494 dnlc_dir_complete(dcanchor_t *dcap)
1498 mutex_enter(&dcap->dca_lock);
1499 dcp = (dircache_t *)dcap->dca_dircache;
1503 mutex_exit(&dcap->dca_lock);
1559 dnlc_dir_purge(dcanchor_t *dcap)
1564 mutex_enter(&dcap->dca_lock);
1565 dcp = (dircache_t *)dcap->dca_dircache;
1567 mutex_exit(&dcap->dca_lock);
1571 dcap->dca_dircache = NULL;
1577 mutex_exit(&dcap->dca_lock);
1587 dnlc_dir_rem_entry(dcanchor_t *dcap, const char *name, uint64_t *handlep)
1600 mutex_enter(&dcap->dca_lock);
1601 dcp = (dircache_t *)dcap->dca_dircache;
1633 mutex_exit(&dcap->dca_lock);
1634 dnlc_dir_purge(dcap);
1636 mutex_exit(&dcap->dca_lock);
1649 mutex_exit(&dcap->dca_lock);
1652 mutex_exit(&dcap->dca_lock);
1663 dnlc_dir_rem_space_by_len(dcanchor_t *dcap, uint_t len, uint64_t *handlep)
1676 mutex_enter(&dcap->dca_lock);
1677 dcp = (dircache_t *)dcap->dca_dircache;
1701 mutex_exit(&dcap->dca_lock);
1715 mutex_exit(&dcap->dca_lock);
1718 mutex_exit(&dcap->dca_lock);
1728 dnlc_dir_rem_space_by_handle(dcanchor_t *dcap, uint64_t handle)
1739 mutex_enter(&dcap->dca_lock);
1740 dcp = (dircache_t *)dcap->dca_dircache;
1761 mutex_exit(&dcap->dca_lock);
1774 mutex_exit(&dcap->dca_lock);
1777 mutex_exit(&dcap->dca_lock);
1786 dnlc_dir_update(dcanchor_t *dcap, const char *name, uint64_t handle)
1798 mutex_enter(&dcap->dca_lock);
1799 dcp = (dircache_t *)dcap->dca_dircache;
1809 mutex_exit(&dcap->dca_lock);
1820 mutex_exit(&dcap->dca_lock);
1823 mutex_exit(&dcap->dca_lock);
1829 dnlc_dir_fini(dcanchor_t *dcap)
1834 mutex_enter(&dcap->dca_lock);
1835 dcp = (dircache_t *)dcap->dca_dircache;
1846 dcap->dca_dircache = NULL;
1847 mutex_exit(&dcap->dca_lock);
1849 mutex_destroy(&dcap->dca_lock);