/illumos-gate/usr/src/boot/common/ |
H A D | bcache.c | 190 daddr_t i, nblk; in write_strategy() local 192 nblk = size / bcache_blksize; in write_strategy() 195 for (i = 0; i < nblk; i++) { in write_strategy() 214 size_t i, nblk, p_size, r_size, complete, ra; in read_strategy() local 227 nblk = size / bcache_blksize; in read_strategy() 228 if (nblk == 0 && size != 0) in read_strategy() 229 nblk++; in read_strategy() 234 for (i = 0; i < nblk; i++) { in read_strategy() 236 bcache_misses += (nblk - i); in read_strategy() 238 if (nblk - i > BCACHE_MINREADAHEAD && in read_strategy() [all …]
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | toshiba.c | 74 toshiba_read_audio(cd_device *target, uint_t start_blk, uint_t nblk, in toshiba_read_audio() argument 88 scmd->uscsi_cdb[9] = nblk & 0xff; in toshiba_read_audio() 89 scmd->uscsi_cdb[8] = (nblk >> 8) & 0xff; in toshiba_read_audio() 90 scmd->uscsi_cdb[7] = (nblk >> 16) & 0xff; in toshiba_read_audio() 91 scmd->uscsi_cdb[6] = (nblk >> 24) & 0xff; in toshiba_read_audio() 94 scmd->uscsi_buflen = nblk*2352; in toshiba_read_audio()
|
H A D | mmc.c | 280 read10(int fd, uint32_t start_blk, uint16_t nblk, uchar_t *buf, in read10() argument 290 scmd->uscsi_cdb[8] = nblk & 0xff; in read10() 291 scmd->uscsi_cdb[7] = (nblk >> 8) & 0xff; in read10() 301 write10(int fd, uint32_t start_blk, uint16_t nblk, uchar_t *buf, in write10() argument 316 scmd->uscsi_cdb[8] = nblk & 0xff; in write10() 317 scmd->uscsi_cdb[7] = (nblk >> 8) & 0xff; in write10() 398 read_cd(int fd, uint32_t start_blk, uint16_t nblk, uchar_t sector_type, in read_cd() argument 412 scmd->uscsi_cdb[8] = nblk & 0xff; in read_cd() 413 scmd->uscsi_cdb[7] = (nblk >> 8) & 0xff; in read_cd()
|
H A D | mmc.h | 135 int read10(int fd, uint32_t start_blk, uint16_t nblk, uchar_t *buf, 137 int write10(int fd, uint32_t start_blk, uint16_t nblk, uchar_t *buf, 141 int read_cd(int fd, uint32_t start_blk, uint16_t nblk, uchar_t sector_type,
|
H A D | toshiba.h | 38 int toshiba_read_audio(cd_device *target, uint_t start_blk, uint_t nblk,
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | rctlsys.c | 224 rctl_opaque_t *nblk; in rctlsys_get() local 296 nblk = kmem_zalloc(sizeof (rctl_opaque_t), KM_SLEEP); in rctlsys_get() 297 nblk->rcq_value = usage; in rctlsys_get() 299 ret = copyout(nblk, new_rblk, sizeof (rctl_opaque_t)); in rctlsys_get() 300 kmem_free(nblk, sizeof (rctl_opaque_t)); in rctlsys_get() 346 nblk = kmem_alloc(sizeof (rctl_opaque_t), KM_SLEEP); in rctlsys_get() 348 rctlsys_rblk_xfrm(nblk, krde, nval, RBX_TO_BLK | RBX_VAL | RBX_CTL); in rctlsys_get() 353 if (copyout(nblk, new_rblk, sizeof (rctl_opaque_t)) == -1) { in rctlsys_get() 354 kmem_free(nblk, sizeof (rctl_opaque_t)); in rctlsys_get() 358 kmem_free(nblk, sizeof (rctl_opaque_t)); in rctlsys_get() [all …]
|
/illumos-gate/usr/src/boot/i386/common/ |
H A D | drv.c | 52 drvread(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk) in drvread() argument 59 packet.count = nblk; in drvread() 79 drvwrite(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk) in drvwrite() argument 83 packet.count = nblk; in drvwrite()
|
H A D | drv.h | 42 int drvread(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk); 43 int drvwrite(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk);
|
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | dockspace.c | 254 blk = nblk(ept->cinfo.size, in readmap() 318 nblk(fs_tab->bsize, in readmap() 322 blk = nblk(ept->cinfo.size, in readmap() 333 new_size = nblk(ept->cinfo.size, in readmap() 336 old_size = nblk(statbuf.st_size, in readmap()
|
/illumos-gate/usr/src/cmd/boot/installgrub/ |
H A D | pcfs_glue.c | 57 add_stage2_block(int blocknum, int nblk) in add_stage2_block() argument 62 blocklist[i + 1] += nblk; in add_stage2_block() 72 blocklist[i + 1] = nblk; in add_stage2_block()
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_trans.c | 374 unsigned int nblk) in ufs_trans_mata_direct() argument 382 for (i = 0; i < nblk && *fragsp; ++i, ++blkp) in ufs_trans_mata_direct() 643 daddr_t nblk, maxfblk; in ufs_log_amt() local 665 nblk = lblkno(fs, blkroundup(fs, resid)); in ufs_log_amt() 670 nblk = MIN(nblk, ip->i_blocks); in ufs_log_amt() 722 ncg = nblk / avgbfree; in ufs_log_amt()
|
H A D | ufs_alloc.c | 1955 daddr_t nblk = lblkno(fs, blkroundup(fs, nb)); in contigpref() local 1967 if ((startcg = findlogstartcg(fs, nblk, minblk)) == -1) in contigpref() 1987 while (cgbno < cgblks && savenblk < nblk) { in contigpref() 2005 if (++curnblk >= nblk) in contigpref() 2015 if (savenblk >= nblk) in contigpref()
|
H A D | lufs_log.c | 1384 size_t nblk, i; in ldl_logscan_ident() local 1400 nblk = btodb(bp->b_bcount); in ldl_logscan_ident() 1404 for (i = 0; i < nblk; ++i) { in ldl_logscan_ident()
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | pkgobjmap.c | 492 nblk(block_size, block_size, frag_size); in nblks() 494 blk = nblk(ext->cf_ent.cinfo.size, block_size, in nblks() 520 blks1 = nblk(ext1->cf_ent.cinfo.size, block_size, frag_size); in size_xchng() 521 blks2 = nblk(ext2->cf_ent.cinfo.size, block_size, frag_size); in size_xchng()
|
H A D | nblk.c | 41 nblk(fsblkcnt_t size, ulong_t bsize, ulong_t frsize) in nblk() function
|
H A D | ocfile.c | 290 log_blocks = nblk(statl.st_size, svfsb.f_bsize, svfsb.f_frsize); in ocfile() 309 nblk(statb.st_size, svfsb.f_bsize, svfsb.f_frsize); in ocfile()
|
H A D | Makefile | 33 isreloc.o lockinst.o mntinfo.o nblk.o \
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgmk/ |
H A D | splpkgmap.c | 165 nblk(eptlist[i]->cinfo.size, bsize, frsize); in splpkgmap() 207 f[i].blks = nblk(ept->cinfo.size, bsize, frsize); in splpkgmap() 225 btemp += nblk(eptnum * EFACTOR, bsize, frsize); in splpkgmap() 267 btotal += nblk((fsblkcnt_t)(eptnum * EFACTOR), bsize, frsize); in splpkgmap()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dmu.c | 1296 dmu_xuio_init(xuio_t *xuio, int nblk) in dmu_xuio_init() argument 1301 uio->uio_iovcnt = nblk; in dmu_xuio_init() 1302 uio->uio_iov = kmem_zalloc(nblk * sizeof (iovec_t), KM_SLEEP); in dmu_xuio_init() 1305 priv->cnt = nblk; in dmu_xuio_init() 1306 priv->bufs = kmem_zalloc(nblk * sizeof (arc_buf_t *), KM_SLEEP); in dmu_xuio_init() 1311 XUIOSTAT_INCR(xuiostat_onloan_rbuf, nblk); in dmu_xuio_init() 1313 XUIOSTAT_INCR(xuiostat_onloan_wbuf, nblk); in dmu_xuio_init() 1322 int nblk = priv->cnt; in dmu_xuio_fini() local 1324 kmem_free(priv->iovp, nblk * sizeof (iovec_t)); in dmu_xuio_fini() 1325 kmem_free(priv->bufs, nblk * sizeof (arc_buf_t *)); in dmu_xuio_fini() [all …]
|
/illumos-gate/usr/src/lib/libmalloc/common/ |
H A D | malloc.c | 590 struct header *nblk; /* next block */ in malloc_unlocked() local 598 nblk = blk->nextfree; in malloc_unlocked() 599 if (nblk != &(freeptr[1])) { in malloc_unlocked() 600 MOVEHEAD(nblk); in malloc_unlocked()
|
/illumos-gate/usr/src/uts/common/cpr/ |
H A D | cpr_dump.c | 1030 int nblk; in cpr_flush_write() local 1037 nblk = btod(cpr_wptr - cpr_buf); in cpr_flush_write() 1040 error = VOP_DUMP(vp, (caddr_t)cpr_buf, cpr_file_bn, nblk, NULL); in cpr_flush_write() 1043 cpr_file_bn += nblk; in cpr_flush_write()
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_scsa.c | 2363 uint32_t *ptr, lhtag, iq, nblk, i, mtype; in pmcs_SATA_run() local 2428 asc = pmcs_SATA_rwparm(pkt->pkt_cdbp, &nblk, &lba, lba); in pmcs_SATA_run() 2448 amt = nblk; in pmcs_SATA_run() 2450 amt = pmcs_set_resid(pkt, amt, nblk << 9); in pmcs_SATA_run() 2517 fis[0] = ((nblk & 0xff) << 24) | (C_BIT << 8) | FIS_REG_H2DEV; in pmcs_SATA_run() 2524 fis[2] = ((nblk & 0xff00) << 16) | ((lba >> 24) & 0xffffff); in pmcs_SATA_run() 2547 fis[3] = nblk; in pmcs_SATA_run()
|
/illumos-gate/usr/src/uts/intel/io/dktp/disk/ |
H A D | cmdk.c | 128 static int cmdkdump(dev_t dev, caddr_t addr, daddr_t blkno, int nblk); 700 cmdkdump(dev_t dev, caddr_t addr, daddr_t blkno, int nblk) in cmdkdump() argument 728 if ((blkno+nblk) > p_lblkcnt) in cmdkdump() 737 bp->b_bcount = nblk << SCTRSHFT; in cmdkdump()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | devops.h | 93 int (*cb_dump)(dev_t dev, caddr_t addr, daddr_t blkno, int nblk);
|
/illumos-gate/usr/src/cmd/svr4pkg/hdrs/ |
H A D | libinst.h | 298 extern fsblkcnt_t nblk __P((fsblkcnt_t size, ulong_t bsize,
|