HomeSort by: relevance | last modified time | path
    Searched defs:nref (Results 1 - 12 of 12) sorted by relevancy

  /src/sys/ufs/chfs/
chfs_build.c 84 chfs_mark_node_obsolete(chmp, fd->nref);
114 struct chfs_node_ref *nref; local in function:chfs_build_remove_unlinked_vnode
121 nref = vc->dnode;
123 while (nref != (struct chfs_node_ref *)vc) {
124 struct chfs_node_ref *next = nref->nref_next;
126 chfs_mark_node_obsolete(chmp, nref);
127 nref = next;
130 nref = vc->dirents;
132 while (nref != (struct chfs_node_ref *)vc) {
133 struct chfs_node_ref *next = nref->nref_next
213 struct chfs_node_ref **nref; local in function:chfs_build_filesystem
    [all...]
chfs_wbuf.c 63 struct chfs_node_ref *nref; local in function:chfs_flush_wbuf
86 nref = chfs_alloc_node_ref(chmp->chm_nextblock);
87 nref->nref_offset = chmp->chm_wbuf_ofs + chmp->chm_wbuf_len;
88 nref->nref_offset = CHFS_GET_OFS(nref->nref_offset) |
chfs_write.c 52 struct chfs_node_ref *nref; local in function:chfs_write_flash_vnode
105 nref = chfs_alloc_node_ref(chmp->chm_nextblock);
106 if (!nref) {
114 nref->nref_offset = chmp->chm_ebh->eb_size - chmp->chm_nextblock->free_size;
120 err = chfs_write_wbuf(chmp, &vec, 1, nref->nref_offset, &retlen);
142 &chmp->chm_blocks[nref->nref_lnr], CHFS_PAD(size));
145 /* add the new nref to vnode cache */
147 chfs_add_vnode_ref_to_vc(chmp, chvc, nref);
149 KASSERT(chmp->chm_blocks[nref->nref_lnr].used_size <= chmp->chm_ebh->eb_size);
164 struct chfs_node_ref *nref; local in function:chfs_write_flash_dirent
287 struct chfs_node_ref *nref; local in function:chfs_write_flash_dnode
474 struct chfs_node_ref *nref; local in function:chfs_do_unlink
    [all...]
chfs_malloc.c 191 struct chfs_node_ref *nref; local in function:chfs_alloc_refblock
192 nref = pool_cache_get(chfs_nrefs_cache, PR_WAITOK);
195 nref[i].nref_lnr = REF_EMPTY_NODE;
196 nref[i].nref_next = NULL;
199 nref[i].nref_lnr = REF_LINK_TO_NEXT;
200 nref[i].nref_next = NULL;
202 return nref;
207 chfs_free_refblock(struct chfs_node_ref *nref)
209 pool_cache_put(chfs_nrefs_cache, nref);
221 struct chfs_node_ref *nref, *new, *old __diagused local in function:chfs_alloc_node_ref
258 struct chfs_node_ref *nref, *block; local in function:chfs_free_node_refs
    [all...]
chfs_nodeops.c 152 * chfs_remove_and_obsolete - removes a node from a list and obsoletes the nref
194 if (fd->nref) {
196 chfs_remove_and_obsolete(chmp, parent->chvc, fd->nref,
203 chfs_mark_node_obsolete(chmp, new->nref);
221 struct chfs_node_ref *nref; local in function:chfs_add_vnode_ref_to_vc
225 nref = vc->v;
226 chfs_remove_and_obsolete(chmp, vc, nref, &vc->v);
233 /* chfs_nref_next - step to the next in-memory nref */
235 chfs_nref_next(struct chfs_node_ref *nref)
237 nref++
425 struct chfs_node_ref *nref; local in function:chfs_close_eraseblock
    [all...]
chfs_scan.c 108 struct chfs_node_ref *nref; local in function:chfs_scan_check_vnode
140 nref = chfs_alloc_node_ref(cheb);
142 nref->nref_offset = ofs;
144 KASSERT(nref->nref_lnr == cheb->lnr);
150 chfs_add_vnode_ref_to_vc(chmp, vc, nref);
160 chfs_add_vnode_ref_to_vc(chmp, vc, nref);
183 struct chfs_node_ref *prev, *nref; local in function:chfs_scan_mark_dirent_obsolete
185 nref = fd->nref;
186 cheb = &chmp->chm_blocks[fd->nref->nref_lnr]
357 struct chfs_node_ref *nref; local in function:chfs_scan_check_data_node
438 struct chfs_node_ref *nref; local in function:chfs_scan_eraseblock
    [all...]
chfs_gc.c 308 struct chfs_node_ref *nref; local in function:chfs_clear_inode
322 nref = chvc->v;
323 chfs_remove_and_obsolete(chmp, chvc, nref, &chvc->v);
425 struct chfs_node_ref *nref; local in function:chfs_gcollect_pass
545 nref = eb->gc_node;
550 while(CHFS_REF_OBSOLETE(nref)) {
552 if (nref == chmp->chm_blocks[nref->nref_lnr].last_node) {
556 nref = node_next(nref);
992 struct chfs_node_ref *nref; local in function:chfs_gcollect_deletion_dirent
1079 struct chfs_node_ref *nref; local in function:chfs_gcollect_dnode
    [all...]
chfs_vfsops.c 477 struct chfs_node_ref* nref = NULL; local in function:chfs_loadvnode
555 nref = chvc->dirents;
556 while (nref &&
557 (struct chfs_vnode_cache *)nref != chvc) {
558 chfs_readdirent(mp, nref, ip);
559 nref = nref->nref_next;
chfs_readinode.c 149 struct chfs_node_ref *nref = td->node->nref; local in function:chfs_check_td_data
154 ofs = CHFS_GET_OFS(nref->nref_offset) + sizeof(struct chfs_flash_data_node);
161 err = chfs_read_leb(chmp, nref->nref_lnr, buf, ofs, len, &retlen);
183 CHFS_MARK_REF_NORMAL(nref);
187 chfs_change_size_unchecked(chmp, &chmp->chm_blocks[nref->nref_lnr], -totlen);
188 chfs_change_size_used(chmp, &chmp->chm_blocks[nref->nref_lnr], totlen);
190 KASSERT(chmp->chm_blocks[nref->nref_lnr].used_size <= chmp->chm_ebh->eb_size);
204 if (CHFS_REF_FLAGS(td->node->nref) != CHFS_UNCHECKED_NODE_MASK)
213 * returns the first valid nref after the given nre
791 struct chfs_node_ref *nref; local in function:chfs_get_data_nodes
1110 struct chfs_node_ref *nref; local in function:chfs_read_data
    [all...]
chfs.h 135 uint32_t nref_lnr; /* nref's LEB number */
136 uint32_t nref_offset; /* nref's offset */
147 /* node masks - last two bits of the nodes ("state" of an nref) */
169 node_next(struct chfs_node_ref *nref)
171 /* step to the next nref in the same block */
172 nref++;
175 if (nref->nref_lnr == REF_LINK_TO_NEXT) {
176 nref = nref->nref_next;
177 if (!nref)
192 struct chfs_node_ref *nref; \/* nref of the dirent *\/ member in struct:chfs_dirent
227 struct chfs_node_ref *nref; \/* nref of the node *\/ member in struct:chfs_full_dnode
    [all...]
  /src/sys/external/bsd/libnv/dist/
nv_kern_netbsd.c 74 nvlist_copyin(const nvlist_ref_t *nref, nvlist_t **nvlp, size_t lim)
76 const size_t len = nref->len;
88 error = copyin(nref->buf, buf, len);
93 flags = nref->flags & (NV_FLAG_IGNORE_CASE | NV_FLAG_NO_UNIQUE);
104 nvlist_copyout(nvlist_ref_t *nref, const nvlist_t *nvl)
133 nref->flags = nvlist_flags(nvl);
134 nref->buf = uaddr;
135 nref->len = len;
147 nvlist_ref_t nref; local in function:nvlist_xfer_ioctl
150 memset(&nref, 0, sizeof(nvlist_ref_t))
    [all...]
  /src/sys/uvm/
uvm_pdpolicy_clockpro.c 1508 int ncold, nhot, ntest, nspeculative, ninitialref, nref; local in function:clockpro_dump
1516 ncold = nhot = ntest = nspeculative = ninitialref = nref = 0
1533 nref++; \
1539 "nref=%d\n", \
1540 (name), nhot, ncold, ntest, nspeculative, ninitialref, nref)

Completed in 18 milliseconds