Home
last modified time | relevance | path

Searched refs:bsize (Results 1 – 25 of 143) sorted by path

123456

/illumos-gate/usr/src/boot/common/
H A Dbcache.c97 bcache_init(size_t nblks, size_t bsize) in bcache_init() argument
101 bcache_blksize = bsize; in bcache_init()
H A Dbootstrap.h75 void bcache_init(size_t nblks, size_t bsize);
/illumos-gate/usr/src/boot/i386/libi386/
H A Dbiosdisk.c1060 bsize = bd->bd_sectorsize * x - blkoff; in bd_realstrategy()
1061 if (rest < bsize) in bd_realstrategy()
1062 bsize = rest; in bd_realstrategy()
1069 bcopy(bbuf + blkoff, buf, bsize); in bd_realstrategy()
1079 bsize = bd->bd_sectorsize - blkoff; in bd_realstrategy()
1080 bsize = min(bsize, rest); in bd_realstrategy()
1088 bsize = rest; in bd_realstrategy()
1092 bsize = bd->bd_sectorsize * x; in bd_realstrategy()
1098 bcopy(buf, bbuf + blkoff, bsize); in bd_realstrategy()
1111 buf += bsize; in bd_realstrategy()
[all …]
/illumos-gate/usr/src/boot/libsa/
H A Ddosfs.c303 off &= f->fs->bsize - 1; in dos_read()
321 if (!clus || (n = f->fs->bsize - off) > cnt) in dos_read()
512 fs->bsize = secbyt(fs->spc); in parsebs()
513 fs->bshift = ffs(fs->bsize) - 1; in parsebs()
H A Ddosfs.h102 u_int bsize; /* cluster size in bytes */ member
/illumos-gate/usr/src/boot/libsa/zfs/
H A Dzfs.c209 size_t bsize = fp->f_dnode.dn_datablkszsec << SPA_MINBLOCKSHIFT; in zfs_readdir() local
236 fp->f_seekp = bsize; in zfs_readdir()
237 fp->f_zap_leaf = malloc(bsize); in zfs_readdir()
241 fp->f_zap_leaf, bsize); in zfs_readdir()
249 if (fp->f_seekp >= bsize) in zfs_readdir()
278 zl.l_bs = ilog2(bsize); in zfs_readdir()
287 chunk = fp->f_seekp & (bsize - 1); in zfs_readdir()
289 fp->f_seekp = (fp->f_seekp & ~(bsize - 1)) + bsize; in zfs_readdir()
295 if (fp->f_seekp >= bsize * fp->f_num_leafs) in zfs_readdir()
299 fp->f_zap_leaf, bsize); in zfs_readdir()
H A Dzfsimpl.c388 uint64_t bsize; in vdev_indirect_mapping_entry() local
393 if (size > bsize) { in vdev_indirect_mapping_entry()
2344 if (bsize > SPA_MAXBLOCKSIZE) { in dnode_read()
2358 newbuflen = offset > bsize ? 0 : MIN(buflen, bsize - offset); in dnode_read()
2368 uint64_t bn = offset / bsize; in dnode_read()
2369 int boff = offset % bsize; in dnode_read()
2414 i = bsize - boff; in dnode_read()
2728 z.zap_block_shift = ilog2(bsize); in fzap_lookup()
2823 z.zap_block_shift = ilog2(bsize); in fzap_list()
2832 zl.l_phys = malloc(bsize); in fzap_list()
[all …]
/illumos-gate/usr/src/cmd/cdrw/
H A Dcopycd.c136 uint_t bsize; in ensure_media_space() local
148 &bsize); in ensure_media_space()
165 nblks_avail = read_format_capacity(target->d_fd, &bsize); in ensure_media_space()
H A Ddevice.c258 uint_t bsize; in get_device() local
262 read_format_capacity(fd, &bsize)); in get_device()
H A Ddumpinfo.c43 uint_t bsize; in info() local
92 cap = read_format_capacity(target->d_fd, &bsize); in info()
H A Dmisc_scsi.c175 uint_t bsize; in build_track_info() local
186 &bsize); in build_track_info()
H A Dmmc.c648 read_format_capacity(int fd, uint_t *bsize) in read_format_capacity() argument
669 *bsize = (uint16_t)(((uchar_t)buf[10] << 8) + (uchar_t)buf[11]); in read_format_capacity()
H A Dmmc.h154 uint32_t read_format_capacity(int fd, uint_t *bsize);
H A Dtrackio.c86 init_tio_data(int bsize) in init_tio_data() argument
92 tio_iobs[i].iob_buf = (uchar_t *)my_zalloc(bsize); in init_tio_data()
93 tio_iobs[i].iob_total_size = bsize; in init_tio_data()
H A Dwrite_image.c103 uint_t bsize; in write_image() local
116 &bsize)) <= 0) { in write_image()
130 &bsize); in write_image()
/illumos-gate/usr/src/cmd/cmd-inet/common/
H A Dkcmd.c113 int bsize = 0; in kcmd() local
117 bsize = strlen(cmd) + strlen(remuser) + 64; in kcmd()
118 if ((cksumbuf = malloc(bsize)) == 0) { in kcmd()
123 (void) snprintf(cksumbuf, bsize, "%u:", ntohs(rport)); in kcmd()
124 if (strlcat(cksumbuf, cmd, bsize) >= bsize) { in kcmd()
129 if (strlcat(cksumbuf, remuser, bsize) >= bsize) { in kcmd()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Drtquery.c118 int ch, bsize, soc; in main() local
292 for (bsize = MAX_RCVBUF; ; bsize -= 1024) { in main()
294 &bsize, sizeof (bsize)) == 0) in main()
296 if (bsize <= MIN_RCVBUF) { in main()
/illumos-gate/usr/src/cmd/ctfconvert/
H A Dctfconvert.c249 uint_t bsize = CTF_CONVERT_DEFAULT_BATCHSIZE; in main() local
275 bsize = (uint_t)argno; in main()
365 if ((err = ctf_convert_set_batchsize(cch, bsize)) != 0) in main()
/illumos-gate/usr/src/cmd/du/
H A Ddu.c532 u_longlong_t bsize; in printsize() local
534 bsize = Aflg ? 1 : DEV_BSIZE; in printsize()
539 nicenum_scale(blocks, bsize, buf, sizeof (buf), 0); in printsize()
/illumos-gate/usr/src/cmd/filesync/
H A Daction.c1070 int bsize; /* block-size for file */ in copy() local
1098 bsize = checksparse(ifd); in copy()
1099 if (bsize > 0 && bsize <= COPY_BSIZE) in copy()
1103 bsize = COPY_BSIZE; in copy()
1159 count = read(ifd, (char *) inbuf, bsize); in copy()
1167 if (sparse && count == bsize) { in copy()
/illumos-gate/usr/src/cmd/fs.d/udfs/common/
H A Dud_lib.c345 int32_t index, bsize, shift, end_index; in ud_get_fs_bsize() local
372 for (bsize = DEV_BSIZE, shift = 0; in ud_get_fs_bsize()
373 bsize <= MAXBSIZE; bsize <<= 1, shift++) { in ud_get_fs_bsize()
384 if (bsize <= 2048) { in ud_get_fs_bsize()
386 offset * 2048 / bsize; in ud_get_fs_bsize()
389 offset / (bsize / 2048); in ud_get_fs_bsize()
407 off = (uint64_t)*avd_loc * bsize; in ud_get_fs_bsize()
412 if (ud_read_dev(h, off, buf, bsize) != 0) { in ud_get_fs_bsize()
431 if (bsize > MAXBSIZE) { in ud_get_fs_bsize()
432 bsize = 0; in ud_get_fs_bsize()
[all …]
/illumos-gate/usr/src/cmd/fs.d/udfs/fsdb/
H A Dfsdb.c113 uint32_t bsize; in main() local
184 bsize = udh->udfs.lbsize; in main()
185 bmask = bsize - 1; in main()
187 while ((bsize >> l2d) > DEV_BSIZE) { in main()
H A Dfsdb_yacc.y36 extern int32_t bsize, bmask, l2d, l2b;
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dpass3b.c239 size_t size, bsize; in pass3bcheck() local
244 bsize = size = sblock.fs_fsize * idesc->id_numfrags; in pass3bcheck()
251 bp = getdatablk(idesc->id_blkno, bsize); in pass3bcheck()
/illumos-gate/usr/src/cmd/fs.d/ufs/fsirand/
H A Dfsirand.c68 int bsize; in main() local
132 bsize = INOPB(fs) * sizeof (struct dinode); in main()
145 n = read(fd, (char *)dibuf, bsize); in main()
146 if (n != bsize) { in main()
170 n = write(fd, (char *)dibuf, bsize); in main()
171 if (n != bsize) { in main()

123456