/netbsd-6-1-5-RELEASE/regress/sys/fs/getdents/ |
H A D | getdents.c | 89 struct ent *blks = NULL; local 114 blks = realloc(blks, sizeof(*blks) * (nblks + 1)); 115 if (blks == NULL) 117 p = &blks[nblks]; 143 blks = realloc(blks, sizeof(*blks) * (nblks + 1)); 144 if (blks [all...] |
/netbsd-6-1-5-RELEASE/sys/opencrypto/ |
H A D | cryptosoft.c | 83 int i, k, j, blks, ivlen; local 87 blks = exf->enc_xform->blocksize; 89 KASSERT(exf->reinit ? ivlen <= blks : ivlen == blks); 92 if (crd->crd_len % blks) 148 i < crd->crd_skip + crd->crd_len; i += blks) { 157 i < crd->crd_skip + crd->crd_len; i += blks) { 160 for (k = 0; k < blks; k++) 163 for (k = 0; k < blks; k++) 164 buf[i + k] ^= buf[i + k - blks]; [all...] |
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.c-torture/compile/ |
H A D | pr38857.c | 6 inline void dv_guess_qnos(EncBlockInfo* blks, int* qnos) { argument
|
/netbsd-6-1-5-RELEASE/sys/arch/ia64/stand/efi/include/ |
H A D | efifs.h | 100 #define EFI_LBAL_ARRAY_SIZE(lbal,offs,blks) \ 101 (((blks) - (offs) - (lbal)->Hdr.HeaderSize) / sizeof(EFI_RL))
|
/netbsd-6-1-5-RELEASE/sys/arch/landisk/stand/boot/ |
H A D | biosdisk.c | 356 int blks; local 366 blks = size / BIOSDISK_SECSIZE; 367 if (blks && readsects(d->dev, dblk, buf, blks)) { 376 if (readsects(d->dev, dblk + blks, d->buf, 1)) { 378 *rsize = blks * BIOSDISK_SECSIZE; 381 memcpy(buf + blks * BIOSDISK_SECSIZE, d->buf, frag);
|
/netbsd-6-1-5-RELEASE/sys/fs/udf/ |
H A D | udf_readwrite.c | 292 int blks = sector_size / DEV_BSIZE; local 308 buf->b_lblkno = buf->b_blkno = buf->b_rawblkno = start * blks; 327 nestbuf->b_blkno = rblkno * blks; 329 nestbuf->b_rawblkno = rblkno * blks; 433 int blks = sector_size / DEV_BSIZE; local 452 rblkno = buf->b_blkno / blks; 467 nestbuf->b_blkno = rblkno * blks; 469 nestbuf->b_rawblkno = rblkno * blks; 490 int blks = sector_size / DEV_BSIZE; local 505 buf->b_lblkno = buf->b_blkno = buf->b_rawblkno = start * blks; 525 int blks = sector_size / DEV_BSIZE; local 571 int blks = sector_size / DEV_BSIZE; local [all...] |
H A D | udf_strat_sequential.c | 305 uint32_t lb_size, blks; local 322 blks = lb_size / DEV_BSIZE; 371 int blks = sector_size / DEV_BSIZE; local 378 buf, (uint32_t) buf->b_blkno / blks, buf->b_udf_c_type, 385 our_sectornr = blknr / blks; 390 buf, (uint32_t) buf->b_blkno / blks, buf->b_udf_c_type, 428 buf->b_blkno = (*lmapping + ptov) * blks;
|
H A D | udf_strat_direct.c | 256 int blks = sector_size / DEV_BSIZE; local 286 buf, (uint32_t) buf->b_blkno / blks, buf->b_udf_c_type, 295 our_sectornr = blknr / blks; 300 buf, (uint32_t) buf->b_blkno / blks, buf->b_udf_c_type,
|
/netbsd-6-1-5-RELEASE/sbin/dump/ |
H A D | traverse.c | 645 int i, j, count, blks, tbperdb; local 647 blks = howmany(frags * ufsib->ufs_fsize, TP_BSIZE); 649 for (i = 0; i < blks; i += TP_NINDIR) { 650 if (i + TP_NINDIR > blks) 651 count = blks; 677 int i, j, count, blks, tbperdb; local 679 blks = howmany(frags * ufsib->ufs_fsize, TP_BSIZE); 681 for (i = 0; i < blks; i += TP_NINDIR) { 682 if (i + TP_NINDIR > blks) 683 count = blks; [all...] |
H A D | tape.c | 282 int i, blks, got; local 333 blks = 0; 337 blks++; 339 slp->count = lastspclrec + blks + 1 - iswap32(spcl.c_tapea);
|
/netbsd-6-1-5-RELEASE/sys/dev/qbus/ |
H A D | rl.c | 620 int bn, cn, sn, tn, blks, err; local 667 blks = sc->sc_bytecnt/DEV_BSIZE; 669 if (sn + blks > RL_SPT/2) 670 blks = RL_SPT/2 - sn; 671 RL_WREG(RL_MP, -(blks*DEV_BSIZE)/2); 673 (blks*DEV_BSIZE), (bp->b_flags & B_PHYS ? bp->b_proc : 0), 681 sc->sc_bufaddr = (char *)sc->sc_bufaddr + (blks*DEV_BSIZE); 682 sc->sc_diskblk += blks; 683 sc->sc_bytecnt -= (blks*DEV_BSIZE);
|
/netbsd-6-1-5-RELEASE/sys/ufs/ffs/ |
H A D | ffs_inode.c | 211 daddr_t blks[NDADDR + NIADDR]; local 363 blks[NDADDR + level] = DIP(oip, ib[level]); 364 if (lastiblock[level] < 0 && blks[NDADDR + level] != 0) { 371 blks[i] = DIP(oip, db[i]); 372 if (i > lastblock && blks[i] != 0) { 392 DIP_ASSIGN(oip, db[i], blks[i]); 393 blks[i] = bn; 397 DIP_ASSIGN(oip, ib[i], blks[NDADDR + i]); 398 blks[NDADDR + i] = bn; 508 if (blks[NDADD [all...] |
H A D | ffs_vfsops.c | 623 int i, bsize, blks, error; local 758 blks = howmany(fs->fs_cssize, fs->fs_fsize); 760 for (i = 0; i < blks; i += fs->fs_frag) { 762 if (i + fs->fs_frag > blks) 763 bsize = (blks - i) * fs->fs_fsize; 862 int blks, fstype; local 1151 blks = howmany(bsize, fs->fs_fsize); 1158 for (i = 0; i < blks; i += fs->fs_frag) { 1160 if (i + fs->fs_frag > blks) 1161 bsize = (blks 2011 int blks; local [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/i386/stand/lib/ |
H A D | biosdisk.c | 128 int blks, frag; local 140 blks = size / d->ll.secsize; 141 if (blks && readsects(&d->ll, dblk, blks, buf, 0)) { 150 if (readsects(&d->ll, dblk + blks, 1, d->buf, 0)) { 152 *rsize = blks * d->ll.secsize; 155 memcpy(buf + blks * d->ll.secsize, d->buf, frag);
|
/netbsd-6-1-5-RELEASE/usr.sbin/mmcformat/ |
H A D | mmcformat.c | 467 uint8_t *allow, uint32_t *blks, uint32_t *params) 475 bzero(blks, 255*4); 496 blks[format_tp] = num_blks; 680 "-X format expert format selector form 'fmt:blks:param' with -c\n" 697 uint32_t blks[256], params[256]; local 894 process_format_caps(caps, caps_len, inquiry, allow, blks, params); 983 format_blks = blks[format_type]; 988 blks, params); 1044 "format_type 0x%02x, blks %d, param %d, " 466 process_format_caps(uint8_t *buf, int list_length, int verbose, uint8_t *allow, uint32_t *blks, uint32_t *params) argument
|
/netbsd-6-1-5-RELEASE/sys/fs/nilfs/ |
H A D | nilfs_vnops.c | 343 int blks, run, error; local 349 blks = MAXPHYS / blocksize; 352 l2vmap = malloc(sizeof(uint64_t) * blks, M_TEMP, M_WAITOK); 355 error = nilfs_btree_nlookup(node, bn, blks, l2vmap); 370 while ((run < blks) && (l2vmap[run] == *bnp + run)) 398 uint64_t from, blks; local 413 blks = bp->b_bcount / blocksize; 416 "+ %"PRIu64" blocks\n", node->ino, from, blks)); 422 l2vmap = malloc(sizeof(uint64_t) * blks, M_TEMP, M_WAITOK); 423 v2pmap = malloc(sizeof(uint64_t) * blks, M_TEM [all...] |
/netbsd-6-1-5-RELEASE/sbin/fsck_ext2fs/ |
H A D | inode.c | 479 unsigned int blks; local 481 blks = howmany(inosize(dp), sblock.e2fs_bsize); 482 if (blks > NDADDR) 483 blks = NDADDR + NIADDR; 485 inp = malloc(sizeof(*inp) + (blks - 1) * sizeof(int32_t)); 500 inp->i_numblks = blks * sizeof(int32_t);
|
/netbsd-6-1-5-RELEASE/sbin/fsck_lfs/ |
H A D | inode.c | 357 unsigned int blks; local 359 blks = howmany(dp->di_size, fs->lfs_bsize); 360 if (blks > NDADDR) 361 blks = NDADDR + NIADDR; 362 inp = emalloc(sizeof(*inp) + (blks - 1) * sizeof(ufs_daddr_t)); 375 inp->i_numblks = blks * sizeof(ufs_daddr_t);
|
/netbsd-6-1-5-RELEASE/usr.sbin/quot/ |
H A D | quot.c | 292 uses(uid, blks, act) 294 daddr_t blks; 305 usr->space += blks; 308 usr->spc90 += blks; 310 usr->spc60 += blks; 312 usr->spc30 += blks;
|
/netbsd-6-1-5-RELEASE/sys/dev/gpib/ |
H A D | ct.c | 590 long blks; local 605 blks = sc->sc_stat.c_blk - sc->sc_blkno - 1; 608 blks, bp->b_bcount - CTKTOB(blks))); 609 if (blks == -1) { /* 9145 on EOF does not change sc_stat.c_blk */ 610 blks = 0; 616 bp->b_resid = bp->b_bcount - CTKTOB(blks); 639 else if (blks) {
|
/netbsd-6-1-5-RELEASE/sys/arch/hp300/dev/ |
H A D | ct.c | 646 long blks; local 661 blks = sc->sc_stat.c_blk - sc->sc_blkno - 1; 666 blks, bp->b_bcount - CTKTOB(blks)); 668 if (blks == -1) { /* 9145 on EOF does not change sc_stat.c_blk */ 669 blks = 0; 675 bp->b_resid = bp->b_bcount - CTKTOB(blks); 698 else if (blks) {
|
/netbsd-6-1-5-RELEASE/sys/dev/ic/ |
H A D | cac.c | 640 u_int32_t blks; local 653 blks = CAC_GET2(dinfo.ncylinders) * CAC_GET1(dinfo.nheads) * 655 bv->bv_size = (off_t)blks * CAC_GET2(dinfo.secsize); 665 bv->bv_percent = ((blks - CAC_GET4(dstatus.prog)) * 1000ULL) / 666 blks;
|
/netbsd-6-1-5-RELEASE/sys/kern/ |
H A D | subr_disk_mbr.c | 251 int blks, inc; local 254 blks = sector_size / DEV_BSIZE; 262 if (read_sector(a, vrs * blks, 1)) 273 if (read_sector(a, vrs * blks, 1)) 285 if (read_sector(a, vrs * blks, 1))
|
/netbsd-6-1-5-RELEASE/sbin/fsck_ffs/ |
H A D | inode.c | 481 unsigned int i, blks, extra; local 485 blks = howmany(size, sblock->fs_bsize); 486 if (blks > NDADDR) 487 blks = NDADDR + NIADDR; 488 if (blks > 0) 489 extra = (blks - 1) * sizeof (int64_t); 506 inp->i_numblks = blks; 507 for (i = 0; i < (blks < NDADDR ? blks : NDADDR); i++) 509 if (blks > NDADD [all...] |
/netbsd-6-1-5-RELEASE/usr.sbin/makefs/ffs/ |
H A D | mkfs.c | 130 int size, blks; local 415 blks = howmany(size, sblock.fs_fsize); 484 printf("\tusing %d cylinder groups of %.2fMB, %d blks, " 556 int cylno, size, blks, i, saveflag; local 575 blks = howmany(size, fs->fs_fsize); 579 for (i = 0; i < blks; i+= fs->fs_frag) { 581 if (i + fs->fs_frag > blks) 582 size = (blks - i) * fs->fs_fsize;
|