Home
last modified time | relevance | path

Searched refs:blksz (Results 1 – 25 of 35) sorted by relevance

12

/titanic_51/usr/src/boot/sys/boot/efi/boot1/
H A Dzfs_module.c55 size_t size, remainder, rb_size, blksz; in vdev_read() local
71 blksz = size; in vdev_read()
80 blksz = rb_size - remainder; in vdev_read()
88 if (bytes < blksz) in vdev_read()
89 blksz = bytes; in vdev_read()
91 memcpy(buf, rb_buf + remainder, blksz); in vdev_read()
92 buf = (void *)((uintptr_t)buf + blksz); in vdev_read()
93 bytes -= blksz; in vdev_read()
96 blksz = rb_size; in vdev_read()
/titanic_51/usr/src/lib/libast/common/sfio/
H A Dsfsetbuf.c102 ssize_t bufsize, blksz; local
156 blksz = -1;
158 { blksz = (ssize_t)size;
229 f->blksz = (size_t)st.st_blksize;
395 if(blksz <= 0 || (blksz & (blksz-1)) != 0 )
396 blksz = SF_GRAIN;
397 while(blksz > f->size/2)
398 blksz /= 2;
399 f->blksz = blksz;
H A Dsffilbuf.c76 if(f->blksz > 0 && (f->here%f->blksz) == 0 )
77 { s = ((r + f->blksz-1)/f->blksz)*f->blksz;
H A Dsfseek.c225 f->iosz = ((f->iosz + f->blksz-1)/f->blksz)*f->blksz;
234 if(p < f->lpos && f->size > f->blksz && (p + f->blksz) > s)
239 else if(f->blksz > 0 && f->size >= 2*f->blksz)
240 r = p - (p%f->blksz);
/titanic_51/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfsetbuf.c114 ssize_t bufsize, blksz; local
168 blksz = -1;
170 { blksz = (ssize_t)size;
241 f->blksz = (size_t)st.st_blksize;
412 /* blksz is used for aligning disk block boundary while reading data to
413 ** optimize data transfer from disk (eg, via direct I/O). blksz can be
415 ** blksz should also be a power-of-2 for optimal disk seeks.
417 if(blksz <= 0 || (blksz & (blksz
[all...]
H A Dsffilbuf.c76 if(f->blksz > 0 && (f->here%f->blksz) == 0 )
77 { s = ((r + f->blksz-1)/f->blksz)*f->blksz;
H A Dsfseek.c225 f->iosz = ((f->iosz + f->blksz-1)/f->blksz)*f->blksz;
234 if(p < f->lpos && f->size > f->blksz && (p + f->blksz) > s)
239 else if(f->blksz > 0 && f->size >= 2*f->blksz)
240 r = p - (p%f->blksz);
/titanic_51/usr/src/uts/common/sys/1394/targets/scsa1394/
H A Dimpl.h259 #define SCSA1394_VALID_CDRW_BLKSZ(blksz) \ argument
260 (((blksz) == CDROM_BLK_2048) || ((blksz) == CDROM_BLK_2352) || \
261 ((blksz) == CDROM_BLK_2336) || ((blksz) == CDROM_BLK_2324))
/titanic_51/usr/src/lib/libmalloc/common/
H A Dmallint.h103 long blksz; /* size of little blocks contained */ member
185 /* size of a holding block with small blocks of size blksz */
186 #define HOLDSZ(blksz) \ argument
187 (sizeof (struct holdblk) - sizeof (struct lblk *) + blksz*numlblks)
H A Dmalloc.c345 * is just ->blksz/grain, with the first in malloc_unlocked()
438 newhold->blksz = nb-MINHEAD; in malloc_unlocked()
441 assert(((struct holdblk *)CLRALL(lblk->header.holder))->blksz >= in malloc_unlocked()
676 offset = holdblk->blksz / grain; in free_unlocked()
770 CLRALL(lblk->header.holder))->blksz; in realloc_unlocked()
1012 size = hblk->blksz + in mallinfo()
1053 size = holdblk->blksz + sizeof (struct lblk) - sizeof (int); in freespace()
/titanic_51/usr/src/uts/common/sys/usb/scsa2usb/
H A Dscsa2usb.h632 #define SCSA2USB_VALID_CDRW_BLKSZ(blksz) \ argument
633 (((blksz) == CDROM_BLK_2048) || ((blksz) == CDROM_BLK_2352) || \
634 ((blksz) == CDROM_BLK_2336) || ((blksz) == CDROM_BLK_2324) || \
635 ((blksz) == 0))
/titanic_51/usr/src/uts/common/io/sdcard/adapters/sdhost/
H A Dsdhost.c1407 uint16_t blksz; in sdhost_cmd() local
1410 blksz = cmdp->sc_blksz; in sdhost_cmd()
1416 if ((blksz < 1) || (blksz > 2048)) { in sdhost_cmd()
1422 ss->ss_blksz = blksz; in sdhost_cmd()
1439 ((blksz * nblks) <= SDHOST_BOUNCESZ)) { in sdhost_cmd()
1447 nblks * blksz); in sdhost_cmd()
1451 ss->ss_rcnt = nblks * blksz; in sdhost_cmd()
1455 PUT16(ss, REG_BLKSZ, BLKSZ_BOUNDARY_512K | blksz); in sdhost_cmd()
1462 PUT16(ss, REG_BLKSZ, blksz); in sdhost_cmd()
[all...]
/titanic_51/usr/src/boot/sys/boot/zfs/
H A Dzfs.c373 size_t res, size, remainder, rb_size, blksz; in vdev_read() local
393 blksz = size; in vdev_read()
401 blksz = rb_size - remainder; in vdev_read()
410 if (bytes < blksz) in vdev_read()
411 blksz = bytes; in vdev_read()
413 memcpy(buf, rb_buf + remainder, blksz); in vdev_read()
414 buf = (void *)((uintptr_t)buf + blksz); in vdev_read()
415 bytes -= blksz; in vdev_read()
417 blksz = rb_size; in vdev_read()
/titanic_51/usr/src/uts/common/io/comstar/lu/stmf_sbd/
H A Dsbd_zvol.c137 uint64_t blksz = sl->sl_blksize; in sbd_zvol_numsegs() local
141 numsegs = (P2ROUNDUP(endoff, blksz) - P2ALIGN(off, blksz)) / blksz; in sbd_zvol_numsegs()
/titanic_51/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.c861 uint64_t blkid, blksz; /* the block id this object dnode is in */ in dnode_get() local
866 blksz = mdn->dn_datablkszsec << SPA_MINBLOCKSHIFT; in dnode_get()
867 epbs = zfs_log2(blksz) - DNODE_SHIFT; in dnode_get()
878 if (dnode_buf && blksz == 1<<DNODE_BLOCK_SHIFT) { in dnode_get()
885 stack += blksz; in dnode_get()
1825 int blksz, length, movesize; in zfs_read() local
1843 blksz = DNODE->dn_datablkszsec << SPA_MINBLOCKSHIFT; in zfs_read()
1851 if (blksz > SPA_MAXBLOCKSIZE) { in zfs_read()
1867 uint64_t blkid = filepos / blksz; in zfs_read()
1872 file_start = blkid * blksz; in zfs_read()
[all...]
/titanic_51/usr/src/uts/common/fs/zfs/
H A Dvdev_disk.c245 vdev_disk_get_space(vdev_t *vd, uint64_t capacity, uint_t blksz) in vdev_disk_get_space() argument
266 avail_space = (capacity - efi_altern_lba) * blksz; in vdev_disk_get_space()
301 uint64_t capacity = 0, blksz = 0, pbsize; in vdev_disk_open() local
533 blksz = dkmext->dki_lbsize; in vdev_disk_open()
541 blksz = dkm->dki_lbsize; in vdev_disk_open()
542 pbsize = blksz; in vdev_disk_open()
562 *max_psize += vdev_disk_get_space(vd, capacity, blksz); in vdev_disk_open()
H A Ddmu_send.c234 uint64_t object, uint64_t offset, int blksz, const blkptr_t *bp, void *data) in dump_write() argument
246 dsp->dsa_last_data_offset = offset + blksz - 1; in dump_write()
265 drrw->drr_length = blksz; in dump_write()
286 if (dump_record(dsp, data, blksz) != 0) in dump_write()
293 int blksz, const blkptr_t *bp) in dump_write_embedded() argument
311 drrw->drr_length = blksz; in dump_write_embedded()
326 dump_spill(dmu_sendarg_t *dsp, uint64_t object, int blksz, void *data) in dump_spill() argument
340 drrs->drr_length = blksz; in dump_spill()
343 if (dump_record(dsp, data, blksz) != 0) in dump_spill()
580 int blksz in do_dump() local
602 int blksz = BP_GET_LSIZE(bp); do_dump() local
613 int blksz = dblkszsec << SPA_MINBLOCKSHIFT; do_dump() local
621 int blksz = dblkszsec << SPA_MINBLOCKSHIFT; do_dump() local
[all...]
H A Dzfs_vnops.c588 int blksz = zp->z_blksz; in zfs_read() local
592 if ((ISP2(blksz))) { in zfs_read()
593 nblk = (P2ROUNDUP(offset + n, blksz) - P2ALIGN(offset, in zfs_read()
594 blksz)) / blksz; in zfs_read()
596 ASSERT(offset + n <= blksz); in zfs_read()
609 blksz), 0, blksz); in zfs_read()
4335 uint_t blksz; in zfs_putpage() local
4357 blksz in zfs_putpage()
5100 int blksz; zfs_reqzcbuf() local
[all...]
H A Ddnode.c1533 int blksz, blkshift, head, tail; in dnode_free_range() local
1538 blksz = dn->dn_datablksz; in dnode_free_range()
1550 if (ISP2(blksz)) { in dnode_free_range()
1551 head = P2NPHASE(off, blksz); in dnode_free_range()
1552 blkoff = P2PHASE(off, blksz); in dnode_free_range()
1557 if (off == 0 && len >= blksz) { in dnode_free_range()
1568 } else if (off >= blksz) { in dnode_free_range()
1573 head = blksz - off; in dnode_free_range()
1580 ASSERT3U(blkoff + head, ==, blksz); in dnode_free_range()
1610 ASSERT(ISP2(blksz)); in dnode_free_range()
[all...]
H A Ddmu_diff.c133 int blksz = BP_GET_LSIZE(bp); in diff_cb() local
142 for (i = 0; i < blksz >> DNODE_SHIFT; i++) { in diff_cb()
/titanic_51/usr/src/boot/sys/boot/efi/libefi/
H A Defipart.c1010 size_t blkoff, blksz; in efipart_realstrategy() local
1082 blksz = blkio->Media->BlockSize - blkoff; in efipart_realstrategy()
1087 if (size < blksz) in efipart_realstrategy()
1088 blksz = size; in efipart_realstrategy()
1089 bcopy(blkbuf + blkoff, buf, blksz); in efipart_realstrategy()
1090 buf += blksz; in efipart_realstrategy()
1091 size -= blksz; in efipart_realstrategy()
1094 blksz = blkio->Media->BlockSize; in efipart_realstrategy()
/titanic_51/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_nfs.c559 int fltype, mode, nlinks, uid, gid, size, blksz; in detail_fattr() local
568 blksz = getxdr_long(); in detail_fattr()
583 size, blksz, blocks); in detail_fattr()
/titanic_51/usr/src/uts/common/fs/specfs/
H A Dspecvnops.c1839 size_t blksz; in spec_getapage() local
1896 blksz = PAGESIZE; in spec_getapage()
1899 blksz = adj_klustsize; in spec_getapage()
1901 blksz = in spec_getapage()
1906 &io_len1, blkoff, blksz, 0); in spec_getapage()
1945 blksz = adj_klustsize; in spec_getapage()
1947 blksz = MIN(size - off2, adj_klustsize); in spec_getapage()
1950 &io_len2, off2, blksz, 1); in spec_getapage()
2119 size_t blksz; in spec_putapage() local
2138 blksz in spec_putapage()
[all...]
/titanic_51/usr/src/lib/libast/common/include/
H A Dsfio_t.h49 size_t blksz; /* preferred block size */ \
/titanic_51/usr/src/contrib/ast/src/lib/libast/include/
H A Dsfio_t.h49 size_t blksz; /* preferred block size */ \

12