Searched refs:blks (Results 1 - 25 of 27) sorted by relevance

12

/freebsd-10-stable/sys/crypto/aesni/
H A Daesni_wrap.c72 struct blocks8 *blks; local
79 blks = (struct blocks8 *)buf;
80 aesni_dec8(rounds - 1, key_schedule, blks->blk[0], blks->blk[1],
81 blks->blk[2], blks->blk[3], blks->blk[4], blks->blk[5],
82 blks->blk[6], blks
108 const struct blocks8 *blks; local
146 const struct blocks8 *blks; local
[all...]
/freebsd-10-stable/lib/libufs/
H A Dsblock.c56 int i, size, blks; local
97 blks = howmany(size, fs->fs_fsize);
105 for (i = 0; i < blks; i += fs->fs_frag) {
107 if (i + fs->fs_frag > blks)
108 size = (blks - i) * fs->fs_fsize;
128 int blks, size; local
147 blks = howmany(fs->fs_cssize, fs->fs_fsize);
149 for (i = 0; i < blks; i += fs->fs_frag) {
151 if (i + fs->fs_frag > blks)
152 size = (blks
[all...]
/freebsd-10-stable/sys/boot/i386/libi386/
H A Dbioscd.c91 static int bc_read(int unit, daddr_t dblk, int blks, caddr_t dest);
219 int blks; local
234 blks = size / BIOSCD_SECSIZE;
238 DEBUG("read %d from %lld to %p", blks, dblk, buf);
242 if (blks && bc_read(unit, dblk, blks, buf)) {
248 fragsize, dblk, blks, buf + (blks * BIOSCD_SECSIZE));
249 if (fragsize && bc_read(unit, dblk + blks, 1, fragbuf)) {
253 bcopy(fragbuf, buf + (blks * BIOSCD_SECSIZ
264 bc_read(int unit, daddr_t dblk, int blks, caddr_t dest) argument
[all...]
H A Dbiosdisk.c94 static int bd_read(struct disk_devdesc *dev, daddr_t dblk, int blks,
96 static int bd_write(struct disk_devdesc *dev, daddr_t dblk, int blks,
366 int blks; local
378 blks = size / BD(dev).bd_sectorsize;
384 DEBUG("read %d from %lld to %p", blks, dblk, buf);
386 if (blks && bd_read(dev, dblk, blks, buf)) {
392 fragsize, dblk, blks, buf + (blks * BIOSDISK_SECSIZE));
393 if (fragsize && bd_read(od, dblk + blks,
428 bd_edd_io(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest, int write) argument
453 bd_chs_io(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest, int write) argument
487 bd_io(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest, int write) argument
589 bd_read(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest) argument
596 bd_write(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest) argument
[all...]
/freebsd-10-stable/sys/boot/pc98/libpc98/
H A Dbioscd.c90 static int bc_read(int unit, daddr_t dblk, int blks, caddr_t dest);
215 int blks; local
230 blks = size / BIOSCD_SECSIZE;
234 DEBUG("read %d from %lld to %p", blks, dblk, buf);
238 if (blks && bc_read(unit, dblk, blks, buf)) {
244 fragsize, dblk, blks, buf + (blks * BIOSCD_SECSIZE));
245 if (fragsize && bc_read(unit, dblk + blks, 1, fragbuf)) {
249 bcopy(fragbuf, buf + (blks * BIOSCD_SECSIZ
260 bc_read(int unit, daddr_t dblk, int blks, caddr_t dest) argument
[all...]
H A Dbiosdisk.c103 static int bd_read(struct open_disk *od, daddr_t dblk, int blks,
105 static int bd_write(struct open_disk *od, daddr_t dblk, int blks,
732 int blks; local
744 blks = size / BIOSDISK_SECSIZE;
750 DEBUG("read %d from %d to %p", blks, dblk, buf);
752 if (blks && bd_read(od, dblk, blks, buf)) {
758 fragsize, dblk, blks, buf + (blks * BIOSDISK_SECSIZE));
759 if (fragsize && bd_read(od, dblk + blks,
794 bd_chs_io(struct open_disk *od, daddr_t dblk, int blks, caddr_t dest, int write) argument
831 bd_io(struct open_disk *od, daddr_t dblk, int blks, caddr_t dest, int write) argument
928 bd_read(struct open_disk *od, daddr_t dblk, int blks, caddr_t dest) argument
935 bd_write(struct open_disk *od, daddr_t dblk, int blks, caddr_t dest) argument
[all...]
/freebsd-10-stable/sys/opencrypto/
H A Dcryptosoft.c76 int i, k, j, blks; local
79 blks = exf->blocksize;
82 if (crd->crd_len % blks)
89 bcopy(crd->crd_iv, iv, blks);
91 arc4rand(iv, blks, 0);
95 crypto_copyback(flags, buf, crd->crd_inject, blks, iv);
100 bcopy(crd->crd_iv, iv, blks);
103 crypto_copydata(flags, buf, crd->crd_inject, blks, iv);
142 if (m->m_len < k + blks && m->m_len != k) {
143 m_copydata(m, k, blks, bl
[all...]
/freebsd-10-stable/sys/boot/efi/include/
H A Defifs.h105 #define EFI_LBAL_ARRAY_SIZE(lbal,offs,blks) \
106 (((blks) - (offs) - (lbal)->Hdr.HeaderSize) / sizeof(EFI_RL))
/freebsd-10-stable/sbin/dump/
H A Dtraverse.c630 int i, j, count, blks, tbperdb; local
632 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE);
634 for (i = 0; i < blks; i += TP_NINDIR) {
635 if (i + TP_NINDIR > blks)
636 count = blks;
666 int i, j, count, resid, blks, tbperdb, added; local
674 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE);
683 blks -= howmany(sblock->fs_fsize, TP_BSIZE) - resid;
686 for (i = 0; i < blks; i += TP_NINDIR) {
687 if (i + TP_NINDIR > blks)
730 int i, blks, tbperdb; local
773 int i, frags, blks, tbperdb, last; local
[all...]
H A Dtape.c227 int i, blks, got; local
278 blks = 0;
282 blks++;
284 slp->count = lastspclrec + blks + 1 - spcl.c_tapea;
/freebsd-10-stable/sbin/fsck_ffs/
H A Dmain.c237 intmax_t blks, files; local
510 blks = n_blks +
512 blks += cgsblock(&sblock, 0) - cgbase(&sblock, 0);
513 blks += howmany(sblock.fs_cssize, sblock.fs_fsize);
514 blks = maxfsblock - (n_ffree + sblock.fs_frag * n_bfree) - blks;
515 if (bkgrdflag && (files > 0 || blks > 0)) {
518 countdirs, files - countdirs, blks);
529 if (blks < 0)
530 printf("%jd blocks missing\n", -blks);
[all...]
H A Dgjournal.c329 ufs2_daddr_t *blks; local
334 blks = (ufs2_daddr_t *)&sblks;
336 if (blks[i] == 0)
339 blkfree(blks[i], fs->fs_bsize);
341 freeindir(blks[i], level - 1);
H A Dinode.c450 int i, blks; local
453 blks = NDADDR + NIADDR;
455 blks = howmany(DIP(dp, di_size), sblock.fs_bsize);
457 blks = 1;
459 Malloc(sizeof(*inp) + (blks - 1) * sizeof(ufs2_daddr_t));
469 inp->i_numblks = blks;
470 for (i = 0; i < (blks < NDADDR ? blks : NDADDR); i++)
472 if (blks > NDADDR)
/freebsd-10-stable/usr.sbin/quot/
H A Dquot.c325 uses(uid_t uid, daddr_t blks, time_t act) argument
335 usr->space += blks;
338 usr->spc90 += blks;
340 usr->spc60 += blks;
342 usr->spc30 += blks;
/freebsd-10-stable/usr.sbin/makefs/ffs/
H A Dmkfs.c122 int size, blks; local
403 blks = howmany(size, sblock.fs_fsize);
472 printf("\tusing %d cylinder groups of %.2fMB, %d blks, "
544 int cylno, size, blks, i, saveflag; local
563 blks = howmany(size, fs->fs_fsize);
567 for (i = 0; i < blks; i+= fs->fs_frag) {
569 if (i + fs->fs_frag > blks)
570 size = (blks - i) * fs->fs_fsize;
/freebsd-10-stable/usr.bin/mkimg/
H A Dgpt.c170 gpt_write_pmbr(lba_t blks, void *bootcode) argument
176 secs = (blks > UINT32_MAX) ? UINT32_MAX : (uint32_t)blks;
/freebsd-10-stable/sys/ufs/ffs/
H A Dffs_vfsops.c617 int i, blks, error; local
683 blks = howmany(size, fs->fs_fsize);
690 for (i = 0; i < blks; i += fs->fs_frag) {
692 if (i + fs->fs_frag > blks)
693 size = (blks - i) * fs->fs_fsize;
781 int error, i, blks, len, ronly; local
941 blks = howmany(size, fs->fs_fsize);
947 for (i = 0; i < blks; i += fs->fs_frag) {
949 if (i + fs->fs_frag > blks)
950 size = (blks
1908 int blks; local
[all...]
H A Dfs.h300 int32_t fs_maxcontig; /* max number of contiguous blks */
301 int32_t fs_maxbpg; /* max number of blks per cyl group */
605 #define blkstofrags(fs, blks) /* calculates (blks * fs->fs_frag) */ \
606 ((blks) << (fs)->fs_fragshift)
/freebsd-10-stable/sbin/tunefs/
H A Dtunefs.c946 int blks; local
1046 blks = indir_fill(blk, i, &resid) + 1;
1047 if (blks <= 0) {
1053 dp1->di_blocks += blks;
1056 dp2->di_blocks += blks;
/freebsd-10-stable/sys/netipsec/
H A Dxform_esp.c677 int hlen, rlen, padding, blks, alen, i, roff; local
705 blks = espx->blocksize; /* IV blocksize */
708 padding = ((blks - ((rlen + 2) % blks)) % blks) + 2;
/freebsd-10-stable/sys/contrib/octeon-sdk/
H A Dcvmx-dma-engine.c181 dpi_engx_buf.s.blks = 2;
187 dpi_engx_buf.s.blks = 6;
H A Dcvmx-dpi-defs.h1172 uint64_t blks : 4; /**< The size of the engine fifo member in struct:cvmx_dpi_engx_buf::cvmx_dpi_engx_buf_s
1186 uint64_t blks : 4;
1198 uint64_t blks : 4; /**< The size in 512B blocks of the engine fifo member in struct:cvmx_dpi_engx_buf::cvmx_dpi_engx_buf_cn63xx
1210 uint64_t blks : 4;
/freebsd-10-stable/sys/dev/amr/
H A Damrvar.h296 extern int amr_dump_blocks(struct amr_softc *sc, int unit, u_int32_t lba, void *data, int blks);
/freebsd-10-stable/sys/dev/nand/
H A Dnand.c165 uint32_t blks, pgs; local
168 blks = cg->blks_per_lun * cg->luns;
169 blk_stat = malloc(sizeof(struct block_stat) * blks, M_NAND,
174 pgs = blks * cg->pgs_per_blk;
/freebsd-10-stable/sbin/restore/
H A Dtape.c1466 long blks, i; local
1502 blks = 0;
1506 blks++;
1507 predict = blks;

Completed in 156 milliseconds

12