Home
last modified time | relevance | path

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

12345678910>>...21

/illumos-gate/usr/src/boot/libsa/
H A Dzalloc.c99 bytes = (bytes + MEMNODE_SIZE_MASK) & ~MEMNODE_SIZE_MASK; in znalloc()
101 if (bytes == 0) in znalloc()
157 mp->mp_Used += bytes; in znalloc()
182 bytes = (bytes + MEMNODE_SIZE_MASK) & ~MEMNODE_SIZE_MASK; in zfree()
184 if (bytes == 0) in zfree()
199 mp->mp_Used -= bytes; in zfree()
214 (uintmax_t)bytes); in zfree()
224 bytes + mn->mr_Bytes; in zfree()
249 (uintmax_t)bytes); in zfree()
284 mp->mp_Used = bytes; in zextendPool()
[all …]
H A Dzalloc_malloc.c57 return (Malloc_align(bytes, 1)); in Malloc()
67 return (Malloc_align(bytes, alignment)); in Memalign()
71 Malloc_align(size_t bytes, size_t alignment) in Malloc_align() argument
76 bytes += MALLOCALIGN + 1; in Malloc_align()
78 bytes += MALLOCALIGN; in Malloc_align()
97 res->ga_Bytes = bytes; in Malloc_align()
99 *((signed char *)res + bytes - 1) = -2; in Malloc_align()
108 size_t bytes; in Free() local
138 bytes = res->ga_Bytes; in Free()
139 zfree(&MallocPool, res, bytes); in Free()
[all …]
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dsun4x_standalloc.c129 vpage_from_freelist(size_t bytes) in vpage_from_freelist() argument
140 "memory\n", bytes); in vpage_from_freelist()
145 free_addr[i] += bytes; in vpage_from_freelist()
146 free_size[i] -= bytes; in vpage_from_freelist()
163 size_t bytes; in get_low_vpage() local
170 bytes = numpages * pagesize; in get_low_vpage()
173 scratchmemp += bytes; in get_low_vpage()
190 scratchresvp += bytes; in get_low_vpage()
244 if (bytes == 0) in resalloc()
248 bytes = roundup(bytes, pagesize); in resalloc()
[all …]
/illumos-gate/usr/src/stand/lib/sa/
H A Dstdio.c110 int bytes; in fgets() local
116 for (bytes = 0; bytes < (n - 1); ++bytes) { in fgets()
119 if (bytes != 0) { in fgets()
120 s[bytes] = '\0'; in fgets()
128 if (bytes != 0) { in fgets()
129 s[bytes] = '\0'; in fgets()
135 if (s[bytes] == '\n') { in fgets()
136 s[bytes + 1] = '\0'; in fgets()
141 s[bytes] = '\0'; in fgets()
259 if (bytes < 0) { in fread()
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Dstatlog.c43 statlog( direction, bytes, millisecs, breakmsg) in statlog() argument
45 unsigned long bytes;
59 if (bytes < 1<<22)
60 bytes1000 = (bytes*1000/millisecs);
62 bytes1000 = ((bytes/millisecs)*1000);
65 direction, bytes, millisecs/1000, millisecs%1000,
92 putfilesize(bytes) in putfilesize() argument
93 unsigned long bytes; in putfilesize()
95 filesize = bytes;
H A Dxio.c148 unsigned long bytes; local
151 bytes = 0L;
154 bytes += len;
155 putfilesize(bytes);
183 unsigned long bytes; local
186 bytes = 0L;
193 bytes += len;
194 putfilesize(bytes);
/illumos-gate/usr/src/test/zfs-tests/tests/perf/scripts/
H A Dio.d54 @bytes["read"] = sum(0);
55 @bytes["write"] = sum(0);
56 @bytes["zfs_read"] = sum(0);
57 @bytes["zfs_write"] = sum(0);
58 @bytes["zfs_write_sync"] = sum(0);
59 @bytes["zfs_write_async"] = sum(0);
63 clear(@bytes);
79 self->bytes = args[1]->uio_resid;
99 @bytes[this->name] = sum(self->bytes);
110 @bytes[probefunc] = sum(self->bytes);
[all …]
/illumos-gate/usr/src/lib/print/libhttp-core/common/
H A Dhttp.c198 fprintf(fp, "%s %d(0x%x) bytes...\n", tag, bytes, bytes); in httpDumpData()
989 bytes = http_read_ssl(http, http->buffer, bytes); in httpRead()
996 bytes = recv(http->fd, http->buffer, bytes, 0); in httpRead()
1067 if (bytes > 0) in httpRead()
1075 bytes = 0; in httpRead()
1100 return (bytes); in httpRead()
1210 if (bytes >= 0) in httpWrite()
1388 bytes = 0; in httpGets()
1393 bytes ++; in httpGets()
1406 if (bytes > 0) in httpGets()
[all …]
/illumos-gate/usr/src/boot/efi/libefi/
H A Defichar.c125 int c, bytes; in utf8_to_ucs2() local
137 bytes = 0; in utf8_to_ucs2()
146 if (bytes != 0) in utf8_to_ucs2()
150 bytes = 3; in utf8_to_ucs2()
153 bytes = 2; in utf8_to_ucs2()
156 bytes = 1; in utf8_to_ucs2()
159 bytes = 0; in utf8_to_ucs2()
163 if (bytes > 0) { in utf8_to_ucs2()
165 bytes--; in utf8_to_ucs2()
166 } else if (bytes == 0) { in utf8_to_ucs2()
[all …]
/illumos-gate/usr/src/lib/libc/sparcv9/gen/
H A Dstrncpy.s57 ! bytes remain to be copied, strncpy will copy null bytes into
75 sub %o4, 8, %o4 ! bytes until src aligned
120 ! remaining src bytes and then start padding with null bytes
281 stw %g1, [%g5 + 1] ! store bytes 2, 3, 4, 5
282 srlx %o1, 8, %g1 ! %g1<15:0> = bytes 6, 7
283 sth %g1, [%g5 + 5] ! store bytes 6, 7
298 srlx %o1, 40, %g1 ! %g1<15:0> = bytes 2, 3
299 sth %g1, [%g5 + 1] ! store bytes 2, 3
315 sth %g1, [%g5] ! store bytes 1, 2
319 sth %o1, [%g5 + 6] ! store bytes 7, 8
[all …]
/illumos-gate/usr/src/lib/libc/capabilities/sun4u-opl/common/
H A Dmemcpy.s194 ldx [%o1-8], %o4 ! load 8 bytes
224 ldd [%o5-8], %d2 ! load 8 bytes
225 ldd [%o5-16], %d4 ! load 8 bytes
237 ldd [%o5], %d0 ! load 8 bytes
260 ldd [%o5-8], %d2 ! load 8 bytes
264 ldd [%o5+8], %d6 ! load 8 bytes
267 ldd [%o5], %d0 ! load 8 bytes
498 ld [%o1], %o4 ! load 4 bytes
502 ld [%o1-4], %o3 ! load 4 bytes
511 ld [%o1], %o4 ! load 4 bytes
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dmemlist_new.c203 uint64_t bytes, in memlist_add_span() argument
220 dst->ml_size = bytes; in memlist_add_span()
251 next->ml_size += bytes; in memlist_add_span()
266 if ((address + bytes) > in memlist_add_span()
273 if ((address + bytes) == in memlist_add_span()
282 mlp->ml_size += bytes; in memlist_add_span()
293 next->ml_size += bytes; in memlist_add_span()
338 uint64_t bytes, in memlist_delete_span() argument
386 next->ml_address += bytes; in memlist_delete_span()
387 next->ml_size -= bytes; in memlist_delete_span()
[all …]
/illumos-gate/usr/src/lib/libc/capabilities/sun4u-us3/common/
H A Dmemcpy.s218 ldx [%o1-8], %o4 ! load 8 bytes
248 ldd [%o5-8], %d2 ! load 8 bytes
249 ldd [%o5-16], %d4 ! load 8 bytes
261 ldd [%o5], %d0 ! load 8 bytes
283 ldd [%o5-8], %d2 ! load 8 bytes
287 ldd [%o5+8], %d6 ! load 8 bytes
290 ldd [%o5], %d0 ! load 8 bytes
516 ld [%o1], %o4 ! load 4 bytes
520 ld [%o1-4], %o3 ! load 4 bytes
529 ld [%o1], %o4 ! load 4 bytes
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dev_streams.c220 while (bytes > 0U) { in consume()
222 str->iovCur->iov_len -= bytes; in consume()
225 str->ioDone += bytes; in consume()
226 bytes = 0; in consume()
258 int bytes; in writable() local
263 if (bytes > 0) { in writable()
266 consume(str, bytes); in writable()
281 int bytes; in readable() local
286 if (bytes > 0) { in readable()
289 consume(str, bytes); in readable()
[all …]
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DSLPHeaderV2.java636 baos.write(bytes, 0, bytes.length); in externalizeOptions()
674 bbaos.write(bytes, 0, bytes.length); in parsePreviousRespondersOut()
829 message[1] = bytes; in parseServiceURLOut()
843 bbaos.write(bytes, 0, bytes.length); in parseServiceURLOut()
845 nbytes += bytes.length; in parseServiceURLOut()
865 baos.write(bytes, 0, bytes.length); in parseServiceURLOut()
942 byte[] bytes = null; in parseAttributeVectorOut()
972 message[1] = bytes; in parseAttributeVectorOut()
992 baos.write(bytes, 0, bytes.length); in parseAttributeVectorOut()
993 nbytes += bytes.length; in parseAttributeVectorOut()
[all …]
H A DCDAAdvert.java186 byte[] bytes) in getInt32() argument
189 bytes[0] = (byte)dis.read(); in getInt32()
190 bytes[1] = (byte)dis.read(); in getInt32()
191 bytes[2] = (byte)dis.read(); in getInt32()
192 bytes[3] = (byte)dis.read(); in getInt32()
194 long a = (long)((char)bytes[0] & 0xFF); in getInt32()
195 long b = (long)((char)bytes[1] & 0xFF); in getInt32()
196 long c = (long)((char)bytes[2] & 0xFF); in getInt32()
197 long d = (long)((char)bytes[3] & 0xFF); in getInt32()
H A DIANACharCode.java348 static String getUnicodeEndianess(byte[] bytes) { in getUnicodeEndianess() argument
350 if (bytes.length >= 2) { in getUnicodeEndianess()
352 if (bytes[0] == UNICODE_LITTLE_FLAG[0] && in getUnicodeEndianess()
353 bytes[1] == UNICODE_LITTLE_FLAG[1]) { in getUnicodeEndianess()
356 } else if (bytes[0] == UNICODE_BIG_FLAG[0] && in getUnicodeEndianess()
357 bytes[1] == UNICODE_BIG_FLAG[1]) { in getUnicodeEndianess()
372 static byte[] addBigEndianFlag(byte[] bytes) { in addBigEndianFlag() argument
374 byte[] flaggedBytes = new byte[bytes.length + 2]; in addBigEndianFlag()
379 System.arraycopy(flaggedBytes, 2, bytes, 0, bytes.length); in addBigEndianFlag()
/illumos-gate/usr/src/cmd/bhyve/
H A Dpm.c76 reset_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes, in reset_handler() argument
83 if (bytes != 1) in reset_handler()
178 if (bytes != 2) in pm1_status_handler()
202 if (bytes != 2) in pm1_enable_handler()
286 if (bytes != 2) in pm1_control_handler()
333 gpe0_sts(struct vmctx *ctx, int vcpu, int in, int port, int bytes, in gpe0_sts() argument
340 if (bytes != 1) in gpe0_sts()
357 gpe0_en(struct vmctx *ctx, int vcpu, int in, int port, int bytes, in gpe0_en() argument
360 if (bytes != 1) in gpe0_en()
381 smi_cmd_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes, in smi_cmd_handler() argument
[all …]
H A Dinout.c82 default_inout(struct vmctx *ctx, int vcpu, int in, int port, int bytes, in default_inout() argument
86 switch (bytes) { in default_inout()
126 uint8_t bytes; in emulate_inout() local
129 bytes = inout->bytes; in emulate_inout()
132 assert(bytes == 1 || bytes == 2 || bytes == 4); in emulate_inout()
150 error = hfunc(ctx, vcpu, in, inout->port, bytes, &inout->eax, harg); in emulate_inout()
/illumos-gate/usr/src/lib/libbsm/common/
H A Dau_to.c213 bytes = strlen(text) + 1; in au_to_arg32()
223 adr_short(&adr, &bytes, 1); in au_to_arg32()
242 bytes = strlen(text) + 1; in au_to_arg64()
252 adr_short(&adr, &bytes, 1); in au_to_arg64()
711 bytes = strlen(text) + 1; in au_to_text()
892 if (bytes < 1) in au_to_opaque()
1172 bytes = strlen(text) + 1; in au_to_uauth()
1198 bytes = strlen(priv) + 1; in au_to_upriv()
1201 bytes); in au_to_upriv()
1229 bytes); in au_to_user()
[all …]
/illumos-gate/usr/src/lib/efcode/engine/
H A Denv.c533 int l, cw, fw, bytes; in fmt_str() local
555 bytes = pct - fmt; in fmt_str()
558 (void) strncpy(tbuf+bytes+1, fmt+bytes, 1); in fmt_str()
559 bytes += 2; in fmt_str()
560 tbuf[bytes] = 0; in fmt_str()
564 tbuf+bytes-3); in fmt_str()
573 tbuf[bytes] = 0; in fmt_str()
579 tbuf[bytes] = 0; in fmt_str()
583 tbuf[bytes] = 'l'; in fmt_str()
584 (void) strncpy(tbuf+bytes+1, fmt+bytes, 2); in fmt_str()
[all …]
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dstatistics.c32 fmt_human_units(size_t bytes, char *buf, size_t bufsize) in fmt_human_units() argument
37 size_t unit_bytes = bytes; in fmt_human_units()
46 if (unit_bytes == bytes) in fmt_human_units()
67 size_t desc_cnt = 0, desc_used = 0, bytes; in rel_cache_statistics() local
77 bytes = desc_cnt * sizeof (Rel_desc); in rel_cache_statistics()
83 EC_XWORD(bytes), in rel_cache_statistics()
84 fmt_human_units(bytes, unit_buf, sizeof (unit_buf))); in rel_cache_statistics()
99 size_t desc_cnt = 0, desc_used = 0, bytes; in rel_aux_cache_statistics() local
108 bytes = desc_cnt * sizeof (Rel_desc); in rel_aux_cache_statistics()
114 EC_XWORD(bytes), in rel_aux_cache_statistics()
[all …]
/illumos-gate/usr/src/test/zfs-tests/cmd/readmmap/
H A Dreadmmap.c56 int fd = -1, bytes, retval = 0; in main() local
81 bytes = write(fd, buf, size); in main()
82 if (bytes != size) { in main()
83 (void) printf("short write: %d != %ud\n", bytes, size); in main()
112 bytes = pread(fd, buf, size, 0); in main()
113 if (bytes != size) { in main()
114 (void) printf("short read: %d != %ud\n", bytes, size); in main()
/illumos-gate/usr/src/lib/libc/sparcv9/crt/
H A D__align_cpy_8.s78 bz,pn %xcc, .wrdbl2 ! Only 8 bytes need to be copied.
80 bpos,a,pt %xcc, .wrdbl1 ! Have at least 16 bytes to copy.
83 retl ! No bytes to copy.
87 .wrdbl1: ! Copy 16 bytes at a time.
94 bg,a,pt %xcc, .wrdbl1 ! Have at least 16 more bytes.
97 bz,a,pt %xcc, .wrdbl3 ! Have 8 bytes remaining to copy.
104 ldx [%o1], %o3 ! Copy last 8 bytes.
/illumos-gate/usr/src/lib/iconv_modules/utf-8/txt_ebcdic_utf/
H A Dshadow.txt117 -1, /* NOT be used with the shortest number of bytes in UTF-EBCDIC */
118 -1, /* NOT be used with the shortest number of bytes in UTF-EBCDIC */
119 -1, /* NOT be used with the shortest number of bytes in UTF-EBCDIC */
120 -1, /* NOT be used with the shortest number of bytes in UTF-EBCDIC */
121 -1, /* NOT be used with the shortest number of bytes in UTF-EBCDIC */
184 -1, /* NOT be used with the shortest number of bytes in UTF-EBCDIC */

12345678910>>...21