Home
last modified time | relevance | path

Searched refs:blksize (Results 1 – 25 of 78) sorted by relevance

1234

/illumos-gate/usr/src/test/smbclient-tests/cmd/rw_mmap/
H A Drw_mmap.c49 ssize_t blksize; in main() local
127 blksize = 4096; in main()
138 blksize = read(fid, buf, blksize); in main()
143 if (blksize == 0) in main()
149 p += blksize; in main()
153 blksize = 4096; in main()
161 blksize = read(fid, buf, blksize); in main()
172 p += blksize; in main()
176 blksize = 4096; in main()
184 blksize = write(fid, buf, blksize); in main()
[all …]
/illumos-gate/usr/src/test/smbclient-tests/cmd/mkfile_mmap/
H A Dmkfile_mmap.c50 size_t blksize; in main() local
126 blksize = 64 * K * K; in main()
127 numblks = (filesize + blksize - 1) / blksize; in main()
130 offset = i*blksize; in main()
131 if (offset + blksize > filesize) in main()
132 blksize = filesize - offset; in main()
135 file_addr = mmap(NULL, blksize, in main()
145 q = file_addr + blksize - K; in main()
154 (i * blksize) + (p - file_addr)); in main()
159 if (msync(file_addr, blksize, MS_SYNC) == -1) { in main()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/compression/
H A Dcompress_003_pos.ksh59 typeset -i blksize=512
75 (( blksize = 512 ))
76 while (( blksize <= 131072 )); do
77 log_must zfs set recordsize=$blksize $fs
79 if (( offset > blksize )); then
80 (( offset = offset % blksize ))
88 (( fsize = blksize + offset ))
91 (( blksize = blksize * 2 ))
H A Dcompress_004_pos.ksh82 typeset -i blksize=512
99 (( blksize = 512 ))
100 while (( blksize <= 131072 )); do
101 log_must zfs set recordsize=$blksize $fs
105 if (( fsize > blksize )); then
106 (( fsize = fsize % blksize ))
116 (( blknum = avail / blksize ))
125 (( fsize = blknum * blksize ))
128 (( blksize = blksize * 2 ))
/illumos-gate/usr/src/cmd/boot/fiocompress/
H A Dfiocompress.c68 size_t blksize = 8192; in main() local
91 blksize = atoi(optarg); in main()
92 if (blksize == 0 || (blksize & (blksize-1))) { in main()
113 do_comp(blksize); in main()
173 do_comp(size_t blksize) in do_comp() argument
193 hdr->ch_blksize = blksize; in do_comp()
249 size_t blks, blksize; in do_decomp() local
273 dstbuf = malloc(blksize); in do_decomp()
282 dlen = blksize; in do_decomp()
290 if (dlen != blksize) { in do_decomp()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_tftp.c32 int blksize; member
52 opts.blksize = 512; in interpret_tftp()
65 tt->blksize = opts.blksize; in interpret_tftp()
70 opts.blksize = tt->blksize; in interpret_tftp()
94 blocksize < opts.blksize ? " (last block)":""); in interpret_tftp()
109 tt->blksize = opts.blksize; in interpret_tftp()
139 blocksize < opts.blksize ? " (last block)" : ""); in interpret_tftp()
168 tt->blksize = opts.blksize; in interpret_tftp()
241 int blksize = strtol(buf + i, NULL, 0); in tftp_parse_oack() local
243 if (blksize >= 8) in tftp_parse_oack()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_fdio.c192 size_t blksize; in fdio_bdev_read() local
202 blksize = fdio_bdev_info(fdp->fd_fd); in fdio_bdev_read()
205 off64_t devoff = off & ~(blksize - 1); in fdio_bdev_read()
206 size_t blkoff = off & (blksize - 1); in fdio_bdev_read()
209 if (pread64(fdp->fd_fd, blk, blksize, devoff) != blksize) in fdio_bdev_read()
236 size_t blksize; in fdio_bdev_write() local
246 blksize = fdio_bdev_info(fdp->fd_fd); in fdio_bdev_write()
249 off64_t devoff = off & ~(blksize - 1); in fdio_bdev_write()
250 size_t blkoff = off & (blksize - 1); in fdio_bdev_write()
253 if (pread64(fdp->fd_fd, blk, blksize, devoff) != blksize) in fdio_bdev_write()
[all …]
/illumos-gate/usr/src/test/smbclient-tests/cmd/prot_mmap/
H A Dprot_mmap.c52 size_t blksize; in main() local
165 blksize = 64 * 1024 * 1024; in main()
166 numblks = (filesize + blksize - 1) / blksize; in main()
169 offset = (i % numblks) * blksize; in main()
170 if (offset + blksize > filesize) in main()
171 blksize = filesize - offset; in main()
174 src_addr = mmap(NULL, blksize, prot0, mflags0, src_fid, offset); in main()
188 memcpy(des_addr, src_addr, blksize); in main()
190 if (msync(des_addr, blksize, MS_SYNC) == -1) { in main()
196 if (munmap(des_addr, blksize) == -1) { in main()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmemalign.c66 size_t blksize; /* Current (shrinking) block size */ in memalign() local
127 blksize = SIZE(blk); in memalign()
128 CLRBITS01(blksize); in memalign()
158 blksize -= frag_size; in memalign()
159 SIZE(aligned_blk) = blksize | BIT0; in memalign()
169 frag_size = blksize - nbytes; in memalign()
174 blksize = SIZE(aligned_blk); in memalign()
177 SETOLD01(SIZE(aligned_blk), blksize); in memalign()
/illumos-gate/usr/src/test/smbclient-tests/cmd/cp_mmap/
H A Dcp_mmap.c50 size_t blksize; in main() local
97 blksize = pagesize; in main()
101 blksize = 64 * 1024 * 1024; /* mmap a block each time */ in main()
141 numblks = (filesize + blksize - 1) / blksize; in main()
144 offset = (i % numblks) * blksize; in main()
145 if (offset + blksize > filesize) in main()
148 len = blksize; in main()
/illumos-gate/usr/src/cmd/cdrw/
H A Dtrackio.c264 int blksize, i, sz_read, rem; in write_track() local
277 blksize = DATA_TRACK_BLKSIZE; in write_track()
279 blksize = AUDIO_TRACK_BLKSIZE; in write_track()
282 init_tio_data(NBLKS_PER_BUF*blksize); in write_track()
303 while ((rem = (sz_read % blksize)) != 0) { in write_track()
313 if ((sz_read + (blksize - rem)) > in write_track()
330 (blksize - rem)); in write_track()
344 ret = blksize - rem; in write_track()
463 if ((sz_read + (blksize - rem)) > in write_track()
476 (blksize - rem)); in write_track()
[all …]
H A Dcopycd.c63 int blksize; in read_data_track() local
79 blksize = 512; in read_data_track()
82 blksize = 2048; in read_data_track()
86 buf = (uchar_t *)my_zalloc(READ_BURST * blksize); in read_data_track()
105 read_size = read_chunk * blksize; in read_data_track()
198 int blksize, i; in copy_cd() local
286 blksize = 2048; in copy_cd()
289 blksize = 2352; in copy_cd()
298 (end_tno > 1) ? "s" : "", (long)((total_nblks*blksize)/1024)); in copy_cd()
300 if ((ret = check_avail_temp_space(total_nblks*blksize)) != 0) { in copy_cd()
/illumos-gate/usr/src/cmd/ndmpstat/
H A Dndmpstat_main.c66 static int blksize = 1024; variable
200 adjprintf(" %*u", 4, (unsigned)(DELTA(rdisk) / blksize)); in dostats()
201 adjprintf(" %*u", 4, (unsigned)(DELTA(wdisk) / blksize)); in dostats()
202 adjprintf(" %*u", 4, (unsigned)(DELTA(rtape) / blksize)); in dostats()
203 adjprintf(" %*u", 4, (unsigned)(DELTA(wtape) / blksize)); in dostats()
208 rbytes /= blksize; in dostats()
209 wbytes /= blksize; in dostats()
/illumos-gate/usr/src/test/smbclient-tests/cmd/no_close/
H A Dno_close.c40 size_t blksize; in main() local
74 blksize = filesize / 4; in main()
75 for (i = 0, offset = 0; i < 4; i++, offset += blksize) { in main()
76 memset(file_addr + offset, c[i], blksize); in main()
/illumos-gate/usr/src/test/smbclient-tests/cmd/close_wr/
H A Dclose_wr.c43 size_t blksize; in main() local
89 blksize = filesize / 4; in main()
90 for (i = 0, p = file_addr; i < 4; i++, p += blksize) { in main()
91 memset(p, c[i], blksize); in main()
/illumos-gate/usr/src/cmd/nvmeadm/
H A Dnvmeadm_ofmt.c42 uint_t blksize; in nvme_list_ofmt_cb() local
48 blksize = 1 << lbaf->lbaf_lbads; in nvme_list_ofmt_cb()
99 val = npa->npa_idns->id_nsize * blksize; in nvme_list_ofmt_cb()
103 val = npa->npa_idns->id_ncap * blksize; in nvme_list_ofmt_cb()
107 val = npa->npa_idns->id_nuse * blksize; in nvme_list_ofmt_cb()
/illumos-gate/usr/src/man/man9p/
H A DMakefile30 blksize.9p \
32 device-blksize.9p \
47 blksize.9p := LINKSRC = size.9p
48 device-blksize.9p := LINKSRC = size.9p
/illumos-gate/usr/src/uts/common/os/
H A Ddriver.c494 uint_t blksize; in bdev_size() local
501 if ((blksize = e_ddi_getprop(dev, VBLK, "blksize", in bdev_size()
503 blksize = e_ddi_getprop(DDI_DEV_T_ANY, VBLK, "device-blksize", in bdev_size()
506 if (blksize >= DEV_BSIZE) in bdev_size()
507 return (nblocks * (blksize / DEV_BSIZE)); in bdev_size()
509 return (nblocks / (DEV_BSIZE / blksize)); in bdev_size()
519 uint_t blksize; in bdev_Size() local
526 if ((blksize = e_ddi_getprop(dev, VBLK, "blksize", in bdev_Size()
531 if (blksize >= DEV_BSIZE) in bdev_Size()
532 return (nblocks * (blksize / DEV_BSIZE)); in bdev_Size()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/zvol/zvol_misc/
H A Dzvol_misc_006_pos.ksh70 typeset blksize=$(zfs get -H -o value volblocksize $TESTPOOL/$TESTVOL)
72 if [[ $blksize != "128K" ]]; then
73 log_fail "ZFS volume $TESTPOOL/$TESTVOL volblocksize=$blksize"
/illumos-gate/usr/src/uts/common/io/comstar/lu/stmf_sbd/
H A Dsbd_zvol.c244 uint64_t blksize; in sbd_zvol_alloc_write_bufs() local
264 blksize = sl->sl_blksize; in sbd_zvol_alloc_write_bufs()
265 ASSERT(ISP2(blksize)); in sbd_zvol_alloc_write_bufs()
266 blkshift = highbit(blksize - 1); in sbd_zvol_alloc_write_bufs()
294 seglen = P2NPHASE(offset, blksize); in sbd_zvol_alloc_write_bufs()
296 seglen = blksize; in sbd_zvol_alloc_write_bufs()
/illumos-gate/usr/src/cmd/fs.d/hsfs/labelit/
H A Dlabelit.c83 int blksize; variable
371 blksize = HSV_BLK_SIZE(hs_buf); in prntlabel()
387 blksize = ISO_BLK_SIZE(iso_buf); in prntlabel()
403 blksize = ISO_BLK_SIZE(unix_buf); in prntlabel()
432 printf("Logical block size is %d\n", blksize); in prntlabel()
/illumos-gate/usr/src/cmd/fs.d/hsfs/fstyp/
H A Dfstyp.c401 int blksize; in get_attr() local
420 blksize = HSV_BLK_SIZE(h->hs_buf); in get_attr()
437 blksize = ISO_BLK_SIZE(h->iso_buf); in get_attr()
454 blksize = ISO_BLK_SIZE(h->unix_buf); in get_attr()
482 ADD_UINT64(h, "logical_block_size", blksize); in get_attr()
/illumos-gate/usr/src/pkg/manifests/
H A Dsystem-kernel.man9p.inc18 link path=usr/share/man/man9p/blksize.9p target=size.9p
21 link path=usr/share/man/man9p/device-blksize.9p target=size.9p
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dtftpprivate.h50 extern int blksize;
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_data.c860 size_t blksize; in eib_data_prepare_sgl() local
985 blksize = MBLKL(nmp) - pending_hdr; in eib_data_prepare_sgl()
986 bcopy(nmp->b_rptr + pending_hdr, bufp, blksize); in eib_data_prepare_sgl()
987 bufp += blksize; in eib_data_prepare_sgl()
1039 blksize = MBLKL(nmp) - skip; in eib_data_prepare_sgl()
1040 if (blksize > avail) { in eib_data_prepare_sgl()
1045 bcopy(nmp->b_rptr + skip, bufp, blksize); in eib_data_prepare_sgl()
1047 bufp += blksize; in eib_data_prepare_sgl()
1048 avail -= blksize; in eib_data_prepare_sgl()

1234