Home
last modified time | relevance | path

Searched refs:block (Results 1 – 25 of 318) sorted by relevance

12345678910>>...13

/titanic_41/usr/src/cmd/sgs/rtld/common/
H A Dmalloc.c51 struct block { struct
55 struct block *next; argument
62 struct block block[1]; member
68 #define HDR_BLOCK (sizeof (struct block) - sizeof (void *))
109 struct block *block; in defrag() local
111 for (block = page->block; block; block = block->next) { in defrag()
112 struct block *block2; in defrag()
114 if (block->status == BUSY) in defrag()
116 for (block2 = block->next; block2 && in defrag()
118 block->next = block2->next; in defrag()
[all …]
/titanic_41/usr/src/lib/libmapmalloc/common/
H A Dtextmem.c62 struct block { struct
66 struct block *next; argument
73 struct block block[1]; member
79 #define HDR_BLOCK (sizeof (struct block) - sizeof (void *))
91 static void split(struct block *, size_t);
109 struct block *block; in malloc_unlocked() local
121 for (block = page->block; block; block = block->next) { in malloc_unlocked()
122 if (block->status == FREE && block->size >= size) in malloc_unlocked()
143 block = page->block; in malloc_unlocked()
144 block->next = 0; in malloc_unlocked()
[all …]
/titanic_41/usr/src/lib/libtecla/common/
H A Dfreelist.c51 FreeListBlock *block; /* The head of the list of free-list blocks */ member
57 static void _thread_FreeListBlock(FreeList *fl, FreeListBlock *block);
107 fl->block = NULL; in _new_FreeList()
112 fl->block = _new_FreeListBlock(fl); in _new_FreeList()
113 if(!fl->block) { in _new_FreeList()
120 fl->free_list = fl->block->nodes; in _new_FreeList()
138 FreeListBlock *block; in _rst_FreeList() local
142 for(block=fl->block; block; block=block->next) in _rst_FreeList()
143 _thread_FreeListBlock(fl, block); in _rst_FreeList()
148 for(block=fl->block; block; block=block->next) { in _rst_FreeList()
[all …]
H A Dstringrp.c56 char *block; /* An array of characters to be shared between strings */ member
138 if(node->block) in _del_StringGroup()
139 free(node->block); in _del_StringGroup()
140 node->block = NULL; in _del_StringGroup()
255 node->block = NULL; in _sg_alloc_string()
260 node->block = (char *) malloc(sg->block_size); in _sg_alloc_string()
261 if(!node->block) in _sg_alloc_string()
272 copy = node->block + sg->block_size - node->unused; in _sg_alloc_string()
/titanic_41/usr/src/lib/libtnfprobe/
H A Dtnf_buf.c98 tnf_block_header_t *block; in tnfw_b_alloc_block() local
157 block = (tnf_block_header_t *) ((char *) fh + i); in tnfw_b_alloc_block()
158 if (!tnfw_b_get_lock(&block->A_lock) && in tnfw_b_alloc_block()
159 block->generation == 0) in tnfw_b_alloc_block()
170 block->tag = TNFW_B_TAG_DIFF( in tnfw_b_alloc_block()
173 block->generation = TNF_TAG_GENERATION_NUM; in tnfw_b_alloc_block()
174 block->bytes_valid = sizeof (tnf_block_header_t); in tnfw_b_alloc_block()
175 block->next_block = NULL; in tnfw_b_alloc_block()
176 tnfw_b_clear_lock(&block->A_lock); in tnfw_b_alloc_block()
177 return (block); in tnfw_b_alloc_block()
[all …]
/titanic_41/usr/src/common/net/wanboot/crypt/
H A Daes.c756 aes_encrypt(void *cookie, uint8_t *block) in aes_encrypt() argument
765 if (IS_P2ALIGNED(block, sizeof (uint32_t))) { in aes_encrypt()
772 s0 = GETU32(block) ^ rk[0]; in aes_encrypt()
774 s1 = GETU32(block + 4) ^ rk[1]; in aes_encrypt()
776 s2 = GETU32(block + 8) ^ rk[2]; in aes_encrypt()
778 s3 = GETU32(block + 12) ^ rk[3]; in aes_encrypt()
782 s0 = (((uint32_t)block[0] << 24) | ((uint32_t)block[1] << 16) | in aes_encrypt()
783 ((uint32_t)block[2] << 8) | (uint32_t)block[3]) ^ rk[0]; in aes_encrypt()
785 s1 = (((uint32_t)block[4] << 24) | ((uint32_t)block[5] << 16) | in aes_encrypt()
786 ((uint32_t)block[6] << 8) | (uint32_t)block[7]) ^ rk[1]; in aes_encrypt()
[all …]
H A Ddes.c209 des(void *cookie, uint8_t *block) in des() argument
217 left = ((uint32_t)block[0] << 24) | in des()
218 ((uint32_t)block[1] << 16) | in des()
219 ((uint32_t)block[2] << 8) | in des()
220 (uint32_t)block[3]; in des()
221 right = ((uint32_t)block[4] << 24) | in des()
222 ((uint32_t)block[5] << 16) | in des()
223 ((uint32_t)block[6] << 8) | in des()
224 (uint32_t)block[7]; in des()
293 block[0] = right >> 24; in des()
[all …]
H A Ddes3.c62 des3_encrypt(void *cookie, uint8_t *block) in des3_encrypt() argument
66 des(ksch->ksch_encrypt1, block); in des3_encrypt()
67 des(ksch->ksch_decrypt2, block); in des3_encrypt()
68 des(ksch->ksch_encrypt3, block); in des3_encrypt()
72 des3_decrypt(void *cookie, uint8_t *block) in des3_decrypt() argument
76 des(ksch->ksch_decrypt3, block); in des3_decrypt()
77 des(ksch->ksch_encrypt2, block); in des3_decrypt()
78 des(ksch->ksch_decrypt1, block); in des3_decrypt()
/titanic_41/usr/src/uts/common/tnf/
H A Dtnf_buf.c76 tnf_block_header_t *block; in tnfw_b_alloc_block() local
105 bn = fh->next_alloc.block[gen & TNFW_B_ALLOC_LO]; in tnfw_b_alloc_block()
123 block = (tnf_block_header_t *) in tnfw_b_alloc_block()
126 if (lock_try(&block->A_lock)) in tnfw_b_alloc_block()
127 if (block->generation < gen && in tnfw_b_alloc_block()
128 lock_try(&block->B_lock)) in tnfw_b_alloc_block()
131 lock_clear(&block->A_lock); in tnfw_b_alloc_block()
135 bn = fh->next_alloc.block[gen & TNFW_B_ALLOC_LO]; in tnfw_b_alloc_block()
152 tmp_bn = fh->next_alloc.block[tmp_gen & TNFW_B_ALLOC_LO]; in tnfw_b_alloc_block()
160 fh->next_alloc.block[new_gen & TNFW_B_ALLOC_LO] = new_bn; in tnfw_b_alloc_block()
[all …]
/titanic_41/usr/src/uts/intel/io/dnet/
H A Ddnet.c165 static void dnet_dump_block(media_block_t *block);
181 media_block_t *block, uchar_t *vi);
1870 media_block_t *block = dnetp->selected_media_block; in update_tx_stats() local
1881 fd = block->media_code == MEDIA_TP_FD || in update_tx_stats()
1882 block->media_code == MEDIA_SYM_SCR_FD; in update_tx_stats()
1967 media_block_t *block = dnetp->selected_media_block; in set_gpr() local
1981 if (block->rstseqlen) { in set_gpr()
1982 for (i = 0; i < block->rstseqlen; i++) in set_gpr()
1983 write_gpr(dnetp, block->rstseq[i]); in set_gpr()
1988 block->rstseqlen = 0; in set_gpr()
[all …]
/titanic_41/usr/src/cmd/ipf/examples/
H A DBASIC_2.FW17 block in log quick all with short
24 block in log on ppp0 all head 100
25 block out log on ppp0 all head 150
26 block in log on ed0 from w.x.y.z/24 to any head 200
27 block out log on ed0 all head 250
34 block in log quick from 10.0.0.0/8 to any group 100
35 block in log quick from 192.168.0.0/16 to any group 100
36 block in log quick from 172.16.0.0/12 to any group 100
40 block in log quick from a.b.c.d/24 to any group 100
47 block in log quick from 127.0.0.0/8 to any group 100
[all …]
H A DBASIC_1.FW17 block in log quick all with short
24 block in log on ppp0 all head 100
25 block in log proto tcp all flags S/SA head 101 group 100
26 block out log on ppp0 all head 150
27 block in log on ed0 from w.x.y.z/24 to any head 200
28 block in log proto tcp all flags S/SA head 201 group 200
29 block in log proto udp all head 202 group 200
30 block out log on ed0 all head 250
36 block in log quick from 127.0.0.0/8 to any group 100
37 block in log quick from any to 127.0.0.0/8 group 100
[all …]
H A Dexample.sr6 # block any inbound packets on le0 which are fragmented and "too short" to
11 block in log quick on le0 from any to any with short frag
20 # block and log any inbound ICMP unreachables
22 block in log on le0 proto icmp from any to any icmp-type unreach
24 # block and log any inbound UDP packets on le0 which are going to port 2049
27 block in log on le0 proto udp from any to any port = 2049
36 # block (and stop matching) any packet with IP options present.
38 block in quick on le0 from any to any with ipopts
44 # block any inbound UDP packets destined for these subnets.
46 block in on le0 proto udp from any to 10.1.3.0/24
[all …]
H A Dexample.82 # block all incoming TCP connections but send back a TCP-RST for ones to
5 block in proto tcp from any to any flags S/SA
6 block return-rst in quick proto tcp from any to any port = 113 flags S/SA
8 # block all inbound UDP packets and send back an ICMP error.
10 block return-icmp in proto udp from any to any
H A Dexample.107 # block incoming connection requests to my internal network from the big bad
10 block in on le0 proto tcp from any to 10.1.0.0/16 flags S/SA
11 # to block the replies:
12 block out on le0 proto tcp from 10.1.0.0 to any flags SA/SA
/titanic_41/usr/src/common/bzip2/
H A Dblocksort.c349 UChar* block, in mainGtU() argument
360 c1 = block[i1]; c2 = block[i2]; in mainGtU()
364 c1 = block[i1]; c2 = block[i2]; in mainGtU()
368 c1 = block[i1]; c2 = block[i2]; in mainGtU()
372 c1 = block[i1]; c2 = block[i2]; in mainGtU()
376 c1 = block[i1]; c2 = block[i2]; in mainGtU()
380 c1 = block[i1]; c2 = block[i2]; in mainGtU()
384 c1 = block[i1]; c2 = block[i2]; in mainGtU()
388 c1 = block[i1]; c2 = block[i2]; in mainGtU()
392 c1 = block[i1]; c2 = block[i2]; in mainGtU()
[all …]
/titanic_41/usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/
H A Decore_init.h13 #define BLOCK_OPS_IDX(block, stage, end) \ argument
14 (2*(((block)*NUM_OF_INIT_PHASES) + (stage)) + (end))
61 #define BLOCK_PRTY_INFO(block, en_mask, m1, m1h, m2, m3) \ argument
63 block##_REG_##block##_PRTY_MASK, \
64 block##_REG_##block##_PRTY_STS_CLR, \
65 en_mask, {m1, m1h, m2, m3}, #block \
68 #define BLOCK_PRTY_INFO_0(block, en_mask, m1, m1h, m2, m3) \ argument
70 block##_REG_##block##_PRTY_MASK_0, \
71 block##_REG_##block##_PRTY_STS_CLR_0, \
72 en_mask, {m1, m1h, m2, m3}, #block"_0" \
[all …]
/titanic_41/usr/src/common/crypto/blowfish/
H A Dblowfish_impl.c374 blowfish_encrypt_block(const void *cookie, const uint8_t *block, in blowfish_encrypt_block() argument
385 if (IS_P2ALIGNED(block, sizeof (uint32_t))) { in blowfish_encrypt_block()
387 b32 = (uint32_t *)block; in blowfish_encrypt_block()
397 left = htonl(*(uint32_t *)(void *)&block[0]); in blowfish_encrypt_block()
398 right = htonl(*(uint32_t *)(void *)&block[4]); in blowfish_encrypt_block()
400 left = ((uint32_t)block[0] << 24) in blowfish_encrypt_block()
401 | ((uint32_t)block[1] << 16) in blowfish_encrypt_block()
402 | ((uint32_t)block[2] << 8) in blowfish_encrypt_block()
403 | (uint32_t)block[3]; in blowfish_encrypt_block()
404 right = ((uint32_t)block[4] << 24) in blowfish_encrypt_block()
[all …]
/titanic_41/usr/src/grub/grub-0.97/netboot/
H A Dfsys_tftp.c50 static unsigned short block, prevblock; variable
94 block = 0; in tftp_file_read()
114 timeout = rfc2131_sleep_interval(block?TFTP_REXMT: TIMEOUT, retry); in tftp_file_read()
120 if (!block && retry++ < MAX_TFTP_RETRIES) in tftp_file_read()
128 if (block && ((retry += TFTP_REXMT) < TFTP_TIMEOUT)) in tftp_file_read()
194 block = tp.u.ack.block = 0; /* this ensures, that */ in tftp_file_read()
202 block = ntohs(tp.u.ack.block = tr->u.data.block); } in tftp_file_read()
207 if ((block || bcounter) && (block != (unsigned short)(prevblock+1))) { in tftp_file_read()
209 tp.u.ack.block = htons(block = prevblock); in tftp_file_read()
215 if ((unsigned short)(block-prevblock) != 1) { in tftp_file_read()
[all …]
/titanic_41/usr/src/lib/libast/common/misc/
H A Dstack.c58 stack->position.block = b; in stackalloc()
92 stack->position.block = stack->blocks; in stackclear()
104 else return(stack->position.block->stack[stack->position.index]); in stackget()
118 b = stack->position.block; in stackpush()
127 b->prev = stack->position.block; in stackpush()
130 stack->position.block = b; in stackpush()
133 stack->position.block->stack[stack->position.index] = value; in stackpush()
155 if (!stack->position.block->prev) return(0); in stackpop()
156 stack->position.block = stack->position.block->prev; in stackpop()
/titanic_41/usr/src/lib/libcrypt/common/
H A Ddes_crypt.c289 des_encrypt_nolock(char *block, int edflag) in des_encrypt_nolock() argument
292 (void) _des_decrypt1(block, L, IP, &L[32], in des_encrypt_nolock()
295 (void) des_encrypt1(block, L, IP, &L[32], in des_encrypt_nolock()
300 des_encrypt(char *block, int edflag) in des_encrypt() argument
303 des_encrypt_nolock(block, edflag); in des_encrypt()
334 char block[66]; in des_crypt() local
340 block[i] = 0; in des_crypt()
343 block[i] = (c>>(6-j)) & 01; in des_crypt()
347 des_setkey_nolock(block); in des_crypt()
350 block[i] = 0; in des_crypt()
[all …]
/titanic_41/usr/src/common/crypto/md5/
H A Dmd5.c419 MD5_CTX *ctx, const uint8_t block[64]) in MD5Transform()
467 if ((uintptr_t)block & 0x3) { /* not 4-byte aligned? */ in MD5Transform()
468 bcopy(block, ctx->buf_un.buf32, sizeof (ctx->buf_un.buf32)); in MD5Transform()
511 x_15 = LOAD_LITTLE_32_f(block); in MD5Transform()
513 x_14 = LOAD_LITTLE_32_e(block); in MD5Transform()
515 x_13 = LOAD_LITTLE_32_d(block); in MD5Transform()
517 x_12 = LOAD_LITTLE_32_c(block); in MD5Transform()
519 x_11 = LOAD_LITTLE_32_b(block); in MD5Transform()
521 x_10 = LOAD_LITTLE_32_a(block); in MD5Transform()
523 x_9 = LOAD_LITTLE_32_9(block); in MD5Transform()
[all …]
/titanic_41/usr/src/common/crypto/des/
H A Ddes_impl.c473 des_crypt_impl(uint64_t *ks, uint64_t block, int one_or_three) in des_crypt_impl() argument
478 des_ip(&l, &r, block); in des_crypt_impl()
503 des3_crunch_block(const void *cookie, const uint8_t block[DES_BLOCK_LEN], in des3_crunch_block()
514 if (IS_P2ALIGNED(block, sizeof (uint64_t)) && in des3_crunch_block()
520 *(uint64_t *)block, 3); in des3_crunch_block()
525 *(uint64_t *)block, 3); in des3_crunch_block()
532 tmp = htonll(*(uint64_t *)(void *)&block[0]); in des3_crunch_block()
534 tmp = (((uint64_t)block[0] << 56) | ((uint64_t)block[1] << 48) | in des3_crunch_block()
535 ((uint64_t)block[2] << 40) | ((uint64_t)block[3] << 32) | in des3_crunch_block()
536 ((uint64_t)block[4] << 24) | ((uint64_t)block[5] << 16) | in des3_crunch_block()
[all …]
/titanic_41/usr/src/psm/stand/boot/common/
H A Dheap_kmem.c97 Dblk block; /* Ptr to the data block */ member
227 if (p < x->block) in insert()
249 newhdr->block = p; in insert()
263 if (x->block < p) { in insert()
435 ((((uintptr_t)(x)->block) & ALIGNMASK) == 0 ? (x)->size : \
436 (((x)->size <= ALIGNMORE((x)->block)) ? 0 : \
437 (x)->size - ALIGNMORE((x)->block))))
527 retblock = a->block->data; in kmem_alloc()
538 if ((uintptr_t)a->block->data & ALIGNMASK) { in kmem_alloc()
540 if (a->size <= ALIGNMORE(a->block->data)) in kmem_alloc()
[all …]
/titanic_41/usr/src/psm/stand/bootblks/ufs/common/
H A Dufs.fth37 \ UFS low-level block routines
41 d# 512 constant /disk-block
44 0 instance value temp-block
46 : blk>byte ( block# -- byte# ) /disk-block * ;
48 : read-disk-blocks ( adr len dev-block# -- )
57 d# 512 constant /super-block
58 d# 16 constant super-block#
59 0 instance value super-block
61 : +sb ( index -- value ) super-block swap la+ l@ ;
74 : get-super-block ( -- )
[all …]

12345678910>>...13