/freebsd-current/sys/libkern/ |
H A D | iconv_xlat.c | 58 struct iconv_xlat *dp; local 60 dp = (struct iconv_xlat *)kobj_create((struct kobj_class*)dcp, M_ICONV, M_WAITOK); 61 dp->d_table = csp->cp_data; 62 dp->d_csp = csp; 64 *dpp = (void*)dp; 71 struct iconv_xlat *dp = data; local 73 dp->d_csp->cp_refcount--; 83 struct iconv_xlat *dp = (struct iconv_xlat*)d2p; local 99 *dst++ = dp->d_table[(u_char)*src++];
|
/freebsd-current/lib/libc/gen/ |
H A D | gen-compat.h | 32 #define FREEBSD11_DIRSIZ(dp) \ 33 (sizeof(struct freebsd11_dirent) - sizeof((dp)->d_name) + \ 34 (((dp)->d_namlen + 1 + 3) &~ 3))
|
H A D | getcwd.c | 48 #define ISDOT(dp) \ 49 (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \ 50 (dp->d_name[1] == '.' && dp->d_name[2] == '\0'))) 57 struct dirent *dp; local 158 if (!(dp = readdir(dir))) 160 if (dp->d_fileno == ino) 165 if (!(dp = readdir(dir))) 167 if (ISDOT(dp)) [all...] |
/freebsd-current/stand/ficl/ |
H A D | prefix.c | 159 FICL_DICT *dp = pSys->dp; local 161 FICL_HASH *pPrevCompile = dp->pCompile; 171 pHash = dictCreateWordlist(dp, 1); 173 dictAppendWord(dp, list_name, constantParen, FW_DEFAULT); 174 dictAppendCell(dp, LVALUEtoCELL(pHash)); 179 dictAppendWord(dp, "__tempbase", fTempBase, FW_DEFAULT); 185 dp->pCompile = pHash; 186 dictAppendWord(dp, "0x", prefixHex, FW_DEFAULT); 187 dictAppendWord(dp, " [all...] |
H A D | words.c | 89 static void markBranch(FICL_DICT *dp, FICL_VM *pVM, char *tag) argument 91 PUSHPTR(dp->here); 125 static void resolveBackBranch(FICL_DICT *dp, FICL_VM *pVM, char *tag) argument 136 offset = patchAddr - dp->here; 137 dictAppendCell(dp, LVALUEtoCELL(offset)); 148 static void resolveForwardBranch(FICL_DICT *dp, FICL_VM *pVM, char *tag) argument 159 offset = dp->here - patchAddr; 170 static void resolveAbsBranch(FICL_DICT *dp, FICL_VM *pVM, char *tag) argument 189 *patchAddr = LVALUEtoCELL(dp->here); 463 FICL_DICT *dp local 516 FICL_DICT *dp = vmGetDict(pVM); local 556 FICL_DICT *dp = vmGetDict(pVM); local 609 FICL_DICT *dp = vmGetDict(pVM); local 623 FICL_DICT *dp = vmGetDict(pVM); local 1277 FICL_DICT *dp = vmGetDict(pVM); local 1305 FICL_DICT *dp = vmGetDict(pVM); local 1329 FICL_DICT *dp = vmGetDict(pVM); local 1368 FICL_DICT *dp; local 1446 FICL_DICT *dp = vmGetDict(pVM); local 1489 FICL_DICT *dp = vmGetDict(pVM); local 1532 FICL_DICT *dp = vmGetDict(pVM); local 1680 FICL_DICT *dp = vmGetDict(pVM); local 1823 FICL_DICT *dp = vmGetDict(pVM); local 1835 FICL_DICT *dp = vmGetDict(pVM); local 2019 FICL_DICT *dp = vmGetDict(pVM); local 2059 FICL_DICT *dp = vmGetDict(pVM); local 2129 FICL_DICT *dp = vmGetDict(pVM); local 2142 FICL_DICT *dp = vmGetDict(pVM); local 2320 FICL_DICT *dp = vmGetDict(pVM); local 2331 FICL_DICT *dp = vmGetDict(pVM); local 2379 FICL_DICT *dp; local 2399 FICL_DICT *dp; local 2411 FICL_DICT *dp; local 2425 FICL_DICT *dp; local 2507 FICL_DICT *dp = vmGetDict(pVM); local 2605 FICL_DICT *dp = vmGetDict(pVM); local 2657 FICL_DICT *dp = vmGetDict(pVM); local 2705 FICL_DICT *dp; local 2770 FICL_DICT *dp = vmGetDict(pVM); local 2799 FICL_DICT *dp = vmGetDict(pVM); local 2809 FICL_DICT *dp = vmGetDict(pVM); local 3192 FICL_DICT *dp = vmGetDict(pVM); local 3227 FICL_DICT *dp = vmGetDict(pVM); local 3234 FICL_DICT *dp = vmGetDict(pVM); local 3245 FICL_DICT *dp = vmGetDict(pVM); local 3258 FICL_DICT *dp = vmGetDict(pVM); local 3273 FICL_DICT *dp = vmGetDict(pVM); local 3469 FICL_DICT *dp = vmGetDict(pVM); local 4054 FICL_DICT *dp = vmGetDict(pVM); local 4096 FICL_DICT *dp = vmGetDict(pVM); local 4124 FICL_DICT *dp = vmGetDict(pVM); local 4858 FICL_DICT *dp = pSys->dp; local [all...] |
/freebsd-current/lib/libc/rpc/ |
H A D | des_crypt.c | 72 struct desparams dp; local 75 dp.UDES.UDES_buf = buf; 76 dp.des_mode = ECB; 78 dp.des_mode = CBC; 80 COPY8(ivec, dp.des_ivec); 81 err = common_crypt(key, buf, len, mode, &dp); 82 COPY8(dp.des_ivec, ivec); 93 struct desparams dp; local 96 dp.UDES.UDES_buf = buf; 97 dp [all...] |
/freebsd-current/sbin/fsck_ffs/ |
H A D | dir.c | 98 union dinode *dp; local 158 dp = ip.i_dp; 173 DIP_SET(dp, di_dirdepth, inp->i_depth); 177 cmd.size = (int64_t)inp->i_depth - DIP(dp, di_dirdepth); 195 struct direct *dp; local 212 for (dp = fsck_readdir(idesc); dp != NULL; dp = fsck_readdir(idesc)) { 213 dsize = dp->d_reclen; 216 memmove(dbuf, dp, (size_ 241 struct direct *dp, *ndp; local 311 dircheck(struct inodesc *idesc, struct bufarea *bp, struct direct *dp) argument 428 union dinode *dp; local 454 union dinode *dp; local 566 union dinode *dp; local 735 union dinode *dp; local 783 union dinode *dp; local 915 union dinode *dp; local 990 union dinode *dp; local [all...] |
/freebsd-current/sys/ufs/ufs/ |
H A D | ufs_lookup.c | 191 struct inode *dp; /* inode for directory being searched */ local 204 doff_t prevoff; /* prev entry dp->i_offset */ 205 struct vnode *pdp; /* saved dp during symlink work */ 219 dp = VTOI(vdp); 220 if (dp->i_effnlink == 0) 229 vnode_create_vobject(vdp, DIP(dp, i_size), curthread); 266 i_diroff = dp->i_diroff; 282 if (ufsdirhash_build(dp) == 0) { 284 enduseful = dp->i_size; 286 slotoffset = ufsdirhash_findfree(dp, slotneede 771 ufs_dirbadentry(struct vnode *dp, struct direct *ep, int entryoffsetinblock) argument 855 struct inode *dp; local 1106 struct inode *dp; local 1226 ufs_dirrewrite(struct inode *dp, struct inode *oip, ino_t newinum, int newtype, int isrmdir) argument 1305 struct direct *dp = (struct direct *)&dbuf; local [all...] |
/freebsd-current/sys/kern/ |
H A D | uipc_domain.c | 230 domain_add(struct domain *dp) argument 236 if (dp->dom_probe != NULL && (*dp->dom_probe)() != 0) 239 for (int i = 0; i < dp->dom_nprotosw; i++) 240 if ((pr = dp->dom_protosw[i]) != NULL) 241 pr_init(dp, pr); 247 MPASS(tmp->dom_family != dp->dom_family); 249 SLIST_INSERT_HEAD(&domains, dp, dom_next); 254 domain_remove(struct domain *dp) argument 257 if ((dp 280 struct domain *dp; local 291 struct domain *dp; local 312 protosw_register(struct domain *dp, struct protosw *npr) argument 366 struct domain *dp; local [all...] |
H A D | vfs_lookup.c | 165 struct vnode *dp; member in struct:nameicap_tracker 196 nameicap_tracker_add(struct nameidata *ndp, struct vnode *dp) argument 200 if ((ndp->ni_lcf & NI_LCF_CAP_DOTDOT) == 0 || dp->v_type != VDIR) 203 if (nt != NULL && nt->dp == dp) 206 vhold(dp); 207 nt->dp = dp; 219 vdrop(nt->dp); 244 nameicap_check_dotdot(struct nameidata *ndp, struct vnode *dp) argument 455 struct vnode *dp; local 584 struct vnode *dp; /* the directory we are searching */ local 818 vfs_lookup_degenerate(struct nameidata *ndp, struct vnode *dp, int wantparent) argument 895 struct vnode *dp, *tdp; local 1020 struct vnode *dp = NULL; /* the directory we are searching */ local 1497 struct vnode *dp = NULL; /* the directory we are searching */ local [all...] |
/freebsd-current/contrib/ncurses/ncurses/tinfo/ |
H A D | captoinfo.c | 118 static char *dp; /* pointer to end of the converted string */ variable 234 dp = save_string(dp, "%\'"); 235 dp = save_char(dp, c); 236 dp = save_char(dp, '\''); 238 dp = save_string(dp, "%{"); 240 dp [all...] |
/freebsd-current/contrib/mandoc/ |
H A D | tbl_html.c | 115 const struct tbl_dat *dp; local 178 for (dp = sp->first; dp != NULL; dp = dp->next) { 187 cp = dp->layout; 189 (dp->string != NULL && strcmp(dp->string, "\\^") == 0)) 194 if (dp->hspans > 0) { 196 "%d", dp [all...] |
H A D | out.c | 123 const struct tbl_dat *dp; local 152 for (dp = sp->first; dp != NULL; dp = dp->next) { 153 icol = dp->layout->col; 154 while (maxcol < icol + dp->hspans) 157 col->flags |= dp->layout->flags; 158 if (dp->layout->flags & TBL_CELL_WIGN) 163 if (dp 407 tblcalc_data(struct rofftbl *tbl, struct roffcol *col, const struct tbl_opts *opts, const struct tbl_dat *dp, size_t mw) argument 436 tblcalc_literal(struct rofftbl *tbl, struct roffcol *col, const struct tbl_dat *dp, size_t mw) argument 473 tblcalc_number(struct rofftbl *tbl, struct roffcol *col, const struct tbl_opts *opts, const struct tbl_dat *dp) argument [all...] |
/freebsd-current/crypto/openssh/openbsd-compat/ |
H A D | getcwd.c | 46 #define ISDOT(dp) \ 47 (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \ 48 (dp->d_name[1] == '.' && dp->d_name[2] == '\0'))) 53 struct dirent *dp; local 164 if (!(dp = readdir(dir))) 166 if (dp->d_fileno == ino) 171 if (!(dp = readdir(dir))) 173 if (ISDOT(dp)) [all...] |
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/zfs_list/ |
H A D | zfs_list_007_pos.ksh | 65 for dp in ${depth_array[@]}; do 67 while (( j<=dp && j<=MAX_DEPTH )); do 73 if [[ "$dp" == "0" ]] && \ 75 log_must eval "zfs list -H -d $dp -o name -t ${fs_type[$fs]} $DEPTH_FS > $DEPTH_OUTPUT" 80 log_must eval "zfs list -H -d $dp -o name -t ${fs_type[$fs]} $DEPTH_FS > $DEPTH_OUTPUT" 86 (( old_val=dp ))
|
/freebsd-current/sys/contrib/openzfs/module/zfs/ |
H A D | dsl_synctask.c | 51 dsl_pool_t *dp; local 56 dp = spa_get_dsl(spa); 59 tx = dmu_tx_create_dd(dp->dp_mos_dir); 62 dst.dst_pool = dp; 72 dsl_pool_config_enter(dp, FTAG); 74 dsl_pool_config_exit(dp, FTAG); 83 &dp->dp_early_sync_tasks : &dp->dp_sync_tasks; 88 if (sigfunc != NULL && txg_wait_synced_sig(dp, dst.dst_txg)) { 93 txg_wait_synced(dp, ds 172 dsl_sync_task_nowait_common(dsl_pool_t *dp, dsl_syncfunc_t *syncfunc, void *arg, dmu_tx_t *tx, boolean_t early) argument 192 dsl_sync_task_nowait(dsl_pool_t *dp, dsl_syncfunc_t *syncfunc, void *arg, dmu_tx_t *tx) argument 199 dsl_early_sync_task_nowait(dsl_pool_t *dp, dsl_syncfunc_t *syncfunc, void *arg, dmu_tx_t *tx) argument 211 dsl_pool_t *dp = dst->dst_pool; local [all...] |
/freebsd-current/usr.sbin/lpr/chkprintcap/ |
H A D | chkprintcap.c | 228 struct dirlist *dp, *dp2, *last; local 230 dp = malloc(sizeof *dp); 231 if (dp == NULL) 232 err(++problems, "malloc(%lu)", (u_long)sizeof *dp); 234 dp->stab = *st; 235 dp->printer = strdup(pp->printer); 236 if (dp->printer == 0) 238 dp->path = strdup(pp->spool_dir); 239 if (dp 259 struct dirlist *dp, *dp2; local [all...] |
/freebsd-current/tests/sys/cddl/zfs/tests/cli_user/zfs_list/ |
H A D | zfs_list_007_pos.ksh | 81 for dp in ${depth_array[@]}; do 83 while (( j<=dp && j<=MAX_DEPTH )); do 89 if [[ "$dp" == "0" ]] && \ 91 log_must eval "run_unprivileged $ZFS list -H -d $dp -o name -t ${fs_type[$fs]} $DEPTH_FS > $DEPTH_OUTPUT" 96 log_must eval "run_unprivileged $ZFS list -H -d $dp -o name -t ${fs_type[$fs]} $DEPTH_FS > $DEPTH_OUTPUT" 102 (( old_val=dp ))
|
/freebsd-current/sys/contrib/dev/athk/ath12k/ |
H A D | dp.c | 52 reo_dest = ar->dp.mac_id + 1; 297 ath12k_warn(ab, "Not a valid ring type in dp :%d\n", type); 353 struct ath12k_dp *dp) 363 spin_lock_bh(&dp->tx_bank_lock); 365 for (i = 0; i < dp->num_bank_profiles; i++) { 366 if (dp->bank_profiles[i].is_configured && 367 (dp->bank_profiles[i].bank_config ^ bank_config) == 0) { 371 if (!dp->bank_profiles[i].is_configured || 372 !dp->bank_profiles[i].num_users) { 379 spin_unlock_bh(&dp 352 ath12k_dp_tx_get_bank_profile(struct ath12k_base *ab, struct ath12k_vif *arvif, struct ath12k_dp *dp) argument 402 ath12k_dp_tx_put_bank_profile(struct ath12k_dp *dp, u8 bank_id) argument 411 struct ath12k_dp *dp = &ab->dp; local 419 struct ath12k_dp *dp = &ab->dp; local 442 struct ath12k_dp *dp = &ab->dp; local 461 struct ath12k_dp *dp = &ab->dp; local 581 struct ath12k_dp *dp = &ab->dp; local 601 struct ath12k_dp *dp = &ab->dp; local 698 struct ath12k_dp *dp = &ab->dp; local 746 struct ath12k_dp *dp = &ab->dp; local 970 struct ath12k_dp *dp = &ab->dp; local 997 struct ath12k_pdev_dp *dp; local 1067 ath12k_dp_htt_connect(struct ath12k_dp *dp) argument 1139 struct ath12k_dp *dp = &ab->dp; local 1198 struct ath12k_dp *dp = &ab->dp; local 1216 struct ath12k_dp *dp = &ab->dp; local 1294 struct ath12k_dp *dp = &ab->dp; local 1338 struct ath12k_dp *dp = &ab->dp; local 1402 struct ath12k_dp *dp = &ab->dp; local 1466 struct ath12k_dp *dp = &ab->dp; local 1487 struct ath12k_dp *dp = &ab->dp; local [all...] |
/freebsd-current/sys/contrib/dev/athk/ath11k/ |
H A D | dp.c | 55 reo_dest = ar->dp.mac_id + 1; 319 ath11k_warn(ab, "Not a valid ring type in dp :%d\n", type); 348 ath11k_dp_shadow_stop_timer(ab, &ab->dp.tx_ring_timer[i]); 350 ath11k_dp_shadow_stop_timer(ab, &ab->dp.reo_cmd_timer); 355 struct ath11k_dp *dp = &ab->dp; local 359 ath11k_dp_srng_cleanup(ab, &dp->wbm_desc_rel_ring); 360 ath11k_dp_srng_cleanup(ab, &dp->tcl_cmd_ring); 361 ath11k_dp_srng_cleanup(ab, &dp->tcl_status_ring); 363 ath11k_dp_srng_cleanup(ab, &dp 375 struct ath11k_dp *dp = &ab->dp; local 492 struct ath11k_dp *dp = &ab->dp; local 512 struct ath11k_dp *dp = &ab->dp; local 608 struct ath11k_dp *dp = &ab->dp; local 656 struct ath11k_dp *dp = &ab->dp; local 869 struct ath11k_pdev_dp *dp = &ar->dp; local 903 struct ath11k_pdev_dp *dp; local 955 ath11k_dp_htt_connect(struct ath11k_dp *dp) argument 1038 struct ath11k_dp *dp = &ab->dp; local 1062 struct ath11k_dp *dp = &ab->dp; local [all...] |
/freebsd-current/sys/geom/cache/ |
H A D | g_cache.c | 114 struct g_cache_desc *dp; local 119 dp = TAILQ_FIRST(&sc->sc_usedlist); 120 TAILQ_REMOVE(&sc->sc_usedlist, dp, d_used); 122 dp->d_flags = 0; 123 LIST_REMOVE(dp, d_next); 124 return (dp); 130 dp = malloc(sizeof(*dp), M_GCACHE, M_NOWAIT | M_ZERO); 131 if (dp == NULL) 133 dp 143 g_cache_free(struct g_cache_softc *sc, struct g_cache_desc *dp) argument 156 struct g_cache_desc *dp; local 173 g_cache_deliver(struct g_cache_softc *sc, struct bio *bp, struct g_cache_desc *dp, int error) argument 216 struct g_cache_desc *dp; local 249 struct g_cache_desc *dp; local 263 struct g_cache_desc *dp; local 316 struct g_cache_desc *dp; local 346 struct g_cache_desc *dp; local 408 struct g_cache_desc *dp; local 556 struct g_cache_desc *dp, *dp2; local [all...] |
/freebsd-current/libexec/rtld-elf/tests/ |
H A D | ld_library_pathfds.c | 157 setup(struct descriptors *dp, const atf_tc_t *tc) argument 160 dp->testdir = opendir_fd(atf_tc_get_config_var(tc, "srcdir")); 161 ATF_REQUIRE(dp->testdir >= 0); 163 (dp->binary = openat(dp->testdir, TARGET_ELF_NAME, O_RDONLY)) >= 0); 165 ATF_REQUIRE((dp->root = opendir_fd("/")) >= 0); 166 ATF_REQUIRE((dp->etc = opendirat(dp->root, "etc")) >= 0); 167 ATF_REQUIRE((dp->usr = opendirat(dp [all...] |
/freebsd-current/usr.sbin/efivar/ |
H A D | efiutil.c | 29 #include <efivar-dp.h> 40 #include <efivar-dp.h> 116 #define SIZE(dp, edp) (size_t)((intptr_t)(void *)edp - (intptr_t)(void *)dp) 127 efidp dp, edp; local 150 dp = (efidp)walker; 166 while (dp < edp && SIZE(dp, edp) > sizeof(efidp_header)) { 167 efidp_format_device_path(buf, sizeof(buf), dp, SIZE(dp, ed [all...] |
/freebsd-current/stand/libofw/ |
H A D | ofw_disk.c | 94 struct ofw_devdesc *dp = (struct ofw_devdesc *)devdata; local 98 if (dp != kdp) { 105 if ((dp->d_handle = OF_open(dp->d_path)) == -1) 107 kdp = dp; 112 if (OF_seek(dp->d_handle, pos) < 0) 114 n = OF_read(dp->d_handle, buf, size); 125 struct ofw_devdesc *dp; local 129 dp = va_arg(vl, struct ofw_devdesc *); 132 if (dp ! [all...] |
/freebsd-current/stand/liblua/ |
H A D | lstd.c | 179 DIR *dp; local 185 dp = fdopendir(fd); 186 if (dp == NULL) 188 return dp; 194 DIR *dp; local 196 dp = malloc(sizeof(*dp)); 197 if (dp == NULL) 199 dp->fd = fd; 200 return dp; 204 closedir(DIR *dp) argument [all...] |