/titanic_50/usr/src/lib/libdtrace/common/ |
H A D | dt_cg.c | 145 dt_cg_load(dt_node_t *dnp, ctf_file_t *ctfp, ctf_id_t type) in dt_cg_load() argument 166 if ((dnp->dn_flags & DT_NF_BITFIELD) && in dt_cg_load() 179 if (dnp->dn_flags & DT_NF_SIGNED) in dt_cg_load() 181 if (dnp->dn_flags & DT_NF_USERLAND) in dt_cg_load() 188 dt_cg_ptrsize(dt_node_t *dnp, dt_irlist_t *dlp, dt_regset_t *drp, in dt_cg_ptrsize() argument 191 ctf_file_t *ctfp = dnp->dn_ctfp; in dt_cg_ptrsize() 199 type = ctf_type_resolve(ctfp, dnp->dn_type); in dt_cg_ptrsize() 240 dt_cg_field_get(dt_node_t *dnp, dt_irlist_t *dlp, dt_regset_t *drp, in dt_cg_field_get() argument 253 assert(dnp->dn_op == DT_TOK_PTR || dnp->dn_op == DT_TOK_DOT); in dt_cg_field_get() 254 r1 = dnp->dn_left->dn_reg; in dt_cg_field_get() [all …]
|
H A D | dt_parser.c | 402 dt_node_promote(dt_node_t *lp, dt_node_t *rp, dt_node_t *dnp) in dt_node_promote() argument 404 dt_type_promote(lp, rp, &dnp->dn_ctfp, &dnp->dn_type); in dt_node_promote() 405 dt_node_type_assign(dnp, dnp->dn_ctfp, dnp->dn_type, B_FALSE); in dt_node_promote() 406 dt_node_attr_assign(dnp, dt_attr_min(lp->dn_attr, rp->dn_attr)); in dt_node_promote() 410 dt_node_name(const dt_node_t *dnp, char *buf, size_t len) in dt_node_name() argument 419 switch (dnp->dn_kind) { in dt_node_name() 422 (u_longlong_t)dnp->dn_value); in dt_node_name() 425 s = strchr2esc(dnp->dn_string, strlen(dnp->dn_string)); in dt_node_name() 427 s != NULL ? s : dnp->dn_string); in dt_node_name() 431 (void) snprintf(buf, len, "identifier %s", dnp->dn_string); in dt_node_name() [all …]
|
H A D | dt_pragma.c | 77 dt_pragma_attributes(const char *prname, dt_node_t *dnp) in dt_pragma_attributes() argument 85 if (dnp == NULL || dnp->dn_kind != DT_NODE_IDENT || in dt_pragma_attributes() 86 dnp->dn_list == NULL || dnp->dn_list->dn_kind != DT_NODE_IDENT) { in dt_pragma_attributes() 91 if (dtrace_str2attr(dnp->dn_string, &attr) == -1) { in dt_pragma_attributes() 96 dnp = dnp->dn_list; in dt_pragma_attributes() 97 name = dnp->dn_string; in dt_pragma_attributes() 100 dnp = dnp->dn_list; in dt_pragma_attributes() 101 name = dnp->dn_string; in dt_pragma_attributes() 103 dnp = dnp->dn_list; in dt_pragma_attributes() 104 part = dnp->dn_string; in dt_pragma_attributes() [all …]
|
H A D | dt_cc.c | 181 dt_stmt_append(dtrace_stmtdesc_t *sdp, const dt_node_t *dnp) in dt_stmt_append() argument 195 dnerror(dnp, D_COMM_COMM, "commit( ) may " in dt_stmt_append() 200 dnerror(dnp, D_COMM_DREC, "commit( ) may " in dt_stmt_append() 208 dnerror(dnp, D_AGG_COMM, "aggregating actions " in dt_stmt_append() 218 dnerror(dnp, D_SPEC_SPEC, "speculate( ) may " in dt_stmt_append() 223 dnerror(dnp, D_SPEC_COMM, "speculate( ) may " in dt_stmt_append() 228 dnerror(dnp, D_SPEC_DREC, "speculate( ) may " in dt_stmt_append() 238 dnerror(dnp, D_AGG_SPEC, "aggregating actions " in dt_stmt_append() 248 dnerror(dnp, D_ACT_SPEC, "destructive actions " in dt_stmt_append() 253 dnerror(dnp, D_EXIT_SPEC, "exit( ) may not " in dt_stmt_append() [all …]
|
H A D | dt_sugar.c | 193 dt_sugar_visit_all(dt_sugar_parse_t *dp, dt_node_t *dnp) in dt_sugar_visit_all() argument 197 switch (dnp->dn_kind) { in dt_sugar_visit_all() 209 for (arg = dnp->dn_args; arg != NULL; arg = arg->dn_list) in dt_sugar_visit_all() 214 dt_sugar_visit_all(dp, dnp->dn_child); in dt_sugar_visit_all() 218 dt_sugar_visit_all(dp, dnp->dn_left); in dt_sugar_visit_all() 219 dt_sugar_visit_all(dp, dnp->dn_right); in dt_sugar_visit_all() 220 if (dnp->dn_op == DT_TOK_LBRAC) { in dt_sugar_visit_all() 221 dt_node_t *ln = dnp->dn_right; in dt_sugar_visit_all() 230 dt_sugar_visit_all(dp, dnp->dn_expr); in dt_sugar_visit_all() 231 dt_sugar_visit_all(dp, dnp->dn_left); in dt_sugar_visit_all() [all …]
|
H A D | dt_decl.c | 307 dt_node_t *dnp; in dt_decl_protoform() local 309 for (dnp = flist; dnp != fnp && dnp != NULL; dnp = dnp->dn_list) { in dt_decl_protoform() 310 if (dnp->dn_string != NULL && in dt_decl_protoform() 311 strcmp(dnp->dn_string, fnp->dn_string) == 0) in dt_decl_protoform() 333 dt_node_t *dnp; in dt_decl_prototype() local 335 for (dnp = plist; dnp != NULL; dnp = dnp->dn_list, i++) { in dt_decl_prototype() 337 if (dnp->dn_type == CTF_ERR && !(flags & DT_DP_VARARGS)) { in dt_decl_prototype() 338 dnerror(dnp, D_DECL_PROTO_VARARGS, "%s prototype may " in dt_decl_prototype() 342 if (dt_node_is_dynamic(dnp) && !(flags & DT_DP_DYNAMIC)) { in dt_decl_prototype() 343 dnerror(dnp, D_DECL_PROTO_TYPE, "%s prototype may not " in dt_decl_prototype() [all …]
|
H A D | dt_ident.c | 51 dt_idcook_sign(dt_node_t *dnp, dt_ident_t *idp, in dt_idcook_sign() argument 100 dt_node_type_assign(dnp, idp->di_ctfp, idp->di_type, B_FALSE); in dt_idcook_sign() 109 dt_idcook_assc(dt_node_t *dnp, dt_ident_t *idp, int argc, dt_node_t *args) in dt_idcook_assc() argument 159 dt_node_type_assign(dnp, idp->di_ctfp, idp->di_type, B_FALSE); in dt_idcook_assc() 162 dt_idcook_sign(dnp, idp, argc, args, in dt_idcook_assc() 173 dt_idcook_func(dt_node_t *dnp, dt_ident_t *idp, int argc, dt_node_t *args) in dt_idcook_func() argument 303 dt_idcook_sign(dnp, idp, argc, args, "", "( )"); in dt_idcook_func() 312 dt_idcook_args(dt_node_t *dnp, dt_ident_t *idp, int argc, dt_node_t *ap) in dt_idcook_args() argument 377 dnp->dn_ident = dt_ident_create(idp->di_name, idp->di_kind, in dt_idcook_args() 381 if (dnp->dn_ident == NULL) in dt_idcook_args() [all …]
|
H A D | dt_printf.c | 48 pfcheck_addr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_addr() argument 50 return (dt_node_is_pointer(dnp) || dt_node_is_integer(dnp)); in pfcheck_addr() 55 pfcheck_kaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_kaddr() argument 57 return (dt_node_is_pointer(dnp) || dt_node_is_integer(dnp) || in pfcheck_kaddr() 58 dt_node_is_symaddr(dnp)); in pfcheck_kaddr() 63 pfcheck_uaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_uaddr() argument 68 if (dt_node_is_usymaddr(dnp)) in pfcheck_uaddr() 74 return (dt_node_is_pointer(dnp) || dt_node_is_integer(dnp)); in pfcheck_uaddr() 79 pfcheck_stack(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_stack() argument 81 return (dt_node_is_stack(dnp)); in pfcheck_stack() [all …]
|
H A D | dt_xlator.c | 104 dt_node_t *dnp; in dt_xlator_create() local 217 for (dnp = dxp->dx_members; dnp != NULL; dnp = dnp->dn_list) { in dt_xlator_create() 218 dnp->dn_membxlator = dxp; in dt_xlator_create() 219 dnp->dn_membid = dxp->dx_nmembers++; in dt_xlator_create() 372 dt_node_t *dnp; in dt_xlator_member() local 374 for (dnp = dxp->dx_members; dnp != NULL; dnp = dnp->dn_list) { in dt_xlator_member() 375 if (strcmp(dnp->dn_membname, name) == 0) in dt_xlator_member() 376 return (dnp); in dt_xlator_member()
|
H A D | dt_dof.c | 262 dt_node_t *dnp = *pnp++; in dof_add_difo() local 263 dt_xlator_t *dxp = dnp->dn_membexpr->dn_xlator; in dof_add_difo() 267 ddo->ddo_pgp->dp_xrefs[dxp->dx_id], dnp->dn_membid); in dof_add_difo() 341 dt_node_t *dnp; in dof_add_translator() local 358 for (dnp = dxp->dx_members; dnp != NULL; dnp = dnp->dn_list, i++) { in dof_add_translator() 365 dxp->dx_membdif[dnp->dn_membid]); in dof_add_translator() 368 dofxm.dofxm_name = dof_add_string(ddo, dnp->dn_membname); in dof_add_translator() 369 dt_node_diftype(dtp, dnp, &dofxm.dofxm_type); in dof_add_translator() 403 dt_node_t *dnp; in dof_add_probe() local 412 for (dnp = prp->pr_nargs; dnp != NULL; dnp = dnp->dn_list) { in dof_add_probe() [all …]
|
/titanic_50/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_node.c | 107 smbfs_getino(struct smbnode *dnp, const char *name, int nmlen) in smbfs_getino() argument 113 ino = (uint32_t)dnp->n_ino; in smbfs_getino() 116 sep = SMBFS_DNP_SEP(dnp); in smbfs_getino() 161 struct smbnode *dnp = VTOSMB(dvp); in smbfs_nget() local 174 sep = SMBFS_DNP_SEP(dnp); in smbfs_nget() 177 np = smbfs_node_findcreate(dnp->n_mount, in smbfs_nget() 178 dnp->n_rpath, dnp->n_rplen, in smbfs_nget() 191 if (dnp->n_flag & N_XATTR) { in smbfs_nget() 214 smbfs_attr_touchdir(struct smbnode *dnp) in smbfs_attr_touchdir() argument 217 mutex_enter(&dnp->r_statelock); in smbfs_attr_touchdir() [all …]
|
H A D | smbfs_subr.c | 69 smbfs_fullpath(struct mbchain *mbp, struct smb_vc *vcp, struct smbnode *dnp, in smbfs_fullpath() argument 86 dnp->n_rpath, dnp->n_rplen, in smbfs_fullpath() 93 if (dnp->n_rplen <= 1 && sep == '\\') in smbfs_fullpath() 107 if (dnp->n_flag & N_XATTR) in smbfs_fullpath()
|
H A D | smbfs_vnops.c | 1396 smbnode_t *dnp; in smbfs_lookup() local 1408 dnp = VTOSMB(dvp); in smbfs_lookup() 1427 if (smbfs_rw_enter_sig(&dnp->r_rwlock, RW_READER, SMBINTR(dvp))) in smbfs_lookup() 1432 smbfs_rw_exit(&dnp->r_rwlock); in smbfs_lookup() 1446 smbnode_t *dnp; in smbfslookup() local 1457 dnp = VTOSMB(dvp); in smbfslookup() 1475 ASSERT(dnp->r_rwlock.count != 0); in smbfslookup() 1523 if (dnp->n_flag & N_XATTR) in smbfslookup() 1568 rplen = dnp->n_rplen; in smbfslookup() 1571 if (dnp->n_rpath[rplen] == '\\') in smbfslookup() [all …]
|
H A D | smbfs_subr.h | 183 int smbfs_smb_create(struct smbnode *dnp, const char *name, int nmlen, 193 int smbfs_smb_mkdir(struct smbnode *dnp, const char *name, int len, 196 int smbfs_smb_findopen(struct smbnode *dnp, const char *wildcard, int wclen, 202 struct smbnode *dnp, const char *name, int nmlen, uint8_t sep); 203 int smbfs_smb_lookup(struct smbnode *dnp, const char **namep, int *nmlenp, 249 void smbfs_attr_touchdir(struct smbnode *dnp); 260 uint32_t smbfs_getino(struct smbnode *dnp, const char *name, int nmlen); 294 int smbfs_xa_findopen(struct smbfs_fctx *ctx, struct smbnode *dnp,
|
/titanic_50/usr/src/uts/common/os/ |
H A D | modsubr.c | 133 struct devnames *dnp; in mod_rele_dev_by_major() local 138 dnp = &devnamesp[major]; in mod_rele_dev_by_major() 139 LOCK_DEV_OPS(&dnp->dn_lock); in mod_rele_dev_by_major() 155 UNLOCK_DEV_OPS(&dnp->dn_lock); in mod_rele_dev_by_major() 167 UNLOCK_DEV_OPS(&dnp->dn_lock); in mod_rele_dev_by_major() 374 struct devnames *dnp; in impl_make_parlist() local 376 dnp = &devnamesp[major]; in impl_make_parlist() 378 ASSERT(mutex_owned(&dnp->dn_lock)); in impl_make_parlist() 384 if (dnp->dn_flags & (DN_CONF_PARSED | DN_DRIVER_REMOVED)) in impl_make_parlist() 385 return (dnp->dn_pl); in impl_make_parlist() [all …]
|
H A D | instance.c | 57 static void in_removenode(struct devnames *dnp, in_node_t *mp, in_node_t *ap); 71 static void in_removedrv(struct devnames *dnp, in_drv_t *mp); 238 struct devnames *dnp; in in_preassign_instance() local 243 dnp = &devnamesp[m]; in in_preassign_instance() 244 dip = dnp->dn_head; in in_preassign_instance() 246 DEVI(dip)->devi_instance = dnp->dn_instance; in in_preassign_instance() 247 dnp->dn_instance++; in in_preassign_instance() 262 dnp->dn_pinstance = dnp->dn_instance; in in_preassign_instance() 263 dnp->dn_instance = IN_SEARCHME; in in_preassign_instance() 668 struct devnames *dnp; in e_ddi_instance_majorinstance_to_path() local [all …]
|
H A D | devcfg.c | 1356 struct devnames *dnp; in detach_node() local 1445 dnp = &(devnamesp[DEVI(dip)->devi_major]); in detach_node() 1446 LOCK_DEV_OPS(&dnp->dn_lock); in detach_node() 1447 dnp->dn_flags &= ~DN_DRIVER_HELD; in detach_node() 1448 UNLOCK_DEV_OPS(&dnp->dn_lock); in detach_node() 1512 struct devnames *dnp; in predetach_node() local 1522 dnp = &devnamesp[DEVI(dip)->devi_major]; in predetach_node() 1523 LOCK_DEV_OPS(&dnp->dn_lock); in predetach_node() 1524 if (dnp->dn_flags & DN_NO_AUTODETACH) { in predetach_node() 1525 UNLOCK_DEV_OPS(&dnp->dn_lock); in predetach_node() [all …]
|
/titanic_50/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
H A D | pi_defer.c | 76 pi_defernode_t *dnp; in pi_defer_add() local 90 dnp = topo_mod_zalloc(mod, sizeof (pi_defernode_t)); in pi_defer_add() 91 if (dnp == NULL) { in pi_defer_add() 95 uu_list_node_init(dnp, &(dnp->defer_node), defer_pool); in pi_defer_add() 97 dnp->mde_node = mde_node; in pi_defer_add() 98 dnp->t_parent = t_parent; in pi_defer_add() 99 dnp->t_node = t_node; in pi_defer_add() 100 dnp->private = private; in pi_defer_add() 101 dnp->func = func; in pi_defer_add() 103 (void) uu_list_find(defer_list, dnp, NULL, &idx); in pi_defer_add() [all …]
|
/titanic_50/usr/src/uts/common/fs/zfs/ |
H A D | dnode_sync.c | 548 dnode_phys_t *dnp = dn->dn_phys; in dnode_sync() local 555 ASSERT(dnp->dn_type != DMU_OT_NONE || dn->dn_allocated_txg); in dnode_sync() 556 ASSERT(dnp->dn_type != DMU_OT_NONE || in dnode_sync() 557 bcmp(dnp, &zerodn, DNODE_SIZE) == 0); in dnode_sync() 579 if (dnp->dn_type == DMU_OT_NONE) { in dnode_sync() 581 dnp->dn_nlevels = 1; in dnode_sync() 582 dnp->dn_nblkptr = dn->dn_nblkptr; in dnode_sync() 585 dnp->dn_type = dn->dn_type; in dnode_sync() 586 dnp->dn_bonustype = dn->dn_bonustype; in dnode_sync() 587 dnp->dn_bonuslen = dn->dn_bonuslen; in dnode_sync() [all …]
|
H A D | dmu_traverse.c | 68 static int traverse_dnode(traverse_data_t *td, const dnode_phys_t *dnp, 154 resume_skip_check(traverse_data_t *td, const dnode_phys_t *dnp, in resume_skip_check() argument 162 if (zbookmark_subtree_completed(dnp, zb, td->td_resume)) in resume_skip_check() 213 traverse_visitbp(traverse_data_t *td, const dnode_phys_t *dnp, in traverse_visitbp() argument 222 switch (resume_skip_check(td, dnp, zb)) { in traverse_visitbp() 276 err = td->td_func(td->td_spa, NULL, bp, zb, dnp, td->td_arg); in traverse_visitbp() 283 err = td->td_func(td->td_spa, NULL, bp, zb, dnp, in traverse_visitbp() 315 err = traverse_visitbp(td, dnp, &cbp[i], &czb); in traverse_visitbp() 386 err = td->td_func(td->td_spa, NULL, bp, zb, dnp, td->td_arg); in traverse_visitbp() 416 (dnp->dn_indblkshift - SPA_BLKPTRSHIFT); in traverse_visitbp() [all …]
|
H A D | dmu_diff.c | 85 report_dnode(struct diffarg *da, uint64_t object, dnode_phys_t *dnp) in report_dnode() argument 87 ASSERT(dnp != NULL); in report_dnode() 88 if (dnp->dn_type == DMU_OT_NONE) in report_dnode() 103 #define DBP_SPAN(dnp, level) \ argument 104 (((uint64_t)dnp->dn_datablkszsec) << (SPA_MINBLOCKSHIFT + \ 105 (level) * (dnp->dn_indblkshift - SPA_BLKPTRSHIFT))) 110 const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg) in diff_cb() argument 122 uint64_t span = DBP_SPAN(dnp, zb->zb_level); in diff_cb()
|
H A D | dnode.c | 285 dnode_byteswap(dnode_phys_t *dnp) in dnode_byteswap() argument 287 uint64_t *buf64 = (void*)&dnp->dn_blkptr; in dnode_byteswap() 290 if (dnp->dn_type == DMU_OT_NONE) { in dnode_byteswap() 291 bzero(dnp, sizeof (dnode_phys_t)); in dnode_byteswap() 295 dnp->dn_datablkszsec = BSWAP_16(dnp->dn_datablkszsec); in dnode_byteswap() 296 dnp->dn_bonuslen = BSWAP_16(dnp->dn_bonuslen); in dnode_byteswap() 297 dnp->dn_maxblkid = BSWAP_64(dnp->dn_maxblkid); in dnode_byteswap() 298 dnp->dn_used = BSWAP_64(dnp->dn_used); in dnode_byteswap() 304 ASSERT(dnp->dn_indblkshift <= SPA_MAXBLOCKSHIFT); in dnode_byteswap() 305 ASSERT(dnp->dn_nblkptr <= DN_MAX_NBLKPTR); in dnode_byteswap() [all …]
|
/titanic_50/usr/src/uts/common/fs/zfs/sys/ |
H A D | dnode.h | 98 #define DN_BONUS(dnp) ((void*)((dnp)->dn_bonus + \ argument 99 (((dnp)->dn_nblkptr - 1) * sizeof (blkptr_t)))) 101 #define DN_USED_BYTES(dnp) (((dnp)->dn_flags & DNODE_FLAG_USED_BYTES) ? \ argument 102 (dnp)->dn_used : (dnp)->dn_used << SPA_MINBLOCKSHIFT) 270 void dnode_special_open(struct objset *dd, dnode_phys_t *dnp, 279 void *ref, dnode_t **dnp); 281 void *ref, dnode_t **dnp); 292 void dnode_byteswap(dnode_phys_t *dnp);
|
/titanic_50/usr/src/tools/ndrgen/ |
H A D | ndr_print.c | 247 ndr_node_t *dnp = np->n_m_decl; in print_declaration() local 259 if (dnp && dnp->label == STAR) { in print_declaration() 261 while (dnp && dnp->label == STAR) { in print_declaration() 263 dnp = dnp->n_d_descend; in print_declaration() 273 print_node(dnp); in print_declaration()
|
/titanic_50/usr/src/lib/libdlpi/common/ |
H A D | libdlpi.c | 244 dlpi_notifyent_t *next, *dnp; in dlpi_close() local 247 for (dnp = dip->dli_notifylistp; dnp != NULL; dnp = next) { in dlpi_close() 248 next = dnp->dln_next; in dlpi_close() 249 free(dnp); in dlpi_close() 1738 dlpi_notifyent_t *dnp; local 1781 for (dnp = dip->dli_notifylistp; dnp != NULL; dnp = dnp->dln_next) { 1782 if (note & dnp->dln_notes) 1783 dnp->dln_fnp((dlpi_handle_t)dip, ¬ifinfo, dnp->arg); 1784 if (dnp->dln_rm) 1802 dlpi_notifyent_t *dnp; local [all …]
|