| /NextBSD/contrib/apr-util/misc/ |
| HD | apr_rmm.c | 82 struct rmm_block_t *blk = (rmm_block_t*)((char*)rmm->base + next); in find_block_by_offset() local 92 next = blk->next; in find_block_by_offset() 104 struct rmm_block_t *blk = (rmm_block_t*)((char*)rmm->base + next); in find_block_of_size() local 106 if (blk->size == size) in find_block_of_size() 109 if (blk->size >= size) { in find_block_of_size() 114 if (!bestsize || (blk->size < bestsize)) { in find_block_of_size() 115 bestsize = blk->size; in find_block_of_size() 120 next = blk->next; in find_block_of_size() 124 struct rmm_block_t *blk = (rmm_block_t*)((char*)rmm->base + best); in find_block_of_size() local 127 new->size = blk->size - size; in find_block_of_size() [all …]
|
| /NextBSD/sys/crypto/aesni/ |
| HD | aesni_wrap.c | 53 __m128i blk[8]; member 88 aesni_dec8(rounds - 1, key_schedule, blks->blk[0], blks->blk[1], in aesni_decrypt_cbc() 89 blks->blk[2], blks->blk[3], blks->blk[4], blks->blk[5], in aesni_decrypt_cbc() 90 blks->blk[6], blks->blk[7], &blocks[0]); in aesni_decrypt_cbc() 92 nextiv = blks->blk[j]; in aesni_decrypt_cbc() 93 blks->blk[j] = blocks[j] ^ ivreg; in aesni_decrypt_cbc() 123 aesni_enc8(rounds - 1, key_schedule, blks->blk[0], blks->blk[1], in aesni_encrypt_ecb() 124 blks->blk[2], blks->blk[3], blks->blk[4], blks->blk[5], in aesni_encrypt_ecb() 125 blks->blk[6], blks->blk[7], tout); in aesni_encrypt_ecb() 126 top->blk[0] = tout[0]; in aesni_encrypt_ecb() [all …]
|
| /NextBSD/sys/kern/ |
| HD | subr_blist.c | 125 static daddr_t blst_leaf_alloc(blmeta_t *scan, daddr_t blk, int count); 126 static daddr_t blst_meta_alloc(blmeta_t *scan, daddr_t blk, 130 daddr_t radix, int skip, daddr_t blk); 131 static void blst_copy(blmeta_t *scan, daddr_t blk, daddr_t radix, 133 static int blst_leaf_fill(blmeta_t *scan, daddr_t blk, int count); 135 daddr_t radix, int skip, daddr_t blk); 139 static void blst_radix_print(blmeta_t *scan, daddr_t blk, 216 daddr_t blk = SWAPBLK_NONE; in blist_alloc() local 220 blk = blst_leaf_alloc(bl->bl_root, 0, count); in blist_alloc() 222 blk = blst_meta_alloc(bl->bl_root, 0, count, bl->bl_radix, bl->bl_skip); in blist_alloc() [all …]
|
| /NextBSD/sbin/dump/ |
| HD | cache.c | 83 Block *blk; in cread() local 120 while ((blk = *pblk) != NULL) { in cread() 121 if (((blk->b_Offset ^ offset) & mask) == 0) in cread() 124 pblk = &blk->b_HNext; in cread() 126 if (blk == NULL) { in cread() 127 blk = *ppblk; in cread() 129 blk->b_Offset = offset & mask; in cread() 130 n = pread(fd, blk->b_Data, BlockSize, blk->b_Offset); in cread() 132 blk->b_Offset = (off_t)-1; in cread() 133 blk = NULL; in cread() [all …]
|
| /NextBSD/usr.bin/mkimg/ |
| HD | image.c | 121 image_chunk_find(lba_t blk) in image_chunk_find() argument 126 ch = (last != NULL && last->ch_block <= blk) in image_chunk_find() 129 if (ch->ch_block <= blk && in image_chunk_find() 130 (lba_t)(ch->ch_block + (ch->ch_size / secsz)) > blk) { in image_chunk_find() 157 image_chunk_memory(struct chunk *ch, lba_t blk) in image_chunk_memory() argument 166 if (ch->ch_block < blk) { in image_chunk_memory() 173 ch->ch_size = (blk - ch->ch_block) * secsz; in image_chunk_memory() 174 new->ch_block = blk; in image_chunk_memory() 238 image_chunk_append(lba_t blk, size_t sz, off_t ofs, int fd) in image_chunk_append() argument 245 blk == (lba_t)(ch->ch_block + (ch->ch_size / secsz)) && in image_chunk_append() [all …]
|
| HD | image.h | 34 int image_copyin(lba_t blk, int fd, uint64_t *sizep); 37 int image_copyout_region(int fd, lba_t blk, lba_t size); 39 int image_data(lba_t blk, lba_t size); 42 int image_set_size(lba_t blk); 43 int image_write(lba_t blk, void *buf, ssize_t len);
|
| HD | bsd.c | 56 bsd_metadata(u_int where, lba_t blk) in bsd_metadata() argument 60 blk += BBSIZE / secsz; in bsd_metadata() 62 blk = round_cylinder(blk); in bsd_metadata() 64 blk = round_block(blk); in bsd_metadata() 65 return (blk); in bsd_metadata()
|
| /NextBSD/contrib/mdocml/ |
| HD | read.c | 323 mparse_buf_r(struct mparse *curp, struct buf blk, size_t i, int start) in mparse_buf_r() argument 342 while (i < blk.sz) { in mparse_buf_r() 343 if (0 == pos && '\0' == blk.buf[i]) in mparse_buf_r() 353 curp->filenc = preconv_cue(&blk, i); in mparse_buf_r() 356 while (i < blk.sz && (start || blk.buf[i] != '\0')) { in mparse_buf_r() 364 if ('\r' == blk.buf[i] && i + 1 < blk.sz && in mparse_buf_r() 365 '\n' == blk.buf[i + 1]) in mparse_buf_r() 367 if ('\n' == blk.buf[i]) { in mparse_buf_r() 385 c = blk.buf[i]; in mparse_buf_r() 388 &blk, &i, &ln, &pos, &curp->filenc))) { in mparse_buf_r() [all …]
|
| /NextBSD/sys/fs/nandfs/ |
| HD | nandfs_cpfile.c | 63 uint64_t *blk, uint64_t *offset) in nandfs_checkpoint_blk_offset() argument 75 *blk = off / cp_per_blk; in nandfs_checkpoint_blk_offset() 83 uint64_t blk, uint64_t offset) in nandfs_checkpoint_blk_remaining() argument 98 uint64_t blk, offset; in nandfs_get_checkpoint() local 116 nandfs_checkpoint_blk_offset(fsdev, cn, &blk, &offset); in nandfs_get_checkpoint() 118 if (blk != 0) { in nandfs_get_checkpoint() 119 if (blk < cp_node->nn_inode.i_blocks) in nandfs_get_checkpoint() 120 error = nandfs_bread(cp_node, blk, NOCRED, 0, &bp); in nandfs_get_checkpoint() 122 error = nandfs_bcreate(cp_node, blk, NOCRED, 0, &bp); in nandfs_get_checkpoint() 133 __func__, (uintmax_t)cn, (uintmax_t)blk, (uintmax_t)offset)); in nandfs_get_checkpoint() [all …]
|
| HD | nandfs_sufile.c | 61 uint64_t *blk, uint64_t *offset) in nandfs_seg_usage_blk_offset() argument 71 *blk = off / fsdev->nd_blocksize; in nandfs_seg_usage_blk_offset() 84 uint64_t blk, vblk, offset, i, rest, nsegments; in nandfs_alloc_segment() local 109 nandfs_seg_usage_blk_offset(fsdev, i, &blk, &offset); in nandfs_alloc_segment() 110 if(blk != 0) { in nandfs_alloc_segment() 111 error = nandfs_bmap_lookup(su_node, blk, &vblk); in nandfs_alloc_segment() 114 "blk:%jx\n", __func__, blk); in nandfs_alloc_segment() 118 error = nandfs_bread(su_node, blk, NOCRED, 0, in nandfs_alloc_segment() 121 error = nandfs_bcreate(su_node, blk, NOCRED, 0, in nandfs_alloc_segment() 157 if (blk != 0) in nandfs_alloc_segment() [all …]
|
| /NextBSD/sbin/fsck_ffs/ |
| HD | suj.c | 316 blk_lookup(ufs2_daddr_t blk, int creat) in blk_lookup() argument 322 sc = cg_lookup(dtog(fs, blk)); in blk_lookup() 323 if (sc->sc_lastblk && sc->sc_lastblk->sb_blk == blk) in blk_lookup() 325 hd = &sc->sc_blkhash[SUJ_HASH(fragstoblks(fs, blk))]; in blk_lookup() 327 if (sblk->sb_blk == blk) in blk_lookup() 333 sblk->sb_blk = blk; in blk_lookup() 341 dblk_lookup(ufs2_daddr_t blk) in dblk_lookup() argument 346 hd = &dbhash[SUJ_HASH(fragstoblks(fs, blk))]; in dblk_lookup() 347 if (lastblk && lastblk->db_blk == blk) in dblk_lookup() 350 if (dblk->db_blk == blk) in dblk_lookup() [all …]
|
| HD | fsutil.c | 320 getblk(struct bufarea *bp, ufs2_daddr_t blk, long size) in getblk() argument 325 dblk = fsbtodb(&sblock, blk); in getblk() 374 rwerror(const char *mesg, ufs2_daddr_t blk) in rwerror() argument 381 pfatal("CANNOT %s: %ld", mesg, (long)blk); in rwerror() 556 blread(int fd, char *buf, ufs2_daddr_t blk, long size) in blread() argument 562 offset = blk; in blread() 569 rwerror("SEEK BLK", blk); in blread() 582 pfatal("CANNOT READ_BLK: %ld", (long)blk); in blread() 585 rwerror("READ BLK", blk); in blread() 588 rwerror("SEEK BLK", blk); in blread() [all …]
|
| HD | inode.c | 239 chkrange(ufs2_daddr_t blk, int cnt) in chkrange() argument 243 if (cnt <= 0 || blk <= 0 || blk > maxfsblock || in chkrange() 244 cnt - 1 > maxfsblock - blk) in chkrange() 247 fragnum(&sblock, blk) + cnt > sblock.fs_frag) { in chkrange() 250 (long)blk, (int)fragnum(&sblock, blk), cnt); in chkrange() 253 c = dtog(&sblock, blk); in chkrange() 254 if (blk < cgdmin(&sblock, c)) { in chkrange() 255 if ((blk + cnt) > cgsblock(&sblock, c)) { in chkrange() 258 (long)blk, (long)cgdmin(&sblock, c)); in chkrange() 260 (long)(blk + cnt), in chkrange() [all …]
|
| /NextBSD/contrib/libpcap/ |
| HD | grammar.y | 269 } blk; member 273 %type <blk> expr id nid pid term rterm qid 274 %type <blk> head 278 %type <blk> and or paren not null prog 281 %type <blk> atmfield 282 %type <blk> atmfieldvalue atmvalue atmlistvalue 284 %type <blk> mtp3field 285 %type <blk> mtp3fieldvalue mtp3value mtp3listvalue 345 and: AND { $$ = $<blk>0; } 347 or: OR { $$ = $<blk>0; } [all …]
|
| /NextBSD/sys/geom/part/ |
| HD | g_part_ldm.c | 700 struct ldm_xvblk *blk; in ldm_xvblk_handle() local 704 LIST_FOREACH(blk, &db->xvblks, entry) in ldm_xvblk_handle() 705 if (blk->group == vh->group) in ldm_xvblk_handle() 707 if (blk == NULL) { in ldm_xvblk_handle() 708 blk = g_malloc(sizeof(*blk), M_WAITOK | M_ZERO); in ldm_xvblk_handle() 709 blk->group = vh->group; in ldm_xvblk_handle() 710 blk->size = size * vh->count + 16; in ldm_xvblk_handle() 711 blk->data = g_malloc(blk->size, M_WAITOK | M_ZERO); in ldm_xvblk_handle() 712 blk->map = 0xFF << vh->count; in ldm_xvblk_handle() 713 LIST_INSERT_HEAD(&db->xvblks, blk, entry); in ldm_xvblk_handle() [all …]
|
| /NextBSD/sbin/tunefs/ |
| HD | tunefs.c | 583 ufs2_daddr_t blk; in journal_balloc() local 590 blk = cgballoc(&disk); in journal_balloc() 591 if (blk > 0) in journal_balloc() 626 if (bwrite(&disk, fsbtodb(&sblock, blk), clrbuf, in journal_balloc() 631 return (blk); in journal_balloc() 638 dir_search(ufs2_daddr_t blk, int bytes) in dir_search() argument 644 if (bread(&disk, fsbtodb(&sblock, blk), block, bytes) <= 0) { in dir_search() 732 dir_insert(ufs2_daddr_t blk, off_t off, ino_t ino) in dir_insert() argument 737 if (bread(&disk, fsbtodb(&sblock, blk), block, sblock.fs_bsize) <= 0) { in dir_insert() 749 if (bwrite(&disk, fsbtodb(&sblock, blk), block, sblock.fs_bsize) <= 0) { in dir_insert() [all …]
|
| /NextBSD/sys/boot/efi/libefi/ |
| HD | efipart.c | 226 efipart_readwrite(EFI_BLOCK_IO *blkio, int rw, daddr_t blk, daddr_t nblks, in efipart_readwrite() argument 233 if (blk < 0 || blk > blkio->Media->LastBlock) in efipart_readwrite() 235 if ((blk + nblks - 1) > blkio->Media->LastBlock) in efipart_readwrite() 240 status = blkio->ReadBlocks(blkio, blkio->Media->MediaId, blk, in efipart_readwrite() 246 status = blkio->WriteBlocks(blkio, blkio->Media->MediaId, blk, in efipart_readwrite() 259 efipart_strategy(void *devdata, int rw, daddr_t blk, size_t size, char *buf, in efipart_strategy() argument 269 if (dev == NULL || blk < 0) in efipart_strategy() 283 return (efipart_readwrite(blkio, rw, blk, size / 512, buf)); in efipart_strategy() 293 off = blk * 512; in efipart_strategy() 294 blk = off / blkio->Media->BlockSize; in efipart_strategy() [all …]
|
| /NextBSD/sys/opencrypto/ |
| HD | xform_cast5.c | 76 cast5_encrypt(caddr_t key, u_int8_t *blk) in cast5_encrypt() argument 78 cast_encrypt((cast_key *) key, blk, blk); in cast5_encrypt() 82 cast5_decrypt(caddr_t key, u_int8_t *blk) in cast5_decrypt() argument 84 cast_decrypt((cast_key *) key, blk, blk); in cast5_decrypt()
|
| HD | xform_rijndael.c | 77 rijndael128_encrypt(caddr_t key, u_int8_t *blk) in rijndael128_encrypt() argument 79 rijndael_encrypt((rijndael_ctx *) key, (u_char *) blk, (u_char *) blk); in rijndael128_encrypt() 83 rijndael128_decrypt(caddr_t key, u_int8_t *blk) in rijndael128_decrypt() argument 85 rijndael_decrypt(((rijndael_ctx *) key), (u_char *) blk, in rijndael128_decrypt() 86 (u_char *) blk); in rijndael128_decrypt()
|
| HD | xform_cml.c | 77 cml_encrypt(caddr_t key, u_int8_t *blk) in cml_encrypt() argument 79 camellia_encrypt((camellia_ctx *) key, (u_char *) blk, (u_char *) blk); in cml_encrypt() 83 cml_decrypt(caddr_t key, u_int8_t *blk) in cml_decrypt() argument 85 camellia_decrypt(((camellia_ctx *) key), (u_char *) blk, in cml_decrypt() 86 (u_char *) blk); in cml_decrypt()
|
| HD | xform_skipjack.c | 76 skipjack_encrypt(caddr_t key, u_int8_t *blk) in skipjack_encrypt() argument 78 skipjack_forwards(blk, blk, (u_int8_t **) key); in skipjack_encrypt() 82 skipjack_decrypt(caddr_t key, u_int8_t *blk) in skipjack_decrypt() argument 84 skipjack_backwards(blk, blk, (u_int8_t **) key); in skipjack_decrypt()
|
| HD | xform_blf.c | 77 blf_encrypt(caddr_t key, u_int8_t *blk) in blf_encrypt() argument 81 memcpy(t, blk, sizeof (t)); in blf_encrypt() 88 memcpy(blk, t, sizeof (t)); in blf_encrypt() 92 blf_decrypt(caddr_t key, u_int8_t *blk) in blf_decrypt() argument 96 memcpy(t, blk, sizeof (t)); in blf_decrypt() 103 memcpy(blk, t, sizeof (t)); in blf_decrypt()
|
| HD | cryptosoft.c | 87 unsigned char iv[EALG_MAX_BLOCK_LEN], blk[EALG_MAX_BLOCK_LEN], *idat; in swcr_encdec() local 191 cuio_copydata(uio, count, blks, blk); in swcr_encdec() 197 blk); in swcr_encdec() 200 blk); in swcr_encdec() 205 blk[j] ^= ivp[j]; in swcr_encdec() 207 exf->encrypt(sw->sw_kschedule, blk); in swcr_encdec() 213 bcopy(blk, iv, blks); in swcr_encdec() 221 bcopy(blk, nivp, blks); in swcr_encdec() 223 exf->decrypt(sw->sw_kschedule, blk); in swcr_encdec() 227 blk[j] ^= ivp[j]; in swcr_encdec() [all …]
|
| /NextBSD/sys/boot/common/ |
| HD | bcache.c | 128 write_strategy(void *devdata, int unit, int rw, daddr_t blk, size_t size, in write_strategy() argument 139 bcache_invalidate(blk + i); in write_strategy() 143 err = dd->dv_strategy(dd->dv_devdata, rw, blk, size, buf, rsize); in write_strategy() 148 bcache_insert(buf + (i * bcache_blksize),blk + i); in write_strategy() 161 read_strategy(void *devdata, int unit, int rw, daddr_t blk, size_t size, in read_strategy() argument 174 if (bcache_lookup(buf + (bcache_blksize * i), blk + i)) { in read_strategy() 191 p_blk = blk + i; in read_strategy() 227 bcache_strategy(void *devdata, int unit, int rw, daddr_t blk, size_t size, in bcache_strategy() argument 242 DEBUG("bypass %d from %d", size / bcache_blksize, blk); in bcache_strategy() 244 return(dd->dv_strategy(dd->dv_devdata, rw, blk, size, buf, rsize)); in bcache_strategy() [all …]
|
| /NextBSD/contrib/gcc/ |
| HD | gcov.c | 1074 block_t *blk; in solve_flow_graph() local 1102 for (ix = 0, blk = fn->blocks; ix != fn->num_blocks; ix++, blk++) in solve_flow_graph() 1108 for (arc = blk->succ; arc; arc = arc->succ_next) in solve_flow_graph() 1118 blk->num_succ--; in solve_flow_graph() 1129 for (arc = blk->succ; arc; arc = arc->succ_next) in solve_flow_graph() 1139 if (blk->is_call_site && arc->fall_through in solve_flow_graph() 1151 arc_t *start = blk->succ; in solve_flow_graph() 1179 blk->succ = start; in solve_flow_graph() 1184 blk->invalid_chain = 1; in solve_flow_graph() 1185 blk->chain = invalid_blocks; in solve_flow_graph() [all …]
|