| /freebsd-14.2/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| H A D | dt_cg.c | 548 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 D | dt_parser.c | 410 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 D | dt_pragma.c | 90 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 D | dt_cc.c | 340 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 2487 dnp != NULL; dnp = next_dnp) { in dt_compile() 2493 dnp = dt_compile_sugar(dtp, dnp); in dt_compile() [all …]
|
| H A D | dt_sugar.c | 197 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 D | dt_decl.c | 292 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 D | dt_ident.c | 171 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 D | dt_printf.c | 64 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() 1109 if (dnp == NULL) { in dt_printf_validate() 1128 dnp = dnp->dn_list; in dt_printf_validate() 1155 vnp = dnp; in dt_printf_validate() [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() 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 D | dt_dof.c | 266 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 D | dt_provider.c | 199 dt_node_t *args = NULL, *pnp = NULL, *dnp; in dt_probe_alloc_args() local 202 for (i = 0; i < argc; i++, pnp = dnp) { in dt_probe_alloc_args() 206 dnp->dn_link = pvp->pv_nodes; in dt_probe_alloc_args() 207 pvp->pv_nodes = dnp; in dt_probe_alloc_args() 210 args = dnp; in dt_probe_alloc_args() 212 pnp->dn_list = dnp; in dt_probe_alloc_args() 628 dt_probe_tag(dt_probe_t *prp, uint_t argn, dt_node_t *dnp) in dt_probe_tag() argument 656 bzero(dnp, sizeof (dt_node_t)); in dt_probe_tag() 657 dnp->dn_kind = DT_NODE_TYPE; in dt_probe_tag() 660 dt_node_attr_assign(dnp, _dtrace_defattr); in dt_probe_tag() [all …]
|
| H A D | dt_as.c | 153 uint_t i, uint_t xi, dt_node_t *dnp) in dt_as_xlate() argument 156 dt_xlator_t *dxp = dnp->dn_membexpr->dn_xlator; in dt_as_xlate() 161 assert(dnp->dn_kind == DT_NODE_MEMBER); in dt_as_xlate() 162 assert(dnp->dn_membexpr->dn_kind == DT_NODE_XLATOR); in dt_as_xlate() 165 assert(dnp->dn_membid < dxp->dx_nmembers); in dt_as_xlate() 185 BT_SET(pcb->pcb_asxrefs[dxp->dx_id], dnp->dn_membid); in dt_as_xlate() 186 dp->dtdo_xlmtab[xi] = dnp; in dt_as_xlate()
|
| /freebsd-14.2/sys/contrib/openzfs/module/zfs/ |
| H A D | dnode_sync.c | 683 dnp->dn_nlevels = 1; in dnode_sync() 687 dnp->dn_type = dn->dn_type; in dnode_sync() 701 BP_GET_LSIZE(&dnp->dn_blkptr[0]) == 1 << dnp->dn_indblkshift); in dnode_sync() 704 dnp->dn_type = dn->dn_type; in dnode_sync() 714 dnp->dn_datablkszsec || in dnode_sync() 716 dnp->dn_datablkszsec = in dnode_sync() 723 dnp->dn_bonuslen = 0; in dnode_sync() 726 ASSERT(dnp->dn_bonuslen <= in dnode_sync() 826 dnp->dn_maxblkid = in dnode_sync() 837 memset(dnp->dn_blkptr + dnp->dn_nblkptr, 0, in dnode_sync() [all …]
|
| H A D | dmu_traverse.c | 227 switch (resume_skip_check(td, dnp, zb)) { in traverse_visitbp() 341 if (traverse_prefetch_metadata(td, dnp, in traverse_visitbp() 356 err = traverse_visitbp(td, dnp, in traverse_visitbp() 486 (dnp->dn_indblkshift - SPA_BLKPTRSHIFT); in traverse_visitbp() 501 for (j = 0; j < dnp->dn_nblkptr; j++) { in prefetch_dnode_metadata() 503 traverse_prefetch_metadata(td, dnp, &dnp->dn_blkptr[j], &czb); in prefetch_dnode_metadata() 508 traverse_prefetch_metadata(td, dnp, DN_SPILL_BLKPTR(dnp), &czb); in prefetch_dnode_metadata() 534 for (j = 0; j < dnp->dn_nblkptr; j++) { in traverse_dnode() 536 err = traverse_visitbp(td, dnp, &dnp->dn_blkptr[j], &czb); in traverse_dnode() 543 err = traverse_visitbp(td, dnp, DN_SPILL_BLKPTR(dnp), &czb); in traverse_dnode() [all …]
|
| H A D | dmu_diff.c | 89 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 D | dnode.c | 451 dnp->dn_datablkszsec = BSWAP_16(dnp->dn_datablkszsec); in dnode_byteswap() 452 dnp->dn_bonuslen = BSWAP_16(dnp->dn_bonuslen); in dnode_byteswap() 453 dnp->dn_extra_slots = BSWAP_8(dnp->dn_extra_slots); in dnode_byteswap() 454 dnp->dn_maxblkid = BSWAP_64(dnp->dn_maxblkid); in dnode_byteswap() 455 dnp->dn_used = BSWAP_64(dnp->dn_used); in dnode_byteswap() 494 dnode_byteswap(dnp); in dnode_buf_byteswap() 577 dn->dn_phys = dnp; in dnode_create() 1436 *dnp = dn; in dnode_hold_impl() 1670 ASSERT3P(dnp, !=, NULL); in dnode_hold_impl() 1675 *dnp = dn; in dnode_hold_impl() [all …]
|
| H A D | dmu_send.c | 181 dnode_phys_t *dnp; member 233 kmem_free(range->sru.object.dnp, size); in range_free() 709 dnode_phys_t *dnp) in dump_dnode() argument 727 if (dnp == NULL || dnp->dn_type == DMU_OT_NONE) in dump_dnode() 740 drro->drr_type = dnp->dn_type; in dump_dnode() 764 drro->drr_nlevels = dnp->dn_nlevels; in dump_dnode() 765 drro->drr_nblkptr = dnp->dn_nblkptr; in dump_dnode() 809 blkptr_t *bp = DN_SPILL_BLKPTR(dnp); in dump_dnode() 913 range->sru.object.dnp); in do_dump() 1142 size_t size = sizeof (*dnp) * (dnp->dn_extra_slots + 1); in send_cb() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/include/sys/ |
| H A D | dnode.h | 127 #define DN_BONUS(dnp) ((void*)((dnp)->dn_bonus_flexible + \ argument 129 #define DN_MAX_BONUS_LEN(dnp) \ argument 130 ((dnp->dn_flags & DNODE_FLAG_SPILL_BLKPTR) ? \ 131 (uint8_t *)DN_SPILL_BLKPTR(dnp) - (uint8_t *)DN_BONUS(dnp) : \ 132 (uint8_t *)(dnp + (dnp->dn_extra_slots + 1)) - (uint8_t *)DN_BONUS(dnp)) 134 #define DN_USED_BYTES(dnp) (((dnp)->dn_flags & DNODE_FLAG_USED_BYTES) ? \ argument 135 (dnp)->dn_used : (dnp)->dn_used << SPA_MINBLOCKSHIFT) 280 #define DN_SPILL_BLKPTR(dnp) ((blkptr_t *)((char *)(dnp) + \ argument 430 const void *ref, dnode_t **dnp); 432 const void *ref, dnode_t **dnp); [all …]
|
| /freebsd-14.2/sys/fs/nfsclient/ |
| H A D | nfs_clvnops.c | 1692 dnp = VTONFS(dvp); in nfs_mknodrpc() 1693 NFSLOCKNODE(dnp); in nfs_mknodrpc() 1770 NFSLOCKNODE(dnp); in nfs_create() 1773 (void) msleep((caddr_t)dnp, &dnp->n_mtx, PZERO, "nfscrt", 0); in nfs_create() 1843 NFSLOCKNODE(dnp); in nfs_create() 1941 NFSLOCKNODE(dnp); in nfs_removerpc() 1946 NFSLOCKNODE(dnp); in nfs_removerpc() 1957 NFSLOCKNODE(dnp); in nfs_removerpc() 2261 NFSLOCKNODE(dnp); in nfs_symlink() 2312 NFSLOCKNODE(dnp); in nfs_mkdir() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | zio_crypt.c | 807 dnode_phys_t *dnp, *sdnp, *ddnp; in zio_crypt_copy_dnode_bonus() local 815 dnp = &sdnp[i]; in zio_crypt_copy_dnode_bonus() 816 if (dnp->dn_type != DMU_OT_NONE && in zio_crypt_copy_dnode_bonus() 818 dnp->dn_bonuslen != 0) { in zio_crypt_copy_dnode_bonus() 820 DN_MAX_BONUS_LEN(dnp)); in zio_crypt_copy_dnode_bonus() 1479 dnp = &sdnp[i]; in zio_crypt_init_uios_dnode() 1482 memcpy(&ddnp[i], dnp, in zio_crypt_init_uios_dnode() 1483 (uint8_t *)DN_BONUS(dnp) - (uint8_t *)dnp); in zio_crypt_init_uios_dnode() 1501 memcpy(aadp, dnp, crypt_len); in zio_crypt_init_uios_dnode() 1528 crypt_len = DN_MAX_BONUS_LEN(dnp); in zio_crypt_init_uios_dnode() [all …]
|
| /freebsd-14.2/sys/fs/smbfs/ |
| H A D | smbfs_node.c | 108 struct smbnode *np, *dnp; in smbfs_node_alloc() local 133 dnp = dvp ? VTOSMB(dvp) : NULL; in smbfs_node_alloc() 134 if (dnp == NULL && dvp != NULL) { in smbfs_node_alloc() 232 struct smbnode *dnp; in smbfs_nget() local 236 dnp = (dvp) ? VTOSMB(dvp) : NULL; in smbfs_nget() 238 if (dnp != NULL) { in smbfs_nget() 239 sep = SMBFS_DNP_SEP(dnp); in smbfs_nget() 240 error = smbfs_node_alloc(mp, dvp, dnp->n_rpath, dnp->n_rplen, in smbfs_nget()
|
| H A D | smbfs_subr.h | 151 int smbfs_smb_create(struct smbnode *dnp, const char *name, int len, 159 int smbfs_smb_mkdir(struct smbnode *dnp, const char *name, int len, 162 int smbfs_findopen(struct smbnode *dnp, const char *wildcard, int wclen, 167 struct smbnode *dnp, const char *name, int nmlen); 168 int smbfs_smb_lookup(struct smbnode *dnp, const char *name, int nmlen,
|
| H A D | smbfs_subr.c | 110 smbfs_fullpath(struct mbchain *mbp, struct smb_vc *vcp, struct smbnode *dnp, in smbfs_fullpath() argument 123 if (dnp != NULL) { in smbfs_fullpath() 124 error = smb_put_dmem(mbp, vcp, dnp->n_rpath, dnp->n_rplen, in smbfs_fullpath()
|
| H A D | smbfs_smb.c | 75 return dnp->n_ino + ino; in smbfs_getino() 79 ino = dnp->n_ino + smbfs_hash(name, nmlen); in smbfs_getino() 753 struct smb_share *ssp = dnp->n_mount->sm_share; in smbfs_smb_create() 893 struct smb_share *ssp = dnp->n_mount->sm_share; in smbfs_smb_mkdir() 1373 ctx->f_ssp = dnp->n_mount->sm_share; in smbfs_findopen() 1374 ctx->f_dnp = dnp; in smbfs_findopen() 1378 (dnp->n_mount->sm_flags & SMBFS_MOUNT_NO_LONG)) { in smbfs_findopen() 1447 if (dnp == NULL || (dnp->n_ino == 2 && name == NULL)) { in smbfs_smb_lookup() 1455 ASSERT_VOP_ELOCKED(dnp->n_vnode, "smbfs_smb_lookup"); in smbfs_smb_lookup() 1456 error = smbfs_findopen(dnp, name, nmlen, in smbfs_smb_lookup() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/module/os/linux/zfs/ |
| H A D | zio_crypt.c | 890 dnode_phys_t *dnp, *sdnp, *ddnp; in zio_crypt_copy_dnode_bonus() local 898 dnp = &sdnp[i]; in zio_crypt_copy_dnode_bonus() 899 if (dnp->dn_type != DMU_OT_NONE && in zio_crypt_copy_dnode_bonus() 901 dnp->dn_bonuslen != 0) { in zio_crypt_copy_dnode_bonus() 903 DN_MAX_BONUS_LEN(dnp)); in zio_crypt_copy_dnode_bonus() 1693 dnp = &sdnp[i]; in zio_crypt_init_uios_dnode() 1696 memcpy(&ddnp[i], dnp, in zio_crypt_init_uios_dnode() 1697 (uint8_t *)DN_BONUS(dnp) - (uint8_t *)dnp); in zio_crypt_init_uios_dnode() 1715 memcpy(aadp, dnp, crypt_len); in zio_crypt_init_uios_dnode() 1742 crypt_len = DN_MAX_BONUS_LEN(dnp); in zio_crypt_init_uios_dnode() [all …]
|