/freebsd/contrib/tcpdump/ |
H A D | print-nfs.c | 259 const uint32_t *dp, struct nfsv3_sattr *sa3) in parse_sattr3() argument 261 sa3->sa_modeset = GET_BE_U_4(dp); in parse_sattr3() 262 dp++; in parse_sattr3() 264 sa3->sa_mode = GET_BE_U_4(dp); in parse_sattr3() 265 dp++; in parse_sattr3() 268 sa3->sa_uidset = GET_BE_U_4(dp); in parse_sattr3() 269 dp++; in parse_sattr3() 271 sa3->sa_uid = GET_BE_U_4(dp); in parse_sattr3() 272 dp++; in parse_sattr3() 275 sa3->sa_gidset = GET_BE_U_4(dp); in parse_sattr3() [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | dsl_pool.c | 174 dsl_pool_open_special_dir(dsl_pool_t *dp, const char *name, dsl_dir_t **ddp) in dsl_pool_open_special_dir() argument 179 err = zap_lookup(dp->dp_meta_objset, in dsl_pool_open_special_dir() 180 dsl_dir_phys(dp->dp_root_dir)->dd_child_dir_zapobj, in dsl_pool_open_special_dir() 185 return (dsl_dir_hold_obj(dp, obj, name, dp, ddp)); in dsl_pool_open_special_dir() 191 dsl_pool_t *dp; in dsl_pool_open_impl() local 194 dp = kmem_zalloc(sizeof (dsl_pool_t), KM_SLEEP); in dsl_pool_open_impl() 195 dp->dp_spa = spa; in dsl_pool_open_impl() 196 dp->dp_meta_rootbp = *bp; in dsl_pool_open_impl() 197 rrw_init(&dp->dp_config_rwlock, B_TRUE); in dsl_pool_open_impl() 198 txg_init(dp, txg); in dsl_pool_open_impl() [all …]
|
/freebsd/sys/geom/ |
H A D | geom_disk.c | 65 struct disk *dp; member 102 struct disk *dp; in g_disk_access() local 110 if ((dp = sc->dp) == NULL || dp->d_destroyed) { in g_disk_access() 128 if (w > 0 && (dp->d_flags & DISKFLAG_WRITE_PROTECT) != 0) in g_disk_access() 130 if (error == 0 && dp->d_open != NULL) in g_disk_access() 131 error = dp->d_open(dp); in g_disk_access() 136 pp->sectorsize = dp->d_sectorsize; in g_disk_access() 137 if (dp->d_maxsize == 0) { in g_disk_access() 139 dp->d_name, dp->d_unit); in g_disk_access() 140 dp->d_maxsize = DFLTPHYS; in g_disk_access() [all …]
|
/freebsd/sys/netsmb/ |
H A D | smb_usr.c | 55 smb_usr_vc2spec(struct smbioc_ossn *dp, struct smb_vcspec *spec) in smb_usr_vc2spec() argument 62 if (dp->ioc_user[0] == 0) in smb_usr_vc2spec() 66 if (dp->ioc_server == NULL) in smb_usr_vc2spec() 68 if (dp->ioc_localcs[0] == 0) { in smb_usr_vc2spec() 73 spec->sap = smb_memdupin(dp->ioc_server, dp->ioc_svlen); in smb_usr_vc2spec() 76 if (dp->ioc_local) { in smb_usr_vc2spec() 77 spec->lap = smb_memdupin(dp->ioc_local, dp->ioc_lolen); in smb_usr_vc2spec() 83 spec->srvname = dp->ioc_srvname; in smb_usr_vc2spec() 84 spec->pass = dp->ioc_password; in smb_usr_vc2spec() 85 spec->domain = dp->ioc_workgroup; in smb_usr_vc2spec() [all …]
|
/freebsd/contrib/unbound/iterator/ |
H A D | iter_delegpt.c | 56 struct delegpt* dp=(struct delegpt*)regional_alloc( in delegpt_create() local 57 region, sizeof(*dp)); in delegpt_create() 58 if(!dp) in delegpt_create() 60 memset(dp, 0, sizeof(*dp)); in delegpt_create() 61 return dp; in delegpt_create() 64 struct delegpt* delegpt_copy(struct delegpt* dp, struct regional* region) in delegpt_copy() argument 71 if(!delegpt_set_name(copy, region, dp->name)) in delegpt_copy() 73 copy->bogus = dp->bogus; in delegpt_copy() 74 copy->has_parent_side_NS = dp->has_parent_side_NS; in delegpt_copy() 75 copy->ssl_upstream = dp->ssl_upstream; in delegpt_copy() [all …]
|
H A D | iter_hints.c | 68 delegpt_free_mlc(s->dp); in hints_stub_free() 95 ah(struct delegpt* dp, const char* sv, const char* ip) in ah() argument 105 if(!delegpt_add_ns_mlc(dp, dname, 0, NULL, UNBOUND_DNS_PORT) || in ah() 107 !delegpt_add_target_mlc(dp, dname, dname_len, in ah() 129 struct delegpt* dp = delegpt_create_mlc((uint8_t*)"\000"); in compile_time_root_prime() local 130 if(!dp) in compile_time_root_prime() 132 dp->has_parent_side_NS = 1; in compile_time_root_prime() 134 if(!ah(dp, "A.ROOT-SERVERS.NET.", "198.41.0.4")) goto failed; in compile_time_root_prime() 135 if(!ah(dp, "B.ROOT-SERVERS.NET.", "170.247.170.2")) goto failed; in compile_time_root_prime() 136 if(!ah(dp, "C.ROOT-SERVERS.NET.", "192.33.4.12")) goto failed; in compile_time_root_prime() [all …]
|
H A D | iter_delegpt.h | 158 * Also check the dp->bogus to see if everything is bogus. */ 164 * This value is not copied in addr-copy and dp-copy. */ 179 * @param dp: delegation point to copy. 183 struct delegpt* delegpt_copy(struct delegpt* dp, struct regional* regional); 187 * @param dp: delegation point. 192 int delegpt_set_name(struct delegpt* dp, struct regional* regional, 197 * @param dp: delegation point. 205 int delegpt_add_ns(struct delegpt* dp, struct regional* regional, 210 * @param dp: delegation point. 216 int delegpt_rrset_add_ns(struct delegpt* dp, struct regional* regional, [all …]
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | dp.c | 28 /* TODO: Any other peer specific DP cleanup */ in ath12k_dp_peer_cleanup() 52 reo_dest = ar->dp.mac_id + 1; in ath12k_dp_peer_setup() 185 ret = ath12k_hif_get_user_msi_vector(ab, "DP", in ath12k_dp_srng_msi_setup() 297 ath12k_warn(ab, "Not a valid ring type in dp :%d\n", type); in ath12k_dp_srng_setup() 353 struct ath12k_dp *dp) in ath12k_dp_tx_get_bank_profile() argument 363 spin_lock_bh(&dp->tx_bank_lock); in ath12k_dp_tx_get_bank_profile() 365 for (i = 0; i < dp->num_bank_profiles; i++) { in ath12k_dp_tx_get_bank_profile() 366 if (dp->bank_profiles[i].is_configured && in ath12k_dp_tx_get_bank_profile() 367 (dp->bank_profiles[i].bank_config ^ bank_config) == 0) { in ath12k_dp_tx_get_bank_profile() 371 if (!dp->bank_profiles[i].is_configured || in ath12k_dp_tx_get_bank_profile() [all …]
|
/freebsd/contrib/tcsh/ |
H A D | sh.dir.c | 101 struct directory *dp; in dinit() local 159 dp = xcalloc(sizeof(struct directory), 1); in dinit() 160 dp->di_name = cp; in dinit() 161 dp->di_count = 0; in dinit() 162 dhead.di_next = dhead.di_prev = dp; in dinit() 163 dp->di_next = dp->di_prev = &dhead; in dinit() 165 dnewcwd(dp, 0); in dinit() 166 setcopy(STRdirstack, dp->di_name, VAR_READWRITE|VAR_NOGLOB); in dinit() 170 dset(Char *dp) in dset() argument 177 setcopy(STRcwd, dp, VAR_READWRITE|VAR_NOGLOB); in dset() [all …]
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_sugar.c | 88 dt_sugar_append_clause(dt_sugar_parse_t *dp, dt_node_t *clause) in dt_sugar_append_clause() argument 90 dp->dtsp_clause_list = dt_node_link(dp->dtsp_clause_list, clause); in dt_sugar_append_clause() 97 dt_sugar_prepend_clause(dt_sugar_parse_t *dp, dt_node_t *clause) in dt_sugar_prepend_clause() argument 99 dp->dtsp_clause_list = dt_node_link(clause, dp->dtsp_clause_list); in dt_sugar_prepend_clause() 142 dt_sugar_new_condition_impl(dt_sugar_parse_t *dp, in dt_sugar_new_condition_impl() argument 171 return (dt_node_clause(dp->dtsp_pdescs, newpred, body)); in dt_sugar_new_condition_impl() 180 dt_sugar_new_condition(dt_sugar_parse_t *dp, dt_node_t *pred, int condid) in dt_sugar_new_condition() argument 182 dp->dtsp_num_conditions++; in dt_sugar_new_condition() 183 dt_sugar_append_clause(dp, dt_sugar_new_condition_impl(dp, in dt_sugar_new_condition() 184 pred, condid, dp->dtsp_num_conditions)); in dt_sugar_new_condition() [all …]
|
H A D | dt_as.c | 152 dt_as_xlate(dt_pcb_t *pcb, dtrace_difo_t *dp, in dt_as_xlate() argument 158 assert(i < dp->dtdo_len); in dt_as_xlate() 159 assert(xi < dp->dtdo_xlmlen); in dt_as_xlate() 182 dp->dtdo_buf[i] = DIF_INSTR_XLATE( in dt_as_xlate() 183 DIF_INSTR_OP(dp->dtdo_buf[i]), xi, DIF_INSTR_RD(dp->dtdo_buf[i])); in dt_as_xlate() 186 dp->dtdo_xlmtab[xi] = dnp; in dt_as_xlate() 215 dtrace_difo_t *dp; in dt_as() local 269 if ((dp = pcb->pcb_difo) == NULL) in dt_as() 272 dp->dtdo_buf = dt_alloc(dtp, sizeof (dif_instr_t) * dlp->dl_len); in dt_as() 274 if (dp->dtdo_buf == NULL) in dt_as() [all …]
|
/freebsd/sbin/hastd/ |
H A D | token.l | 44 #define DP do { } while (0) macro 55 control { DP; return CONTROL; } 56 pidfile { DP; return PIDFILE; } 57 listen { DP; return LISTEN; } 58 replication { DP; return REPLICATION; } 59 checksum { DP; return CHECKSUM; } 60 compression { DP; return COMPRESSION; } 61 timeout { DP; return TIMEOUT; } 62 exec { DP; return EXEC; } 63 metaflush { DP; return METAFLUSH; } [all …]
|
/freebsd/sys/libkern/ |
H A D | iconv_xlat16.c | 63 struct iconv_xlat16 *dp; in iconv_xlat16_open() local 67 dp = (struct iconv_xlat16 *)kobj_create((struct kobj_class*)dcp, M_ICONV, M_WAITOK); in iconv_xlat16_open() 68 headp = (uint32_t *)((caddr_t)csp->cp_data + sizeof(dp->d_table)); in iconv_xlat16_open() 72 dp->d_table[i] = headp; in iconv_xlat16_open() 75 dp->d_table[i] = NULL; in iconv_xlat16_open() 81 if (iconv_open(KICONV_WCTYPE_NAME, csp->cp_from, &dp->f_ctp) != 0) in iconv_xlat16_open() 82 dp->f_ctp = NULL; in iconv_xlat16_open() 83 if (iconv_open(KICONV_WCTYPE_NAME, csp->cp_to, &dp->t_ctp) != 0) in iconv_xlat16_open() 84 dp->t_ctp = NULL; in iconv_xlat16_open() 86 dp->f_ctp = dp->t_ctp = dp; in iconv_xlat16_open() [all …]
|
H A D | iconv_ucs.c | 91 struct iconv_ucs *dp; in iconv_ucs_open() local 95 dp = (struct iconv_ucs *)kobj_create((struct kobj_class*)dcp, M_ICONV, M_WAITOK); in iconv_ucs_open() 99 dp->convtype = 0; in iconv_ucs_open() 102 dp->convtype |= KICONV_UCS_COMBINE; in iconv_ucs_open() 105 dp->convtype |= unicode_family[i].from_flag; in iconv_ucs_open() 107 dp->convtype |= unicode_family[i].to_flag; in iconv_ucs_open() 110 dp->convtype |= KICONV_UCS_UCS4; in iconv_ucs_open() 112 dp->convtype &= ~KICONV_UCS_UCS4; in iconv_ucs_open() 114 dp->f_ctp = dp->t_ctp = NULL; in iconv_ucs_open() 115 if (dp->convtype & KICONV_UCS_COMBINE) { in iconv_ucs_open() [all …]
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | dsl_pool.h | 154 int dsl_pool_open(dsl_pool_t *dp); 155 void dsl_pool_close(dsl_pool_t *dp); 158 void dsl_pool_sync(dsl_pool_t *dp, uint64_t txg); 159 void dsl_pool_sync_done(dsl_pool_t *dp, uint64_t txg); 160 int dsl_pool_sync_context(dsl_pool_t *dp); 161 uint64_t dsl_pool_adjustedsize(dsl_pool_t *dp, zfs_space_check_t slop_policy); 162 uint64_t dsl_pool_unreserved_space(dsl_pool_t *dp, 164 uint64_t dsl_pool_deferred_space(dsl_pool_t *dp); 165 void dsl_pool_wrlog_count(dsl_pool_t *dp, int64_t size, uint64_t txg); 166 boolean_t dsl_pool_need_wrlog_delay(dsl_pool_t *dp); [all …]
|
/freebsd/sbin/dump/ |
H A D | traverse.c | 54 #define DIP(dp, field) \ 56 (dp)->dp1.field : (dp)->dp2.field) 57 #define DIP_SET(dp, field, val) do {\ 59 (dp)->dp1.field = (val); \ 61 (dp)->dp2.field = (val); \ argument 69 static void dmpindir(union dinode *dp, ino_t ino, ufs2_daddr_t blk, int level, 72 static void ufs2_blksout(union dinode *dp, ufs2_daddr_t *blkp, int frags, 74 static int appendextdata(union dinode *dp); 75 static void writeextdata(union dinode *dp, ino_ 58 DIP(dp,field) global() argument 92 blockest(union dinode * dp) blockest() argument 125 CHANGEDSINCE(dp,t) global() argument 130 WANTTODUMP(dp) global() argument 134 WANTTODUMP(dp) global() argument 149 union dinode *dp; mapfiles() local 248 union dinode *dp; mapdirs() local 384 struct direct *dp; searchdir() local 452 dumpino(union dinode * dp,ino_t ino) dumpino() argument 573 dmpindir(union dinode * dp,ino_t ino,ufs2_daddr_t blk,int ind_level,off_t * size) dmpindir() argument 653 ufs2_blksout(union dinode * dp,ufs2_daddr_t * blkp,int frags,ino_t ino,int last) ufs2_blksout() argument 720 appendextdata(union dinode * dp) appendextdata() argument 764 writeextdata(union dinode * dp,ino_t ino,int added) writeextdata() argument [all...] |
/freebsd/sys/ufs/ufs/ |
H A D | ufs_lookup.c | 191 struct inode *dp; /* inode for directory being searched */ in ufs_lookup_ino() local 204 doff_t prevoff; /* prev entry dp->i_offset */ in ufs_lookup_ino() 205 struct vnode *pdp; /* saved dp during symlink work */ in ufs_lookup_ino() 219 dp = VTOI(vdp); in ufs_lookup_ino() 220 if (dp->i_effnlink == 0) in ufs_lookup_ino() 229 vnode_create_vobject(vdp, DIP(dp, i_size), curthread); in ufs_lookup_ino() 266 i_diroff = dp->i_diroff; in ufs_lookup_ino() 282 if (ufsdirhash_build(dp) == 0) { in ufs_lookup_ino() 284 enduseful = dp->i_size; in ufs_lookup_ino() 286 slotoffset = ufsdirhash_findfree(dp, slotneeded, in ufs_lookup_ino() [all …]
|
/freebsd/lib/libc/gen/ |
H A D | disklabel.c | 61 struct disklabel *dp = &disk; in getdiskbyname() local 77 cq = dp->d_typename; in getdiskbyname() 79 while (cq < dp->d_typename + sizeof(dp->d_typename) - 1 && in getdiskbyname() 86 dp->d_flags |= D_REMOVABLE; in getdiskbyname() 88 dp->d_flags |= D_RAMDISK; in getdiskbyname() 92 dp->d_flags |= D_BADSECT; in getdiskbyname() 97 getnumdflt(dp->d_secsize, "se", DEV_BSIZE); in getdiskbyname() 98 getnumdflt(dp->d_ntracks, "nt", 0); in getdiskbyname() 99 getnumdflt(dp->d_nsectors, "ns", 0); in getdiskbyname() 100 getnumdflt(dp->d_ncylinders, "nc", 0); in getdiskbyname() [all …]
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | dp.c | 30 /* TODO: Any other peer specific DP cleanup */ in ath11k_dp_peer_cleanup() 55 reo_dest = ar->dp.mac_id + 1; in ath11k_dp_peer_setup() 192 ret = ath11k_get_user_msi_vector(ab, "DP", in ath11k_dp_srng_msi_setup() 319 ath11k_warn(ab, "Not a valid ring type in dp :%d\n", type); in ath11k_dp_srng_setup() 348 ath11k_dp_shadow_stop_timer(ab, &ab->dp.tx_ring_timer[i]); in ath11k_dp_stop_shadow_timers() 350 ath11k_dp_shadow_stop_timer(ab, &ab->dp.reo_cmd_timer); in ath11k_dp_stop_shadow_timers() 355 struct ath11k_dp *dp = &ab->dp; in ath11k_dp_srng_common_cleanup() local 359 ath11k_dp_srng_cleanup(ab, &dp->wbm_desc_rel_ring); in ath11k_dp_srng_common_cleanup() 360 ath11k_dp_srng_cleanup(ab, &dp->tcl_cmd_ring); in ath11k_dp_srng_common_cleanup() 361 ath11k_dp_srng_cleanup(ab, &dp->tcl_status_ring); in ath11k_dp_srng_common_cleanup() [all …]
|
/freebsd/sys/fs/ext2fs/ |
H A D | ext2_lookup.c | 122 static int ext2_check_direntry(struct vnode *dp, 147 struct ext2fs_direct_2 *dp, *edp; in ext2_readdir() local 193 dp = (struct ext2fs_direct_2 *)&bp->b_data[skipcnt]; in ext2_readdir() 195 while (error == 0 && uio->uio_resid > 0 && dp < edp) { in ext2_readdir() 196 if (le16toh(dp->e2d_reclen) <= offsetof(struct ext2fs_direct_2, in ext2_readdir() 197 e2d_namlen) || (caddr_t)dp + le16toh(dp->e2d_reclen) > in ext2_readdir() 218 dstdp.d_namlen = dp->e2d_namlen; in ext2_readdir() 219 dstdp.d_type = FTTODT(dp->e2d_type); in ext2_readdir() 221 dstdp.d_namlen > le16toh(dp->e2d_reclen)) { in ext2_readdir() 225 if (offset < startoffset || le32toh(dp->e2d_ino) == 0) in ext2_readdir() [all …]
|
/freebsd/sbin/fsck_ffs/ |
H A D | dir.c | 98 union dinode *dp; in check_dirdepth() local 158 dp = ip.i_dp; in check_dirdepth() 173 DIP_SET(dp, di_dirdepth, inp->i_depth); in check_dirdepth() 177 cmd.size = (int64_t)inp->i_depth - DIP(dp, di_dirdepth); in check_dirdepth() 195 struct direct *dp; in dirscan() local 212 for (dp = fsck_readdir(idesc); dp != NULL; dp = fsck_readdir(idesc)) { in dirscan() 213 dsize = dp->d_reclen; in dirscan() 216 memmove(dbuf, dp, (size_ in dirscan() 241 struct direct *dp, *ndp; fsck_readdir() local 311 dircheck(struct inodesc * idesc,struct bufarea * bp,struct direct * dp) dircheck() argument 428 union dinode *dp; fileerror() local 454 union dinode *dp; adjust() local 566 union dinode *dp; linkup() local 735 union dinode *dp; makeentry() local 783 union dinode *dp; expanddir() local 915 union dinode *dp; allocdir() local 990 union dinode *dp; freedirino() local [all...] |
/freebsd/sys/kern/ |
H A D | vfs_lookup.c | 165 struct vnode *dp; in nameiinit() 196 nameicap_tracker_add(struct nameidata *ndp, struct vnode *dp) in nameicap_tracker_add() 200 if ((ndp->ni_lcf & NI_LCF_CAP_DOTDOT) == 0 || dp->v_type != VDIR) 203 if (nt != NULL && nt->dp == dp) in nameicap_cleanup_from() 206 vhold(dp); in nameicap_cleanup_from() 207 nt->dp = dp; in nameicap_cleanup_from() 219 vdrop(nt->dp); in nameicap_cleanup() 244 nameicap_check_dotdot(struct nameidata *ndp, struct vnode *dp) in nameicap_check_dotdot() 154 struct vnode *dp; global() member 185 nameicap_tracker_add(struct nameidata * ndp,struct vnode * dp) nameicap_tracker_add() argument 233 nameicap_check_dotdot(struct nameidata * ndp,struct vnode * dp) nameicap_check_dotdot() argument 444 struct vnode *dp; namei_emptypath() local 573 struct vnode *dp; /* the directory we are searching */ namei() local 807 vfs_lookup_degenerate(struct nameidata * ndp,struct vnode * dp,int wantparent) vfs_lookup_degenerate() argument 884 struct vnode *dp, *tdp; vfs_lookup_cross_mount() local 1009 struct vnode *dp = NULL; /* the directory we are searching */ vfs_lookup() local 1486 struct vnode *dp = NULL; /* the directory we are searching */ vfs_relookup() local [all...] |
/freebsd/sys/geom/cache/ |
H A D | g_cache.c | 114 struct g_cache_desc *dp; in g_cache_alloc() local 119 dp = TAILQ_FIRST(&sc->sc_usedlist); in g_cache_alloc() 120 TAILQ_REMOVE(&sc->sc_usedlist, dp, d_used); in g_cache_alloc() 122 dp->d_flags = 0; in g_cache_alloc() 123 LIST_REMOVE(dp, d_next); in g_cache_alloc() 124 return (dp); in g_cache_alloc() 130 dp = malloc(sizeof(*dp), M_GCACHE, M_NOWAIT | M_ZERO); in g_cache_alloc() 131 if (dp == NULL) in g_cache_alloc() 133 dp->d_data = uma_zalloc(sc->sc_zone, M_NOWAIT); in g_cache_alloc() 134 if (dp->d_data == NULL) { in g_cache_alloc() [all …]
|
/freebsd/sbin/restore/ |
H A D | dirs.c | 213 struct direct *dp; in treescan() local 239 dp = rst_readdir(dirp); /* "." */ in treescan() 240 if (dp != NULL && strcmp(dp->d_name, ".") == 0) in treescan() 241 dp = rst_readdir(dirp); /* ".." */ in treescan() 245 if (dp != NULL && strcmp(dp->d_name, "..") == 0) in treescan() 246 dp = rst_readdir(dirp); /* first real entry */ in treescan() 254 while (dp != NULL) { in treescan() 256 if (namelen + dp->d_namlen >= sizeof(locname)) { in treescan() 258 locname, dp->d_name, sizeof(locname) - 1); in treescan() 260 (void)strlcat(locname, dp->d_name, sizeof(locname)); in treescan() [all …]
|
/freebsd/usr.sbin/efidp/ |
H A D | efidp.c | 29 #include <efivar-dp.h> 139 efidp dp; in unix_to_efi() local 143 dp = NULL; in unix_to_efi() 146 free(dp); in unix_to_efi() 147 dp = NULL; in unix_to_efi() 148 rv = efivar_unix_path_to_device_path(walker, &dp); in unix_to_efi() 149 if (rv != 0 || dp == NULL) { in unix_to_efi() 155 dp, efidp_size(dp)) < 0) { in unix_to_efi() 156 warnx("Can't format dp for '%s'", walker); in unix_to_efi() 161 free(dp); in unix_to_efi() [all …]
|