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

12

/freebsd-11-stable/sys/crypto/aesni/
H A Daesni_wrap.c80 struct blocks8 *blks; local
87 blks = (struct blocks8 *)buf;
88 aesni_dec8(rounds - 1, key_schedule, blks->blk[0], blks->blk[1],
89 blks->blk[2], blks->blk[3], blks->blk[4], blks->blk[5],
90 blks->blk[6], blks
116 const struct blocks8 *blks; local
154 const struct blocks8 *blks; local
217 const struct blocks8 *blks; local
[all...]
/freebsd-11-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-11-stable/stand/pc98/libpc98/
H A Dbiosdisk.c100 static int bd_read(struct disk_devdesc *dev, daddr_t dblk, int blks,
102 static int bd_write(struct disk_devdesc *dev, daddr_t dblk, int blks,
426 int blks, rc; local
450 blks = size / BD(dev).bd_sectorsize;
451 if (dblk > dblk + blks)
473 if (dblk + blks >= dev->d_offset + disk_blocks) {
474 blks = dev->d_offset + disk_blocks - dblk;
475 size = blks * BD(dev).bd_sectorsize;
476 DEBUG("short read %d", blks);
481 DEBUG("read %d from %lld to %p", blks, dbl
529 bd_chs_io(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest, int write) argument
567 bd_io(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest, int write) argument
660 bd_read(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest) argument
668 bd_write(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest) argument
[all...]
H A Dbioscd.c94 static int bc_read(int unit, daddr_t dblk, int blks, caddr_t dest);
256 int blks; local
271 blks = size / BIOSCD_SECSIZE;
275 DEBUG("read %d from %lld to %p", blks, dblk, buf);
279 if (blks && bc_read(unit, dblk, blks, buf)) {
285 fragsize, dblk, blks, buf + (blks * BIOSCD_SECSIZE));
286 if (fragsize && bc_read(unit, dblk + blks, 1, fragbuf)) {
290 bcopy(fragbuf, buf + (blks * BIOSCD_SECSIZ
301 bc_read(int unit, daddr_t dblk, int blks, caddr_t dest) argument
[all...]
/freebsd-11-stable/stand/libsa/geli/
H A Dgeliboot_crypto.c45 int err, blks, i; local
64 blks = rijndael_blockDecrypt(&cipher, &aeskey, data,
68 blks = rijndael_blockEncrypt(&cipher, &aeskey, data,
71 if (datasize != (blks / 8)) {
73 "%u != %zu\n", blks, datasize);
/freebsd-11-stable/stand/efi/include/
H A Defifs.h105 #define EFI_LBAL_ARRAY_SIZE(lbal,offs,blks) \
106 (((blks) - (offs) - (lbal)->Hdr.HeaderSize) / sizeof(EFI_RL))
/freebsd-11-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-11-stable/stand/i386/libi386/
H A Dbiosdisk.c951 size_t blks, blkoff, bsize, bio_size, rest; local
988 blks = size / bd->bd_sectorsize;
989 if (blks == 0 || (size % bd->bd_sectorsize) != 0)
990 blks++;
992 if (dblk > dblk + blks)
1021 if (dblk + blks >= d_offset + disk_blocks) {
1022 blks = d_offset + disk_blocks - dblk;
1023 size = blks * bd->bd_sectorsize;
1024 DEBUG("short I/O %d", blks);
1044 while (blks >
1117 bd_edd_io(bdinfo_t *bd, daddr_t dblk, int blks, caddr_t dest, int dowrite) argument
1144 bd_chs_io(bdinfo_t *bd, daddr_t dblk, int blks, caddr_t dest, int dowrite) argument
1189 bd_io(struct disk_devdesc *dev, bdinfo_t *bd, daddr_t dblk, int blks, caddr_t dest, int dowrite) argument
[all...]
/freebsd-11-stable/sbin/fsck_ffs/
H A Dmain.c243 intmax_t blks, files; local
514 blks = n_blks +
516 blks += cgsblock(&sblock, 0) - cgbase(&sblock, 0);
517 blks += howmany(sblock.fs_cssize, sblock.fs_fsize);
518 blks = maxfsblock - (n_ffree + sblock.fs_frag * n_bfree) - blks;
519 if (bkgrdflag && (files > 0 || blks > 0)) {
522 countdirs, files - countdirs, blks);
533 if (blks < 0)
534 printf("%jd blocks missing\n", -blks);
[all...]
H A Dgjournal.c328 ufs2_daddr_t *blks; local
333 blks = (ufs2_daddr_t *)&sblks;
335 if (blks[i] == 0)
338 blkfree(blks[i], fs->fs_bsize);
340 freeindir(blks[i], level - 1);
H A Dinode.c455 int i, blks; local
458 blks = NDADDR + NIADDR;
460 blks = howmany(DIP(dp, di_size), sblock.fs_bsize);
462 blks = 1;
464 Malloc(sizeof(*inp) + (blks - 1) * sizeof(ufs2_daddr_t));
474 inp->i_numblks = blks;
475 for (i = 0; i < MIN(blks, NDADDR); i++)
477 if (blks > NDADDR)
/freebsd-11-stable/sys/opencrypto/
H A Dcryptosoft.c90 int i, j, k, blks, ind, count, ivlen; local
100 blks = exf->blocksize;
104 if (crd->crd_len % blks)
189 if (uio->uio_iov[ind].iov_len < k + blks &&
191 cuio_copydata(uio, count, blks, blk);
204 for (j = 0; j < blks; j++)
213 bcopy(blk, iv, blks);
221 bcopy(blk, nivp, blks);
226 for (j = 0; j < blks; j++)
233 cuio_copyback(uio, count, blks, bl
[all...]
/freebsd-11-stable/usr.sbin/quot/
H A Dquot.c327 uses(uid_t uid, daddr_t blks, time_t act) argument
337 usr->space += blks;
340 usr->spc90 += blks;
342 usr->spc60 += blks;
344 usr->spc30 += blks;
/freebsd-11-stable/usr.sbin/makefs/ffs/
H A Dmkfs.c123 int size, blks; local
404 blks = howmany(size, sblock.fs_fsize);
472 printf("\tusing %d cylinder groups of %.2fMB, %d blks, "
540 int cylno, size, blks, i, saveflag; local
559 blks = howmany(size, fs->fs_fsize);
562 for (i = 0; i < blks; i+= fs->fs_frag) {
564 if (i + fs->fs_frag > blks)
565 size = (blks - i) * fs->fs_fsize;
/freebsd-11-stable/usr.bin/mkimg/
H A Dgpt.c154 gpt_write_pmbr(lba_t blks, void *bootcode) argument
160 secs = (blks > UINT32_MAX) ? UINT32_MAX : (uint32_t)blks - 1;
/freebsd-11-stable/sys/ufs/ffs/
H A Dffs_vfsops.c623 int i, blks, error; local
689 blks = howmany(size, fs->fs_fsize);
696 for (i = 0; i < blks; i += fs->fs_frag) {
698 if (i + fs->fs_frag > blks)
699 size = (blks - i) * fs->fs_fsize;
787 int error, i, blks, len, ronly; local
945 blks = howmany(size, fs->fs_fsize);
951 for (i = 0; i < blks; i += fs->fs_frag) {
953 if (i + fs->fs_frag > blks)
954 size = (blks
1933 int blks; local
[all...]
H A Dfs.h299 int32_t fs_maxcontig; /* max number of contiguous blks */
300 int32_t fs_maxbpg; /* max number of blks per cyl group */
604 #define blkstofrags(fs, blks) /* calculates (blks * fs->fs_frag) */ \
605 ((blks) << (fs)->fs_fragshift)
/freebsd-11-stable/sbin/tunefs/
H A Dtunefs.c948 int blks; local
1048 blks = indir_fill(blk, i, &resid) + 1;
1049 if (blks <= 0) {
1055 dp1->di_blocks += blks;
1058 dp2->di_blocks += blks;
/freebsd-11-stable/sys/netipsec/
H A Dxform_esp.c675 int hlen, rlen, padding, blks, alen, i, roff; local
693 blks = MAX(4, espx->blocksize); /* Cipher blocksize */
696 padding = ((blks - ((rlen + 2) % blks)) % blks) + 2;
726 __func__, skip, hlen, rlen, padding, alen, blks)); */
/freebsd-11-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-11-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-11-stable/sys/dev/nand/
H A Dnand.c156 uint32_t blks, pgs; local
159 blks = cg->blks_per_lun * cg->luns;
160 blk_stat = malloc(sizeof(struct block_stat) * blks, M_NAND,
165 pgs = blks * cg->pgs_per_blk;
/freebsd-11-stable/sbin/restore/
H A Dtape.c1493 long blks, i; local
1529 blks = 0;
1533 blks++;
1534 predict = blks;

Completed in 464 milliseconds

12