Home
last modified time | relevance | path

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

123456

/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
Ddnode.c124 dnode_t *dn = arg; in dnode_cons() local
127 rw_init(&dn->dn_struct_rwlock, NULL, RW_DEFAULT, NULL); in dnode_cons()
128 mutex_init(&dn->dn_mtx, NULL, MUTEX_DEFAULT, NULL); in dnode_cons()
129 mutex_init(&dn->dn_dbufs_mtx, NULL, MUTEX_DEFAULT, NULL); in dnode_cons()
130 cv_init(&dn->dn_notxholds, NULL, CV_DEFAULT, NULL); in dnode_cons()
136 zfs_refcount_create_untracked(&dn->dn_holds); in dnode_cons()
137 zfs_refcount_create(&dn->dn_tx_holds); in dnode_cons()
138 list_link_init(&dn->dn_link); in dnode_cons()
140 bzero(&dn->dn_next_nblkptr[0], sizeof (dn->dn_next_nblkptr)); in dnode_cons()
141 bzero(&dn->dn_next_nlevels[0], sizeof (dn->dn_next_nlevels)); in dnode_cons()
[all …]
Ddnode_sync.c40 dnode_increase_indirection(dnode_t *dn, dmu_tx_t *tx) in dnode_increase_indirection() argument
44 int nblkptr = dn->dn_phys->dn_nblkptr; in dnode_increase_indirection()
45 int old_toplvl = dn->dn_phys->dn_nlevels - 1; in dnode_increase_indirection()
46 int new_level = dn->dn_next_nlevels[txgoff]; in dnode_increase_indirection()
49 rw_enter(&dn->dn_struct_rwlock, RW_WRITER); in dnode_increase_indirection()
52 ASSERT(dn->dn_phys->dn_type != DMU_OT_NONE); in dnode_increase_indirection()
53 ASSERT(RW_WRITE_HELD(&dn->dn_struct_rwlock)); in dnode_increase_indirection()
54 ASSERT(new_level > 1 && dn->dn_phys->dn_nlevels > 0); in dnode_increase_indirection()
56 db = dbuf_hold_level(dn, dn->dn_phys->dn_nlevels, 0, FTAG); in dnode_increase_indirection()
59 dn->dn_phys->dn_nlevels = new_level; in dnode_increase_indirection()
[all …]
Ddmu_tx.c43 typedef void (*dmu_tx_hold_func_t)(dmu_tx_t *tx, struct dnode *dn,
96 dmu_tx_hold_dnode_impl(dmu_tx_t *tx, dnode_t *dn, enum dmu_tx_hold_type type, in dmu_tx_hold_dnode_impl() argument
101 if (dn != NULL) { in dmu_tx_hold_dnode_impl()
102 (void) zfs_refcount_add(&dn->dn_holds, tx); in dmu_tx_hold_dnode_impl()
104 mutex_enter(&dn->dn_mtx); in dmu_tx_hold_dnode_impl()
110 ASSERT(dn->dn_assigned_txg == 0); in dmu_tx_hold_dnode_impl()
111 dn->dn_assigned_txg = tx->tx_txg; in dmu_tx_hold_dnode_impl()
112 (void) zfs_refcount_add(&dn->dn_tx_holds, tx); in dmu_tx_hold_dnode_impl()
113 mutex_exit(&dn->dn_mtx); in dmu_tx_hold_dnode_impl()
119 txh->txh_dnode = dn; in dmu_tx_hold_dnode_impl()
[all …]
Ddmu.c161 dmu_buf_hold_noread_by_dnode(dnode_t *dn, uint64_t offset, in dmu_buf_hold_noread_by_dnode() argument
167 blkid = dbuf_whichblock(dn, 0, offset); in dmu_buf_hold_noread_by_dnode()
168 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dmu_buf_hold_noread_by_dnode()
169 db = dbuf_hold(dn, blkid, tag); in dmu_buf_hold_noread_by_dnode()
170 rw_exit(&dn->dn_struct_rwlock); in dmu_buf_hold_noread_by_dnode()
184 dnode_t *dn; in dmu_buf_hold_noread() local
189 err = dnode_hold(os, object, FTAG, &dn); in dmu_buf_hold_noread()
192 blkid = dbuf_whichblock(dn, 0, offset); in dmu_buf_hold_noread()
193 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dmu_buf_hold_noread()
194 db = dbuf_hold(dn, blkid, tag); in dmu_buf_hold_noread()
[all …]
Ddmu_object.c52 dnode_t *dn = NULL; in dmu_object_alloc_impl() local
171 dn_slots, FTAG, &dn); in dmu_object_alloc_impl()
173 rw_enter(&dn->dn_struct_rwlock, RW_WRITER); in dmu_object_alloc_impl()
178 if (dn->dn_type == DMU_OT_NONE) { in dmu_object_alloc_impl()
179 dnode_allocate(dn, ot, blocksize, 0, in dmu_object_alloc_impl()
181 rw_exit(&dn->dn_struct_rwlock); in dmu_object_alloc_impl()
182 dmu_tx_add_new_object(tx, dn); in dmu_object_alloc_impl()
183 dnode_rele(dn, FTAG); in dmu_object_alloc_impl()
186 rw_exit(&dn->dn_struct_rwlock); in dmu_object_alloc_impl()
187 dnode_rele(dn, FTAG); in dmu_object_alloc_impl()
[all …]
Ddbuf.c170 dnode_t *dn, uint8_t level, uint64_t blkid, boolean_t fail_sparse,
377 dnode_t *dn; in dbuf_find_bonus() local
380 if (dnode_hold(os, object, FTAG, &dn) == 0) { in dbuf_find_bonus()
381 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dbuf_find_bonus()
382 if (dn->dn_bonus != NULL) { in dbuf_find_bonus()
383 db = dn->dn_bonus; in dbuf_find_bonus()
386 rw_exit(&dn->dn_struct_rwlock); in dbuf_find_bonus()
387 dnode_rele(dn, FTAG); in dbuf_find_bonus()
934 dnode_t *dn; in dbuf_verify() local
944 dn = DB_DNODE(db); in dbuf_verify()
[all …]
Ddmu_objset.c384 dnode_t *dn = obj; in dnode_multilist_index_func() local
385 return (dnode_hash(dn->dn_objset, dn->dn_object) % in dnode_multilist_index_func()
776 dnode_t *dn; in dmu_objset_evict_dbufs() local
779 dn = list_head(&os->os_dnodes); in dmu_objset_evict_dbufs()
780 while (dn != NULL) { in dmu_objset_evict_dbufs()
786 if (dnode_add_ref(dn, FTAG)) { in dmu_objset_evict_dbufs()
787 list_insert_after(&os->os_dnodes, dn, &dn_marker); in dmu_objset_evict_dbufs()
790 dnode_evict_dbufs(dn); in dmu_objset_evict_dbufs()
791 dnode_rele(dn, FTAG); in dmu_objset_evict_dbufs()
794 dn = list_next(&os->os_dnodes, &dn_marker); in dmu_objset_evict_dbufs()
[all …]
/freebsd-12-stable/contrib/gcclibs/libdecnumber/
Ddecimal32.c76 decimal32FromNumber (decimal32 * d32, const decNumber * dn, decContext * set) in decimal32FromNumber() argument
82 uByte isneg = dn->bits & DECNEG; /* non-0 if original sign set */ in decimal32FromNumber()
88 if (!(dn->bits & DECSPECIAL)) in decimal32FromNumber()
90 Int ae = dn->exponent + dn->digits - 1; /* adjusted exponent */ in decimal32FromNumber()
91 if (dn->digits > DECIMAL32_Pmax /* too many digits */ in decimal32FromNumber()
97 decNumberPlus (&dw, dn, &dc); /* (round and check) */ in decimal32FromNumber()
100 dn = &dw; /* use the work number */ in decimal32FromNumber()
107 if (dn->bits & DECSPECIAL) in decimal32FromNumber()
110 if (dn->bits & DECINF) in decimal32FromNumber()
114 if ((*dn->lsu != 0 || dn->digits > 1) /* non-zero coefficient */ in decimal32FromNumber()
[all …]
Ddecimal128.c76 decimal128FromNumber (decimal128 * d128, const decNumber * dn, decContext * set) in decimal128FromNumber() argument
82 uByte isneg = dn->bits & DECNEG; /* non-0 if original sign set */ in decimal128FromNumber()
88 if (!(dn->bits & DECSPECIAL)) in decimal128FromNumber()
90 Int ae = dn->exponent + dn->digits - 1; /* adjusted exponent */ in decimal128FromNumber()
91 if (dn->digits > DECIMAL128_Pmax /* too many digits */ in decimal128FromNumber()
97 decNumberPlus (&dw, dn, &dc); /* (round and check) */ in decimal128FromNumber()
100 dn = &dw; /* use the work number */ in decimal128FromNumber()
107 if (dn->bits & DECSPECIAL) in decimal128FromNumber()
110 if (dn->bits & DECINF) in decimal128FromNumber()
114 if ((*dn->lsu != 0 || dn->digits > 1) /* non-zero coefficient */ in decimal128FromNumber()
[all …]
Ddecimal64.c76 decimal64FromNumber (decimal64 * d64, const decNumber * dn, decContext * set) in decimal64FromNumber() argument
82 uByte isneg = dn->bits & DECNEG; /* non-0 if original sign set */ in decimal64FromNumber()
88 if (!(dn->bits & DECSPECIAL)) in decimal64FromNumber()
90 Int ae = dn->exponent + dn->digits - 1; /* adjusted exponent */ in decimal64FromNumber()
91 if (dn->digits > DECIMAL64_Pmax /* too many digits */ in decimal64FromNumber()
97 decNumberPlus (&dw, dn, &dc); /* (round and check) */ in decimal64FromNumber()
100 dn = &dw; /* use the work number */ in decimal64FromNumber()
107 if (dn->bits & DECSPECIAL) in decimal64FromNumber()
110 if (dn->bits & DECINF) in decimal64FromNumber()
114 if ((*dn->lsu != 0 || dn->digits > 1) /* non-zero coefficient */ in decimal64FromNumber()
[all …]
DdecNumber.c318 decNumberToString (const decNumber * dn, char *string) in decNumberToString() argument
320 decToString (dn, string, 0); in decNumberToString()
325 decNumberToEngString (const decNumber * dn, char *string) in decNumberToEngString() argument
327 decToString (dn, string, 1); in decNumberToEngString()
352 decNumberFromString (decNumber * dn, const char chars[], decContext * set) in decNumberFromString() argument
375 return decNumberZero (dn); in decNumberFromString()
422 decNumberZero (dn); /* be optimistic */ in decNumberFromString()
425 dn->bits = bits | DECINF; in decNumberFromString()
432 dn->bits = bits | DECNAN; /* assume simple NaN */ in decNumberFromString()
436 dn->bits = bits | DECSNAN; in decNumberFromString()
[all …]
DdecLibrary.c49 decNumber dn; in isinfd32() local
53 decimal32ToNumber (&d32, &dn); in isinfd32()
54 return (decNumberIsInfinite (&dn)); in isinfd32()
60 decNumber dn; in isinfd64() local
64 decimal64ToNumber (&d64, &dn); in isinfd64()
65 return (decNumberIsInfinite (&dn)); in isinfd64()
71 decNumber dn; in isinfd128() local
75 decimal128ToNumber (&d128, &dn); in isinfd128()
76 return (decNumberIsInfinite (&dn)); in isinfd128()
DdecUtility.c76 decDensePackCoeff (const decNumber * dn, uByte * bytes, Int len, Int shift) in decDensePackCoeff() argument
80 Int digits = dn->digits; /* digit countdown */ in decDensePackCoeff()
84 const Unit *inu = dn->lsu; /* -> current input unit */ in decDensePackCoeff()
99 source = dn->lsu + D2U (digits) - 1; /* where msu comes from */ in decDensePackCoeff()
104 for (; source >= dn->lsu; source--, target--) in decDensePackCoeff()
224 decDenseUnpackCoeff (const uByte * bytes, Int len, decNumber * dn, in decDenseUnpackCoeff() argument
230 Unit *uout = dn->lsu; /* -> current output unit */ in decDenseUnpackCoeff()
350 dn->digits = (last - dn->lsu) * DECDPUN; /* floor of digits */ in decDenseUnpackCoeff()
355 dn->digits++; in decDenseUnpackCoeff()
357 if (dn->digits == 0) in decDenseUnpackCoeff()
[all …]
DdecNumber.h187 #define decNumberIsZero(dn) (*(dn)->lsu==0 \ argument
188 && (dn)->digits==1 \
189 && (((dn)->bits&DECSPECIAL)==0))
190 #define decNumberIsNegative(dn) (((dn)->bits&DECNEG)!=0) argument
191 #define decNumberIsNaN(dn) (((dn)->bits&(DECNAN|DECSNAN))!=0) argument
192 #define decNumberIsInfinite(dn) (((dn)->bits&DECINF)!=0) argument
/freebsd-12-stable/contrib/gcc/
Ddfp.c63 decimal_from_decnumber (REAL_VALUE_TYPE *r, decNumber *dn, decContext *context) in decimal_from_decnumber() argument
68 if (decNumberIsZero (dn)) in decimal_from_decnumber()
70 if (decNumberIsNaN (dn)) in decimal_from_decnumber()
72 if (decNumberIsInfinite (dn)) in decimal_from_decnumber()
76 if (decNumberIsNegative (dn)) in decimal_from_decnumber()
86 decimal128FromNumber ((decimal128 *) r->sig, dn, context); in decimal_from_decnumber()
94 decNumber dn; in decimal_real_from_string() local
99 decNumberFromString (&dn, (char *) s, &set); in decimal_real_from_string()
104 decimal_from_decnumber (r, &dn, &set); in decimal_real_from_string()
110 decimal_to_decnumber (const REAL_VALUE_TYPE *r, decNumber *dn) in decimal_to_decnumber() argument
[all …]
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
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
352 #define DN_DBUFS_COUNT(dn) ((dn)->dn_dbufs_count + \ argument
353 avl_numnodes(&(dn)->dn_dbufs))
382 void dnode_setbonuslen(dnode_t *dn, int newsize, dmu_tx_t *tx);
383 void dnode_setbonus_type(dnode_t *dn, dmu_object_type_t, dmu_tx_t *tx);
384 void dnode_rm_spill(dnode_t *dn, dmu_tx_t *tx);
390 boolean_t dnode_add_ref(dnode_t *dn, void *ref);
391 void dnode_rele(dnode_t *dn, void *ref);
392 void dnode_rele_and_unlock(dnode_t *dn, void *tag, boolean_t evicting);
[all …]
/freebsd-12-stable/lib/libc/nameser/
Dns_name.c104 char *dn, *eom; in ns_name_ntop() local
110 dn = dst; in ns_name_ntop()
119 if (dn != dst) { in ns_name_ntop()
120 if (dn >= eom) { in ns_name_ntop()
124 *dn++ = '.'; in ns_name_ntop()
130 if (dn + l >= eom) { in ns_name_ntop()
142 if ((m = decode_bitstring(&cp, dn, eom)) < 0) in ns_name_ntop()
147 dn += m; in ns_name_ntop()
153 if (dn + 1 >= eom) { in ns_name_ntop()
157 *dn++ = '\\'; in ns_name_ntop()
[all …]
/freebsd-12-stable/contrib/llvm-project/openmp/runtime/src/
Dkmp_taskdeps.h18 #define KMP_ACQUIRE_DEPNODE(gtid, n) __kmp_acquire_lock(&(n)->dn.lock, (gtid))
19 #define KMP_RELEASE_DEPNODE(gtid, n) __kmp_release_lock(&(n)->dn.lock, (gtid))
25 kmp_int32 n = KMP_ATOMIC_DEC(&node->dn.nrefs) - 1; in __kmp_node_deref()
28 KMP_ASSERT(node->dn.nrefs == 0); in __kmp_node_deref()
94 if (UNLIKELY(node && (node->dn.mtx_num_locks < 0))) { in __kmp_release_deps()
96 node->dn.mtx_num_locks = -node->dn.mtx_num_locks; in __kmp_release_deps()
97 for (int i = node->dn.mtx_num_locks - 1; i >= 0; --i) { in __kmp_release_deps()
98 KMP_DEBUG_ASSERT(node->dn.mtx_locks[i] != NULL); in __kmp_release_deps()
99 __kmp_release_lock(node->dn.mtx_locks[i], gtid); in __kmp_release_deps()
118 node->dn.task = in __kmp_release_deps()
[all …]
Dkmp_taskdeps.cpp37 node->dn.successors = NULL; in __kmp_init_node()
38 node->dn.task = NULL; // will point to the right task in __kmp_init_node()
41 node->dn.mtx_locks[i] = NULL; in __kmp_init_node()
42 node->dn.mtx_num_locks = 0; in __kmp_init_node()
43 __kmp_init_lock(&node->dn.lock); in __kmp_init_node()
44 KMP_ATOMIC_ST_RLX(&node->dn.nrefs, 1); // init creates the first reference in __kmp_init_node()
46 node->dn.id = KMP_ATOMIC_INC(&kmp_node_id_seed); in __kmp_init_node()
51 KMP_ATOMIC_INC(&node->dn.nrefs); in __kmp_node_ref()
214 kmp_taskdata_t *task_source = KMP_TASK_TO_TASKDATA(source->dn.task); in __kmp_track_dependence()
219 __kmp_printf("%d(%s) -> %d(%s)\n", source->dn.id, in __kmp_track_dependence()
[all …]
/freebsd-12-stable/sys/fs/msdosfs/
Dmsdosfs_conv.c239 dos2unixfn(u_char dn[11], u_char *un, int lower, struct msdosfsmount *pmp) in dos2unixfn()
251 if (*dn == SLOT_E5) in dos2unixfn()
252 *dn = 0xe5; in dos2unixfn()
257 for (i = 8; i > 0 && *dn != ' ';) { in dos2unixfn()
258 c = dos2unixchr(tmpbuf, __DECONST(const u_char **, &dn), &i, in dos2unixfn()
265 dn += i; in dos2unixfn()
271 if (*dn != ' ') { in dos2unixfn()
274 for (i = 3; i > 0 && *dn != ' ';) { in dos2unixfn()
275 c = dos2unixchr(tmpbuf, __DECONST(const u_char **, &dn), in dos2unixfn()
300 unix2dosfn(const u_char *un, u_char dn[12], size_t unlen, u_int gen, in unix2dosfn()
[all …]
/freebsd-12-stable/lib/libc/resolv/
Dres_comp.c160 res_hnok(const char *dn) { in res_hnok() argument
161 int pch = PERIOD, ch = *dn++; in res_hnok()
164 int nch = *dn++; in res_hnok()
188 res_ownok(const char *dn) { in res_ownok() argument
189 if (asterchar(dn[0])) { in res_ownok()
190 if (periodchar(dn[1])) in res_ownok()
191 return (res_hnok(dn+2)); in res_ownok()
192 if (dn[1] == '\0') in res_ownok()
195 return (res_hnok(dn)); in res_ownok()
203 res_mailok(const char *dn) { in res_mailok() argument
[all …]
/freebsd-12-stable/usr.sbin/makefs/msdos/
Dmsdosfs_conv.c302 unix2dosfn(const u_char *un, u_char dn[12], size_t unlen, u_int gen) in unix2dosfn()
315 dn[i] = ' '; in unix2dosfn()
316 dn[11] = 0; in unix2dosfn()
323 dn[0] = '.'; in unix2dosfn()
327 dn[0] = '.'; in unix2dosfn()
328 dn[1] = '.'; in unix2dosfn()
372 if (dp[i] != (dn[j] = unix2dos[dp[i]]) in unix2dosfn()
375 if (!dn[j]) { in unix2dosfn()
377 dn[j--] = ' '; in unix2dosfn()
395 dn[j] = ' '; in unix2dosfn()
[all …]
/freebsd-12-stable/usr.bin/tip/libacu/
Ddn11.c51 static pid_t child = -1, dn; variable
64 if ((dn = open(acu, 1)) < 0) { in dn_dialer()
73 close(dn); in dn_dialer()
87 nw = write(dn, num, lt = strlen(num)); in dn_dialer()
100 close(dn); in dn_dialer()
104 tcgetattr(dn, &cntrl); in dn_dialer()
106 tcsetattr(dn, TCSANOW, &cntrl); in dn_dialer()
111 close(dn); in dn_dialer()
146 if (dn > 0) in dn_abort()
147 close(dn); in dn_abort()
/freebsd-12-stable/crypto/heimdal/lib/gssapi/ntlm/
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-12-stable/sys/dev/proto/
Dproto_core.c126 const char *dn, *ep, *ev; in proto_probe() local
135 dn = ev; in proto_probe()
136 while (*dn != '\0') { in proto_probe()
137 ep = dn; in proto_probe()
140 if ((ep - dn) > pfxlen && in proto_probe()
141 strncmp(dn, prefix, pfxlen) == 0) in proto_probe()
143 dn = (*ep == ',') ? ep + 1 : ep; in proto_probe()
150 dn = ev; in proto_probe()
152 while (*dn != '\0') { in proto_probe()
153 ep = dn; in proto_probe()
[all …]

123456