| /onnv-gate/usr/src/cmd/sgs/rtld/common/ |
| H A D | malloc.c | 51 struct block { struct 55 struct block *next; argument 62 struct block block[1]; argument 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 …]
|
| /onnv-gate/usr/src/lib/libmapmalloc/common/ |
| H A D | textmem.c | 62 struct block { struct 66 struct block *next; argument 73 struct block block[1]; argument 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 …]
|
| /onnv-gate/usr/src/lib/libtecla/common/ |
| H A D | freelist.c | 51 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 …]
|
| /onnv-gate/usr/src/lib/libtnfprobe/ |
| H A D | tnf_buf.c | 98 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 …]
|
| /onnv-gate/usr/src/common/net/wanboot/crypt/ |
| H A D | aes.c | 762 aes_encrypt(void *cookie, uint8_t *block) in aes_encrypt() argument 771 if (IS_P2ALIGNED(block, sizeof (uint32_t))) { in aes_encrypt() 778 s0 = GETU32(block) ^ rk[0]; in aes_encrypt() 780 s1 = GETU32(block + 4) ^ rk[1]; in aes_encrypt() 782 s2 = GETU32(block + 8) ^ rk[2]; in aes_encrypt() 784 s3 = GETU32(block + 12) ^ rk[3]; in aes_encrypt() 788 s0 = (((uint32_t)block[0] << 24) | ((uint32_t)block[1] << 16) | in aes_encrypt() 789 ((uint32_t)block[2] << 8) | (uint32_t)block[3]) ^ rk[0]; in aes_encrypt() 791 s1 = (((uint32_t)block[4] << 24) | ((uint32_t)block[5] << 16) | in aes_encrypt() 792 ((uint32_t)block[6] << 8) | (uint32_t)block[7]) ^ rk[1]; in aes_encrypt() [all …]
|
| H A D | des.c | 209 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 …]
|
| /onnv-gate/usr/src/uts/common/tnf/ |
| H A D | tnf_buf.c | 76 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 …]
|
| /onnv-gate/usr/src/uts/intel/io/dnet/ |
| H A D | dnet.c | 165 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 …]
|
| /onnv-gate/usr/src/cmd/ipf/examples/ |
| H A D | BASIC_2.FW | 17 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 D | BASIC_1.FW | 17 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 D | example.sr | 6 # 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 …]
|
| /onnv-gate/usr/src/lib/libparted/common/libparted/fs/ext2/ |
| H A D | ext2_buffer.c | 30 static __inline__ int ext2_block_hash(blk_t block) in ext2_block_hash() argument 34 x = block ^ (block >> 8) ^ (block >> 16) ^ (block >> 24); in ext2_block_hash() 91 static struct ext2_buffer_head *ext2_bh_alloc(struct ext2_buffer_cache *bc, blk_t block) in ext2_bh_alloc() argument 117 bh->block = block; in ext2_bh_alloc() 132 "deallocing() a dirty buffer! %i\n", bh->block); in ext2_bh_dealloc() 139 static struct ext2_buffer_head *ext2_bh_find(struct ext2_buffer_cache *bc, blk_t block) in ext2_bh_find() argument 145 hash = ext2_block_hash(block); in ext2_bh_find() 153 if (a->block == block) in ext2_bh_find() 165 return ext2_read_blocks(bh->bc->fs, bh->data, bh->block, 1); in ext2_bh_do_read() 176 ext2_write_blocks(bh->bc->fs, bh->data, bh->block, 1); in ext2_bh_do_write() [all …]
|
| H A D | ext2_block_relocator.c | 84 struct ext2_block_entry *block; member 145 struct ext2_block_entry *findit(struct ext2_block_relocator_state *state, blk_t block) in findit() argument 162 tval = state->block[t].num; in findit() 164 if (tval > block) in findit() 167 if (tval < block) in findit() 170 if (tval != block) in findit() 173 retv = &state->block[t]; in findit() 433 state->start[3].dst = state->block; in doscan() 460 ptr = state->block; in ext2_block_relocator_copy() 512 struct ext2_block_entry *block; in ext2_block_relocator_copy() local [all …]
|
| H A D | ext2.h | 82 blk_t block; member 95 int (*read)(void *cookie, void *ptr, blk_t block, blk_t num); 98 int (*write)(void *cookie, void *ptr, blk_t block, blk_t num); 162 off_t ext2_get_inode_offset (struct ext2_fs *fs, ino_t inode, blk_t *block); 169 int ext2_read_blocks (struct ext2_fs *fs, void *ptr, blk_t block, blk_t numblocks); 172 int ext2_do_inode (struct ext2_fs *fs, struct ext2_inode *inode, blk_t block, int action); 174 int ext2_write_blocks (struct ext2_fs *fs, void *ptr, blk_t block, blk_t numblocks); 176 int ext2_zero_blocks (struct ext2_fs *fs, blk_t block, blk_t num); 183 int ext2_get_block_state (struct ext2_fs *, blk_t block); 184 int ext2_set_block_state (struct ext2_fs *, blk_t block, int state, int updatemetadata); [all …]
|
| /onnv-gate/usr/src/lib/libparted/common/libparted/fs/amiga/ |
| H A D | asfs.c | 36 _asfs_probe_root (PedGeometry *geom, uint32_t *block, int blocksize, PedSector root) { in _asfs_probe_root() argument 40 if (PED_BE32_TO_CPU (block[0]) != 0x53465300) return 0; in _asfs_probe_root() 41 for (i = 0, sum = 1; i < 128*blocksize; i++) sum += PED_BE32_TO_CPU (block[i]); in _asfs_probe_root() 43 if (PED_BE32_TO_CPU (block[2]) * blocksize + geom->start != root) { in _asfs_probe_root() 46 start = ((((PedSector) PED_BE32_TO_CPU (block[8])) << 32) in _asfs_probe_root() 47 + (PedSector) PED_BE32_TO_CPU (block[9])) / 512; in _asfs_probe_root() 48 end = (((((PedSector) PED_BE32_TO_CPU (block[10])) << 32) in _asfs_probe_root() 49 + (PedSector) PED_BE32_TO_CPU (block[11])) / 512) - 1; in _asfs_probe_root() 57 uint32_t *block; in _asfs_probe() local 83 if (!(block = ped_malloc (PED_SECTOR_SIZE_DEFAULT*blocksize))) { in _asfs_probe() [all …]
|
| /onnv-gate/usr/src/lib/libparted/common/libparted/fs/hfs/ |
| H A D | advfs.c | 187 unsigned int block, last_start, first_pass = 1; in hfs_read_bad_blocks() local 193 last_start = -1; block = 0; in hfs_read_bad_blocks() 197 search.start = PED_CPU_TO_BE16 (block); in hfs_read_bad_blocks() 224 block += PED_BE16_TO_CPU ( in hfs_read_bad_blocks() 272 unsigned int block, last_bad, end_free_blocks; in hfs_get_empty_end() local 288 for (block = last_bad; in hfs_get_empty_end() 289 block < PED_BE16_TO_CPU (mdb->total_blocks); in hfs_get_empty_end() 290 block++) { in hfs_get_empty_end() 291 if (!TST_BLOC_OCCUPATION(priv_data->alloc_map,block)) in hfs_get_empty_end() 297 block = PED_BE16_TO_CPU (mdb->total_blocks) - end_free_blocks; in hfs_get_empty_end() [all …]
|
| H A D | advfs_plus.c | 194 int block, first_pass = 1; in hfsplus_read_bad_blocks() local 202 last_start = -1; block = 0; in hfsplus_read_bad_blocks() 206 search.start = PED_CPU_TO_BE32 (block); in hfsplus_read_bad_blocks() 233 block += PED_BE32_TO_CPU ( in hfsplus_read_bad_blocks() 279 unsigned int block, last_bad, end_free_blocks; in hfsplus_get_empty_end() local 300 for (block = last_bad; in hfsplus_get_empty_end() 301 block < PED_BE32_TO_CPU (vh->total_blocks); in hfsplus_get_empty_end() 302 block++) { in hfsplus_get_empty_end() 303 if (!TST_BLOC_OCCUPATION(priv_data->alloc_map,block)) in hfsplus_get_empty_end() 309 block = PED_BE32_TO_CPU (vh->total_blocks) - end_free_blocks; in hfsplus_get_empty_end() [all …]
|
| H A D | file_plus.c | 70 hfsplus_get_extent_containing (HfsPPrivateFile* file, unsigned int block, in hfsplus_get_extent_containing() argument 86 search.start = PED_CPU_TO_BE32 (block); in hfsplus_get_extent_containing() 118 unsigned int block = sector / sect_by_block; in hfsplus_file_find_extent() local 123 if ((block >= s) && (block < s + PED_BE32_TO_CPU ( in hfsplus_file_find_extent() 125 vol_block = (block - s) in hfsplus_file_find_extent() 129 + s - block; in hfsplus_file_find_extent() 136 if (file->start_cache && block >= file->start_cache) in hfsplus_file_find_extent() 138 if ((block >= s) && (block < s + PED_BE32_TO_CPU ( in hfsplus_file_find_extent() 140 vol_block = (block - s) in hfsplus_file_find_extent() 144 + s - block; in hfsplus_file_find_extent() [all …]
|
| H A D | file.c | 68 hfs_get_extent_containing (HfsPrivateFile* file, unsigned int block, in hfs_get_extent_containing() argument 83 search.start = PED_CPU_TO_BE16 (block); in hfs_get_extent_containing() 110 unsigned int block = sector / sect_by_block; in hfs_file_find_sector() local 115 if ((block >= s) && ( block < s + PED_BE16_TO_CPU ( in hfs_file_find_sector() 117 vol_block = (block - s) + PED_BE16_TO_CPU ( in hfs_file_find_sector() 125 if (file->start_cache && block >= file->start_cache) in hfs_file_find_sector() 127 if ((block >= s) && (block < s + PED_BE16_TO_CPU ( in hfs_file_find_sector() 129 vol_block = (block - s) + PED_BE16_TO_CPU ( in hfs_file_find_sector() 137 if (!hfs_get_extent_containing (file, block, file->cache, in hfs_file_find_sector() 149 PED_ASSERT(file->start_cache && block >= file->start_cache, return 0); in hfs_file_find_sector() [all …]
|
| /onnv-gate/usr/src/common/bzip2/ |
| H A D | blocksort.c | 349 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 …]
|
| /onnv-gate/usr/src/common/crypto/blowfish/ |
| H A D | blowfish_impl.c | 378 blowfish_encrypt_block(const void *cookie, const uint8_t *block, in blowfish_encrypt_block() argument 390 if (IS_P2ALIGNED(block, sizeof (uint32_t))) { in blowfish_encrypt_block() 392 b32 = (uint32_t *)block; in blowfish_encrypt_block() 402 left = htonl(*(uint32_t *)(void *)&block[0]); in blowfish_encrypt_block() 403 right = htonl(*(uint32_t *)(void *)&block[4]); in blowfish_encrypt_block() 405 left = ((uint32_t)block[0] << 24) in blowfish_encrypt_block() 406 | ((uint32_t)block[1] << 16) in blowfish_encrypt_block() 407 | ((uint32_t)block[2] << 8) in blowfish_encrypt_block() 408 | (uint32_t)block[3]; in blowfish_encrypt_block() 409 right = ((uint32_t)block[4] << 24) in blowfish_encrypt_block() [all …]
|
| /onnv-gate/usr/src/grub/grub-0.97/netboot/ |
| H A D | fsys_tftp.c | 50 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 …]
|
| /onnv-gate/usr/src/lib/libast/common/misc/ |
| H A D | stack.c | 58 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()
|
| /onnv-gate/usr/src/common/openssl/crypto/engine/ |
| H A D | enginetest.c | 97 ENGINE *block[512]; in main() local 122 memset(block, 0, 512 * sizeof(ENGINE *)); in main() 226 if(((block[loop] = ENGINE_new()) == NULL) || in main() 227 !ENGINE_set_id(block[loop], id) || in main() 228 !ENGINE_set_name(block[loop], name)) in main() 237 if(!ENGINE_add(block[loop])) in main() 240 loop, ENGINE_get_id(block[loop]), in main() 241 ENGINE_get_name(block[loop])); in main() 261 OPENSSL_free((void *)ENGINE_get_id(block[loop])); in main() 262 OPENSSL_free((void *)ENGINE_get_name(block[loop])); in main() [all …]
|
| /onnv-gate/usr/src/lib/libcrypt/common/ |
| H A D | des_crypt.c | 301 des_encrypt_nolock(char *block, int edflag) in des_encrypt_nolock() argument 306 (void) _des_decrypt1(block, L, IP, &L[32], in des_encrypt_nolock() 309 (void) des_encrypt1(block, L, IP, &L[32], in des_encrypt_nolock() 316 des_encrypt(char *block, int edflag) in des_encrypt() argument 320 des_encrypt_nolock(block, edflag); in des_encrypt() 353 char block[66]; in des_crypt() local 359 block[i] = 0; in des_crypt() 362 block[i] = (c>>(6-j)) & 01; in des_crypt() 366 des_setkey_nolock(block); in des_crypt() 369 block[i] = 0; in des_crypt() [all …]
|