Home
last modified time | relevance | path

Searched refs:blockcnt (Results 1 – 16 of 16) sorted by relevance

/openbsd-src/usr.sbin/makefs/ffs/
H A Dufs_bmap.c68 int64_t blockcnt; in ufs_getlbns() local
91 for (lbc = 0, i = NIADDR;; i--, bn -= blockcnt) { in ufs_getlbns()
96 blockcnt = (int64_t)1 << lbc; in ufs_getlbns()
98 if (bn < blockcnt) in ufs_getlbns()
121 blockcnt = (int64_t)1 << lbc; in ufs_getlbns()
/openbsd-src/sys/ufs/ufs/
H A Dufs_bmap.c231 int64_t blockcnt; in ufs_getlbns() local
259 for (blockcnt = 1, i = NIADDR, bn -= NDADDR;; i--, bn -= blockcnt) { in ufs_getlbns()
262 blockcnt *= MNINDIR(ump); in ufs_getlbns()
263 if (bn < blockcnt) in ufs_getlbns()
288 blockcnt /= MNINDIR(ump); in ufs_getlbns()
289 off = (bn / blockcnt) % MNINDIR(ump); in ufs_getlbns()
297 metalbn -= -1 + off * blockcnt; in ufs_getlbns()
/openbsd-src/gnu/usr.bin/perl/cpan/Digest-SHA/src/
H A Dsha.c329 s->blockcnt = bitcnt; in shadirect()
341 offset = s->blockcnt >> 3; in shabytes()
342 if (s->blockcnt + bitcnt >= s->blocksize) { in shabytes()
343 nbits = s->blocksize - s->blockcnt; in shabytes()
347 s->sha(s, s->block), s->blockcnt = 0; in shabytes()
352 s->blockcnt += bitcnt; in shabytes()
364 SETBIT(s->block, s->blockcnt); in shabits()
366 CLRBIT(s->block, s->blockcnt); in shabits()
367 if (++s->blockcnt == s->blocksize) in shabits()
368 s->sha(s, s->block), s->blockcnt = 0; in shabits()
[all …]
H A Dsha.h144 unsigned int blockcnt; member
/openbsd-src/gnu/usr.bin/perl/cpan/Digest-SHA/t/
H A Dstate.t52 blockcnt:384
60 blockcnt:384
68 blockcnt:384
76 blockcnt:384
H A Dgglong.t66 blockcnt:508
74 blockcnt:508
H A Direland.t29 blockcnt:496
/openbsd-src/gnu/usr.bin/perl/cpan/Digest-SHA/lib/Digest/
H A DSHA.pm166 my($H, $block, $blockcnt, $lenhh, $lenhl, $lenlh, $lenll) =
168 for ($alg, $H, $block, $blockcnt, $lenhh, $lenhl, $lenlh, $lenll) {
176 push(@s, "blockcnt:" . unpack("N", $blockcnt));
/openbsd-src/sys/dev/sdmmc/
H A Dsdmmc_scsi.c312 u_int32_t blockcnt; in sdmmc_scsi_cmd() local
366 sdmmc_scsi_decode_rw(xs, &blockno, &blockcnt); in sdmmc_scsi_cmd()
369 blockno + blockcnt > tgt->card->csd.capacity) { in sdmmc_scsi_cmd()
371 blockno, blockcnt, tgt->card->csd.capacity)); in sdmmc_scsi_cmd()
380 ccb->ccb_blockcnt = blockcnt; in sdmmc_scsi_cmd()
/openbsd-src/sys/dev/ic/
H A Dtwe.c755 u_int32_t blockno, blockcnt; in twe_scsi_cmd() local
834 blockno = blockcnt = 0; in twe_scsi_cmd()
841 blockcnt = rw->length ? rw->length : 0x100; in twe_scsi_cmd()
845 blockcnt = _2btol(rw10->length); in twe_scsi_cmd()
852 blockno + blockcnt > sc->sc_hdr[target].hd_size) { in twe_scsi_cmd()
854 sc->sc_dev.dv_xname, blockno, blockcnt, in twe_scsi_cmd()
879 cmd->cmd_io.count = htole16(blockcnt); in twe_scsi_cmd()
H A Dcac.c569 u_int32_t blockno, blockcnt, size; in cac_scsi_cmd() local
660 blockcnt = rw->length ? rw->length : 0x100; in cac_scsi_cmd()
664 blockcnt = _2btol(rw10->length); in cac_scsi_cmd()
668 if (blockno >= size || blockno + blockcnt > size) { in cac_scsi_cmd()
670 sc->sc_dv.dv_xname, blockno, blockcnt, size); in cac_scsi_cmd()
688 if ((error = cac_cmd(sc, op, xs->data, blockcnt * DEV_BSIZE, in cac_scsi_cmd()
H A Dgdt_common.c545 u_int32_t blockno, blockcnt; in gdt_scsi_cmd() local
632 blockno = blockcnt = 0; in gdt_scsi_cmd()
639 blockcnt = in gdt_scsi_cmd()
644 blockcnt = _2btol(rw10->length); in gdt_scsi_cmd()
647 blockno + blockcnt > in gdt_scsi_cmd()
652 blockcnt, in gdt_scsi_cmd()
667 ccb->gc_blockcnt = blockcnt; in gdt_scsi_cmd()
H A Daac.c2176 u_int32_t blockno, blockcnt; in aac_scsi_cmd() local
2249 blockcnt = rw->length ? rw->length : 0x100; in aac_scsi_cmd()
2253 blockcnt = _2btol(rw10->length); in aac_scsi_cmd()
2257 xs->cmd.opcode, blockno, blockcnt)); in aac_scsi_cmd()
2260 blockno + blockcnt > sc->aac_hdr[target].hd_size) { in aac_scsi_cmd()
2264 blockcnt, sc->aac_hdr[target].hd_size); in aac_scsi_cmd()
2286 cm->cm_bcount = blockcnt; in aac_scsi_cmd()
H A Dmfi.c1014 struct scsi_xfer *xs, uint64_t blockno, uint32_t blockcnt) in mfi_scsi_io() argument
1037 io->mif_header.mfh_data_len = htole32(blockcnt); in mfi_scsi_io()
1160 uint32_t blockcnt; in mfi_scsi_cmd() local
1185 blockcnt = _2btol(rw10->length); in mfi_scsi_cmd()
1186 if (mfi_scsi_io(sc, ccb, xs, blockno, blockcnt)) in mfi_scsi_cmd()
1195 blockcnt = rw->length ? rw->length : 0x100; in mfi_scsi_cmd()
1196 if (mfi_scsi_io(sc, ccb, xs, blockno, blockcnt)) in mfi_scsi_cmd()
1204 blockcnt = _4btol(rw16->length); in mfi_scsi_cmd()
1205 if (mfi_scsi_io(sc, ccb, xs, blockno, blockcnt)) in mfi_scsi_cmd()
H A Dami.c1304 u_int32_t blockno, blockcnt; in ami_scsi_cmd() local
1425 blockcnt = rw->length ? rw->length : 0x100; in ami_scsi_cmd()
1429 blockcnt = _2btol(rw10->length); in ami_scsi_cmd()
1433 blockno + blockcnt > sc->sc_hdr[target].hd_size) { in ami_scsi_cmd()
1435 blockno, blockcnt, sc->sc_hdr[target].hd_size); in ami_scsi_cmd()
1448 cmd->acc_mbox.amb_nsect = htole16(blockcnt); in ami_scsi_cmd()
/openbsd-src/gnu/usr.bin/perl/cpan/Digest-SHA/
H A DSHA.xs311 ptr = w32mem(ptr, state->blockcnt);
341 state->blockcnt = bc;