Home
last modified time | relevance | path

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

12345678910>>...13

/illumos-gate/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 …]
/illumos-gate/usr/src/lib/libmapmalloc/common/
H A Dtextmem.c60 struct block { struct
64 struct block *next; argument
71 struct block block[1]; member
77 #define HDR_BLOCK (sizeof (struct block) - sizeof (void *))
89 static void split(struct block *, size_t);
107 struct block *block; in malloc_unlocked() local
119 for (block = page->block; block; block = block->next) { in malloc_unlocked()
120 if (block->status == FREE && block->size >= size) in malloc_unlocked()
141 block = page->block; in malloc_unlocked()
142 block->next = 0; in malloc_unlocked()
[all …]
/illumos-gate/usr/src/lib/libtecla/common/
H A Dfreelist.c49 FreeListBlock *block; /* The head of the list of free-list blocks */ member
55 static void _thread_FreeListBlock(FreeList *fl, FreeListBlock *block);
105 fl->block = NULL; in _new_FreeList()
110 fl->block = _new_FreeListBlock(fl); in _new_FreeList()
111 if(!fl->block) { in _new_FreeList()
118 fl->free_list = fl->block->nodes; in _new_FreeList()
136 FreeListBlock *block; in _rst_FreeList() local
140 for(block=fl->block; block; block=block->next) in _rst_FreeList()
141 _thread_FreeListBlock(fl, block); in _rst_FreeList()
146 for(block=fl->block; block; block=block->next) { in _rst_FreeList()
[all …]
H A Dstringrp.c54 char *block; /* An array of characters to be shared between strings */ member
136 if(node->block) in _del_StringGroup()
137 free(node->block); in _del_StringGroup()
138 node->block = NULL; in _del_StringGroup()
253 node->block = NULL; in _sg_alloc_string()
258 node->block = (char *) malloc(sg->block_size); in _sg_alloc_string()
259 if(!node->block) in _sg_alloc_string()
270 copy = node->block + sg->block_size - node->unused; in _sg_alloc_string()
/illumos-gate/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);
1871 media_block_t *block = dnetp->selected_media_block; in update_tx_stats() local
1882 fd = block->media_code == MEDIA_TP_FD || in update_tx_stats()
1883 block->media_code == MEDIA_SYM_SCR_FD; in update_tx_stats()
1968 media_block_t *block = dnetp->selected_media_block; in set_gpr() local
1982 if (block->rstseqlen) { in set_gpr()
1983 for (i = 0; i < block->rstseqlen; i++) in set_gpr()
1984 write_gpr(dnetp, block->rstseq[i]); in set_gpr()
1989 block->rstseqlen = 0; in set_gpr()
[all …]
/illumos-gate/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
H A Dexample.71 # block all ICMP packets.
3 block in proto icmp all
10 # block all ICMP destination unreachable packets which are port-unreachables
12 block in on le1 proto icmp from any to any icmp-type unreach code 3
H A Dexample.124 block in proto tcp all with short
8 block in log all with ipopts
16 block in quick all with opt lsrr
17 block in quick all with opt ssrr
/illumos-gate/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 …]
/illumos-gate/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 …]
/illumos-gate/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 …]
/illumos-gate/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 …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/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()
/illumos-gate/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 …]
/illumos-gate/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 …]
/illumos-gate/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()
506 des3_crunch_block(const void *cookie, const uint8_t *block, in des3_crunch_block() argument
517 if (IS_P2ALIGNED(block, sizeof (uint64_t)) && in des3_crunch_block()
523 *(uint64_t *)block, 3); in des3_crunch_block()
528 *(uint64_t *)block, 3); in des3_crunch_block()
535 tmp = htonll(*(uint64_t *)(void *)&block[0]); in des3_crunch_block()
537 tmp = (((uint64_t)block[0] << 56) | ((uint64_t)block[1] << 48) | in des3_crunch_block()
538 ((uint64_t)block[2] << 40) | ((uint64_t)block[3] << 32) | in des3_crunch_block()
539 ((uint64_t)block[4] << 24) | ((uint64_t)block[5] << 16) | in des3_crunch_block()
[all …]
/illumos-gate/usr/src/psm/stand/boot/common/
H A Dheap_kmem.c95 Dblk block; /* Ptr to the data block */ member
225 if (p < x->block) in insert()
247 newhdr->block = p; in insert()
261 if (x->block < p) { in insert()
433 ((((uintptr_t)(x)->block) & ALIGNMASK) == 0 ? (x)->size : \
434 (((x)->size <= ALIGNMORE((x)->block)) ? 0 : \
435 (x)->size - ALIGNMORE((x)->block))))
525 retblock = a->block->data; in kmem_alloc()
536 if ((uintptr_t)a->block->data & ALIGNMASK) { in kmem_alloc()
538 if (a->size <= ALIGNMORE(a->block->data)) in kmem_alloc()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlmem.c46 void *luaM_growaux_ (lua_State *L, void *block, int *size, size_t size_elems, in luaM_growaux_() argument
60 newblock = luaM_reallocv(L, block, *size, newsize, size_elems); in luaM_growaux_()
75 void *luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize) { in luaM_realloc_() argument
78 size_t realosize = (block) ? osize : 0; in luaM_realloc_()
79 lua_assert((realosize == 0) == (block == NULL)); in luaM_realloc_()
84 newblock = (*g->frealloc)(g->ud, block, osize, nsize); in luaM_realloc_()
90 newblock = (*g->frealloc)(g->ud, block, osize, nsize); /* try again */ in luaM_realloc_()
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftAESCrypt.c445 char block[AES_BLOCK_LEN]; in soft_aes_encrypt() local
450 (void) memset(block, amt & 0xff, sizeof (block)); in soft_aes_encrypt()
451 rc = aes_encrypt_contiguous_blocks(aes_ctx, block, amt, &out); in soft_aes_encrypt()
453 explicit_bzero(block, sizeof (block)); in soft_aes_encrypt()
1217 char block[AES_BLOCK_LEN] = { 0 }; in soft_aes_encrypt_final() local
1224 (void) memset(block, padlen & 0xff, sizeof (block)); in soft_aes_encrypt_final()
1225 rc = aes_encrypt_contiguous_blocks(aes_ctx, block, in soft_aes_encrypt_final()
1227 explicit_bzero(block, sizeof (block)); in soft_aes_encrypt_final()
1311 uint8_t block[AES_BLOCK_LEN] = { 0 }; in soft_aes_decrypt_final() local
1315 .cd_length = sizeof (block), in soft_aes_decrypt_final()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/des/
H A Dafsstring2key.c374 char block[66]; in afs_crypt() local
383 block[i] = 0; in afs_crypt()
387 block[i] = (c>>(6-j)) & 01; in afs_crypt()
391 krb5_afs_crypt_setkey(block, E, KS); in afs_crypt()
394 block[i] = 0; in afs_crypt()
412 krb5_afs_encrypt(block,E,KS); in afs_crypt()
418 c |= block[6*i+j]; in afs_crypt()
495 static void krb5_afs_encrypt(char *block, char *E, char (*KS)[48]) in krb5_afs_encrypt() argument
516 L[j] = block[IP[j]-1]; in krb5_afs_encrypt()
599 block[j] = L[FP[j]-1]; in krb5_afs_encrypt()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/checksum/edonr/
H A Dedonr_test.c176 uint8_t block[131072]; \ in main()
181 bzero(block, sizeof (block)); \ in main()
185 EdonRUpdate(&ctx, block, sizeof (block) * 8); \ in main()

12345678910>>...13