Home
last modified time | relevance | path

Searched refs:dnp (Results 1 – 25 of 78) sorted by relevance

1234

/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_cg.c552 for (dnp = args; dnp != NULL; dnp = dnp->dn_list) in dt_cg_arglist()
557 for (dnp = args; dnp != NULL; dnp = dnp->dn_list, i++) { in dt_cg_arglist()
624 dnp->dn_reg = dnp->dn_left->dn_reg; in dt_cg_arithmetic_op()
659 dnp->dn_reg = dnp->dn_child->dn_reg; in dt_cg_prearith_op()
716 dnp->dn_reg = dnp->dn_child->dn_reg; in dt_cg_postarith_op()
800 dnp->dn_reg = dnp->dn_left->dn_reg; in dt_cg_compare_op()
931 dnp->dn_reg = dnp->dn_left->dn_reg; in dt_cg_logical_xor()
1737 dnp->dn_reg, dnp->dn_reg); in dt_cg_node()
1767 dnp->dn_type), dnp->dn_reg, dnp->dn_reg); in dt_cg_node()
2066 dnp->dn_type), dnp->dn_reg, dnp->dn_reg); in dt_cg_node()
[all …]
H A Ddt_parser.c406 dt_node_type_assign(dnp, dnp->dn_ctfp, dnp->dn_type, B_FALSE); in dt_node_promote()
1660 for (; dnp != NULL; dnp = dnp->dn_list, argc++) { in dt_node_decl()
2907 dt_node_attr_assign(dnp, dt_ident_cook(dnp, idp, &dnp->dn_args)); in dt_cook_var()
2916 dt_ident_cook(dnp, dnp->dn_ident, &dnp->dn_args)); in dt_cook_func()
3689 dnp->dn_right = dnp->dn_left; in dt_cook_op2()
4532 dnp = dt_cook_funcs[dnp->dn_kind](dnp, idflags); in dt_node_cook()
4548 for (dnp = (pnp != NULL ? *pnp : NULL); dnp != NULL; dnp = nnp) { in dt_node_list_cook()
4564 for (dnp = (pnp != NULL ? *pnp : NULL); dnp != NULL; dnp = nnp) { in dt_node_list_free()
4602 for (dnp = lp; dnp->dn_list != NULL; dnp = dnp->dn_list) in dt_node_link()
4805 (void *)dnp, dnp->dn_kind); in dt_printd()
[all …]
H A Ddt_pragma.c85 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()
96 dnp = dnp->dn_list; in dt_pragma_attributes()
100 dnp = dnp->dn_list; in dt_pragma_attributes()
103 dnp = dnp->dn_list; in dt_pragma_attributes()
167 if (dnp == NULL || dnp->dn_kind != DT_NODE_STRING || in dt_pragma_binding()
352 if (dnp == NULL || dnp->dn_kind != DT_NODE_IDENT) { in dt_pragma_option()
395 dt_node_t *fnp = dnp ? dnp->dn_list : NULL; in dt_pragma_line()
398 if ((dnp == NULL || dnp->dn_kind != DT_NODE_INT) || in dt_pragma_line()
470 dt_node_t *dnp; in dt_pragma() local
[all …]
H A Ddt_cc.c339 anp = dnp->dn_args; in dt_action_clear()
382 anp = dnp->dn_args; in dt_action_normalize()
445 anp = dnp->dn_args; in dt_action_trunc()
513 anp = dnp->dn_args; in dt_action_printa()
924 dt_cg(yypcb, dnp); in dt_action_symmod_args()
1567 dt_node_t *dnp; in dt_compile_one_clause() local
1592 for (dnp = cnp->dn_acts; dnp != NULL; dnp = dnp->dn_list) { in dt_compile_one_clause()
2335 dt_node_t *dnp; in dt_compile() local
2429 dnp != NULL; dnp = next_dnp) { in dt_compile()
2435 dnp = dt_compile_sugar(dtp, dnp); in dt_compile()
[all …]
H A Ddt_sugar.c197 switch (dnp->dn_kind) { in dt_sugar_visit_all()
218 dt_sugar_visit_all(dp, dnp->dn_left); 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()
237 dt_sugar_visit_all(dp, dnp->dn_expr); in dt_sugar_visit_all()
244 if (dnp->dn_aggfun) in dt_sugar_visit_all()
252 if (dnp->dn_pred != NULL) in dt_sugar_visit_all()
266 if (dnp->dn_membexpr) in dt_sugar_visit_all()
[all …]
H A Ddt_decl.c309 for (dnp = flist; dnp != fnp && dnp != NULL; dnp = dnp->dn_list) { in dt_decl_protoform()
335 for (dnp = plist; dnp != NULL; dnp = dnp->dn_list, i++) { in dt_decl_prototype()
346 dnp->dn_string ? dnp->dn_string : "(anonymous)", i); in dt_decl_prototype()
356 dnp->dn_string ? dnp->dn_string : "(anonymous)", i); in dt_decl_prototype()
401 if (dnp != NULL && dnp->dn_kind == DT_NODE_TYPE) { in dt_decl_array()
414 if (dnp != NULL && dnp->dn_kind != DT_NODE_TYPE) { in dt_decl_array()
415 dnp = ddp->dd_node = dt_node_cook(dnp, DT_IDFLG_REF); in dt_decl_array()
428 (void) dt_decl_prototype(dnp, dnp, "array", DT_DP_ANON); in dt_decl_array()
452 (void) dt_decl_prototype(dnp, dnp, "function", in dt_decl_func()
608 dnp = dt_node_cook(dnp, DT_IDFLG_REF); in dt_decl_member()
[all …]
H A Ddt_ident.c163 dt_idcook_sign(dnp, idp, argc, args, in dt_idcook_assc()
383 if (dnp->dn_ident == NULL) in dt_idcook_args()
386 dt_node_type_assign(dnp, in dt_idcook_args()
403 if (dnp->dn_ident == NULL) in dt_idcook_args()
502 dt_idcook_assc(dnp, idp, argc, args); in dt_idcook_inline()
969 dnp->dn_flags |= DT_NF_USERLAND; in dt_ident_cook()
987 if (dnp == NULL) in dt_ident_resolve()
990 switch (dnp->dn_kind) { in dt_ident_resolve()
997 idp = dnp->dn_ident; in dt_ident_resolve()
1001 if (dt_node_is_dynamic(dnp)) in dt_ident_resolve()
[all …]
H A Ddt_printf.c50 return (dt_node_is_pointer(dnp) || dt_node_is_integer(dnp)); in pfcheck_addr()
57 return (dt_node_is_pointer(dnp) || dt_node_is_integer(dnp) || in pfcheck_kaddr()
58 dt_node_is_symaddr(dnp)); in pfcheck_kaddr()
74 return (dt_node_is_pointer(dnp) || dt_node_is_integer(dnp)); in pfcheck_uaddr()
102 if (dt_node_is_string(dnp)) in pfcheck_str()
105 ctfp = dnp->dn_ctfp; in pfcheck_str()
226 return (ctf_type_compat(dnp->dn_ctfp, ctf_type_resolve(dnp->dn_ctfp, in pfcheck_type()
1075 if (dnp == NULL) { in dt_printf_validate()
1094 dnp = dnp->dn_list; in dt_printf_validate()
1121 vnp = dnp; in dt_printf_validate()
[all …]
H A Ddt_xlator.c104 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 Ddt_dof.c262 dt_node_t *dnp = *pnp++; in dof_add_difo() local
263 dt_xlator_t *dxp = dnp->dn_membexpr->dn_xlator; 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()
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()
414 dnp->dn_type, buf, sizeof (buf))); in dof_add_probe()
419 for (dnp = prp->pr_xargs; dnp != NULL; dnp = dnp->dn_list) { in dof_add_probe()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_node.c116 ino = (uint32_t)dnp->n_ino; in smbfs_getino()
119 sep = SMBFS_DNP_SEP(dnp); in smbfs_getino()
164 struct smbnode *dnp = VTOSMB(dvp); in smbfs_nget() local
177 sep = SMBFS_DNP_SEP(dnp); in smbfs_nget()
181 dnp->n_rpath, dnp->n_rplen, in smbfs_nget()
194 if (dnp->n_flag & N_XATTR) { in smbfs_nget()
212 smbfs_attr_touchdir(struct smbnode *dnp) in smbfs_attr_touchdir() argument
215 mutex_enter(&dnp->r_statelock); in smbfs_attr_touchdir()
221 dnp->r_mtime = gethrtime(); in smbfs_attr_touchdir()
228 smbfs_attrcache_rm_locked(dnp); in smbfs_attr_touchdir()
[all …]
H A Dsmbfs_smb.c455 struct smbnode *dnp, in smbfs_smb_create() argument
463 struct smb_share *ssp = dnp->n_mount->smi_share; in smbfs_smb_create()
483 error = smbfs_smb_ntcreatex(dnp, in smbfs_smb_create()
539 struct smb_share *ssp = dnp->n_mount->smi_share; in smbfs_smb_mkdir()
558 error = smbfs_smb_ntcreatex(dnp, in smbfs_smb_mkdir()
588 ctx->f_dnp = dnp; in smbfs_smb_findopen()
592 if (dnp->n_flag & N_XATTR) { in smbfs_smb_findopen()
713 ASSERT(dnp); in smbfs_smb_lookup()
735 intr = dnp->n_mount->smi_flags & SMI_INT; in smbfs_smb_lookup()
739 error = smbfs_smb_findopen(dnp, name, nmlen, in smbfs_smb_lookup()
[all …]
H A Dsmbfs_subr.h208 int smbfs_smb_create(struct smbnode *dnp, const char *name, int nmlen,
213 int smbfs_smb_mkdir(struct smbnode *dnp, const char *name, int len,
216 int smbfs_smb_findopen(struct smbnode *dnp, const char *wildcard, int wclen,
222 int smbfs_smb_lookup(struct smbnode *dnp, const char **namep, int *nmlenp,
254 int smbfs_smb_findopenLM2(struct smbfs_fctx *ctx, struct smbnode *dnp,
292 int smbfs_smb2_findopen(struct smbfs_fctx *ctx, struct smbnode *dnp,
310 struct smbnode *dnp, const char *name, int nmlen, uint8_t sep);
352 void smbfs_attr_touchdir(struct smbnode *dnp);
365 uint32_t smbfs_getino(struct smbnode *dnp, const char *name, int nmlen);
401 int smbfs_xa_findopen(struct smbfs_fctx *ctx, struct smbnode *dnp,
/illumos-gate/usr/src/uts/common/os/
H A Dmodsubr.c132 struct devnames *dnp; in mod_rele_dev_by_major() local
137 dnp = &devnamesp[major]; in mod_rele_dev_by_major()
374 struct devnames *dnp; in impl_make_parlist() local
376 dnp = &devnamesp[major]; in impl_make_parlist()
385 return (dnp->dn_pl); in impl_make_parlist()
435 dnp->dn_pl = pl; in impl_make_parlist()
455 i_ddi_prop_list_rele(dnp->dn_global_prop_ptr, dnp); in impl_free_parlist()
466 dnp->dn_pl = NULL; in impl_free_parlist()
706 struct devnames *dnp; in make_devname() local
718 if (dnp->dn_name) { in make_devname()
[all …]
H A Dinstance.c238 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()
247 dnp->dn_instance++; in in_preassign_instance()
262 dnp->dn_pinstance = dnp->dn_instance; in in_preassign_instance()
668 struct devnames *dnp; in e_ddi_instance_majorinstance_to_path() local
705 struct devnames *dnp; in in_next_instance_block() local
780 struct devnames *dnp; in e_ddi_free_instance() local
1296 struct devnames *dnp; in in_inuse() local
1309 dp = dnp->dn_inlist; in in_inuse()
[all …]
H A Ddevcfg.c3028 dnp = &orphanlist; in link_to_driver_list()
3057 dnp = &orphanlist; in unlink_from_driver_list()
3666 dip = dnp->dn_head; in e_ddi_walk_driver()
7266 dip = dnp->dn_head; in attach_driver_nodes()
7443 cv_wait(&dnp->dn_wait, &dnp->dn_lock); in enter_driver()
7477 enter_driver(dnp); in ddi_hold_installed_driver()
7481 exit_driver(dnp); in ddi_hold_installed_driver()
7502 exit_driver(dnp); in ddi_hold_installed_driver()
7505 exit_driver(dnp); in ddi_hold_installed_driver()
7529 exit_driver(dnp); in ddi_hold_installed_driver()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddnode_sync.c667 dnp->dn_nlevels = 1; in dnode_sync()
671 dnp->dn_type = dn->dn_type; in dnode_sync()
678 ASSERT(dnp->dn_nlevels > 1 || in dnode_sync()
685 BP_GET_LSIZE(&dnp->dn_blkptr[0]) == 1 << dnp->dn_indblkshift); in dnode_sync()
688 dnp->dn_type = dn->dn_type; in dnode_sync()
698 dnp->dn_datablkszsec || in dnode_sync()
700 dnp->dn_datablkszsec = in dnode_sync()
707 dnp->dn_bonuslen = 0; in dnode_sync()
710 ASSERT(dnp->dn_bonuslen <= in dnode_sync()
810 dnp->dn_maxblkid = in dnode_sync()
[all …]
H A Ddmu_traverse.c225 switch (resume_skip_check(td, dnp, zb)) { in traverse_visitbp()
287 err = td->td_func(td->td_spa, NULL, bp, zb, dnp, in traverse_visitbp()
321 err = traverse_visitbp(td, dnp, &cbp[i], &czb); in traverse_visitbp()
443 (dnp->dn_indblkshift - SPA_BLKPTRSHIFT); in traverse_visitbp()
458 for (j = 0; j < dnp->dn_nblkptr; j++) { in prefetch_dnode_metadata()
463 if (dnp->dn_flags & DNODE_FLAG_SPILL_BLKPTR) { in prefetch_dnode_metadata()
483 err = td->td_func(td->td_spa, NULL, NULL, &czb, dnp, in traverse_dnode()
491 for (j = 0; j < dnp->dn_nblkptr; j++) { in traverse_dnode()
493 err = traverse_visitbp(td, dnp, &dnp->dn_blkptr[j], &czb); in traverse_dnode()
500 err = traverse_visitbp(td, dnp, DN_SPILL_BLKPTR(dnp), &czb); in traverse_dnode()
[all …]
H A Ddmu_diff.c86 report_dnode(struct diffarg *da, uint64_t object, dnode_phys_t *dnp) in report_dnode() argument
88 ASSERT(dnp != NULL); in report_dnode()
89 if (dnp->dn_type == DMU_OT_NONE) in report_dnode()
104 #define DBP_SPAN(dnp, level) \ argument
105 (((uint64_t)dnp->dn_datablkszsec) << (SPA_MINBLOCKSHIFT + \
106 (level) * (dnp->dn_indblkshift - SPA_BLKPTRSHIFT)))
111 const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg) in diff_cb() argument
123 uint64_t span = DBP_SPAN(dnp, zb->zb_level); in diff_cb()
H A Ddnode.c330 dnp->dn_datablkszsec = BSWAP_16(dnp->dn_datablkszsec); in dnode_byteswap()
331 dnp->dn_bonuslen = BSWAP_16(dnp->dn_bonuslen); in dnode_byteswap()
332 dnp->dn_extra_slots = BSWAP_8(dnp->dn_extra_slots); in dnode_byteswap()
333 dnp->dn_maxblkid = BSWAP_64(dnp->dn_maxblkid); in dnode_byteswap()
334 dnp->dn_used = BSWAP_64(dnp->dn_used); in dnode_byteswap()
374 dnode_byteswap(dnp); in dnode_buf_byteswap()
452 dn->dn_phys = dnp; in dnode_create()
454 if (dnp->dn_datablkszsec) { in dnode_create()
1321 *dnp = dn; in dnode_hold_impl()
1563 *dnp = dn; in dnode_hold_impl()
[all …]
H A Ddmu_send.c481 dnode_phys_t *dnp) in dump_dnode() argument
499 if (dnp == NULL || dnp->dn_type == DMU_OT_NONE) in dump_dnode()
512 drro->drr_type = dnp->dn_type; in dump_dnode()
513 drro->drr_bonustype = dnp->dn_bonustype; in dump_dnode()
515 drro->drr_bonuslen = dnp->dn_bonuslen; in dump_dnode()
517 drro->drr_checksumtype = dnp->dn_checksum; in dump_dnode()
518 drro->drr_compress = dnp->dn_compress; in dump_dnode()
534 drro->drr_maxblkid = dnp->dn_maxblkid; in dump_dnode()
536 drro->drr_nlevels = dnp->dn_nlevels; in dump_dnode()
537 drro->drr_nblkptr = dnp->dn_nblkptr; in dump_dnode()
[all …]
H A Dzio_crypt.c897 dnode_phys_t *dnp, *sdnp, *ddnp; in zio_crypt_copy_dnode_bonus() local
905 dnp = &sdnp[i]; in zio_crypt_copy_dnode_bonus()
906 if (dnp->dn_type != DMU_OT_NONE && in zio_crypt_copy_dnode_bonus()
908 dnp->dn_bonuslen != 0) { in zio_crypt_copy_dnode_bonus()
910 DN_MAX_BONUS_LEN(dnp)); in zio_crypt_copy_dnode_bonus()
1653 dnp = &sdnp[i]; in zio_crypt_init_uios_dnode()
1655 bcopy(dnp, &ddnp[i], (uint8_t *)DN_BONUS(dnp) - (uint8_t *)dnp); in zio_crypt_init_uios_dnode()
1672 bcopy(dnp, aadp, crypt_len); in zio_crypt_init_uios_dnode()
1699 crypt_len = DN_MAX_BONUS_LEN(dnp); in zio_crypt_init_uios_dnode()
1700 if (dnp->dn_type != DMU_OT_NONE && in zio_crypt_init_uios_dnode()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Ddnode.h123 #define DN_BONUS(dnp) ((void*)((dnp)->dn_bonus + \ argument
125 #define DN_MAX_BONUS_LEN(dnp) \ argument
126 ((dnp->dn_flags & DNODE_FLAG_SPILL_BLKPTR) ? \
127 (uint8_t *)DN_SPILL_BLKPTR(dnp) - (uint8_t *)DN_BONUS(dnp) : \
128 (uint8_t *)(dnp + (dnp->dn_extra_slots + 1)) - (uint8_t *)DN_BONUS(dnp))
130 #define DN_USED_BYTES(dnp) (((dnp)->dn_flags & DNODE_FLAG_USED_BYTES) ? \ argument
131 (dnp)->dn_used : (dnp)->dn_used << SPA_MINBLOCKSHIFT)
249 #define DN_SPILL_BLKPTR(dnp) ((blkptr_t *)((char *)(dnp) + \ argument
392 void *ref, dnode_t **dnp);
394 void *ref, dnode_t **dnp);
[all …]
/illumos-gate/usr/src/tools/ndrgen/
H A Dndr_print.c253 ndr_node_t *dnp = np->n_m_decl; in print_declaration() local
265 if (dnp && dnp->label == STAR) { in print_declaration()
267 while (dnp && dnp->label == STAR) { in print_declaration()
269 dnp = dnp->n_d_descend; in print_declaration()
279 print_node(dnp); in print_declaration()
/illumos-gate/usr/src/lib/libdlpi/common/
H A Dlibdlpi.c247 for (dnp = dip->dli_notifylistp; dnp != NULL; dnp = next) { in dlpi_close()
249 free(dnp); in dlpi_close()
1780 for (dnp = dip->dli_notifylistp; dnp != NULL; dnp = dnp->dln_next) {
1782 dnp->dln_fnp((dlpi_handle_t)dip, &notifinfo, dnp->arg);
1783 if (dnp->dln_rm)
1803 for (dnp = dip->dli_notifylistp; dnp != NULL; dnp = dnp->dln_next) {
1804 if (id == dnp)
1823 prev = dnp;
1824 dnp = dnp->dln_next;
1827 free(dnp);
[all …]

1234