Home
last modified time | relevance | path

Searched refs:byte (Results 1 – 25 of 304) sorted by relevance

12345678910>>...13

/titanic_44/usr/src/uts/i86pc/boot/
H A Dboot_gdt.s61 .byte 0x0 /* segment base 16..23 */
62 .byte 0x92 /* P = 1, read/write data */
63 .byte 0xCF /* G=1, B=1, Limit (16..19)=1111 */
64 .byte 0x0 /* segment base 24..32 */
69 .byte 0x0 /* segment base 16..23 */
70 .byte 0x9A /* P=1, code, exec, readable */
71 .byte 0xCF /* G=1, D=1, Limit (16..19)=1111 */
72 .byte 0x0 /* segment base 24..32 */
79 .byte 0x0 /* segment base 16..23 */
80 .byte 0x9A /* P=1, code, exec, readable */
[all …]
/titanic_44/usr/src/lib/common/i386/
H A Dfsr.s37 .4byte __fsr_init_value
62 .byte 0b11111111
63 .byte 0b11011111
64 .byte 0b11111011
65 .byte 0b11011011
66 .byte 0b11101111
67 .byte 0b11001111
68 .byte 0b11101011
69 .byte 0b11001011
70 .byte 0b11110111
[all …]
/titanic_44/usr/src/lib/libfruutils/
H A Dfru_tag.c168 tmp.raw_data = (tag->byte[0] << 8) | tag->byte[1]; in get_tag_type()
174 tmp32 = (tag->byte[0] << 16) | (tag->byte[1] << 8) | tag->byte[2]; in get_tag_type()
181 tmp32 = (tag->byte[0] << 24) | (tag->byte[1] << 16) | in get_tag_type()
182 (tag->byte[2] << 8) | tag->byte[3]; in get_tag_type()
187 tmp64 = ((uint64_t)tag->byte[0] << 40) | in get_tag_type()
188 ((uint64_t)tag->byte[1] << 32) | in get_tag_type()
189 ((uint64_t)tag->byte[2] << 24) | in get_tag_type()
190 ((uint64_t)tag->byte[3] << 16) | in get_tag_type()
191 ((uint64_t)tag->byte[4] << 8) | in get_tag_type()
192 (uint64_t)tag->byte[5]; in get_tag_type()
[all …]
/titanic_44/usr/src/cmd/krb5/krb5kdc/
H A Dsock2p.c56 const unsigned char *byte = (const unsigned char *) in inet_ntop() local
59 byte[0] * 256 + byte[1], in inet_ntop()
60 byte[2] * 256 + byte[3], in inet_ntop()
61 byte[4] * 256 + byte[5], in inet_ntop()
62 byte[6] * 256 + byte[7], in inet_ntop()
63 byte[8] * 256 + byte[9], in inet_ntop()
64 byte[10] * 256 + byte[11], in inet_ntop()
65 byte[12] * 256 + byte[13], in inet_ntop()
66 byte[14] * 256 + byte[15]); in inet_ntop()
/titanic_44/usr/src/lib/libc/sparcv9/gen/
H A Dstrcpy.s54 ! source alignment and copying byte, half byte, or word
58 ! (methods for xword, word, half-word, and byte copies are present)
70 andcc %o1, 1, %g0 ! need to copy byte ?
84 srl %o5, 8, %o4 ! extract first byte
85 tst %o4 ! first byte == 0 ?
87 stb %o4, [%o2] ! store first byte
88 andcc %o5, 0xff, %g0 ! extract second byte
89 stb %o5, [%o2 + 1] ! store second byte
90 bz,pn %ncc, .done ! yup, 2nd byte zero, done
98 srl %o5, 24, %o4 ! extract first byte
[all …]
H A Dstrlcpy.s51 ! This is either by xword, word, halfword, or byte. As this occurs, we
52 ! check for a zero-byte. If one is found, we branch to a method
53 ! which checks for the exact location of a zero-byte within a
72 andcc %l1, 0xff, %g0 ! end of src reached (null byte) ?
77 bz,pn %ncc, .forcenullunalign ! n == 0, force null byte, compute len
79 bnz,a %ncc, .alignsrc ! no, copy another byte
99 nop ! ensure loop is 16-byte aligned
100 nop ! ensure loop is 16-byte aligned
109 bz,a,pt %ncc, .storedword ! no zero byte if magic expression == 0
119 srlx %l1, 56, %g1 ! first byte
[all …]
H A Dstrchr.s40 ! word aligned, we check a for the search char a byte at a time
177 srl %o1, 8, %o4 ! %o4<7:0> = first byte
178 tst %o4 ! first byte zero ?
180 andcc %o1, 0xff, %g0 ! second byte zero ?
196 bz,a,pt %ncc, .searchword ! no zero byte if magic expression == 0
200 set 0xff000000, %o4 ! mask for 1st byte
201 andcc %o1, %o4, %g0 ! first byte zero?
203 set 0x00ff0000, %o5 ! mask for 2nd byte
205 andcc %o1, %o5, %g0 ! second byte zero?
207 srl %o4, 16, %o4 ! 0x0000ff00 = mask for 3rd byte
[all …]
H A Dstrncpy.s62 ! is copied based upon destination alignment. (byte, half-word,
68 nop ! pad to align loop on 16-byte boundary
82 tst %o1 ! end of src reached (null byte) ?
83 bz,a %ncc, .bytepad ! yes, at least one byte to pad here
86 bnz,a %ncc, .alignsrc ! no, copy another byte
107 nop ! ensure loop is 16-byte aligned
116 bz,a,pt %ncc, .storedword ! no zero byte if magic expression == 0
124 srlx %o1, 56, %g1 ! first byte
128 srlx %o1, 48, %g1 ! second byte
132 srlx %o1, 40, %g1 ! third byte
[all …]
/titanic_44/usr/src/lib/libcurses/screen/
H A Dmbtranslate.c64 *_strcode2byte(wchar_t *code, char *byte, int n) in _strcode2byte() argument
77 if (!byte && (n*CSMAX+1) > bufsize) { in _strcode2byte()
86 if (!byte && !buf) in _strcode2byte()
90 bufp = byte ? byte : buf; in _strcode2byte()
98 return (byte ? byte : buf); in _strcode2byte()
107 *_strbyte2code(char *byte, wchar_t *code, int n) in _strbyte2code() argument
115 for (n = 0; byte[n] != '\0'; ++n) in _strbyte2code()
131 endbyte = byte + n; in _strbyte2code()
133 while (byte < endbyte && *byte) { in _strbyte2code()
137 type = TYPE(*byte & 0377); in _strbyte2code()
[all …]
/titanic_44/usr/src/lib/libc/sparc/gen/
H A Dstrncpy.s62 ! is copied based upon destination alignment. (byte, half-word,
72 blu .shortcpy ! n < 7, use byte-wise copy
78 nop ! align loop on 16-byte boundary
79 nop ! align loop on 16-byte boundary
86 tst %i1 ! end of src reached (null byte) ?
87 bz,a .bytepad ! yes, at least one byte to pad here
90 bnz .alignsrc ! no, copy another byte
109 bz,a .storeword ! no zero byte if magic expression == 0
117 srl %i1, 24, %g1 ! first byte
119 sub %g1, 1, %g1 ! byte == 0 ? -1 : byte - 1
[all …]
H A Dstrcpy.s58 ! Methods exist to handle per-byte, half-word, and word sized
73 tst %o1 ! byte zero?
74 stb %o1, [%o2] ! store first byte
76 cmp %o4, 3 ! only one byte needed to align?
82 srl %o1, 8, %o4 ! %o4<7:0> = first byte
83 tst %o4 ! first byte zero ?
85 stb %o4, [%o2] ! store first byte
86 andcc %o1, 0xff, %g0 ! second byte zero ?
88 stb %o1, [%o2 + 1] ! store second byte
106 bz,a .copyword ! no zero byte if magic expression == 0
[all …]
H A Dstrlcpy.s50 ! This is either by word, halfword, or byte. As this occurs, we
51 ! check for a zero-byte. If one is found, we branch to a method
52 ! which checks for the exact location of a zero-byte within a
69 andcc %l1, 0xff, %g0 ! null byte reached?
74 bz,pn %icc, .forcenullunalign ! n == 0, append null byte
95 bz,a,pt %icc, .storeword ! if expr == 0, no zero byte
100 srl %l1, 24, %g1 ! 1st byte
103 stb %g1, [%i2] ! store byte
105 srl %l1, 16, %g1 ! 2nd byte
106 andcc %g1, 0xff, %g0 ! zero byte ?
[all …]
H A Dstrchr.s40 ! word aligned, we check a for the search char a byte at a time
177 srl %o1, 8, %o4 ! %o4<7:0> = first byte
178 tst %o4 ! first byte zero ?
180 andcc %o1, 0xff, %g0 ! second byte zero ?
196 bz,a .searchword ! no zero byte if magic expression == 0
200 set 0xff000000, %o4 ! mask for 1st byte
201 andcc %o1, %o4, %g0 ! first byte zero?
203 set 0x00ff0000, %o5 ! mask for 2nd byte
205 andcc %o1, %o5, %g0 ! second byte zero?
207 srl %o4, 16, %o4 ! 0x0000ff00 = mask for 3rd byte
[all …]
/titanic_44/usr/src/lib/libldap5/sources/ldap/util/
H A Dline64.c207 unsigned char nib, *byte; in ldif_base64_decode() local
211 byte = dst; in ldif_base64_decode()
222 byte[0] = nib << 2; in ldif_base64_decode()
226 byte[0] |= nib >> 4; in ldif_base64_decode()
233 byte[1] = (nib & RIGHT4) << 4; in ldif_base64_decode()
235 byte[1] |= nib >> 2; in ldif_base64_decode()
242 byte[2] = (nib & RIGHT2) << 6; in ldif_base64_decode()
244 byte[2] |= nib; in ldif_base64_decode()
246 byte += 3; in ldif_base64_decode()
327 unsigned char *p, *byte, *stop; in ldif_put_type_and_value_with_options() local
[all …]
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dnfold.c62 int byte, i, msbit; in krb5_nfold() local
86 byte = 0; in krb5_nfold()
104 byte += (((in[((inbits-1)-(msbit>>3))%inbits]<<8)| in krb5_nfold()
109 byte += out[i%outbits]; in krb5_nfold()
110 out[i%outbits] = byte&0xff; in krb5_nfold()
116 >>((msbit&7)+1))&0xff, byte); in krb5_nfold()
120 byte >>= 8; in krb5_nfold()
123 printf("carry=%d\n", byte); in krb5_nfold()
128 if (byte) { in krb5_nfold()
131 byte += out[i]; in krb5_nfold()
[all …]
/titanic_44/usr/src/uts/common/io/nxge/
H A Dnxge_fflp_hash.c115 uint32_t index, bit, byte, crc; in nxge_crc32c_init() local
119 for (byte = 0; byte < 4; byte++) { in nxge_crc32c_init()
125 crc32c_tab[3 - byte][index] = flip32(reflect_32(crc)); in nxge_crc32c_init()
127 crc32c_tab[byte][index] = reflect_32(crc); in nxge_crc32c_init()
141 uint16_t index, bit, byte; in nxge_crc_ccitt_init() local
145 for (byte = 0; byte < 4; byte++) { in nxge_crc_ccitt_init()
151 crc_ccitt_tab[3 - byte][index] = crc; in nxge_crc_ccitt_init()
153 crc_ccitt_tab[byte][index] = crc; in nxge_crc_ccitt_init()
281 uint32_t crc, bit, byte, index; in nxge_init_h1_table() local
285 for (byte = 0; byte < 4; byte++) { in nxge_init_h1_table()
[all …]
/titanic_44/usr/src/tools/ctf/dwarf/common/
H A Ddwarf_leb.c49 unsigned char byte; in _dwarf_decode_u_leb128() local
95 byte = *(leb128); in _dwarf_decode_u_leb128()
97 number |= ((Dwarf_Unsigned) (byte & 0x7f)) << shift; in _dwarf_decode_u_leb128()
99 if ((byte & 0x80) == 0) { in _dwarf_decode_u_leb128()
108 byte = *leb128; in _dwarf_decode_u_leb128()
123 unsigned char byte = *leb128; in _dwarf_decode_s_leb128() local
130 sign = byte & 0x40; in _dwarf_decode_s_leb128()
131 number |= ((Dwarf_Signed) ((byte & 0x7f))) << shift; in _dwarf_decode_s_leb128()
134 if ((byte & 0x80) == 0) { in _dwarf_decode_s_leb128()
138 byte = *leb128; in _dwarf_decode_s_leb128()
/titanic_44/usr/src/cmd/file/
H A Dmagic26 # (1) byte offset
41 #>4 byte 1 32-bit
42 #>5 byte 1 LSB
43 #>5 byte 2 MSB
73 >156 byte 88 extended format
156 >1 byte 0 sun2 executable
157 >1 byte 1 mc68010 executable
158 >1 byte 2 mc68020 executable
159 >1 byte 3 SPARC executable
163 >1 byte 0 sun2 executable
[all …]
/titanic_44/usr/src/common/crypto/aes/amd64/
H A Daes_amd64.s242 .byte x(0x63),x(0x7c),x(0x77),x(0x7b),x(0xf2),x(0x6b),x(0x6f),x(0xc5); \
243 .byte x(0x30),x(0x01),x(0x67),x(0x2b),x(0xfe),x(0xd7),x(0xab),x(0x76); \
244 .byte x(0xca),x(0x82),x(0xc9),x(0x7d),x(0xfa),x(0x59),x(0x47),x(0xf0); \
245 .byte x(0xad),x(0xd4),x(0xa2),x(0xaf),x(0x9c),x(0xa4),x(0x72),x(0xc0); \
246 .byte x(0xb7),x(0xfd),x(0x93),x(0x26),x(0x36),x(0x3f),x(0xf7),x(0xcc); \
247 .byte x(0x34),x(0xa5),x(0xe5),x(0xf1),x(0x71),x(0xd8),x(0x31),x(0x15); \
248 .byte x(0x04),x(0xc7),x(0x23),x(0xc3),x(0x18),x(0x96),x(0x05),x(0x9a); \
249 .byte x(0x07),x(0x12),x(0x80),x(0xe2),x(0xeb),x(0x27),x(0xb2),x(0x75); \
250 .byte x(0x09),x(0x83),x(0x2c),x(0x1a),x(0x1b),x(0x6e),x(0x5a),x(0xa0); \
251 .byte x(0x52),x(0x3b),x(0xd6),x(0xb3),x(0x29),x(0xe3),x(0x2f),x(0x84); \
[all …]
/titanic_44/usr/src/uts/i86pc/os/
H A Dbiosdisk.c179 rp.edx.byte.dl = drivenum; in get_dev_params()
188 rp.eflags, rp.eax.byte.ah)); in get_dev_params()
213 rp.eax.byte.ah = 0x8; /* get params */ in drive_present()
214 rp.edx.byte.dl = drivenum; in drive_present()
218 if (((rp.eflags & PS_C) != 0) || rp.eax.byte.ah != 0) { in drive_present()
220 drivenum, rp.eflags, rp.eax.byte.ah)); in drive_present()
234 rp.eax.byte.ah = 0x0; /* reset disk */ in reset_disk()
235 rp.edx.byte.dl = drivenum; in reset_disk()
239 status = rp.eax.byte.ah; in reset_disk()
261 rp.eax.byte.ah = 0x2; /* Read disk */ in read_firstblock()
[all …]
/titanic_44/usr/src/lib/libc/amd64/gen/
H A Dmemccpy.s38 movb %dh,(%rdi) / move byte
39 cmpb %dh,%dl / is it the byte sought?
45 movb %dh,1(%rdi) / move byte
46 cmpb %dh,%dl / is it the byte sought?
52 movb %dh,2(%rdi) / move byte
53 cmpb %dh,%dl / is it the byte sought?
59 movb %dh,3(%rdi) / move byte
62 cmpb %dh,%dl / is it the byte sought?
67 incq %rdi / return pointer to next byte in dest
75 addq $2,%rdi / return pointer to next byte in dest
H A Dstrncat.s56 / to check if a 32-bit word data contains a null byte or not:
59 / that means the 32-bit word data contains a null byte.
82 cmpq %r9, %rcx / if no null byte in this quadword
86 cmpb $0, (%rdi) / if a byte in (%rdi) is null
88 incq %rdi / next byte
94 / %rdi points to a null byte in destination string
109 cmpq %r9, %rcx / if null byte in this quadword
121 / number of bytes < 8 or a null byte found in the quadword
124 movb (%rsi), %r11b / %r11b = a byte in (%rsi)
127 incq %rsi / next byte
[all …]
/titanic_44/usr/src/lib/libc/i386/gen/
H A Dstrncat.s56 / to check if a 32-bit word data contains a null byte or not:
59 / that means the 32-bit word data contains a null byte.
79 cmpl $0x80808080, %ecx / if no null byte in this word
83 cmpb $0, (%edi) / if a byte in (%edi) is null
85 incl %edi / next byte
91 / %edi points to a null byte in destination string
108 cmpl $0x80808080, %ecx / if null byte in this word
120 / number of bytes < 4 or a null byte found in the word
123 movb (%eax), %dl / %dl = a byte in (%eax)
126 incl %eax / next byte
[all …]
H A Dbyteorder.s44 / reverses the byte order of 'long hl'
48 bswap %eax / reverses the byte order of %eax
54 bswap %eax / reverses the byte order of %eax
61 / reverses the byte order in hs.
65 bswap %eax / reverses the byte order of %eax
72 bswap %eax / reverses the byte order of %eax
83 bswap %eax / reverses the byte order of %eax
94 bswap %eax / reverses the byte order of %eax
105 bswap %eax / reverses the byte order of %eax
112 bswap %eax / reverses the byte order of %eax
[all …]
H A Dmemccpy.s44 movb %dl,(%eax) / move byte
45 cmpb %dh,%dl / is it the byte sought?
51 movb %dl,1(%eax) / move byte
52 cmpb %dh,%dl / is it the byte sought?
58 movb %dl,2(%eax) / move byte
59 cmpb %dh,%dl / is it the byte sought?
65 movb %dl,3(%eax) / move byte
68 cmpb %dh,%dl / is it the byte sought?
74 incl %eax / return pointer to next byte in dest
82 addl $2,%eax / return pointer to next byte in dest

12345678910>>...13