/freebsd/lib/libmixer/ |
H A D | mixer.c | 68 struct mix_dev *dp; in mixer_open() local 121 dp->devno = i; in mixer_open() 122 dp->nctl = 0; in mixer_open() 125 (void)strlcpy(dp->name, names[i], sizeof(dp->name)); in mixer_open() 148 struct mix_dev *dp; in mixer_close() local 157 free(dp); in mixer_close() 175 struct mix_dev *dp; in mixer_get_dev() local 183 return (dp); in mixer_get_dev() 201 if (!strncmp(dp->name, name, sizeof(dp->name))) in mixer_get_dev_byname() 202 return (dp); in mixer_get_dev_byname() [all …]
|
/freebsd/contrib/unbound/iterator/ |
H A D | iter_utils.c | 325 if(dp->bogus) in iter_fill_rtt() 860 if(!env || !env->anchors || !dp || !dp->name) in iter_indicates_dnssec() 863 if((a=anchor_find(env->anchors, dp->name, dp->namelabs, dp->namelen, in iter_indicates_dnssec() 881 dp->name, dp->namelen, dclass, env->scratch, *env->now); in iter_indicates_dnssec() 917 if(!msg || !dp || !msg->rep || !dp->name) in iter_msg_from_zone() 939 l, dp->name, dp->namelabs)) in iter_msg_from_zone() 1479 if(stub && stub->dp && dp) { in iter_stub_fwd_no_cache() 1480 if(dname_strict_subdomain(dp->name, dp->namelabs, in iter_stub_fwd_no_cache() 1481 stub->dp->name, stub->dp->namelabs)) { in iter_stub_fwd_no_cache() 1517 if (dp) { in iter_stub_fwd_no_cache() [all …]
|
H A D | iterator.c | 701 if(dp) { in can_have_last_resort() 915 subiq->dp = delegpt_copy(dp, subq->region); in prime_root() 1127 iq->dp = dp; in auth_zone_delegpt() 1335 iq->dp = delegpt_copy(dp, qstate->region); in forward_request() 3015 iq->dp->name, iq->dp->namelen, in processQueryTargets() 3226 iq->dp&&iq->dp->has_parent_side_NS, in processQueryResponse() 3451 iq->dp&&iq->dp->has_parent_side_NS, NULL, in processQueryResponse() 3536 iq->dp->name, iq->dp->namelen, in processQueryResponse() 3555 iq->dp->name, iq->dp->namelen, in processQueryResponse() 3632 foriq->dp = dp; in prime_supers() [all …]
|
H A D | iter_fwd.c | 117 delegpt_free_mlc(dp); in forwards_insert_data() 124 delegpt_free_mlc(dp); in forwards_insert_data() 130 node->dp = dp; in forwards_insert_data() 135 delegpt_free_mlc(dp); in forwards_insert_data() 146 return forwards_insert_data(fwd, c, dp->name, dp->namelen, in forwards_insert() 147 dp->namelabs, dp); in forwards_insert() 183 struct delegpt* dp; in read_fwds_name() local 201 return dp; in read_fwds_name() 270 struct delegpt* dp; in read_forwards() local 273 if(!read_fwds_host(s, dp) || !read_fwds_addr(s, dp)) { in read_forwards() [all …]
|
/freebsd/sbin/fsck_ffs/ |
H A D | pass1.c | 250 union dinode *dp; in checkinode() local 267 dp->dp1.di_mode || dp->dp1.di_size)) || in checkinode() 273 dp->dp2.di_mode || dp->dp2.di_size))) { in checkinode() 293 dp = ip.i_dp; in checkinode() 345 if (DIP(dp, di_db[j]) == 0) in checkinode() 362 if (DIP(dp, di_ib[j]) == 0) in checkinode() 376 if (ftypeok(dp) == 0) { in checkinode() 390 cacheino(dp, inumber); in checkinode() 404 (void)ckinode(dp, idesc); in checkinode() 423 eascan(idesc, &dp->dp2); in checkinode() [all …]
|
/freebsd/contrib/bearssl/src/x509/ |
H A D | x509_decoder.c | 7 uint32_t *dp; member 380 uint32_t *dp, *rp; in br_x509_decoder_run() local 388 #define T0_PUSH(v) do { *dp = (v); dp ++; } while (0) in br_x509_decoder_run() 397 memmove(dp - t0len - 1, dp - t0len, t0len * sizeof *dp); \ in br_x509_decoder_run() 402 *(dp - 2) = *(dp - 1); \ in br_x509_decoder_run() 407 *(dp - 3) = *(dp - 2); \ in br_x509_decoder_run() 408 *(dp - 2) = *(dp - 1); \ in br_x509_decoder_run() 413 *(dp - 1) = *(dp - 2); \ in br_x509_decoder_run() 414 *(dp - 2) = *(dp - 3); \ in br_x509_decoder_run() 426 dp = ((t0_context *)t0ctx)->dp; in br_x509_decoder_run() [all …]
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clstate.c | 261 dp = NULL; in nfscl_open() 270 dp = NULL; in nfscl_open() 509 return (dp); in nfscl_finddeleg() 1162 if (dp != NULL && ((dp->nfsdl_flags & in nfscl_getbytelock() 1320 dp = NULL; in nfscl_relbytelock() 1623 dp = NULL; in nfscl_expireopen() 2887 dp = ndp; in nfscl_renewthread() 3524 dp = NULL; in nfscl_delegreturnvp() 3718 if (dp != NULL && (dp->nfsdl_flags & in nfscl_docb() 4388 ndp = dp; in nfscl_moveopen() [all …]
|
/freebsd/sys/dev/rtwn/usb/ |
H A D | rtwn_usb_attach.c | 111 dp->m = NULL; in rtwn_usb_alloc_list() 119 dp->ni = NULL; in rtwn_usb_alloc_list() 179 dp->buf = NULL; in rtwn_usb_free_list() 183 dp->ni = NULL; in rtwn_usb_free_list() 186 m_freem(dp->m); in rtwn_usb_free_list() 187 dp->m = NULL; in rtwn_usb_free_list() 246 (dp->ni != NULL && dp->ni->ni_vap == vap)) { in rtwn_usb_reset_tx_list() 249 dp->ni = NULL; in rtwn_usb_reset_tx_list() 254 dp->m = NULL; in rtwn_usb_reset_tx_list() 272 m_freem(dp->m); in rtwn_usb_reset_rx_list() [all …]
|
/freebsd/sys/sys/ |
H A D | dirent.h | 121 #define _GENERIC_DIRSIZ(dp) _GENERIC_DIRLEN((dp)->d_namlen) argument 127 #define GENERIC_DIRSIZ(dp) _GENERIC_DIRSIZ(dp) argument 134 dirent_terminate(struct dirent *dp) in dirent_terminate() argument 137 dp->d_pad0 = 0; in dirent_terminate() 138 dp->d_pad1 = 0; in dirent_terminate() 139 memset(dp->d_name + dp->d_namlen, 0, in dirent_terminate() 140 dp->d_reclen - (__offsetof(struct dirent, d_name) + dp->d_namlen)); in dirent_terminate()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | getcwd.c | 46 #define ISDOT(dp) \ argument 47 (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \ 48 (dp->d_name[1] == '.' && dp->d_name[2] == '\0'))) 53 struct dirent *dp; in getcwd() local 164 if (!(dp = readdir(dir))) in getcwd() 166 if (dp->d_fileno == ino) in getcwd() 171 if (!(dp = readdir(dir))) in getcwd() 173 if (ISDOT(dp)) in getcwd() 175 memcpy(bup, dp->d_name, dp->d_namlen + 1); in getcwd() 211 bpt -= dp->d_namlen; in getcwd() [all …]
|
/freebsd/contrib/bearssl/src/rsa/ |
H A D | rsa_i31_pubexp.c | 47 uint32_t *p, *dp, *x; in get_pubexp() local 97 dp = p + len; in get_pubexp() 98 memset(dp, 0, len * sizeof *dp); in get_pubexp() 99 br_i31_decode(dp, dpbuf, dplen); in get_pubexp() 100 dp[0] = p[0]; in get_pubexp() 105 br_i31_sub(dp, p, NOT(br_i31_sub(dp, p, 0))); in get_pubexp() 112 if (br_i31_sub(dp, p, 0) == 0) { in get_pubexp() 120 x = dp + len; in get_pubexp() 123 if (br_i31_moddiv(x, dp, p, br_i31_ninv31(p[1]), x + len) == 0) { in get_pubexp() 149 ep = get_pubexp(sk->p, sk->plen, sk->dp, sk->dplen); in br_rsa_i31_compute_pubexp()
|
H A D | rsa_i15_pubexp.c | 47 uint16_t *p, *dp, *x; in get_pubexp() local 97 dp = p + len; in get_pubexp() 98 memset(dp, 0, len * sizeof *dp); in get_pubexp() 99 br_i15_decode(dp, dpbuf, dplen); in get_pubexp() 100 dp[0] = p[0]; in get_pubexp() 105 br_i15_sub(dp, p, NOT(br_i15_sub(dp, p, 0))); in get_pubexp() 112 if (br_i15_sub(dp, p, 0) == 0) { in get_pubexp() 120 x = dp + len; in get_pubexp() 123 if (br_i15_moddiv(x, dp, p, br_i15_ninv15(p[1]), x + len) == 0) { in get_pubexp() 149 ep = get_pubexp(sk->p, sk->plen, sk->dp, sk->dplen); in br_rsa_i15_compute_pubexp()
|
/freebsd/sbin/restore/ |
H A D | interactive.c | 493 struct direct *dp; in printlist() local 500 if (dp == NULL || (!dflag && TSTINO(dp->d_ino, dumpmap) == 0) || in printlist() 532 if (dp == NULL) in printlist() 576 fp->fnum = dp->d_ino; in mkentry() 588 switch(dp->d_type) { in mkentry() 592 dp->d_type); in mkentry() 705 struct direct *dp; in glob_readdir() local 714 if (dp == NULL) in glob_readdir() 718 memmove(adirent.d_name, dp->d_name, dp->d_namlen + 1); in glob_readdir() 728 struct direct *dp; in glob_stat() local [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | kinfo2.sh | 106 struct dirent *dp; 134 dp = (struct dirent *)bp; 139 dp->d_name, (uintmax_t)dp->d_fileno, dp->d_type, 140 dp->d_namlen, dp->d_reclen); fflush(stdout); 143 if (dp->d_type == DT_DIR && 144 (dp->d_name[0] >= '0' && dp->d_name[0] <= '9')) { 145 l = strtol(dp->d_name, &dummy, 10); 157 bp = bp + dp->d_reclen; 158 dp = (struct dirent *)bp; 159 if (dp->d_reclen <= 0)
|
H A D | namecache.sh | 121 struct dirent *dp; 136 dp = (struct dirent *)bp; 138 if (strcmp(path, dp->d_name) == 0) { 140 if (stat(dp->d_name, &statb) == -1) { 141 warn("stat(%s)", dp->d_name); 144 dp->d_name, (uintmax_t)dp->d_fileno, dp->d_type, 145 dp->d_namlen, dp->d_reclen); 153 bp = bp + dp->d_reclen; 154 dp = (struct dirent *)bp; 155 if (dp->d_reclen <= 0)
|
/freebsd/sbin/clri/ |
H A D | clri.c | 60 union dinodep dp; in main() local 87 if (getinode(&disk, &dp, inonum) == -1) { in main() 94 generation = dp.dp1->di_gen + 1; in main() 95 memset(dp.dp1, 0, sizeof(*dp.dp1)); in main() 96 dp.dp1->di_gen = generation; in main() 98 generation = dp.dp2->di_gen + 1; in main() 99 memset(dp.dp2, 0, sizeof(*dp.dp2)); in main() 100 dp.dp2->di_gen = generation; in main()
|
/freebsd/lib/libc/gen/ |
H A D | getcwd.c | 48 #define ISDOT(dp) \ argument 49 (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \ 50 (dp->d_name[1] == '.' && dp->d_name[2] == '\0'))) 57 struct dirent *dp; in __ssp_real() local 158 if (!(dp = readdir(dir))) in __ssp_real() 160 if (dp->d_fileno == ino) in __ssp_real() 165 if (!(dp = readdir(dir))) in __ssp_real() 167 if (ISDOT(dp)) in __ssp_real() 171 if (fstatat(_dirfd(dir), dp->d_name, &s, in __ssp_real() 204 bpt -= dp->d_namlen; in __ssp_real() [all …]
|
/freebsd/usr.bin/mkimg/ |
H A D | mbr.c | 75 struct dos_partition *dpbase, *dp; in mbr_write() local 92 dp = dpbase + part->index; in mbr_write() 94 dp->dp_flag = in mbr_write() 97 dp->dp_flag = in mbr_write() 99 mbr_chs(&dp->dp_scyl, &dp->dp_shd, &dp->dp_ssect, in mbr_write() 101 dp->dp_typ = ALIAS_TYPE2INT(part->type); in mbr_write() 102 mbr_chs(&dp->dp_ecyl, &dp->dp_ehd, &dp->dp_esect, in mbr_write() 104 le32enc(&dp->dp_start, part->block); in mbr_write() 105 le32enc(&dp->dp_size, size); in mbr_write()
|
/freebsd/stand/ficl/ |
H A D | prefix.c | 159 FICL_DICT *dp = pSys->dp; in ficlCompilePrefix() local 161 FICL_HASH *pPrevCompile = dp->pCompile; in ficlCompilePrefix() 171 pHash = dictCreateWordlist(dp, 1); in ficlCompilePrefix() 173 dictAppendWord(dp, list_name, constantParen, FW_DEFAULT); in ficlCompilePrefix() 174 dictAppendCell(dp, LVALUEtoCELL(pHash)); in ficlCompilePrefix() 179 dictAppendWord(dp, "__tempbase", fTempBase, FW_DEFAULT); in ficlCompilePrefix() 185 dp->pCompile = pHash; in ficlCompilePrefix() 186 dictAppendWord(dp, "0x", prefixHex, FW_DEFAULT); in ficlCompilePrefix() 187 dictAppendWord(dp, "0d", prefixTen, FW_DEFAULT); in ficlCompilePrefix() 192 dictAppendWord(dp, "//", pFW->code, FW_DEFAULT); in ficlCompilePrefix() [all …]
|
/freebsd/lib/libc/rpc/ |
H A D | des_crypt.c | 72 struct desparams dp; in cbc_crypt() local 75 dp.UDES.UDES_buf = buf; in cbc_crypt() 76 dp.des_mode = ECB; in cbc_crypt() 78 dp.des_mode = CBC; in cbc_crypt() 80 COPY8(ivec, dp.des_ivec); in cbc_crypt() 81 err = common_crypt(key, buf, len, mode, &dp); in cbc_crypt() 82 COPY8(dp.des_ivec, ivec); in cbc_crypt() 93 struct desparams dp; in ecb_crypt() local 96 dp.UDES.UDES_buf = buf; in ecb_crypt() 97 dp.des_mode = CBC; in ecb_crypt() [all …]
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | txg.h | 70 extern void txg_init(struct dsl_pool *dp, uint64_t txg); 71 extern void txg_fini(struct dsl_pool *dp); 72 extern void txg_sync_start(struct dsl_pool *dp); 73 extern void txg_sync_stop(struct dsl_pool *dp); 74 extern uint64_t txg_hold_open(struct dsl_pool *dp, txg_handle_t *txghp); 81 extern void txg_kick(struct dsl_pool *dp, uint64_t txg); 89 extern void txg_wait_synced(struct dsl_pool *dp, uint64_t txg); 102 extern void txg_wait_open(struct dsl_pool *dp, uint64_t txg, 109 extern boolean_t txg_stalled(struct dsl_pool *dp); 112 extern boolean_t txg_sync_waiting(struct dsl_pool *dp); [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | dsl_scan.c | 468 spa_t *spa = dp->dp_spa; in dsl_scan_init() 472 scn->scn_dp = dp; in dsl_scan_init() 653 dp->dp_scan = NULL; in dsl_scan_fini() 667 return ((dp->dp_scan && dp->dp_scan->scn_restart_txg != 0) || in dsl_scan_resilver_scheduled() 721 spa_t *spa = dp->dp_spa; in dsl_errorscrub_setup_sync() 932 dp->dp_blkstats = in dsl_scan_setup_sync() 938 if (dp->dp_blkstats) { in dsl_scan_setup_sync() 2875 VERIFY0(dmu_objset_find_dp(dp, dp->dp_root_dir_obj, in dsl_scan_visitds() 3069 VERIFY0(dmu_objset_find_dp(dp, dp->dp_root_dir_obj, in dsl_scan_visit() 3766 if (bptree_is_empty(dp->dp_meta_objset, dp->dp_bptree_obj)) { in dsl_process_async_destroys() [all …]
|
/freebsd/bin/ls/ |
H A D | print.c | 110 printscol(const DISPLAY *dp) in printscol() argument 117 (void)printaname(p, dp->s_inode, dp->s_block); in printscol() 201 printlong(const DISPLAY *dp) in printlong() argument 211 if ((dp->list == NULL || dp->list->fts_level != FTS_ROOTLEVEL) && in printlong() 282 chcnt += printaname(p, dp->s_inode, dp->s_block); in printstream() 293 printcol(const DISPLAY *dp) in printcol() argument 324 printscol(dp); in printcol() 334 colwidth = dp->maxlen; in printcol() 344 printscol(dp); in printcol() 352 if ((dp->list == NULL || dp->list->fts_level != FTS_ROOTLEVEL) && in printcol() [all …]
|
/freebsd/stand/liblua/ |
H A D | lstd.c | 179 DIR *dp; in opendir() local 186 if (dp == NULL) in opendir() 188 return dp; in opendir() 194 DIR *dp; in fdopendir() local 196 dp = malloc(sizeof(*dp)); in fdopendir() 197 if (dp == NULL) in fdopendir() 199 dp->fd = fd; in fdopendir() 200 return dp; in fdopendir() 206 close(dp->fd); in closedir() 207 dp->fd = -1; in closedir() [all …]
|
/freebsd/stand/libofw/ |
H A D | ofw_disk.c | 98 if (dp != kdp) { in ofwd_strategy() 105 if ((dp->d_handle = OF_open(dp->d_path)) == -1) in ofwd_strategy() 107 kdp = dp; in ofwd_strategy() 112 if (OF_seek(dp->d_handle, pos) < 0) in ofwd_strategy() 114 n = OF_read(dp->d_handle, buf, size); in ofwd_strategy() 125 struct ofw_devdesc *dp; in ofwd_open() local 129 dp = va_arg(vl, struct ofw_devdesc *); in ofwd_open() 132 if (dp != kdp) { in ofwd_open() 137 if ((dp->d_handle = OF_open(dp->d_path)) == -1) { in ofwd_open() 139 dp->d_path); in ofwd_open() [all …]
|