Home
last modified time | relevance | path

Searched refs:dn (Results 1 – 25 of 120) sorted by relevance

12345

/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddnode.c141 memset(dn->dn_next_type, 0, sizeof (dn->dn_next_type)); in dnode_cons()
148 memset(dn->dn_next_blksz, 0, sizeof (dn->dn_next_blksz)); in dnode_cons()
401 ASSERT(dn->dn_handle->dnh_dnode == dn); in dnode_verify()
432 ASSERT3U(dn->dn_next_nlevels[i], <=, dn->dn_nlevels); in dnode_verify()
436 ASSERT3U(dn->dn_phys->dn_nlevels, <=, dn->dn_nlevels); in dnode_verify()
607 dmu_zfetch_init(&dn->dn_zfetch, dn); in dnode_create()
720 dn->dn_objset, (u_longlong_t)dn->dn_object, in dnode_allocate()
868 ASSERT(dn->dn_bonuslen <= dn->dn_bonus->db.db_size); in dnode_reallocate()
1304 cv_wait(&dn->dn_nodnholds, &dn->dn_mtx); in dnode_special_close()
1697 *dnp = dn; in dnode_hold_impl()
[all …]
H A Ddnode_sync.c57 db = dbuf_hold_level(dn, dn->dn_phys->dn_nlevels, 0, FTAG); in dnode_increase_indirection()
62 (u_longlong_t)dn->dn_object, dn->dn_phys->dn_nlevels); in dnode_increase_indirection()
73 children[i] = dbuf_find(dn->dn_objset, dn->dn_object, in dnode_increase_indirection()
182 dnode_t *dn; in free_verify() local
185 dn = DB_DNODE(db); in free_verify()
276 dnode_t *dn; in free_children() local
612 if (dn->dn_allocated_txg != dn->dn_free_txg) in dnode_sync_free()
614 memset(dn->dn_phys, 0, sizeof (dnode_phys_t) * dn->dn_num_slots); in dnode_sync_free()
665 dn->dn_oldused = DN_USED_BYTES(dn->dn_phys); in dnode_sync()
666 dn->dn_oldflags = dn->dn_phys->dn_flags; in dnode_sync()
[all …]
H A Ddmu_tx.c117 if (dn != NULL) { in dmu_tx_hold_dnode_impl()
162 if (dn != NULL) in dmu_tx_hold_object_impl()
240 if (dn == NULL) in dmu_tx_count_write()
263 if (P2PHASE(off, dn->dn_datablksz) || len < dn->dn_datablksz) { in dmu_tx_count_write()
310 if (dn == NULL) in dmu_tx_count_append()
445 if (off >= (dn->dn_maxblkid + 1) * dn->dn_datablksz) in dmu_tx_count_free()
448 len = (dn->dn_maxblkid + 1) * dn->dn_datablksz - off; in dmu_tx_count_free()
475 int shift = dn->dn_datablkshift + dn->dn_indblkshift - in dmu_tx_count_free()
596 if (dn == NULL) in dmu_tx_hold_zap_impl()
1276 cv_wait(&dn->dn_notxholds, &dn->dn_mtx); in dmu_tx_wait()
[all …]
H A Ddmu.c193 dnode_t *dn; in dmu_buf_hold_noread() local
276 dnode_t *dn; in dmu_set_bonus() local
299 dnode_t *dn; in dmu_set_bonustype() local
322 dnode_t *dn; in dmu_get_bonustype() local
336 dnode_t *dn; in dmu_rm_spill() local
404 dnode_t *dn; in dmu_bonus_hold() local
459 dnode_t *dn; in dmu_spill_hold_existing() local
489 dnode_t *dn; in dmu_spill_hold_by_bonus() local
548 (longlong_t)dn->dn_object, dn->dn_datablksz, in dmu_buf_hold_array_by_dnode()
650 dnode_t *dn; in dmu_buf_hold_array() local
[all …]
H A Ddmu_object.c277 dnode_t *dn; in dmu_object_claim_dnsize() local
290 FTAG, &dn); in dmu_object_claim_dnsize()
315 dnode_t *dn; in dmu_object_reclaim_dnsize() local
326 FTAG, &dn); in dmu_object_reclaim_dnsize()
340 dnode_t *dn; in dmu_object_rm_spill() local
344 FTAG, &dn); in dmu_object_rm_spill()
362 dnode_t *dn; in dmu_object_free() local
368 FTAG, &dn); in dmu_object_free()
461 dnode_t *dn; in dmu_object_zapify() local
480 dn->dn_next_type[tx->tx_txg & TXG_MASK] = dn->dn_type = in dmu_object_zapify()
[all …]
H A Ddbuf.c373 dnode_t *dn; in dbuf_find_bonus() local
1083 dnode_t *dn; in dbuf_verify() local
1297 if (dn->dn_datablkshift != 0 && dn->dn_indblkshift != 0) { in dbuf_whichblock()
1765 dnode_t *dn; in dbuf_read() local
2074 dnode_t *dn; in dbuf_new_size() local
2227 dnode_t *dn; in dbuf_dirty() local
2262 dn->dn_dirtyctx == DN_UNDIRTIED || dn->dn_dirtyctx == in dbuf_dirty()
3021 dnode_t *dn; in dbuf_destroy() local
3855 dn->dn_bonus = dbuf_create(dn, 0, DMU_BONUS_BLKID, dn->dn_dbuf, NULL, in dbuf_create_bonus()
4702 dnode_t *dn; in dbuf_write_ready() local
[all …]
H A Ddmu_objset.c968 dn = list_next(&os->os_dnodes, dn); in dmu_objset_evict_dbufs()
2106 dn->dn_oldflags, dn->dn_olduid, dn->dn_oldgid, in userquota_updates_task()
2109 dn->dn_olduid, dn->dn_oldgid, in userquota_updates_task()
2115 dn->dn_newuid, dn->dn_newgid, in userquota_updates_task()
2118 dn->dn_phys->dn_flags, dn->dn_newuid, dn->dn_newgid, in userquota_updates_task()
2126 dn->dn_olduid = dn->dn_newuid; in userquota_updates_task()
2127 dn->dn_oldgid = dn->dn_newgid; in userquota_updates_task()
2128 dn->dn_oldprojid = dn->dn_newprojid; in userquota_updates_task()
2363 dn->dn_newuid = dn->dn_olduid; in dmu_objset_userquota_get_ids()
2364 dn->dn_newgid = dn->dn_oldgid; in dmu_objset_userquota_get_ids()
[all …]
H A Dzap_micro.c566 zap->zap_dnode = dn; in zap_lockdir_impl()
611 VERIFY(dnode_add_ref(dn, tag)); in zap_lockdir_by_dnode()
620 dnode_t *dn; in zap_lockdir() local
629 dnode_rele(dn, tag); in zap_lockdir()
635 dnode_rele(dn, tag); in zap_lockdir()
730 VERIFY(dnode_add_ref(dn, FTAG)); in mzap_create_impl()
751 dnode_t *dn; in zap_create_impl() local
754 &dn, FTAG, tx); in zap_create_impl()
756 dnode_rele(dn, FTAG); in zap_create_impl()
797 dnode_t *dn; in zap_create_claim_norm_dnsize() local
[all …]
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dtrace_dnode.h48 TP_ARGS(dn, refcount, dbufs),
72 __entry->dn_object = dn->dn_object;
73 __entry->dn_type = dn->dn_type;
74 __entry->dn_bonuslen = dn->dn_bonuslen;
76 __entry->dn_nblkptr = dn->dn_nblkptr;
77 __entry->dn_checksum = dn->dn_checksum;
78 __entry->dn_compress = dn->dn_compress;
79 __entry->dn_nlevels = dn->dn_nlevels;
82 __entry->dn_moved = dn->dn_moved;
85 __entry->dn_maxblkid = dn->dn_maxblkid;
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Ddnode.h107 #define DN_SLOT_IS_PTR(dn) ((void *)dn > DN_SLOT_INTERIOR) argument
108 #define DN_SLOT_IS_VALID(dn) ((void *)dn != NULL) argument
389 #define DN_DBUFS_COUNT(dn) ((dn)->dn_dbufs_count + \ argument
390 avl_numnodes(&(dn)->dn_dbufs))
437 boolean_t dnode_is_dirty(dnode_t *dn);
449 void dnode_verify(dnode_t *dn);
461 void dnode_evict_dbufs(dnode_t *dn);
462 void dnode_evict_bonus(dnode_t *dn);
639 uint64_t __db_obj = (dn)->dn_object; \
650 #define DNODE_VERIFY(dn) dnode_verify(dn) argument
[all …]
H A Ddbuf.h350 void dbuf_create_bonus(struct dnode *dn);
353 void dbuf_rm_spill(struct dnode *dn, dmu_tx_t *tx);
355 dmu_buf_impl_t *dbuf_hold(struct dnode *dn, uint64_t blkid, const void *tag);
356 dmu_buf_impl_t *dbuf_hold_level(struct dnode *dn, int level, uint64_t blkid,
358 int dbuf_hold_impl(struct dnode *dn, uint8_t level, uint64_t blkid,
362 int dbuf_prefetch_impl(struct dnode *dn, int64_t level, uint64_t blkid,
365 int dbuf_prefetch(struct dnode *dn, int64_t level, uint64_t blkid,
387 dbuf_dirty_record_t *dbuf_dirty_lightweight(dnode_t *dn, uint64_t blkid,
395 int dmu_lightweight_write_by_dnode(dnode_t *dn, uint64_t offset, abd_t *abd,
409 void dbuf_free_range(struct dnode *dn, uint64_t start, uint64_t end,
[all …]
H A Ddmu.h521 void dmu_write_policy(objset_t *os, dnode_t *dn, int level, int wp,
552 int dmu_spill_hold_by_dnode(dnode_t *dn, uint32_t flags,
577 int dmu_buf_hold_by_dnode(dnode_t *dn, uint64_t offset,
579 int dmu_buf_hold_array_by_dnode(dnode_t *dn, uint64_t offset,
811 void dmu_tx_hold_zap_by_dnode(dmu_tx_t *tx, dnode_t *dn, int add,
814 void dmu_tx_hold_bonus_by_dnode(dmu_tx_t *tx, dnode_t *dn);
874 void dmu_write_by_dnode(dnode_t *dn, uint64_t offset, uint64_t size,
881 int dmu_read_uio_dnode(dnode_t *dn, zfs_uio_t *uio, uint64_t size);
886 int dmu_write_uio_dnode(dnode_t *dn, zfs_uio_t *uio, uint64_t size,
891 int dmu_assign_arcbuf_by_dnode(dnode_t *dn, uint64_t offset,
[all …]
/freebsd/lib/libc/nameser/
H A Dns_name.c104 dn = dst; in ns_name_ntop()
141 dn += m; in ns_name_ntop()
176 *dn++ = '.'; in ns_name_ntop()
182 *dn++ = '\0'; in ns_name_ntop()
361 dn = dst; in ns_name_ntol()
374 *dn++ = n; in ns_name_ntol()
994 dn += i; in decode_bitstring()
999 dn += i; in decode_bitstring()
1006 dn += i; in decode_bitstring()
1013 dn += i; in decode_bitstring()
[all …]
/freebsd/sys/fs/msdosfs/
H A Dmsdosfs_conv.c251 *dn = 0xe5; in dos2unixfn()
264 dn += i; in dos2unixfn()
314 dn[i] = ' '; in unix2dosfn()
315 dn[11] = 0; in unix2dosfn()
322 dn[0] = '.'; in unix2dosfn()
326 dn[0] = '.'; in unix2dosfn()
327 dn[1] = '.'; in unix2dosfn()
398 dn[j] = c; in unix2dosfn()
427 dn[j] = c; in unix2dosfn()
437 dn[j] = c; in unix2dosfn()
[all …]
/freebsd/lib/libc/resolv/
H A Dres_comp.c153 res_hnok(const char *dn) { in res_hnok() argument
157 int nch = *dn++; in res_hnok()
181 res_ownok(const char *dn) { in res_ownok() argument
182 if (asterchar(dn[0])) { in res_ownok()
183 if (periodchar(dn[1])) in res_ownok()
184 return (res_hnok(dn+2)); in res_ownok()
185 if (dn[1] == '\0') in res_ownok()
188 return (res_hnok(dn)); in res_ownok()
200 if (*dn == '\0') in res_mailok()
215 return (res_hnok(dn)); in res_mailok()
[all …]
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_taskdeps.h25 kmp_int32 n = KMP_ATOMIC_DEC(&node->dn.nrefs) - 1; in __kmp_node_deref()
31 KMP_ASSERT(node->dn.nrefs == 0); in __kmp_node_deref()
116 if (UNLIKELY(node && (node->dn.mtx_num_locks < 0))) { in __kmp_release_deps()
118 node->dn.mtx_num_locks = -node->dn.mtx_num_locks; in __kmp_release_deps()
119 for (int i = node->dn.mtx_num_locks - 1; i >= 0; --i) { in __kmp_release_deps()
120 KMP_DEBUG_ASSERT(node->dn.mtx_locks[i] != NULL); in __kmp_release_deps()
121 __kmp_release_lock(node->dn.mtx_locks[i], gtid); in __kmp_release_deps()
144 node->dn.task = in __kmp_release_deps()
164 if (successor->dn.task) { in __kmp_release_deps()
167 gtid, successor->dn.task, task)); in __kmp_release_deps()
[all …]
H A Dkmp_taskdeps.cpp37 node->dn.successors = NULL; in __kmp_init_node()
42 node->dn.mtx_num_locks = 0; in __kmp_init_node()
317 if (dep->dn.task) { in __kmp_depnode_link_successor()
319 if (dep->dn.task) { in __kmp_depnode_link_successor()
320 if (!dep->dn.successors || dep->dn.successors->node != node) { in __kmp_depnode_link_successor()
358 if (sink->dn.task) { in __kmp_depnode_link_successor()
361 if (sink->dn.task) { in __kmp_depnode_link_successor()
362 if (!sink->dn.successors || sink->dn.successors->node != source) { in __kmp_depnode_link_successor()
547 KMP_DEBUG_ASSERT(!node->dn.mtx_locks[node->dn.mtx_num_locks]); in __kmp_process_deps()
551 node->dn.mtx_locks[n] = node->dn.mtx_locks[n - 1]; in __kmp_process_deps()
[all …]
/freebsd/usr.sbin/makefs/msdos/
H A Dmsdosfs_conv.c309 dn[i] = ' '; in unix2dosfn()
310 dn[11] = 0; in unix2dosfn()
317 dn[0] = '.'; in unix2dosfn()
321 dn[0] = '.'; in unix2dosfn()
322 dn[1] = '.'; in unix2dosfn()
369 if (!dn[j]) { in unix2dosfn()
389 dn[j] = ' '; in unix2dosfn()
395 if (!dn[j]) { in unix2dosfn()
397 dn[j--] = ' '; in unix2dosfn()
407 dn[0] = '_'; in unix2dosfn()
[all …]
/freebsd/usr.bin/tip/libacu/
H A Ddn11.c41 static pid_t child = -1, dn; variable
54 if ((dn = open(acu, 1)) < 0) { in dn_dialer()
63 close(dn); in dn_dialer()
77 nw = write(dn, num, lt = strlen(num)); in dn_dialer()
90 close(dn); in dn_dialer()
94 tcgetattr(dn, &cntrl); in dn_dialer()
96 tcsetattr(dn, TCSANOW, &cntrl); in dn_dialer()
101 close(dn); in dn_dialer()
136 if (dn > 0) in dn_abort()
137 close(dn); in dn_abort()
/freebsd/crypto/heimdal/lib/gssapi/ntlm/
H A Diter_cred.c65 ntlm_cred dn; in _gss_ntlm_iter_creds_f() local
80 dn = calloc(1, sizeof(*dn)); in _gss_ntlm_iter_creds_f()
81 if (dn == NULL) { in _gss_ntlm_iter_creds_f()
86 dn->username = user; in _gss_ntlm_iter_creds_f()
87 dn->domain = domain; in _gss_ntlm_iter_creds_f()
89 cred_iter(userctx, GSS_NTLM_MECHANISM, (gss_cred_id_t)dn); in _gss_ntlm_iter_creds_f()
/freebsd/sys/dev/proto/
H A Dproto_core.c122 const char *dn, *ep, *ev; in proto_probe() local
131 dn = ev; in proto_probe()
132 while (*dn != '\0') { in proto_probe()
133 ep = dn; in proto_probe()
136 if ((ep - dn) > pfxlen && in proto_probe()
146 dn = ev; in proto_probe()
148 while (*dn != '\0') { in proto_probe()
149 ep = dn; in proto_probe()
152 if ((ep - dn) > pfxlen && in proto_probe()
156 memcpy(devnames[idx], dn, ep - dn); in proto_probe()
[all …]
/freebsd/sys/kern/
H A Dsubr_pcpu.c199 struct dpcpu_free *dn; in dpcpu_free() local
220 dn = TAILQ_NEXT(df, df_link); in dpcpu_free()
221 if (df->df_start + df->df_len == dn->df_start) { in dpcpu_free()
222 df->df_len += dn->df_len; in dpcpu_free()
223 TAILQ_REMOVE(&dpcpu_head, dn, df_link); in dpcpu_free()
224 free(dn, M_PCPU); in dpcpu_free()
236 dn = malloc(sizeof(*df), M_PCPU, M_WAITOK | M_ZERO); in dpcpu_free()
237 dn->df_start = start; in dpcpu_free()
238 dn->df_len = size; in dpcpu_free()
240 TAILQ_INSERT_BEFORE(df, dn, df_link); in dpcpu_free()
[all …]
/freebsd/tools/tools/zfsboottest/
H A Dzfsboottest.c86 zfs_read(spa_t *spa, dnode_phys_t *dn, void *buf, size_t size, off_t off) in zfs_read() argument
88 const znode_phys_t *zp = (const znode_phys_t *) dn->dn_bonus; in zfs_read()
96 rc = dnode_read(spa, dn, off, buf, n); in zfs_read()
110 dnode_phys_t dn; local
187 if (zfs_lookup(&zfsmnt, argv[i], &dn)) {
193 if (zfs_dnode_stat(spa, &dn, &sb)) {
204 n = zfs_read(spa, &dn, buf, n, off);
/freebsd/contrib/tcsh/
H A Dsh.dir.c1200 for (dn = dhead.di_prev; dn != &dhead; dn = dn->di_prev) in dnewcwd()
1201 if (dn != dp && Strcmp(dn->di_name, dp->di_name) == 0) { in dnewcwd()
1202 dn->di_next->di_prev = dn->di_prev; in dnewcwd()
1203 dn->di_prev->di_next = dn->di_next; in dnewcwd()
1204 dfree(dn); in dnewcwd()
1235 dn->di_next->di_prev = dn->di_prev; in dsetstack()
1236 dn->di_prev->di_next = dn->di_next; in dsetstack()
1237 if (dn != dcwd) in dsetstack()
1238 dfree(dn); in dsetstack()
1268 for (dn = dhead.di_prev; dn != &dhead; dn = dn->di_prev, i++) in dgetstack()
[all …]
/freebsd/lib/libcalendar/
H A Deaster.c86 int dn; in easterodn() local
99 dn = ndaysj(&dt); in easterodn()
100 return (dn + ns[weekday(dn)]); in easterodn()

12345