Home
last modified time | relevance | path

Searched refs:dsize (Results 1 – 25 of 95) sorted by relevance

1234

/freebsd/contrib/ntp/ntpq/
H A Dlibntpq.c187 size_t dsize; in ntpq_queryhost() local
191 res = doquery(VARSET,association,0,0, (char *)0, &rstatus, &dsize, &datap); in ntpq_queryhost()
195 if ( ( res != 0) || ( dsize == 0 ) ) /* no data */ in ntpq_queryhost()
198 if ( dsize > maxlen) in ntpq_queryhost()
199 dsize = maxlen; in ntpq_queryhost()
203 memcpy(resultbuf, datap, dsize); in ntpq_queryhost()
205 return dsize; in ntpq_queryhost()
423 size_t dsize; in ntpq_read_assoc_peervars() local
427 &dsize, &datap); in ntpq_read_assoc_peervars()
430 if (dsize <= 0) { in ntpq_read_assoc_peervars()
[all …]
H A Dntpq-subs.c623 size_t *dsize, in doquerylist() argument
633 return doquery(op, associd, auth, datalen, data, rstatus, dsize, in doquerylist()
732 size_t dsize; in dolist() local
745 res = doquerylist(vlist, op, associd, 0, &rstatus, &dsize, &datap); in dolist()
752 if (dsize == 0) { in dolist()
766 printvars(dsize, datap, (int)rstatus, type, quiet, fp); in dolist()
812 size_t dsize; in writelist() local
826 &dsize, &datap); in writelist()
833 if (dsize == 0) in writelist()
837 printvars(dsize, data in writelist()
895 size_t dsize; writevar() local
1117 size_t dsize; dogetassoc() local
1443 size_t dsize; saveconfig() local
1477 int dsize; radiostatus() local
1975 size_t dsize; dogetpeers() local
3448 size_t dsize; ifstats() local
3661 size_t dsize; reslist() local
[all...]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bclone/
H A Dbclone_common.kshlib62 typeset dsize
65 dsize=$(( ((size - 1) / MINBLOCKSIZE + 1) * MINBLOCKSIZE ))
67 dsize=$(( ((size - 1) / recordsize + 1) * recordsize ))
69 dsize=$((dsize*copies))
71 echo $dsize
102 typeset dsize=$3
105 if [[ $dsize -eq 0 ]]; then
108 dsize=0
110 verify_pool_prop_eq bcloneused $(($oused+$dsize))
111 verify_pool_prop_eq bclonesaved $(($osaved+dsize*(ratio-1)))
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_raidz_math_impl.h160 raidz_zero_abd_cb(void *dc, size_t dsize, void *private) in raidz_zero_abd_cb() argument
171 for (i = 0; i < dsize / sizeof (v_t); i += (2 * ZERO_STRIDE)) { in raidz_zero_abd_cb()
402 const size_t dsize) in raidz_gen_pq_add() argument
407 const v_t * const dend = d + (dsize / sizeof (v_t)); in raidz_gen_pq_add()
437 size_t off, size, dsize; in raidz_generate_pq_impl() local
454 dsize = rr->rr_col[c].rc_size; in raidz_generate_pq_impl()
455 dsize = (dsize > off) ? MIN(CHUNK, dsize - off) : 0; in raidz_generate_pq_impl()
457 abd_raidz_gen_iterate(cabds, dabd, off, size, dsize, 2, in raidz_generate_pq_impl()
477 const size_t dsize) in raidz_gen_pqr_add() argument
483 const v_t * const dend = d + (dsize / sizeof (v_t)); in raidz_gen_pqr_add()
[all …]
/freebsd/sbin/hastd/
H A Dhast_proto.c177 size_t dsize; in hast_proto_recv_data() local
188 dsize = nv_get_uint32(nv, "size"); in hast_proto_recv_data()
189 if (dsize > size) { in hast_proto_recv_data()
192 } else if (dsize == 0) { in hast_proto_recv_data()
195 if (proto_recv(conn, data, dsize) == -1) in hast_proto_recv_data()
200 &dsize, &freedata); in hast_proto_recv_data()
205 if (dsize > size) { in hast_proto_recv_data()
210 bcopy(dptr, data, dsize); in hast_proto_recv_data()
/freebsd/lib/libc/db/recno/
H A Drec_utils.c93 if (rl->dsize + 1 > t->bt_rdata.size) { in __rec_ret()
94 p = realloc(t->bt_rdata.data, rl->dsize + 1); in __rec_ret()
98 t->bt_rdata.size = rl->dsize + 1; in __rec_ret()
100 memmove(t->bt_rdata.data, rl->bytes, rl->dsize); in __rec_ret()
101 data->size = rl->dsize; in __rec_ret()
104 data->size = rl->dsize; in __rec_ret()
/freebsd/lib/libc/db/hash/
H A Dndbm.c95 dbtkey.size = key.dsize; in dbm_fetch()
102 retdata.dsize = dbtretdata.size; in dbm_fetch()
122 retkey.dsize = dbtretkey.size; in dbm_firstkey()
142 retkey.dsize = dbtretkey.size; in dbm_nextkey()
158 dbtkey.size = key.dsize; in dbm_delete()
178 dbtkey.size = key.dsize; in dbm_store()
180 dbtdata.size = data.dsize; in dbm_store()
/freebsd/lib/libc/secure/
H A Dstrlcat_chk.c34 __strlcat_chk(char * __restrict dst, const char * __restrict src, size_t dsize, in __strlcat_chk() argument
39 size_t n = dsize; in __strlcat_chk()
42 if (dsize > dbufsize) in __strlcat_chk()
51 n = dsize - dlen; in __strlcat_chk()
H A Dstrlcpy_chk.c35 __strlcpy_chk(char * __restrict dst, const char * __restrict src, size_t dsize, in __strlcpy_chk() argument
39 if (dsize > dbufsize) in __strlcpy_chk()
42 return (strlcpy(dst, src, dsize)); in __strlcpy_chk()
/freebsd/crypto/openssl/providers/implementations/kdfs/
H A Dsshkdf.c235 unsigned int dsize = 0; in SSHKDF() local
258 if (!EVP_DigestFinal_ex(md, digest, &dsize)) in SSHKDF()
261 if (okey_len < dsize) { in SSHKDF()
267 memcpy(okey, digest, dsize); in SSHKDF()
269 for (cursize = dsize; cursize < okey_len; cursize += dsize) { in SSHKDF()
283 if (!EVP_DigestFinal_ex(md, digest, &dsize)) in SSHKDF()
286 if (okey_len < cursize + dsize) { in SSHKDF()
292 memcpy(okey + cursize, digest, dsize); in SSHKDF()
/freebsd/lib/libc/db/btree/
H A Dbtree.h170 u_int32_t dsize; /* size of data */ member
180 #define NBLEAF(p) NBLEAFDBT((p)->ksize, (p)->dsize)
183 #define NBLEAFDBT(ksize, dsize) \ argument
185 (ksize) + (dsize))
202 u_int32_t dsize; /* size of data */ member
212 #define NRLEAF(p) NRLEAFDBT((p)->dsize)
215 #define NRLEAFDBT(dsize) \ argument
216 LALIGN(sizeof(u_int32_t) + sizeof(u_char) + (dsize))
H A Dbt_utils.c108 if (bl->dsize + 1 > rdata->size) { in __bt_ret()
109 p = realloc(rdata->data, bl->dsize + 1); in __bt_ret()
113 rdata->size = bl->dsize + 1; in __bt_ret()
115 memmove(rdata->data, bl->bytes + bl->ksize, bl->dsize); in __bt_ret()
116 data->size = bl->dsize; in __bt_ret()
119 data->size = bl->dsize; in __bt_ret()
/freebsd/sys/arm/arm/
H A Dcpufunc.c126 u_int ctype, dsize, cpuid; in get_cachetype_cp15() local
172 dsize = CPU_CT_DSIZE(ctype); in get_cachetype_cp15()
173 arm_dcache_align = 1U << (CPU_CT_xSIZE_LEN(dsize) + 3); in get_cachetype_cp15()
174 if (CPU_CT_xSIZE_ASSOC(dsize) == 0) { in get_cachetype_cp15()
175 if (dsize & CPU_CT_xSIZE_M) in get_cachetype_cp15()
H A Didentcpu-v6.c111 uint32_t isize, dsize; in print_v5_cache() local
154 dsize = CPU_CT_DSIZE(cpuinfo.ctr); in print_v5_cache()
155 multiplier = (dsize & CPU_CT_xSIZE_M) ? 3 : 2; in print_v5_cache()
156 pdcache_line_size = 1U << (CPU_CT_xSIZE_LEN(dsize) + 3); in print_v5_cache()
157 if (CPU_CT_xSIZE_ASSOC(dsize) == 0) { in print_v5_cache()
158 if (dsize & CPU_CT_xSIZE_M) in print_v5_cache()
164 (CPU_CT_xSIZE_ASSOC(dsize) - 1); in print_v5_cache()
166 pdcache_size = multiplier << (CPU_CT_xSIZE_SIZE(dsize) + 8); in print_v5_cache()
/freebsd/contrib/mandoc/
H A Dcompat_strlcpy.c30 strlcpy(char *dst, const char *src, size_t dsize) in strlcpy() argument
33 size_t nleft = dsize; in strlcpy()
45 if (dsize != 0) in strlcpy()
H A Dcompat_strlcat.c32 strlcat(char *dst, const char *src, size_t dsize) in strlcat() argument
36 size_t n = dsize; in strlcat()
43 n = dsize - dlen; in strlcat()
/freebsd/contrib/libpcap/missing/
H A Dstrlcpy.c32 pcapint_strlcpy(char * restrict dst, const char * restrict src, size_t dsize) in pcapint_strlcpy() argument
35 size_t nleft = dsize; in pcapint_strlcpy()
47 if (dsize != 0) in pcapint_strlcpy()
H A Dstrlcat.c34 pcapint_strlcat(char * restrict dst, const char * restrict src, size_t dsize) in pcapint_strlcat() argument
38 size_t n = dsize; in pcapint_strlcat()
45 n = dsize - dlen; in pcapint_strlcat()
/freebsd/sys/libkern/
H A Dstrlcpy.c28 strlcpy(char * __restrict dst, const char * __restrict src, size_t dsize) in strlcpy() argument
31 size_t nleft = dsize; in strlcpy()
43 if (dsize != 0) in strlcpy()
/freebsd/lib/libc/string/
H A Dstrlcpy.c30 strlcpy(char * __restrict dst, const char * __restrict src, size_t dsize) in strlcpy() argument
33 size_t nleft = dsize; in strlcpy()
45 if (dsize != 0) in strlcpy()
H A Dstrlcat.c32 strlcat(char * __restrict dst, const char * __restrict src, size_t dsize) in strlcat() argument
36 size_t n = dsize; in strlcat()
43 n = dsize - dlen; in strlcat()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dclone_mmap_cached.c76 size_t dsize, ssize; in main() local
119 dsize = sb.st_size; in main()
120 dmem = mmap_file(dfd, dsize); in main()
134 memcpy(ptr, dmem, dsize); in main()
/freebsd/sys/contrib/openzfs/lib/libzutil/
H A Dzutil_pool.c39 char blocks[6], lsize[6], psize[6], dsize[6]; in dump_ddt_stat() local
53 zfs_nicebytes(dds->dds_dsize, dsize, sizeof (dsize)); in dump_ddt_stat()
61 blocks, lsize, psize, dsize, in dump_ddt_stat()
/freebsd/contrib/sendmail/libsmdb/
H A Dsmndbm.c118 dbkey.dsize = key->size;
173 dbkey.dsize = key->size;
190 data->size = dbdata.dsize;
209 dbkey.dsize = key->size;
211 dbdata.dsize = data->size;
375 value->size = dbdata.dsize;
377 key->size = dbm_cursor->smndbmc_current_key.dsize;
398 dbdata.dsize = value->size;
444 dbm_cursor->smndbmc_current_key.dsize = 0;
/freebsd/crypto/heimdal/lib/hdb/
H A Dndbm.c93 key_data.length = key.dsize; in NDBM_seq()
99 data.length = value.dsize; in NDBM_seq()
231 k.dsize = key.length; in NDBM__get()
240 krb5_data_copy(reply, v.dptr, v.dsize); in NDBM__get()
254 k.dsize = key.length; in NDBM__put()
256 v.dsize = value.length; in NDBM__put()
282 k.dsize = key.length; in NDBM__del()

1234