Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 783) sorted by relevance

12345678910>>...32

/dragonfly/test/sysperf/
H A Dmemcpy.c9 …oid test_using(const char *ctl, char *buf, int bytes, void (*copyf)(const void *s1, void *d, size_…
25 int bytes; in main() local
34 bytes = strtol(av[1], &ptr, 0); in main()
38 bytes *= 1024; in main()
42 bytes *= 1024 * 1024; in main()
46 bytes *= 1024 * 1024 * 1024; in main()
54 if (bytes <= 0 && (bytes & 127)) { in main()
63 bzero(buf, bytes * 2); in main()
79 test_using(const char *ctl, char *buf, int bytes, void (*copyf)(const void *s1, void *d, size_t byt… in test_using() argument
87 copyf(buf, buf + bytes, bytes); in test_using()
[all …]
H A Dmemzero.c9 void test_using(const char *ctl, char *buf, int bytes, void (*zerof)(void *d, size_t bytes));
23 int bytes; in main() local
32 bytes = strtol(av[1], &ptr, 0); in main()
36 bytes *= 1024; in main()
40 bytes *= 1024 * 1024; in main()
44 bytes *= 1024 * 1024 * 1024; in main()
52 if (bytes <= 0 && (bytes & 127)) { in main()
62 bzero(buf, bytes * 2); in main()
78 test_using(const char *ctl, char *buf, int bytes, void (*zerof)(void *d, size_t bytes)) in test_using() argument
86 zerof(buf, bytes); in test_using()
[all …]
H A Dpipe2.c20 int bytes; in main() local
31 bytes = strtol(av[1], &ptr, 0); in main()
33 bytes *= 1024; in main()
35 bytes *= 1024 * 1024; in main()
40 if (bytes <= 0) { in main()
56 bzero(buf, bytes * 2 + PAGE_SIZE); in main()
77 if (n + i == bytes) in main()
100 if (write(fds[0], buf, bytes) != bytes) { in main()
113 if (write(fds[0], buf, bytes) != bytes) { in main()
124 bytes, in main()
[all …]
H A Dsocketpair.c21 int bytes; in main() local
32 bytes = strtol(av[1], &ptr, 0); in main()
34 bytes *= 1024; in main()
36 bytes *= 1024 * 1024; in main()
41 if (bytes <= 0) { in main()
56 bzero(buf, bytes * 2 + PAGE_SIZE); in main()
77 if (n + i == bytes) in main()
100 if (write(fds[0], buf, bytes) != bytes) { in main()
112 if (write(fds[0], buf, bytes) != bytes) { in main()
123 bytes, in main()
[all …]
/dragonfly/sys/vfs/hammer/
H A Dhammer_undo.c105 int bytes; in hammer_generate_undo() local
177 n = bytes - in hammer_generate_undo()
239 tail->tail_size = bytes; in hammer_generate_undo()
320 head->hdr_size = bytes; in hammer_format_undo()
352 int bytes; in hammer_upgrade_undo_4() local
390 head->hdr_size = bytes; in hammer_upgrade_undo_4()
442 if (bytes <= node->bytes) in hammer_enter_undo_history()
444 node->bytes = bytes; in hammer_enter_undo_history()
455 node->bytes = bytes; in hammer_enter_undo_history()
483 int64_t bytes; in hammer_undo_used() local
[all …]
H A Dhammer_redo.c72 int bytes; in hammer_generate_redo() local
129 bytes = HAMMER_UNDO_ALIGN - in hammer_generate_redo()
131 n = bytes - in hammer_generate_redo()
154 tail->tail_size = bytes; in hammer_generate_redo()
158 redo->head.hdr_size = bytes; in hammer_generate_redo()
162 hammer_stats_redo += bytes; in hammer_generate_redo()
214 redo->head.hdr_size = bytes; in hammer_generate_redo()
239 tail->tail_size = bytes; in hammer_generate_redo()
244 hammer_stats_redo += bytes; in hammer_generate_redo()
258 bytes = HAMMER_UNDO_ALIGN - in hammer_generate_redo()
[all …]
/dragonfly/stand/lib/
H A Dzalloc.c87 bytes = (bytes + MEMNODE_SIZE_MASK) & ~MEMNODE_SIZE_MASK; in znalloc()
89 if (bytes == 0) in znalloc()
102 if (bytes > mn->mr_Bytes) in znalloc()
121 mp->mp_Used += bytes; in znalloc()
145 bytes = (bytes + MEMNODE_SIZE_MASK) & ~MEMNODE_SIZE_MASK; in zfree()
147 if (bytes == 0) in zfree()
167 mp->mp_Used -= bytes; in zfree()
182 (uintmax_t)bytes); in zfree()
215 (uintmax_t)bytes); in zfree()
252 mp->mp_Used = bytes; in zextendPool()
[all …]
H A Dzalloc_malloc.c54 malloc(size_t bytes) in malloc() argument
59 bytes += MALLOCALIGN + 1; in malloc()
61 bytes += MALLOCALIGN; in malloc()
65 int incr = (bytes + BLKEXTENDMASK) & ~BLKEXTENDMASK; in malloc()
80 res->ga_Bytes = bytes; in malloc()
82 *((char *)res + bytes - 1) = -2; in malloc()
90 size_t bytes; in free() local
110 bytes = res->ga_Bytes; in free()
111 zfree(&MallocPool, res, bytes); in free()
125 if ((res = malloc(bytes)) != NULL) { in calloc()
[all …]
/dragonfly/sys/kern/
H A Dkern_xio.c207 bytes, uio); in xio_uio_copy()
209 *sizep = bytes; in xio_uio_copy()
240 n = bytes; in xio_copy_xtou()
253 bytes -= n; in xio_copy_xtou()
255 if (bytes == 0) in xio_copy_xtou()
289 n = bytes; in xio_copy_xtok()
300 bytes -= n; in xio_copy_xtok()
336 n = bytes; in xio_copy_utox()
349 bytes -= n; in xio_copy_utox()
385 n = bytes; in xio_copy_ktox()
[all …]
H A Dkern_iosched.c66 badjiosched(thread_t td, size_t bytes) in badjiosched() argument
79 td->td_iosdata.iowbytes += bytes; in badjiosched()
80 ioscpu[gd->gd_cpuid].iowbytes += bytes; in badjiosched()
81 iostotal += bytes; in badjiosched()
89 td->td_iosdata.iowbytes -= bytes; in badjiosched()
90 ioscpu[gd->gd_cpuid].iowbytes -= bytes; in badjiosched()
91 iostotal -= bytes; in badjiosched()
113 size_t bytes; in biosched_done() local
117 ioscpu[gd->gd_cpuid].iowbytes -= bytes; in biosched_done()
127 bwillwrite(int bytes) in bwillwrite() argument
[all …]
H A Dvfs_journal.c172 size_t bytes; in journal_wthread() local
191 if (bytes == 0) { in journal_wthread()
260 bytes = res; in journal_wthread()
310 size_t bytes; in journal_rthread() local
358 if (bytes == 0) { in journal_rthread()
532 req = bytes; in journal_reserve()
565 if (req != bytes) { in journal_reserve()
1078 KKASSERT(bytes >= 0 && bytes <= jrec->residual); in jrecord_data()
1134 if (bytes) { in jrecord_data()
1471 n = (bytes > bufsize) ? bufsize : (int)bytes; in jrecord_file_data()
[all …]
/dragonfly/contrib/diffutils/lib/
H A Dmbchar.h185 #define mb_len(mbc) ((mbc).bytes)
197 : (mbc1).bytes == (mbc2).bytes \
199 : (mbc1).bytes < (mbc2).bytes \
209 : (mbc1).bytes == (mbc2).bytes \
211 : (mbc1).bytes < (mbc2).bytes \
217 : (mbc1).bytes == (mbc2).bytes \
218 && memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) == 0)
222 : (mbc1).bytes == (mbc2).bytes \
223 && memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) == 0)
272 memcpy (&new_mbc->buf[0], &old_mbc->buf[0], old_mbc->bytes); in mb_copy()
[all …]
/dragonfly/contrib/cvs-1.12/lib/
H A Dmbchar.h179 #define mb_len(mbc) ((mbc).bytes)
191 : (mbc1).bytes == (mbc2).bytes \
192 ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \
193 : (mbc1).bytes < (mbc2).bytes \
203 : (mbc1).bytes == (mbc2).bytes \
204 ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \
205 : (mbc1).bytes < (mbc2).bytes \
211 : (mbc1).bytes == (mbc2).bytes \
216 : (mbc1).bytes == (mbc2).bytes \
266 memcpy (&new->buf[0], &old->buf[0], old->bytes); in mb_copy()
[all …]
/dragonfly/contrib/grep/lib/
H A Dmbchar.h185 #define mb_len(mbc) ((mbc).bytes)
197 : (mbc1).bytes == (mbc2).bytes \
199 : (mbc1).bytes < (mbc2).bytes \
209 : (mbc1).bytes == (mbc2).bytes \
211 : (mbc1).bytes < (mbc2).bytes \
217 : (mbc1).bytes == (mbc2).bytes \
218 && memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) == 0)
222 : (mbc1).bytes == (mbc2).bytes \
223 && memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) == 0)
272 memcpy (&new_mbc->buf[0], &old_mbc->buf[0], old_mbc->bytes); in mb_copy()
[all …]
/dragonfly/sys/bus/pci/x86_64/
H A Dpci_cfgreg.c72 int bytes);
152 if (reg == PCIR_INTLINE && bytes == 1) { in pci_cfgregread()
191 bytes != 3 && in pci_cfgenable()
192 (unsigned)bytes <= 4 && in pci_cfgenable()
193 (reg & (bytes - 1)) == 0) { in pci_cfgenable()
220 switch (bytes) { in pcireg_cfgread()
245 switch (bytes) { in pcireg_cfgwrite()
317 unsigned bytes) in pciereg_cfgread() argument
328 switch (bytes) { in pciereg_cfgread()
344 unsigned bytes) in pciereg_cfgwrite() argument
[all …]
/dragonfly/contrib/gcc-4.7/libdecnumber/dpd/
H A Ddecimal128.c172 UBFROMUI(d128->bytes, targlo); in decimal128FromNumber()
173 UBFROMUI(d128->bytes+4, targml); in decimal128FromNumber()
174 UBFROMUI(d128->bytes+8, targmh); in decimal128FromNumber()
175 UBFROMUI(d128->bytes+12, targhi); in decimal128FromNumber()
179 UBFROMUI(d128->bytes, targhi); in decimal128FromNumber()
180 UBFROMUI(d128->bytes+4, targmh); in decimal128FromNumber()
181 UBFROMUI(d128->bytes+8, targml); in decimal128FromNumber()
182 UBFROMUI(d128->bytes+12, targlo); in decimal128FromNumber()
547 d128->bytes[15]>>7, (d128->bytes[15]>>2)&0x1f, in decimal128Show()
548 ((d128->bytes[15]&0x3)<<10)|(d128->bytes[14]<<2)| in decimal128Show()
[all …]
/dragonfly/contrib/gdb-7/libdecnumber/dpd/
H A Ddecimal128.c172 UBFROMUI(d128->bytes, targlo); in decimal128FromNumber()
173 UBFROMUI(d128->bytes+4, targml); in decimal128FromNumber()
174 UBFROMUI(d128->bytes+8, targmh); in decimal128FromNumber()
175 UBFROMUI(d128->bytes+12, targhi); in decimal128FromNumber()
179 UBFROMUI(d128->bytes, targhi); in decimal128FromNumber()
180 UBFROMUI(d128->bytes+4, targmh); in decimal128FromNumber()
181 UBFROMUI(d128->bytes+8, targml); in decimal128FromNumber()
182 UBFROMUI(d128->bytes+12, targlo); in decimal128FromNumber()
547 d128->bytes[15]>>7, (d128->bytes[15]>>2)&0x1f, in decimal128Show()
548 ((d128->bytes[15]&0x3)<<10)|(d128->bytes[14]<<2)| in decimal128Show()
[all …]
/dragonfly/contrib/gcc-8.0/libdecnumber/dpd/
H A Ddecimal128.c172 UBFROMUI(d128->bytes, targlo); in decimal128FromNumber()
173 UBFROMUI(d128->bytes+4, targml); in decimal128FromNumber()
174 UBFROMUI(d128->bytes+8, targmh); in decimal128FromNumber()
175 UBFROMUI(d128->bytes+12, targhi); in decimal128FromNumber()
179 UBFROMUI(d128->bytes, targhi); in decimal128FromNumber()
180 UBFROMUI(d128->bytes+4, targmh); in decimal128FromNumber()
181 UBFROMUI(d128->bytes+8, targml); in decimal128FromNumber()
182 UBFROMUI(d128->bytes+12, targlo); in decimal128FromNumber()
547 d128->bytes[15]>>7, (d128->bytes[15]>>2)&0x1f, in decimal128Show()
548 ((d128->bytes[15]&0x3)<<10)|(d128->bytes[14]<<2)| in decimal128Show()
[all …]
/dragonfly/contrib/gmp/mpz/
H A Dout_raw.c67 if (bytes != 0) in mpz_out_raw()
69 bp += bytes; in mpz_out_raw()
92 bytes -= zeros; in mpz_out_raw()
135 bytes--; in mpz_out_raw()
141 ssize = 4 + bytes; in mpz_out_raw()
144 bytes = (xsize >= 0 ? bytes : -bytes); in mpz_out_raw()
147 ASSERT_ALWAYS (sizeof (bytes) >= 4); in mpz_out_raw()
149 bp[-4] = bytes >> 24; in mpz_out_raw()
150 bp[-3] = bytes >> 16; in mpz_out_raw()
151 bp[-2] = bytes >> 8; in mpz_out_raw()
[all …]
/dragonfly/tools/tools/crypto/
H A DREADME20 0.129 sec, 2048 des crypts, 8 bytes, 127120 byte/sec, 1.0 Mb/sec
21 0.129 sec, 2048 des crypts, 16 bytes, 253915 byte/sec, 1.9 Mb/sec
22 0.129 sec, 2048 des crypts, 32 bytes, 508942 byte/sec, 3.9 Mb/sec
23 0.128 sec, 2048 des crypts, 64 bytes, 1020135 byte/sec, 7.8 Mb/sec
24 0.134 sec, 2048 des crypts, 128 bytes, 1954869 byte/sec, 14.9 Mb/sec
25 0.142 sec, 2048 des crypts, 256 bytes, 3698107 byte/sec, 28.2 Mb/sec
26 0.190 sec, 2048 des crypts, 1024 bytes, 11037700 byte/sec, 84.2 Mb/sec
27 0.264 sec, 2048 des crypts, 2048 bytes, 15891127 byte/sec, 121.2 Mb/sec
28 0.403 sec, 2048 des crypts, 4096 bytes, 20828998 byte/sec, 158.9 Mb/sec
29 0.687 sec, 2048 des crypts, 8192 bytes, 24426602 byte/sec, 186.4 Mb/sec
[all …]
/dragonfly/contrib/file/magic/Magdir/
H A Dforth25 >>>24 lelong x Text length: %d bytes,
26 >>>28 lelong x Data length: %d bytes,
30 >>>44 lelong x BSS length: %d bytes
35 >>2 leshort x + %d bytes,
47 >4 belong x Text length: %d bytes,
48 >8 belong x Data length: %d bytes,
49 >12 belong x BSS length: %d bytes,
56 >4 lelong x Text length: %d bytes,
57 >8 lelong x Data length: %d bytes,
58 >12 lelong x BSS length: %d bytes,
[all …]
/dragonfly/sbin/fsck_hammer2/
H A Ddestroy.c120 if (bytes) in read_media()
121 bytes = (size_t)1 << bytes; in read_media()
125 if (!bytes) in read_media()
171 if (bytes) in write_media()
172 bytes = (size_t)1 << bytes; in write_media()
173 assert(bytes != 0); in write_media()
228 size_t bytes; in modify_blockref() local
306 size_t bytes; in modify_dirent_embedded() local
310 assert(bytes); in modify_dirent_embedded()
356 size_t bytes; in modify_dirent() local
[all …]
H A Dreconstruct.c237 if (bytes) in read_media()
238 bytes = (size_t)1 << bytes; in read_media()
240 *media_bytes = bytes; in read_media()
242 if (!bytes) in read_media()
288 if (bytes) in write_media()
289 bytes = (size_t)1 << bytes; in write_media()
290 assert(bytes != 0); in write_media()
345 size_t bytes; in modify_blockref() local
350 if (!bytes) in modify_blockref()
408 size_t bytes; in modify_check() local
[all …]
/dragonfly/usr.sbin/mtree/
H A Dhash.c64 int fd, bytes, i, digest_len; in dohash() local
91 bytes = -1; in dohash()
109 bytes = 0; in dohash()
114 bytes = read(fd, buffer, size); in dohash()
115 if (bytes < 0) in dohash()
119 MD5_Update(ctx, buffer, bytes); in dohash()
123 SHA1_Update(ctx, buffer, bytes); in dohash()
125 SHA256_Update(ctx, buffer, bytes); in dohash()
127 SHA384_Update(ctx, buffer, bytes); in dohash()
131 size -= bytes; in dohash()
[all …]
/dragonfly/bin/cpdup/
H A Dhclink.c178 tmp.bytes = hc_bswap32(tmp.bytes); in hcc_read_command()
184 assert(tmp.bytes >= (int)sizeof(tmp) && tmp.bytes < HC_BUFSIZE); in hcc_read_command()
219 whead->bytes = 0; in hcc_start_command()
237 whead->bytes = 0; in hcc_start_reply()
326 int bytes = strlen(str) + 1; in hcc_leaf_string() local
332 item->bytes = sizeof(*item) + bytes; in hcc_leaf_string()
346 item->bytes = sizeof(*item) + bytes; in hcc_leaf_data()
473 if (offset == head->bytes) in hcc_nextitem()
480 item->bytes = hc_bswap32(item->bytes); in hcc_nextitem()
493 assert(head->bytes >= offset + item->bytes); in hcc_nextitem()
[all …]

12345678910>>...32