Home
last modified time | relevance | path

Searched refs:nref (Results 1 – 25 of 26) sorted by relevance

12

/netbsd-src/sys/ufs/chfs/
H A Dchfs_malloc.c191 struct chfs_node_ref *nref; in chfs_alloc_refblock() local
192 nref = pool_cache_get(chfs_nrefs_cache, PR_WAITOK); in chfs_alloc_refblock()
195 nref[i].nref_lnr = REF_EMPTY_NODE; in chfs_alloc_refblock()
196 nref[i].nref_next = NULL; in chfs_alloc_refblock()
199 nref[i].nref_lnr = REF_LINK_TO_NEXT; in chfs_alloc_refblock()
200 nref[i].nref_next = NULL; in chfs_alloc_refblock()
202 return nref; in chfs_alloc_refblock()
207 chfs_free_refblock(struct chfs_node_ref *nref) in chfs_free_refblock() argument
209 pool_cache_put(chfs_nrefs_cache, nref); in chfs_free_refblock()
221 struct chfs_node_ref *nref, *new, *old __diagused; in chfs_alloc_node_ref() local
[all …]
H A Dchfs_gc.c308 struct chfs_node_ref *nref; in chfs_clear_inode() local
322 nref = chvc->v; in chfs_clear_inode()
323 chfs_remove_and_obsolete(chmp, chvc, nref, &chvc->v); in chfs_clear_inode()
425 struct chfs_node_ref *nref; in chfs_gcollect_pass() local
545 nref = eb->gc_node; in chfs_gcollect_pass()
550 while(CHFS_REF_OBSOLETE(nref)) { in chfs_gcollect_pass()
552 if (nref == chmp->chm_blocks[nref->nref_lnr].last_node) { in chfs_gcollect_pass()
556 nref = node_next(nref); in chfs_gcollect_pass()
557 if (!nref) { in chfs_gcollect_pass()
558 eb->gc_node = nref; in chfs_gcollect_pass()
[all …]
H A Dchfs_write.c52 struct chfs_node_ref *nref; in chfs_write_flash_vnode() local
105 nref = chfs_alloc_node_ref(chmp->chm_nextblock); in chfs_write_flash_vnode()
106 if (!nref) { in chfs_write_flash_vnode()
114 nref->nref_offset = chmp->chm_ebh->eb_size - chmp->chm_nextblock->free_size; in chfs_write_flash_vnode()
120 err = chfs_write_wbuf(chmp, &vec, 1, nref->nref_offset, &retlen); in chfs_write_flash_vnode()
142 &chmp->chm_blocks[nref->nref_lnr], CHFS_PAD(size)); in chfs_write_flash_vnode()
147 chfs_add_vnode_ref_to_vc(chmp, chvc, nref); in chfs_write_flash_vnode()
149 KASSERT(chmp->chm_blocks[nref->nref_lnr].used_size <= chmp->chm_ebh->eb_size); in chfs_write_flash_vnode()
164 struct chfs_node_ref *nref; in chfs_write_flash_dirent() local
224 nref = chfs_alloc_node_ref(chmp->chm_nextblock); in chfs_write_flash_dirent()
[all …]
H A Dchfs_readinode.c149 struct chfs_node_ref *nref = td->node->nref; in chfs_check_td_data() local
154 ofs = CHFS_GET_OFS(nref->nref_offset) + sizeof(struct chfs_flash_data_node); in chfs_check_td_data()
161 err = chfs_read_leb(chmp, nref->nref_lnr, buf, ofs, len, &retlen); in chfs_check_td_data()
183 CHFS_MARK_REF_NORMAL(nref); in chfs_check_td_data()
187 chfs_change_size_unchecked(chmp, &chmp->chm_blocks[nref->nref_lnr], -totlen); in chfs_check_td_data()
188 chfs_change_size_used(chmp, &chmp->chm_blocks[nref->nref_lnr], totlen); in chfs_check_td_data()
190 KASSERT(chmp->chm_blocks[nref->nref_lnr].used_size <= chmp->chm_ebh->eb_size); in chfs_check_td_data()
204 if (CHFS_REF_FLAGS(td->node->nref) != CHFS_UNCHECKED_NODE_MASK) in chfs_check_td_node()
216 chfs_first_valid_data_ref(struct chfs_node_ref *nref) in chfs_first_valid_data_ref() argument
218 while (nref) { in chfs_first_valid_data_ref()
[all …]
H A Dchfs_nodeops.c194 if (fd->nref) { in chfs_add_fd_to_inode()
196 chfs_remove_and_obsolete(chmp, parent->chvc, fd->nref, in chfs_add_fd_to_inode()
203 chfs_mark_node_obsolete(chmp, new->nref); in chfs_add_fd_to_inode()
221 struct chfs_node_ref *nref; in chfs_add_vnode_ref_to_vc() local
225 nref = vc->v; in chfs_add_vnode_ref_to_vc()
226 chfs_remove_and_obsolete(chmp, vc, nref, &vc->v); in chfs_add_vnode_ref_to_vc()
235 chfs_nref_next(struct chfs_node_ref *nref) in chfs_nref_next() argument
237 nref++; in chfs_nref_next()
238 if (nref->nref_lnr == REF_LINK_TO_NEXT) { in chfs_nref_next()
240 if (!nref->nref_next) in chfs_nref_next()
[all …]
H A Dchfs_build.c84 chfs_mark_node_obsolete(chmp, fd->nref); in chfs_build_set_vnodecache_nlink()
114 struct chfs_node_ref *nref; in chfs_build_remove_unlinked_vnode() local
121 nref = vc->dnode; in chfs_build_remove_unlinked_vnode()
123 while (nref != (struct chfs_node_ref *)vc) { in chfs_build_remove_unlinked_vnode()
124 struct chfs_node_ref *next = nref->nref_next; in chfs_build_remove_unlinked_vnode()
126 chfs_mark_node_obsolete(chmp, nref); in chfs_build_remove_unlinked_vnode()
127 nref = next; in chfs_build_remove_unlinked_vnode()
130 nref = vc->dirents; in chfs_build_remove_unlinked_vnode()
132 while (nref != (struct chfs_node_ref *)vc) { in chfs_build_remove_unlinked_vnode()
133 struct chfs_node_ref *next = nref->nref_next; in chfs_build_remove_unlinked_vnode()
[all …]
H A Dchfs_scan.c108 struct chfs_node_ref *nref; in chfs_scan_check_vnode() local
140 nref = chfs_alloc_node_ref(cheb); in chfs_scan_check_vnode()
142 nref->nref_offset = ofs; in chfs_scan_check_vnode()
144 KASSERT(nref->nref_lnr == cheb->lnr); in chfs_scan_check_vnode()
150 chfs_add_vnode_ref_to_vc(chmp, vc, nref); in chfs_scan_check_vnode()
160 chfs_add_vnode_ref_to_vc(chmp, vc, nref); in chfs_scan_check_vnode()
183 struct chfs_node_ref *prev, *nref; in chfs_scan_mark_dirent_obsolete() local
185 nref = fd->nref; in chfs_scan_mark_dirent_obsolete()
186 cheb = &chmp->chm_blocks[fd->nref->nref_lnr]; in chfs_scan_mark_dirent_obsolete()
190 if (prev && prev == nref) { in chfs_scan_mark_dirent_obsolete()
[all …]
H A Dchfs.h169 node_next(struct chfs_node_ref *nref) in node_next() argument
172 nref++; in node_next()
175 if (nref->nref_lnr == REF_LINK_TO_NEXT) { in node_next()
176 nref = nref->nref_next; in node_next()
177 if (!nref) in node_next()
178 return nref; in node_next()
182 if (nref->nref_lnr == REF_EMPTY_NODE) { in node_next()
186 return nref; in node_next()
192 struct chfs_node_ref *nref; /* nref of the dirent */ member
227 struct chfs_node_ref *nref; /* nref of the node */ member
[all …]
H A Dchfs_wbuf.c63 struct chfs_node_ref *nref; in chfs_flush_wbuf() local
86 nref = chfs_alloc_node_ref(chmp->chm_nextblock); in chfs_flush_wbuf()
87 nref->nref_offset = chmp->chm_wbuf_ofs + chmp->chm_wbuf_len; in chfs_flush_wbuf()
88 nref->nref_offset = CHFS_GET_OFS(nref->nref_offset) | in chfs_flush_wbuf()
H A Dchfs_vfsops.c477 struct chfs_node_ref* nref = NULL; in chfs_loadvnode() local
555 nref = chvc->dirents; in chfs_loadvnode()
556 while (nref && in chfs_loadvnode()
557 (struct chfs_vnode_cache *)nref != chvc) { in chfs_loadvnode()
558 chfs_readdirent(mp, nref, ip); in chfs_loadvnode()
559 nref = nref->nref_next; in chfs_loadvnode()
H A Dchfs_vnode.c184 fd->nref = chnr; in chfs_readdirent()
/netbsd-src/sys/external/bsd/libnv/dist/
H A Dnv_kern_netbsd.c74 nvlist_copyin(const nvlist_ref_t *nref, nvlist_t **nvlp, size_t lim) in nvlist_copyin() argument
76 const size_t len = nref->len; in nvlist_copyin()
88 error = copyin(nref->buf, buf, len); in nvlist_copyin()
93 flags = nref->flags & (NV_FLAG_IGNORE_CASE | NV_FLAG_NO_UNIQUE); in nvlist_copyin()
104 nvlist_copyout(nvlist_ref_t *nref, const nvlist_t *nvl) in nvlist_copyout() argument
133 nref->flags = nvlist_flags(nvl); in nvlist_copyout()
134 nref->buf = uaddr; in nvlist_copyout()
135 nref->len = len; in nvlist_copyout()
147 nvlist_ref_t nref; in nvlist_xfer_ioctl() local
150 memset(&nref, in nvlist_xfer_ioctl()
[all...]
H A Dnv.h268 int nvlist_copyin(const nvlist_ref_t *nref, nvlist_t **nvlp, size_t lim);
269 int nvlist_copyout(nvlist_ref_t *nref, const nvlist_t *nvl);
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/x509v3/
H A Dv3_cpols.c315 NOTICEREF *nref; in notice_section() local
317 if ((nref = NOTICEREF_new()) == NULL) in notice_section()
319 not->noticeref = nref; in notice_section()
321 nref = not->noticeref; in notice_section()
323 nref->organization->type = V_ASN1_IA5STRING; in notice_section()
325 nref->organization->type = V_ASN1_VISIBLESTRING; in notice_section()
326 if (!ASN1_STRING_set(nref->organization, cnf->value, in notice_section()
330 NOTICEREF *nref; in notice_section() local
333 if ((nref = NOTICEREF_new()) == NULL) in notice_section()
335 not->noticeref = nref; in notice_section()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/x509/
H A Dv3_cpols.c313 NOTICEREF *nref; in notice_section() local
316 if ((nref = NOTICEREF_new()) == NULL) in notice_section()
318 not->noticeref = nref; in notice_section()
320 nref = not->noticeref; in notice_section()
322 nref->organization->type = V_ASN1_IA5STRING; in notice_section()
324 nref->organization->type = V_ASN1_VISIBLESTRING; in notice_section()
325 if (!ASN1_STRING_set(nref->organization, cnf->value, in notice_section()
329 NOTICEREF *nref; in notice_section() local
333 if ((nref = NOTICEREF_new()) == NULL) in notice_section()
335 not->noticeref = nref; in notice_section()
[all …]
/netbsd-src/external/gpl2/texinfo/dist/makeinfo/
H A Dnode.c1532 NODE_REF *nref; in validate_file() local
1538 nref = find_node_reference (tags->node, list); in validate_file()
1539 if (!nref) in validate_file()
1542 if (strcmp (nref->containing_node, tags->up) == 0) in validate_file()
1544 if (nref->type != menu_reference) in validate_file()
1546 tref = nref; in validate_file()
1547 list = nref->next; in validate_file()
1552 list = nref->next; in validate_file()
1555 if (!nref) in validate_file()
1570 nref = find_node_reference (tags->node, list); in validate_file()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/regex/internal/
H A Dparser.d969 uint nref = cast(uint) front - '0'; in parseEscape() local
971 enforce(nref < maxBackref, "Backref to unseen group"); in parseEscape()
975 while (nref < maxBackref && !empty && std.ascii.isDigit(front)) in parseEscape()
977 nref = nref * 10 + front - '0'; in parseEscape()
980 if (nref >= maxBackref) in parseEscape()
981 nref /= 10; in parseEscape()
982 enforce(!g.isOpenGroup(nref), "Backref to open group"); in parseEscape()
984 if (nref >= localLimit) in parseEscape()
986 g.put(Bytecode(IR.Backref, nref-localLimit)); in parseEscape()
990 g.put(Bytecode(IR.Backref, nref)); in parseEscape()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/regex/internal/
H A Dparser.d1477 uint nref = cast(uint) current - '0'; in parseEscape() local
1479 enforce(nref < maxBackref, "Backref to unseen group"); in parseEscape()
1482 while (nref < maxBackref && next() && std.ascii.isDigit(current)) in parseEscape()
1484 nref = nref * 10 + current - '0'; in parseEscape()
1486 if (nref >= maxBackref) in parseEscape()
1487 nref /= 10; in parseEscape()
1488 enforce(!g.isOpenGroup(nref), "Backref to open group"); in parseEscape()
1490 if (nref >= localLimit) in parseEscape()
1492 g.put(Bytecode(IR.Backref, nref-localLimit)); in parseEscape()
1496 g.put(Bytecode(IR.Backref, nref)); in parseEscape()
[all …]
/netbsd-src/sys/uvm/
H A Duvm_pdpolicy_clockpro.c1508 int ncold, nhot, ntest, nspeculative, ninitialref, nref; in clockpro_dump() local
1516 ncold = nhot = ntest = nspeculative = ninitialref = nref = 0 in clockpro_dump()
1533 nref++; \ in clockpro_dump()
1540 (name), nhot, ncold, ntest, nspeculative, ninitialref, nref) in clockpro_dump()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dlto-cgraph.c672 int nref; in lto_output_ref() local
680 nref = lto_symtab_encoder_lookup (encoder, ref->referred); in lto_output_ref()
681 gcc_assert (nref != LCC_NOT_FOUND); in lto_output_ref()
682 streamer_write_hwi_stream (ob->main_stream, nref); in lto_output_ref()
H A Dtree-sra.c3300 tree nref = build3 (COMPONENT_REF, ft, root->expr, fld, NULL_TREE); in totally_scalarize_subtree() local
3302 = create_total_access_and_reshape (root, pos, fsize, ft, nref, p); in totally_scalarize_subtree()
3361 tree nref = build4 (ARRAY_REF, elemtype, root->expr, in totally_scalarize_subtree() local
3366 nref, p); in totally_scalarize_subtree()
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dlto-cgraph.cc678 int nref; in lto_output_ref() local
686 nref = lto_symtab_encoder_lookup (encoder, ref->referred); in lto_output_ref()
687 gcc_assert (nref != LCC_NOT_FOUND); in lto_output_ref()
688 streamer_write_hwi_stream (ob->main_stream, nref); in lto_output_ref()
H A Dtree-sra.cc3347 tree nref = build3 (COMPONENT_REF, ft, root->expr, fld, NULL_TREE); in totally_scalarize_subtree() local
3349 = create_total_access_and_reshape (root, pos, fsize, ft, nref, p); in totally_scalarize_subtree()
3408 tree nref = build4 (ARRAY_REF, elemtype, root->expr, in totally_scalarize_subtree() local
3413 nref, p); in totally_scalarize_subtree()
H A Dipa-modref.cc3608 size_t nref = streamer_read_uhwi (ib); in read_modref_records() local
3610 gcc_assert (!every_ref || nref == 0); in read_modref_records()
3618 for (size_t j = 0; j < nref; j++) in read_modref_records()
/netbsd-src/external/gpl3/gcc/dist/gcc/fortran/
H A Dresolve.cc9329 gfc_ref *nref = (*expr1)->ref; in fixup_array_ref() local
9350 for (; nref; nref = nref->next) in fixup_array_ref()
9351 if (nref->next == NULL) in fixup_array_ref()
9354 if (ref && nref && nref->type != REF_ARRAY) in fixup_array_ref()
9355 nref->next = gfc_copy_ref (ref); in fixup_array_ref()
9356 else if (ref && !nref) in fixup_array_ref()

12