Home
last modified time | relevance | path

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

12345678910>>...32

/dflybsd-src/test/sysperf/
H A Dmemcpy.c9 …oid test_using(const char *ctl, char *buf, int bytes, void (*copyf)(const void *s1, void *d, size_…
12 extern void docopy1(const void *s, void *d, size_t bytes);
13 extern void docopy2(const void *s, void *d, size_t bytes);
14 extern void docopy3(const void *s, void *d, size_t bytes);
15 extern void docopy4(const void *s, void *d, size_t bytes);
16 extern void docopy5(const void *s, void *d, size_t bytes);
17 extern void docopy6(const void *s, void *d, size_t bytes);
18 extern void docopy7(const void *s, void *d, size_t bytes);
25 int bytes; in main() local
34 bytes = strtol(av[1], &ptr, 0); in main()
[all …]
H A Dmemzero.c9 void test_using(const char *ctl, char *buf, int bytes, void (*zerof)(void *d, size_t bytes));
11 extern void dozero1(void *d, size_t bytes);
12 extern void dozero2(void *d, size_t bytes);
13 extern void dozero3(void *d, size_t bytes);
14 extern void dozero4(void *d, size_t bytes);
15 extern void dozero5(void *d, size_t bytes);
16 extern void dozero6(void *d, size_t bytes);
17 extern void dozero7(void *d, size_t bytes);
23 int bytes; in main() local
32 bytes = strtol(av[1], &ptr, 0); in main()
[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()
41 fprintf(stderr, "I can't handle %d sized buffers\n", bytes); in main()
49 buf = mmap(NULL, bytes * 2 + PAGE_SIZE, in main()
56 bzero(buf, bytes * 2 + PAGE_SIZE); in main()
71 buf += (bytes + PAGE_MASK) & ~PAGE_MASK; in main()
74 n = read(fds[1], buf + i, bytes - i); 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()
42 fprintf(stderr, "I can't handle %d sized buffers\n", bytes); in main()
50 buf = mmap(NULL, bytes * 2 + PAGE_SIZE, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANON, -1, 0); in main()
56 bzero(buf, bytes * 2 + PAGE_SIZE); in main()
71 buf += (bytes + PAGE_MASK) & ~PAGE_MASK; in main()
74 n = read(fds[1], buf + i, bytes - i); in main()
[all …]
/dflybsd-src/sys/vfs/hammer/
H A Dhammer_undo.c105 int bytes; in hammer_generate_undo() local
175 bytes = HAMMER_UNDO_ALIGN - in hammer_generate_undo()
177 n = bytes - in hammer_generate_undo()
194 KKASSERT(bytes >= sizeof(struct hammer_fifo_tail)); in hammer_generate_undo()
196 tail = (void *)((char *)undo + bytes - sizeof(*tail)); in hammer_generate_undo()
200 tail->tail_size = bytes; in hammer_generate_undo()
204 undo->head.hdr_size = bytes; in hammer_generate_undo()
206 undomap->next_offset += bytes; in hammer_generate_undo()
208 hammer_stats_undo += bytes; in hammer_generate_undo()
218 bytes = HAMMER_HEAD_DOALIGN(n) + in hammer_generate_undo()
[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()
148 KKASSERT(bytes >= sizeof(struct hammer_fifo_tail)); in hammer_generate_redo()
150 tail = (void *)((char *)redo + bytes - sizeof(*tail)); in hammer_generate_redo()
154 tail->tail_size = bytes; in hammer_generate_redo()
158 redo->head.hdr_size = bytes; in hammer_generate_redo()
160 undomap->next_offset += bytes; in hammer_generate_redo()
162 hammer_stats_redo += bytes; in hammer_generate_redo()
204 bytes = HAMMER_HEAD_DOALIGN(n) + in hammer_generate_redo()
[all …]
/dflybsd-src/stand/lib/
H A Dzalloc.c80 znalloc(MemPool *mp, uintptr_t bytes) in znalloc() argument
87 bytes = (bytes + MEMNODE_SIZE_MASK) & ~MEMNODE_SIZE_MASK; in znalloc()
89 if (bytes == 0) in znalloc()
97 if (bytes <= mp->mp_Size - mp->mp_Used) { in znalloc()
102 if (bytes > mn->mr_Bytes) in znalloc()
113 if (mn->mr_Bytes == bytes) { in znalloc()
116 mn = (MemNode *)((char *)mn + bytes); in znalloc()
118 mn->mr_Bytes = ((MemNode *)ptr)->mr_Bytes - bytes; in znalloc()
121 mp->mp_Used += bytes; in znalloc()
139 zfree(MemPool *mp, void *ptr, uintptr_t bytes) in zfree() argument
[all …]
H A Dzalloc_malloc.c54 malloc(size_t bytes) in malloc() argument
59 bytes += MALLOCALIGN + 1; in malloc()
61 bytes += MALLOCALIGN; in malloc()
64 while ((res = znalloc(&MallocPool, bytes)) == NULL) { 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()
[all …]
/dflybsd-src/sys/kern/
H A Dkern_xio.c199 size_t bytes; in xio_uio_copy() local
202 bytes = xio->xio_bytes - uoffset; in xio_uio_copy()
203 if (bytes > uio->uio_resid) in xio_uio_copy()
204 bytes = uio->uio_resid; in xio_uio_copy()
205 KKASSERT(bytes >= 0); in xio_uio_copy()
207 bytes, uio); in xio_uio_copy()
209 *sizep = bytes; in xio_uio_copy()
225 xio_copy_xtou(xio_t xio, int uoffset, void *uptr, int bytes) in xio_copy_xtou() argument
235 if (uoffset + bytes > xio->xio_bytes) in xio_copy_xtou()
239 if ((n = PAGE_SIZE - offset) > bytes) in xio_copy_xtou()
[all …]
H A Dkern_iosched.c66 badjiosched(thread_t td, size_t bytes) in badjiosched() argument
77 if (SIZE_T_MAX / SMP_MAXCPU - td->td_iosdata.iowbytes < bytes) in badjiosched()
78 bytes = SIZE_T_MAX / SMP_MAXCPU - td->td_iosdata.iowbytes; in badjiosched()
79 td->td_iosdata.iowbytes += bytes; in badjiosched()
80 ioscpu[gd->gd_cpuid].iowbytes += bytes; in badjiosched()
81 iostotal += bytes; in badjiosched()
88 bytes = (int64_t)td->td_iosdata.iowbytes * delta / (hz * 10); in badjiosched()
89 td->td_iosdata.iowbytes -= bytes; in badjiosched()
90 ioscpu[gd->gd_cpuid].iowbytes -= bytes; in badjiosched()
91 iostotal -= bytes; in badjiosched()
[all …]
H A Dvfs_journal.c98 int16_t streamid, int bytes);
101 int truncbytes, int bytes, int *newstreamrecp);
106 int bytes, int closeout);
108 void *buf, int bytes, int dtype);
172 size_t bytes; in journal_wthread() local
184 bytes = jo->fifo.windex - jo->fifo.rindex; in journal_wthread()
191 if (bytes == 0) { in journal_wthread()
221 jo->total_acked += bytes; in journal_wthread()
236 while (res < bytes && rawp->begmagic == JREC_BEGMAGIC) { in journal_wthread()
260 bytes = res; in journal_wthread()
[all …]
/dflybsd-src/contrib/grep/lib/
H A Dmbchar.h172 size_t bytes; /* number of bytes of current character, > 0 */ member
185 #define mb_len(mbc) ((mbc).bytes)
197 : (mbc1).bytes == (mbc2).bytes \
198 ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \
199 : (mbc1).bytes < (mbc2).bytes \
200 ? (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) > 0 ? 1 : -1) \
201 : (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc2).bytes) >= 0 ? 1 : -1)))
209 : (mbc1).bytes == (mbc2).bytes \
210 ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \
211 : (mbc1).bytes < (mbc2).bytes \
[all …]
/dflybsd-src/contrib/cvs-1.12/lib/
H A Dmbchar.h166 size_t bytes; /* number of bytes of current character, > 0 */ member
179 #define mb_len(mbc) ((mbc).bytes)
191 : (mbc1).bytes == (mbc2).bytes \
192 ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \
193 : (mbc1).bytes < (mbc2).bytes \
194 ? (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) > 0 ? 1 : -1) \
195 : (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc2).bytes) >= 0 ? 1 : -1)))
203 : (mbc1).bytes == (mbc2).bytes \
204 ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \
205 : (mbc1).bytes < (mbc2).bytes \
[all …]
/dflybsd-src/sys/bus/pci/x86_64/
H A Dpci_cfgreg.c68 static uint32_t pci_docfgregread(int bus, int slot, int func, int reg, int bytes);
70 static int pcireg_cfgread(int bus, int slot, int func, int reg, int bytes);
72 int bytes);
75 unsigned reg, unsigned bytes);
77 unsigned reg, int data, unsigned bytes);
129 pci_docfgregread(int bus, int slot, int func, int reg, int bytes) in pci_docfgregread() argument
134 return pciereg_cfgread(bus, slot, func, reg, bytes); in pci_docfgregread()
136 return pcireg_cfgread(bus, slot, func, reg, bytes); in pci_docfgregread()
143 pci_cfgregread(int bus, int slot, int func, int reg, int bytes) in pci_cfgregread() argument
152 if (reg == PCIR_INTLINE && bytes == 1) { in pci_cfgregread()
[all …]
/dflybsd-src/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()
210 sourlo=UBTOUI(d128->bytes ); /* directly load the low int */ in decimal128ToNumber()
211 sourml=UBTOUI(d128->bytes+4 ); /* then the mid-low */ in decimal128ToNumber()
[all …]
/dflybsd-src/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()
210 sourlo=UBTOUI(d128->bytes ); /* directly load the low int */ in decimal128ToNumber()
211 sourml=UBTOUI(d128->bytes+4 ); /* then the mid-low */ in decimal128ToNumber()
[all …]
/dflybsd-src/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()
210 sourlo=UBTOUI(d128->bytes ); /* directly load the low int */ in decimal128ToNumber()
211 sourml=UBTOUI(d128->bytes+4 ); /* then the mid-low */ in decimal128ToNumber()
[all …]
/dflybsd-src/contrib/gmp/mpz/
H A Dout_raw.c52 mp_size_t xsize, abs_xsize, bytes, i; in mpz_out_raw() local
61 bytes = (abs_xsize * GMP_NUMB_BITS + 7) / 8; in mpz_out_raw()
62 tsize = ROUND_UP_MULTIPLE ((unsigned) 4, BYTES_PER_MP_LIMB) + bytes; in mpz_out_raw()
67 if (bytes != 0) in mpz_out_raw()
69 bp += bytes; in mpz_out_raw()
92 bytes -= zeros; in mpz_out_raw()
98 ASSERT_CODE (char *bp_orig = bp - bytes); 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()
[all …]
/dflybsd-src/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 …]
/dflybsd-src/contrib/file/magic/Magdir/
H A Dforth25 >>>24 lelong x Text length: %d bytes,
26 >>>28 lelong x Data length: %d bytes,
27 >>>32 lelong x Text Relocation Table length: %d bytes,
28 >>>36 lelong x Data Relocation Table 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,
50 >16 belong x Symbol Table length: %d bytes,
[all …]
/dflybsd-src/sbin/fsck_hammer2/
H A Ddestroy.c115 size_t bytes, io_bytes, boff; in read_media() local
119 bytes = (bref->data_off & HAMMER2_OFF_MASK_RADIX); in read_media()
120 if (bytes) in read_media()
121 bytes = (size_t)1 << bytes; in read_media()
123 *media_bytes = bytes; in read_media()
125 if (!bytes) in read_media()
133 while (io_bytes + boff < bytes) in read_media()
155 memmove(media, (char *)media + boff, bytes); in read_media()
166 size_t bytes, io_bytes, boff; in write_media() local
170 bytes = (bref->data_off & HAMMER2_OFF_MASK_RADIX); in write_media()
[all …]
H A Dreconstruct.c232 size_t bytes, io_bytes, boff; in read_media() local
236 bytes = (bref->data_off & HAMMER2_OFF_MASK_RADIX); in read_media()
237 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()
250 while (io_bytes + boff < bytes) in read_media()
272 memmove(media, (char *)media + boff, bytes); in read_media()
283 size_t bytes, io_bytes, boff; in write_media() local
287 bytes = (bref->data_off & HAMMER2_OFF_MASK_RADIX); in write_media()
[all …]
/dflybsd-src/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()
112 bytes = read(fd, buffer, sizeof(buffer)); in dohash()
114 bytes = read(fd, buffer, size); in dohash()
115 if (bytes < 0) in dohash()
119 MD5_Update(ctx, buffer, bytes); in dohash()
121 RIPEMD160_Update(ctx, buffer, bytes); in dohash()
123 SHA1_Update(ctx, buffer, bytes); in dohash()
125 SHA256_Update(ctx, buffer, bytes); in dohash()
[all …]
/dflybsd-src/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()
188 aligned_bytes = HCC_ALIGN(tmp.bytes); in hcc_read_command()
219 whead->bytes = 0; in hcc_start_command()
237 whead->bytes = 0; in hcc_start_reply()
260 whead->bytes = trans->windex; in hcc_finish_command()
313 whead->bytes = trans->windex; in hcc_finish_reply()
326 int bytes = strlen(str) + 1; in hcc_leaf_string() local
329 assert(trans->windex + sizeof(*item) + bytes < HC_BUFSIZE); in hcc_leaf_string()
332 item->bytes = sizeof(*item) + bytes; in hcc_leaf_string()
[all …]
/dflybsd-src/crypto/openssh/
H A Dprogressmeter.c89 format_rate(off_t bytes) in format_rate() argument
92 static char buf[STRING_SIZE(bytes) * 2 + 16]; in format_rate()
94 bytes *= 100; in format_rate()
95 for (i = 0; bytes >= 100*1000 && unit[i] != 'T'; i++) in format_rate()
96 bytes = (bytes + 512) / 1024; in format_rate()
99 bytes = (bytes + 512) / 1024; in format_rate()
102 (long long) (bytes + 5) / 100, in format_rate()
103 (long long) (bytes + 5) / 10 % 10, in format_rate()
110 format_size(off_t bytes) in format_size() argument
113 static char buf[STRING_SIZE(bytes) + 16]; in format_size()
[all …]

12345678910>>...32