Home
last modified time | relevance | path

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

12

/freebsd-13.1/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_cg.c548 for (dnp = args; dnp != NULL; dnp = dnp->dn_list) in dt_cg_arglist()
553 for (dnp = args; dnp != NULL; dnp = dnp->dn_list, i++) { in dt_cg_arglist()
620 dnp->dn_reg = dnp->dn_left->dn_reg; in dt_cg_arithmetic_op()
655 dnp->dn_reg = dnp->dn_child->dn_reg; in dt_cg_prearith_op()
712 dnp->dn_reg = dnp->dn_child->dn_reg; in dt_cg_postarith_op()
796 dnp->dn_reg = dnp->dn_left->dn_reg; in dt_cg_compare_op()
927 dnp->dn_reg = dnp->dn_left->dn_reg; in dt_cg_logical_xor()
1716 dnp->dn_reg, dnp->dn_reg); in dt_cg_node()
1746 dnp->dn_type), dnp->dn_reg, dnp->dn_reg); in dt_cg_node()
2046 dnp->dn_type), dnp->dn_reg, dnp->dn_reg); in dt_cg_node()
[all …]
H A Ddt_parser.c410 dt_node_type_assign(dnp, dnp->dn_ctfp, dnp->dn_type, B_FALSE); in dt_node_promote()
1653 for (; dnp != NULL; dnp = dnp->dn_list, argc++) { in dt_node_decl()
2901 dt_node_attr_assign(dnp, dt_ident_cook(dnp, idp, &dnp->dn_args)); in dt_cook_var()
2910 dt_ident_cook(dnp, dnp->dn_ident, &dnp->dn_args)); in dt_cook_func()
3684 dnp->dn_right = dnp->dn_left; in dt_cook_op2()
4526 dnp = dt_cook_funcs[dnp->dn_kind](dnp, idflags); in dt_node_cook()
4542 for (dnp = (pnp != NULL ? *pnp : NULL); dnp != NULL; dnp = nnp) { in dt_node_list_cook()
4558 for (dnp = (pnp != NULL ? *pnp : NULL); dnp != NULL; dnp = nnp) { in dt_node_list_free()
4596 for (dnp = lp; dnp->dn_list != NULL; dnp = dnp->dn_list) in dt_node_link()
4799 (void *)dnp, dnp->dn_kind); in dt_printd()
[all …]
H A Ddt_pragma.c90 if (dnp == NULL || dnp->dn_kind != DT_NODE_IDENT || in dt_pragma_attributes()
91 dnp->dn_list == NULL || dnp->dn_list->dn_kind != DT_NODE_IDENT) { in dt_pragma_attributes()
101 dnp = dnp->dn_list; in dt_pragma_attributes()
105 dnp = dnp->dn_list; in dt_pragma_attributes()
108 dnp = dnp->dn_list; in dt_pragma_attributes()
172 if (dnp == NULL || dnp->dn_kind != DT_NODE_STRING || in dt_pragma_binding()
389 if (dnp == NULL || dnp->dn_kind != DT_NODE_IDENT) { in dt_pragma_option()
433 dt_node_t *fnp = dnp ? dnp->dn_list : NULL; in dt_pragma_line()
436 if ((dnp == NULL || dnp->dn_kind != DT_NODE_INT) || in dt_pragma_line()
508 dt_node_t *dnp; in dt_pragma() local
[all …]
H A Ddt_cc.c340 anp = dnp->dn_args; in dt_action_clear()
383 anp = dnp->dn_args; in dt_action_normalize()
446 anp = dnp->dn_args; in dt_action_trunc()
514 anp = dnp->dn_args; in dt_action_printa()
928 dt_cg(yypcb, dnp); in dt_action_symmod_args()
1606 dt_node_t *dnp; in dt_compile_one_clause() local
1631 for (dnp = cnp->dn_acts; dnp != NULL; dnp = dnp->dn_list) { in dt_compile_one_clause()
2396 dt_node_t *dnp; in dt_compile() local
2490 dnp != NULL; dnp = next_dnp) { in dt_compile()
2496 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.c292 for (dnp = flist; dnp != fnp && dnp != NULL; dnp = dnp->dn_list) { in dt_decl_protoform()
318 for (dnp = plist; dnp != NULL; dnp = dnp->dn_list, i++) { in dt_decl_prototype()
329 dnp->dn_string ? dnp->dn_string : "(anonymous)", i); in dt_decl_prototype()
339 dnp->dn_string ? dnp->dn_string : "(anonymous)", i); in dt_decl_prototype()
384 if (dnp != NULL && dnp->dn_kind == DT_NODE_TYPE) { in dt_decl_array()
397 if (dnp != NULL && dnp->dn_kind != DT_NODE_TYPE) { in dt_decl_array()
398 dnp = ddp->dd_node = dt_node_cook(dnp, DT_IDFLG_REF); in dt_decl_array()
411 (void) dt_decl_prototype(dnp, dnp, "array", DT_DP_ANON); in dt_decl_array()
435 (void) dt_decl_prototype(dnp, dnp, "function", in dt_decl_func()
568 dnp = dt_node_cook(dnp, DT_IDFLG_REF); in dt_decl_member()
[all …]
H A Ddt_ident.c171 dt_idcook_sign(dnp, idp, argc, args, in dt_idcook_assc()
393 if (dnp->dn_ident == NULL) in dt_idcook_args()
396 dt_node_type_assign(dnp, in dt_idcook_args()
413 if (dnp->dn_ident == NULL) in dt_idcook_args()
512 dt_idcook_assc(dnp, idp, argc, args); in dt_idcook_inline()
979 dnp->dn_flags |= DT_NF_USERLAND; in dt_ident_cook()
997 if (dnp == NULL) in dt_ident_resolve()
1000 switch (dnp->dn_kind) { in dt_ident_resolve()
1007 idp = dnp->dn_ident; in dt_ident_resolve()
1011 if (dt_node_is_dynamic(dnp)) in dt_ident_resolve()
[all …]
H A Ddt_printf.c64 return (dt_node_is_pointer(dnp) || dt_node_is_integer(dnp)); in pfcheck_addr()
71 return (dt_node_is_pointer(dnp) || dt_node_is_integer(dnp) || in pfcheck_kaddr()
72 dt_node_is_symaddr(dnp)); in pfcheck_kaddr()
88 return (dt_node_is_pointer(dnp) || dt_node_is_integer(dnp)); in pfcheck_uaddr()
116 if (dt_node_is_string(dnp)) in pfcheck_str()
119 ctfp = dnp->dn_ctfp; in pfcheck_str()
240 return (ctf_type_compat(dnp->dn_ctfp, ctf_type_resolve(dnp->dn_ctfp, in pfcheck_type()
1110 if (dnp == NULL) { in dt_printf_validate()
1129 dnp = dnp->dn_list; in dt_printf_validate()
1156 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()
374 dt_node_t *dnp; in dt_xlator_member() local
376 for (dnp = dxp->dx_members; dnp != NULL; dnp = dnp->dn_list) { in dt_xlator_member()
377 if (strcmp(dnp->dn_membname, name) == 0) in dt_xlator_member()
378 return (dnp); in dt_xlator_member()
H A Ddt_dof.c266 dt_node_t *dnp = *pnp++; in dof_add_difo() local
267 dt_xlator_t *dxp = dnp->dn_membexpr->dn_xlator; in dof_add_difo()
345 dt_node_t *dnp; in dof_add_translator() local
362 for (dnp = dxp->dx_members; dnp != NULL; dnp = dnp->dn_list, i++) { in dof_add_translator()
369 dxp->dx_membdif[dnp->dn_membid]); in dof_add_translator()
373 dt_node_diftype(dtp, dnp, &dofxm.dofxm_type); in dof_add_translator()
407 dt_node_t *dnp; in dof_add_probe() local
416 for (dnp = prp->pr_nargs; dnp != NULL; dnp = dnp->dn_list) { in dof_add_probe()
418 dnp->dn_type, buf, sizeof (buf))); in dof_add_probe()
423 for (dnp = prp->pr_xargs; dnp != NULL; dnp = dnp->dn_list) { in dof_add_probe()
[all …]
H A Ddt_provider.c198 dt_node_t *args = NULL, *pnp = NULL, *dnp; in dt_probe_alloc_args() local
201 for (i = 0; i < argc; i++, pnp = dnp) { in dt_probe_alloc_args()
205 dnp->dn_link = pvp->pv_nodes; in dt_probe_alloc_args()
206 pvp->pv_nodes = dnp; in dt_probe_alloc_args()
209 args = dnp; in dt_probe_alloc_args()
211 pnp->dn_list = dnp; in dt_probe_alloc_args()
627 dt_probe_tag(dt_probe_t *prp, uint_t argn, dt_node_t *dnp) in dt_probe_tag() argument
655 bzero(dnp, sizeof (dt_node_t)); in dt_probe_tag()
656 dnp->dn_kind = DT_NODE_TYPE; in dt_probe_tag()
659 dt_node_attr_assign(dnp, _dtrace_defattr); in dt_probe_tag()
[all …]
/freebsd-13.1/sys/contrib/openzfs/module/zfs/
H A Ddnode_sync.c676 dnp->dn_nlevels = 1; in dnode_sync()
680 dnp->dn_type = dn->dn_type; in dnode_sync()
694 BP_GET_LSIZE(&dnp->dn_blkptr[0]) == 1 << dnp->dn_indblkshift); in dnode_sync()
697 dnp->dn_type = dn->dn_type; in dnode_sync()
707 dnp->dn_datablkszsec || in dnode_sync()
709 dnp->dn_datablkszsec = in dnode_sync()
716 dnp->dn_bonuslen = 0; in dnode_sync()
719 ASSERT(dnp->dn_bonuslen <= in dnode_sync()
819 dnp->dn_maxblkid = in dnode_sync()
830 bzero(dnp->dn_blkptr + dnp->dn_nblkptr, in dnode_sync()
[all …]
H A Ddmu_traverse.c231 switch (resume_skip_check(td, dnp, zb)) { in traverse_visitbp()
293 err = td->td_func(td->td_spa, NULL, bp, zb, dnp, in traverse_visitbp()
360 err = traverse_visitbp(td, dnp, in traverse_visitbp()
490 (dnp->dn_indblkshift - SPA_BLKPTRSHIFT); in traverse_visitbp()
505 for (j = 0; j < dnp->dn_nblkptr; j++) { in prefetch_dnode_metadata()
510 if (dnp->dn_flags & DNODE_FLAG_SPILL_BLKPTR) { in prefetch_dnode_metadata()
530 err = td->td_func(td->td_spa, NULL, bp, &czb, dnp, in traverse_dnode()
538 for (j = 0; j < dnp->dn_nblkptr; j++) { in traverse_dnode()
540 err = traverse_visitbp(td, dnp, &dnp->dn_blkptr[j], &czb); in traverse_dnode()
547 err = traverse_visitbp(td, dnp, DN_SPILL_BLKPTR(dnp), &czb); in traverse_dnode()
[all …]
H A Ddmu_diff.c89 report_dnode(dmu_diffarg_t *da, uint64_t object, dnode_phys_t *dnp) in report_dnode() argument
91 ASSERT(dnp != NULL); in report_dnode()
92 if (dnp->dn_type == DMU_OT_NONE) in report_dnode()
107 #define DBP_SPAN(dnp, level) \ argument
108 (((uint64_t)dnp->dn_datablkszsec) << (SPA_MINBLOCKSHIFT + \
109 (level) * (dnp->dn_indblkshift - SPA_BLKPTRSHIFT)))
113 const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg) in diff_cb() argument
127 uint64_t span = DBP_SPAN(dnp, zb->zb_level); in diff_cb()
H A Ddnode.c324 dnp->dn_datablkszsec = BSWAP_16(dnp->dn_datablkszsec); in dnode_byteswap()
325 dnp->dn_bonuslen = BSWAP_16(dnp->dn_bonuslen); in dnode_byteswap()
326 dnp->dn_extra_slots = BSWAP_8(dnp->dn_extra_slots); in dnode_byteswap()
327 dnp->dn_maxblkid = BSWAP_64(dnp->dn_maxblkid); in dnode_byteswap()
328 dnp->dn_used = BSWAP_64(dnp->dn_used); in dnode_byteswap()
376 dnode_byteswap(dnp); in dnode_buf_byteswap()
459 dn->dn_phys = dnp; in dnode_create()
1320 *dnp = dn; in dnode_hold_impl()
1554 ASSERT3P(dnp, !=, NULL); in dnode_hold_impl()
1559 *dnp = dn; in dnode_hold_impl()
[all …]
H A Ddmu_send.c181 dnode_phys_t *dnp; member
233 kmem_free(range->sru.object.dnp, size); in range_free()
702 dnode_phys_t *dnp) in dump_dnode() argument
720 if (dnp == NULL || dnp->dn_type == DMU_OT_NONE) in dump_dnode()
733 drro->drr_type = dnp->dn_type; in dump_dnode()
757 drro->drr_nlevels = dnp->dn_nlevels; in dump_dnode()
758 drro->drr_nblkptr = dnp->dn_nblkptr; in dump_dnode()
802 blkptr_t *bp = DN_SPILL_BLKPTR(dnp); in dump_dnode()
906 range->sru.object.dnp); in do_dump()
1137 size_t size = sizeof (*dnp) * (dnp->dn_extra_slots + 1); in send_cb()
[all …]
/freebsd-13.1/sys/contrib/openzfs/include/sys/
H A Ddnode.h122 #define DN_BONUS(dnp) ((void*)((dnp)->dn_bonus + \ argument
124 #define DN_MAX_BONUS_LEN(dnp) \ argument
125 ((dnp->dn_flags & DNODE_FLAG_SPILL_BLKPTR) ? \
126 (uint8_t *)DN_SPILL_BLKPTR(dnp) - (uint8_t *)DN_BONUS(dnp) : \
127 (uint8_t *)(dnp + (dnp->dn_extra_slots + 1)) - (uint8_t *)DN_BONUS(dnp))
129 #define DN_USED_BYTES(dnp) (((dnp)->dn_flags & DNODE_FLAG_USED_BYTES) ? \ argument
130 (dnp)->dn_used : (dnp)->dn_used << SPA_MINBLOCKSHIFT)
271 #define DN_SPILL_BLKPTR(dnp) ((blkptr_t *)((char *)(dnp) + \ argument
421 void *ref, dnode_t **dnp);
423 void *ref, dnode_t **dnp);
[all …]
/freebsd-13.1/sys/fs/nfsclient/
H A Dnfs_clvnops.c1689 dnp = VTONFS(dvp); in nfs_mknodrpc()
1690 NFSLOCKNODE(dnp); in nfs_mknodrpc()
1767 NFSLOCKNODE(dnp); in nfs_create()
1770 (void) msleep((caddr_t)dnp, &dnp->n_mtx, PZERO, "nfscrt", 0); in nfs_create()
1843 NFSLOCKNODE(dnp); in nfs_create()
1942 NFSLOCKNODE(dnp); in nfs_removerpc()
1947 NFSLOCKNODE(dnp); in nfs_removerpc()
1958 NFSLOCKNODE(dnp); in nfs_removerpc()
2274 NFSLOCKNODE(dnp); in nfs_symlink()
2325 NFSLOCKNODE(dnp); in nfs_mkdir()
[all …]
H A Dnfs_clport.c132 struct nfsnode *np, *dnp; in nfscl_nget() local
140 dnp = VTONFS(dvp); in nfscl_nget()
185 dnp->n_fhp->nfh_len))) { in nfscl_nget()
194 dnp->n_fhp->nfh_len != np->n_v4->n4_fhlen || in nfscl_nget()
195 NFSBCMP(dnp->n_fhp->nfh_fh, np->n_v4->n4_data, in nfscl_nget()
196 dnp->n_fhp->nfh_len))) { in nfscl_nget()
200 np->n_v4->n4_fhlen = dnp->n_fhp->nfh_len; in nfscl_nget()
203 dnp->n_fhp->nfh_len); in nfscl_nget()
262 np->n_v4->n4_fhlen = dnp->n_fhp->nfh_len; in nfscl_nget()
264 NFSBCOPY(dnp->n_fhp->nfh_fh, np->n_v4->n4_data, in nfscl_nget()
[all …]
/freebsd-13.1/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzio_crypt.c824 dnode_phys_t *dnp, *sdnp, *ddnp; in zio_crypt_copy_dnode_bonus() local
832 dnp = &sdnp[i]; in zio_crypt_copy_dnode_bonus()
833 if (dnp->dn_type != DMU_OT_NONE && in zio_crypt_copy_dnode_bonus()
835 dnp->dn_bonuslen != 0) { in zio_crypt_copy_dnode_bonus()
837 DN_MAX_BONUS_LEN(dnp)); in zio_crypt_copy_dnode_bonus()
1479 dnp = &sdnp[i]; in zio_crypt_init_uios_dnode()
1482 bcopy(dnp, &ddnp[i], (uint8_t *)DN_BONUS(dnp) - (uint8_t *)dnp); in zio_crypt_init_uios_dnode()
1500 bcopy(dnp, aadp, crypt_len); in zio_crypt_init_uios_dnode()
1527 crypt_len = DN_MAX_BONUS_LEN(dnp); in zio_crypt_init_uios_dnode()
1528 if (dnp->dn_type != DMU_OT_NONE && in zio_crypt_init_uios_dnode()
[all …]
/freebsd-13.1/sys/fs/smbfs/
H A Dsmbfs_node.c110 struct smbnode *np, *dnp; in smbfs_node_alloc() local
135 dnp = dvp ? VTOSMB(dvp) : NULL; in smbfs_node_alloc()
136 if (dnp == NULL && dvp != NULL) { in smbfs_node_alloc()
233 struct smbnode *dnp, *np; in smbfs_nget() local
237 dnp = (dvp) ? VTOSMB(dvp) : NULL; in smbfs_nget()
239 if (dnp != NULL) { in smbfs_nget()
240 sep = SMBFS_DNP_SEP(dnp); in smbfs_nget()
241 error = smbfs_node_alloc(mp, dvp, dnp->n_rpath, dnp->n_rplen, in smbfs_nget()
H A Dsmbfs_subr.h153 int smbfs_smb_create(struct smbnode *dnp, const char *name, int len,
161 int smbfs_smb_mkdir(struct smbnode *dnp, const char *name, int len,
164 int smbfs_findopen(struct smbnode *dnp, const char *wildcard, int wclen,
169 struct smbnode *dnp, const char *name, int nmlen);
170 int smbfs_smb_lookup(struct smbnode *dnp, const char *name, int nmlen,
H A Dsmbfs_subr.c112 smbfs_fullpath(struct mbchain *mbp, struct smb_vc *vcp, struct smbnode *dnp, in smbfs_fullpath() argument
125 if (dnp != NULL) { in smbfs_fullpath()
126 error = smb_put_dmem(mbp, vcp, dnp->n_rpath, dnp->n_rplen, in smbfs_fullpath()
H A Dsmbfs_smb.c77 return dnp->n_ino + ino; in smbfs_getino()
81 ino = dnp->n_ino + smbfs_hash(name, nmlen); in smbfs_getino()
755 struct smb_share *ssp = dnp->n_mount->sm_share; in smbfs_smb_create()
895 struct smb_share *ssp = dnp->n_mount->sm_share; in smbfs_smb_mkdir()
1375 ctx->f_ssp = dnp->n_mount->sm_share; in smbfs_findopen()
1376 ctx->f_dnp = dnp; in smbfs_findopen()
1380 (dnp->n_mount->sm_flags & SMBFS_MOUNT_NO_LONG)) { in smbfs_findopen()
1449 if (dnp == NULL || (dnp->n_ino == 2 && name == NULL)) { in smbfs_smb_lookup()
1457 ASSERT_VOP_ELOCKED(dnp->n_vnode, "smbfs_smb_lookup"); in smbfs_smb_lookup()
1458 error = smbfs_findopen(dnp, name, nmlen, in smbfs_smb_lookup()
[all …]
/freebsd-13.1/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c884 dnode_phys_t *dnp, *sdnp, *ddnp; in zio_crypt_copy_dnode_bonus() local
892 dnp = &sdnp[i]; in zio_crypt_copy_dnode_bonus()
893 if (dnp->dn_type != DMU_OT_NONE && in zio_crypt_copy_dnode_bonus()
895 dnp->dn_bonuslen != 0) { in zio_crypt_copy_dnode_bonus()
897 DN_MAX_BONUS_LEN(dnp)); in zio_crypt_copy_dnode_bonus()
1666 dnp = &sdnp[i]; in zio_crypt_init_uios_dnode()
1669 bcopy(dnp, &ddnp[i], (uint8_t *)DN_BONUS(dnp) - (uint8_t *)dnp); in zio_crypt_init_uios_dnode()
1687 bcopy(dnp, aadp, crypt_len); in zio_crypt_init_uios_dnode()
1714 crypt_len = DN_MAX_BONUS_LEN(dnp); in zio_crypt_init_uios_dnode()
1715 if (dnp->dn_type != DMU_OT_NONE && in zio_crypt_init_uios_dnode()
[all …]

12