| /titanic_54/usr/src/boot/lib/libstand/ |
| H A D | zalloc.c | 89 znalloc(MemPool *mp, uintptr_t bytes) in znalloc() argument 96 bytes = (bytes + MEMNODE_SIZE_MASK) & ~MEMNODE_SIZE_MASK; in znalloc() 98 if (bytes == 0) in znalloc() 106 if (bytes <= mp->mp_Size - mp->mp_Used) { in znalloc() 111 if (bytes > mn->mr_Bytes) in znalloc() 122 if (mn->mr_Bytes == bytes) { in znalloc() 125 mn = (MemNode *)((char *)mn + bytes); in znalloc() 127 mn->mr_Bytes = ((MemNode *)ptr)->mr_Bytes - bytes; in znalloc() 130 mp->mp_Used += bytes; in znalloc() 148 zfree(MemPool *mp, void *ptr, uintptr_t bytes) in zfree() argument [all …]
|
| H A D | zalloc_malloc.c | 54 Malloc(size_t bytes, const char *file, int line) 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 *((signed char *)res + bytes - 1) = -2; in Malloc() 91 size_t bytes; in Free() local 117 bytes = res->ga_Bytes; in Free() 118 zfree(&MallocPool, res, bytes); in Free() [all …]
|
| /titanic_54/usr/src/psm/stand/boot/sparc/common/ |
| H A D | sun4x_standalloc.c | 131 vpage_from_freelist(size_t bytes) in vpage_from_freelist() argument 137 for (i = 0; i < N_FREELIST && free_size[i] < bytes; i++) in vpage_from_freelist() 142 "memory\n", bytes); in vpage_from_freelist() 147 free_addr[i] += bytes; in vpage_from_freelist() 148 free_size[i] -= bytes; in vpage_from_freelist() 149 dprintf("reuse freed temp scratch: bytes = %lu at %p\n", bytes, in vpage_from_freelist() 165 size_t bytes; in get_low_vpage() local 172 bytes = numpages * pagesize; in get_low_vpage() 173 if (scratchmemp + bytes <= top_bootmem) { in get_low_vpage() 175 scratchmemp += bytes; in get_low_vpage() [all …]
|
| /titanic_54/usr/src/stand/lib/sa/ |
| H A D | stdio.c | 110 int bytes; in fgets() local 116 for (bytes = 0; bytes < (n - 1); ++bytes) { in fgets() 117 cnt = read(stream->_file, &s[bytes], 1); 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() [all …]
|
| /titanic_54/usr/src/cmd/bnu/ |
| H A D | statlog.c | 43 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 D | xio.c | 148 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);
|
| /titanic_54/usr/src/lib/print/libhttp-core/common/ |
| H A D | http.c | 194 httpDumpData(FILE *fp, const char *tag, const char *buffer, int bytes) in httpDumpData() argument 198 fprintf(fp, "%s %d(0x%x) bytes...\n", tag, bytes, bytes); in httpDumpData() 199 for (i = 0; i < bytes; i += 16) { in httpDumpData() 202 for (j = 0; j < 16 && (i + j) < bytes; j ++) in httpDumpData() 211 for (j = 0; j < 16 && (i + j) < bytes; j ++) { in httpDumpData() 911 int bytes; /* Bytes read */ in httpRead() local 983 bytes = sizeof(http->buffer); in httpRead() 985 bytes = http->data_remaining; in httpRead() 989 bytes = http_read_ssl(http, http->buffer, bytes); in httpRead() 994 bytes)); in httpRead() [all …]
|
| /titanic_54/usr/src/lib/libc/sparcv9/gen/ |
| H A D | strncpy.s | 55 ! strncpy works similarly to strcpy, except that n bytes of s2 57 ! bytes remain to be copied, strncpy will copy null bytes into 75 sub %o4, 8, %o4 ! bytes until src aligned 102 be,pn %ncc, .storebyte1421 ! store 1, 4, 2, 1 bytes 120 ! remaining src bytes and then start padding with null bytes 127 movz %ncc, %g0, %o1 ! if so, start padding with null bytes 131 movz %ncc, %g0, %o1 ! if so, start padding with null bytes 135 movz %ncc, %g0, %o1 ! if so, start padding with null bytes 139 movz %ncc, %g0, %o1 ! if so, start padding with null bytes 143 movz %ncc, %g0, %o1 ! if so, start padding with null bytes [all …]
|
| /titanic_54/usr/src/lib/libc/capabilities/sun4u-opl/common/ |
| H A D | memcpy.s | 131 andcc %o0, 7, %o5 ! bytes till DST 8 byte aligned 167 ldx [%o1-16], %o3 ! a block of 32 bytes 174 bgu,pt %ncc, .dbmedl32 ! repeat if at least 32 bytes left 178 ble,pt %ncc, .dbmedl15 ! skip if 15 or fewer bytes left 180 ldx [%o1-8], %o4 ! load and store 16 bytes 192 blt,pt %ncc, .dbremain ! skip if 7 or fewer bytes left 194 ldx [%o1-8], %o4 ! load 8 bytes 196 stx %o4, [%o0-8] ! and store 8 bytes 224 ldd [%o5-8], %d2 ! load 8 bytes 225 ldd [%o5-16], %d4 ! load 8 bytes [all …]
|
| /titanic_54/usr/src/uts/common/os/ |
| H A D | memlist_new.c | 90 memlist_free_block(caddr_t base, size_t bytes) in memlist_free_block() argument 95 count = bytes / sizeof (struct memlist); in memlist_free_block() 199 uint64_t bytes, in memlist_add_span() argument 216 dst->ml_size = bytes; in memlist_add_span() 243 if ((address + bytes) == next->ml_address) { in memlist_add_span() 247 next->ml_size += bytes; in memlist_add_span() 262 if ((address + bytes) > in memlist_add_span() 269 if ((address + bytes) == in memlist_add_span() 278 mlp->ml_size += bytes; in memlist_add_span() 289 next->ml_size += bytes; in memlist_add_span() [all …]
|
| /titanic_54/usr/src/lib/libc/capabilities/sun4u-us3/common/ |
| H A D | memcpy.s | 124 andcc %o0, 7, %o5 ! bytes till DST 8 byte aligned 162 ldd [%o1-16], %d2 ! a block of 64 bytes 177 bgu,pt %ncc, .dbmedl64 ! repeat if at least 64 bytes left 191 ldx [%o1-16], %o3 ! a block of 32 bytes 198 bgu,pt %ncc, .dbmedl32 ! repeat if at least 32 bytes left 202 ble,pt %ncc, .dbmedl15 ! skip if 15 or fewer bytes left 204 ldx [%o1-8], %o4 ! load and store 16 bytes 216 blt,pt %ncc, .dbremain ! skip if 7 or fewer bytes left 218 ldx [%o1-8], %o4 ! load 8 bytes 220 stx %o4, [%o0-8] ! and store 8 bytes [all …]
|
| /titanic_54/usr/src/lib/libresolv2/common/isc/ |
| H A D | ev_streams.c | 41 static void consume(evStream *str, size_t bytes); 223 consume(evStream *str, size_t bytes) { in consume() argument 224 while (bytes > 0U) { in consume() 225 if (bytes < (size_t)str->iovCur->iov_len) { in consume() 226 str->iovCur->iov_len -= bytes; in consume() 228 ((u_char *)str->iovCur->iov_base + bytes); in consume() 229 str->ioDone += bytes; in consume() 230 bytes = 0; in consume() 232 bytes -= str->iovCur->iov_len; in consume() 262 int bytes; in writable() local [all …]
|
| /titanic_54/usr/src/lib/libslp/javalib/com/sun/slp/ |
| H A D | SLPHeaderV2.java | 634 byte[] bytes = obaos.toByteArray(); in externalizeOptions() 636 baos.write(bytes, 0, bytes.length); in externalizeOptions() 669 byte[] bytes = getStringBytes(address, Defaults.UTF8); in parsePreviousRespondersOut() 673 if (bytes.length <= available) { in parsePreviousRespondersOut() 674 bbaos.write(bytes, 0, bytes.length); in parsePreviousRespondersOut() 675 available = available - bytes.length; in parsePreviousRespondersOut() 804 byte[] bytes = getStringBytes(surl.toString(), Defaults.UTF8); in parseServiceURLOut() 826 putInteger(bytes.length, abaos); in parseServiceURLOut() 829 message[1] = bytes; in parseServiceURLOut() 836 bytes = (byte[]) bytesArray[1]; in parseServiceURLOut() [all …]
|
| H A D | CDAAdvert.java | 186 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 D | IANACharCode.java | 348 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()
|
| H A D | Opaque.java | 55 byte[] bytes; field in Opaque 64 bytes = nb; in Opaque() 157 byte[] cbyte = ((Opaque)o).bytes; in equals() 161 if (cbyte.length != bytes.length) { in equals() 171 if (cbyte[i] != bytes[i]) { in equals() 182 int i, n = bytes.length; in toString() 194 str = Integer.toHexString(((int)bytes[i] & 0xFF)); in toString()
|
| /titanic_54/usr/src/lib/libbsm/common/ |
| H A D | au_to.c | 211 short bytes; /* length of string */ in au_to_arg32() local 213 bytes = strlen(text) + 1; in au_to_arg32() 216 sizeof (short) + bytes)); in au_to_arg32() 223 adr_short(&adr, &bytes, 1); in au_to_arg32() 224 adr_char(&adr, text, bytes); in au_to_arg32() 240 short bytes; /* length of string */ in au_to_arg64() local 242 bytes = strlen(text) + 1; in au_to_arg64() 245 sizeof (short) + bytes)); in au_to_arg64() 252 adr_short(&adr, &bytes, 1); in au_to_arg64() 253 adr_char(&adr, text, bytes); in au_to_arg64() [all …]
|
| /titanic_54/usr/src/boot/sys/boot/arm/at91/libat91/ |
| H A D | lib_AT91RM9200.h | 162 unsigned int bytes) // \arg number of bytes to be received in AT91F_PDC_SetNextRx() argument 165 pPDC->PDC_RNCR = bytes; in AT91F_PDC_SetNextRx() 176 unsigned int bytes) // \arg number of bytes to be transmitted in AT91F_PDC_SetNextTx() argument 179 pPDC->PDC_TNCR = bytes; in AT91F_PDC_SetNextTx() 190 unsigned int bytes) // \arg number of bytes to be received in AT91F_PDC_SetRx() argument 193 pPDC->PDC_RCR = bytes; in AT91F_PDC_SetRx() 204 unsigned int bytes) // \arg number of bytes to be transmitted in AT91F_PDC_SetTx() argument 207 pPDC->PDC_TCR = bytes; in AT91F_PDC_SetTx()
|
| /titanic_54/usr/src/lib/efcode/engine/ |
| H A D | env.c | 534 int l, cw, fw, bytes; in fmt_str() local 556 bytes = pct - fmt; in fmt_str() 557 strncpy(tbuf, fmt, bytes); in fmt_str() 558 strncpy(tbuf+bytes, "%", 1); in fmt_str() 559 strncpy(tbuf+bytes+1, fmt+bytes, 1); in fmt_str() 560 bytes += 2; in fmt_str() 561 tbuf[bytes] = 0; in fmt_str() 565 tbuf+bytes-3); in fmt_str() 572 bytes = pct - fmt + fw; in fmt_str() 573 strncpy(tbuf, fmt, bytes); in fmt_str() [all …]
|
| /titanic_54/usr/src/cmd/sgs/liblddbg/common/ |
| H A D | statistics.c | 32 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 …]
|
| /titanic_54/usr/src/test/zfs-tests/cmd/readmmap/ |
| H A D | readmmap.c | 56 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()
|
| /titanic_54/usr/src/lib/libc/sparcv9/crt/ |
| H A D | __align_cpy_8.s | 78 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.
|
| /titanic_54/usr/src/lib/iconv_modules/utf-8/txt_ebcdic_utf/ |
| H A D | shadow.txt | 117 -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 */
|
| /titanic_54/usr/src/lib/libbc/libc/sys/common/ |
| H A D | getdents.c | 48 int getdents(fd, buf, bytes) in getdents() argument 51 int bytes; 53 return(bc_getdents(fd, buf, bytes)); 57 int bc_getdents(fd, buf, bytes) in bc_getdents() argument 60 int bytes; 74 nbytes = bytes; /* buffer can only be as large as user expects */ 91 (int)(buf + bytes)) &&
|
| /titanic_54/usr/src/uts/common/io/ib/clients/rdsv3/ |
| H A D | page.c | 55 rdsv3_page_remainder_alloc(struct rdsv3_scatterlist *scat, unsigned long bytes, in rdsv3_page_remainder_alloc() argument 63 if (bytes >= PAGE_SIZE) { in rdsv3_page_remainder_alloc() 77 page = kmem_alloc(bytes, KM_NOSLEEP); in rdsv3_page_remainder_alloc() 83 rdsv3_sg_set_page(scat, page, bytes, 0); in rdsv3_page_remainder_alloc() 87 bytes, rdsv3_sg_page(scat), scat->length); in rdsv3_page_remainder_alloc()
|