Searched refs:nblk (Results 1 - 25 of 48) sorted by relevance

12

/illumos-gate/usr/src/boot/sys/boot/i386/common/
H A Ddrv.h42 int drvread(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk);
44 int drvwrite(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk);
H A Ddrv.c60 drvread(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk) argument
68 packet.count = nblk;
85 v86.edx = nblk << 8 | dskp->drive;
98 drvwrite(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk) argument
102 packet.count = nblk;
/illumos-gate/usr/src/boot/sys/boot/arm/at91/boot2/
H A Dcentipad_board.c65 drvread(void *buf, unsigned lba, unsigned nblk) argument
67 return (MCI_read((char *)buf, lba << 9, nblk << 9));
H A Dkb920x_board.c63 drvread(void *buf, unsigned lba, unsigned nblk) argument
65 return (MCI_read((char *)buf, lba << 9, nblk << 9));
H A Dbwct_board.c122 drvread(void *buf, unsigned lba, unsigned nblk) argument
124 return (MCI_read((char *)buf, lba << 9, nblk << 9));
H A Dboot2.c248 dskread(void *buf, unsigned lba, unsigned nblk) argument
290 return drvread(buf, dsk_start + lba, nblk);
/illumos-gate/usr/src/cmd/cdrw/
H A Dtoshiba.h40 int toshiba_read_audio(cd_device *target, uint_t start_blk, uint_t nblk,
H A Dtoshiba.c76 toshiba_read_audio(cd_device *target, uint_t start_blk, uint_t nblk, argument
90 scmd->uscsi_cdb[9] = nblk & 0xff;
91 scmd->uscsi_cdb[8] = (nblk >> 8) & 0xff;
92 scmd->uscsi_cdb[7] = (nblk >> 16) & 0xff;
93 scmd->uscsi_cdb[6] = (nblk >> 24) & 0xff;
96 scmd->uscsi_buflen = nblk*2352;
H A Dmmc.h137 int read10(int fd, uint32_t start_blk, uint16_t nblk, uchar_t *buf,
139 int write10(int fd, uint32_t start_blk, uint16_t nblk, uchar_t *buf,
143 int read_cd(int fd, uint32_t start_blk, uint16_t nblk, uchar_t sector_type,
H A Dmmc.c280 read10(int fd, uint32_t start_blk, uint16_t nblk, uchar_t *buf, argument
290 scmd->uscsi_cdb[8] = nblk & 0xff;
291 scmd->uscsi_cdb[7] = (nblk >> 8) & 0xff;
301 write10(int fd, uint32_t start_blk, uint16_t nblk, uchar_t *buf, argument
316 scmd->uscsi_cdb[8] = nblk & 0xff;
317 scmd->uscsi_cdb[7] = (nblk >> 8) & 0xff;
398 read_cd(int fd, uint32_t start_blk, uint16_t nblk, uchar_t sector_type, argument
412 scmd->uscsi_cdb[8] = nblk & 0xff;
413 scmd->uscsi_cdb[7] = (nblk >> 8) & 0xff;
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dbcache.c190 daddr_t i, nblk; local
192 nblk = size / bcache_blksize;
195 for (i = 0; i < nblk; i++) {
214 size_t i, nblk, p_size, r_size, complete, ra; local
227 nblk = size / bcache_blksize;
228 if ((nblk == 0 && size != 0) || offset != 0)
229 nblk++;
234 for (i = 0; i < nblk; i++) {
236 bcache_misses += (nblk - i);
238 if (nblk
332 int nblk, cblk, ret; local
[all...]
/illumos-gate/usr/src/cmd/boot/installgrub/
H A Dpcfs_glue.c57 add_stage2_block(int blocknum, int nblk) argument
62 blocklist[i + 1] += nblk;
72 blocklist[i + 1] = nblk;
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Ddockspace.c250 blk = nblk(ept->cinfo.size,
314 nblk(fs_tab->bsize,
318 blk = nblk(ept->cinfo.size,
329 new_size = nblk(ept->cinfo.size,
332 old_size = nblk(statbuf.st_size,
/illumos-gate/usr/src/boot/sys/boot/efi/boot1/
H A Dufs_module.c47 dskread(void *buf, u_int64_t lba, int nblk) argument
53 size = nblk * DEV_BSIZE;
/illumos-gate/usr/src/uts/common/syscall/
H A Drctlsys.c224 rctl_opaque_t *nblk; local
296 nblk = kmem_zalloc(sizeof (rctl_opaque_t), KM_SLEEP);
297 nblk->rcq_value = usage;
299 ret = copyout(nblk, new_rblk, sizeof (rctl_opaque_t));
300 kmem_free(nblk, sizeof (rctl_opaque_t));
346 nblk = kmem_alloc(sizeof (rctl_opaque_t), KM_SLEEP);
348 rctlsys_rblk_xfrm(nblk, krde, nval, RBX_TO_BLK | RBX_VAL | RBX_CTL);
353 if (copyout(nblk, new_rblk, sizeof (rctl_opaque_t)) == -1) {
354 kmem_free(nblk, sizeof (rctl_opaque_t));
358 kmem_free(nblk, sizeo
390 rctl_opaque_t *nblk; local
[all...]
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dnblk.c41 nblk(fsblkcnt_t size, ulong_t bsize, ulong_t frsize) function
H A DMakefile31 isreloc.o lockinst.o mntinfo.o nblk.o \
H A Dpkgobjmap.c492 nblk(block_size, block_size, frag_size);
494 blk = nblk(ext->cf_ent.cinfo.size, block_size,
520 blks1 = nblk(ext1->cf_ent.cinfo.size, block_size, frag_size);
521 blks2 = nblk(ext2->cf_ent.cinfo.size, block_size, frag_size);
H A Docfile.c287 log_blocks = nblk(statl.st_size, svfsb.f_bsize, svfsb.f_frsize);
306 nblk(statb.st_size, svfsb.f_bsize, svfsb.f_frsize);
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dmalloc.c518 Dblk nblk; local
521 nblk = nextblk(retblk, nbytes); /* ^next block */
522 nblk->size = allocp->size = retblk->size - nbytes;
530 allocp->block = nblk;
626 Dblk nblk = nextblk(oldblk,nbytes); local
627 if (nblk == neighbor_blk) {
634 } else if (nblk > neighbor_blk) {
651 Dblk nblk = nextblk(neighbor_blk, neighbor_size); local
652 if (nblk == oldblk) {
660 } else if (nblk > oldbl
[all...]
/illumos-gate/usr/src/boot/sys/boot/arm/ixp425/boot2/
H A Dboot2.c295 dskread(void *buf, unsigned lba, unsigned nblk) argument
366 return drvread(buf, dsk_start + lba, nblk);
370 drvread(void *buf, unsigned lba, unsigned nblk) argument
375 return (avila_read((char *)buf, lba, nblk));
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_trans.c374 unsigned int nblk)
382 for (i = 0; i < nblk && *fragsp; ++i, ++blkp)
643 daddr_t nblk, maxfblk; local
665 nblk = lblkno(fs, blkroundup(fs, resid));
670 nblk = MIN(nblk, ip->i_blocks);
722 ncg = nblk / avgbfree;
370 ufs_trans_mata_direct( struct inode *ip, daddr_t *fragsp, daddr32_t *blkp, unsigned int nblk) argument
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddmu.c976 dmu_xuio_init(xuio_t *xuio, int nblk) argument
981 uio->uio_iovcnt = nblk;
982 uio->uio_iov = kmem_zalloc(nblk * sizeof (iovec_t), KM_SLEEP);
985 priv->cnt = nblk;
986 priv->bufs = kmem_zalloc(nblk * sizeof (arc_buf_t *), KM_SLEEP);
991 XUIOSTAT_INCR(xuiostat_onloan_rbuf, nblk);
993 XUIOSTAT_INCR(xuiostat_onloan_wbuf, nblk);
1002 int nblk = priv->cnt; local
1004 kmem_free(priv->iovp, nblk * sizeof (iovec_t));
1005 kmem_free(priv->bufs, nblk * sizeo
[all...]
/illumos-gate/usr/src/cmd/svr4pkg/pkgmk/
H A Dsplpkgmap.c165 nblk(eptlist[i]->cinfo.size, bsize, frsize);
207 f[i].blks = nblk(ept->cinfo.size, bsize, frsize);
225 btemp += nblk(eptnum * EFACTOR, bsize, frsize);
267 btotal += nblk((fsblkcnt_t)(eptnum * EFACTOR), bsize, frsize);
/illumos-gate/usr/src/boot/sys/boot/sparc64/boot1/
H A Dboot1.c64 static int dskread(void *buf, u_int64_t lba, int nblk);
518 dskread(void *buf, u_int64_t lba, int nblk) argument
527 ofw_read(bootdev, buf, nblk * DEV_BSIZE);

Completed in 185 milliseconds

12