Home
last modified time | relevance | path

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

123456

/illumos-gate/usr/src/cmd/sgs/common/
H A Dalist.c107 Aliste bsize; in alist_insert() local
114 bsize = size * init_arritems; in alist_insert()
115 bsize = S_ROUND(bsize, sizeof (void *)); in alist_insert()
116 bsize = ALIST_OFF_DATA + bsize; in alist_insert()
117 if ((lp = malloc((size_t)bsize)) == NULL) in alist_insert()
133 Aliste bsize; in alist_insert() local
136 bsize = S_ROUND(bsize, sizeof (void *)); in alist_insert()
137 bsize = ALIST_OFF_DATA + bsize; in alist_insert()
196 Aliste bsize; in aplist_insert() local
214 Aliste bsize; in aplist_insert() local
[all …]
/illumos-gate/usr/src/test/zfs-tests/cmd/file_trunc/
H A Dfile_trunc.c53 static size_t bsize = BSIZE; variable
107 count = fsize / bsize; in parse_options()
112 bsize = atoi(optarg); in parse_options()
176 buf = (char *)calloc(1, bsize); in do_write()
177 rbuf = (char *)calloc(1, bsize); in do_write()
190 if (write(fd, buf, bsize) < bsize) { in do_write()
201 if (read(fd, rbuf, bsize) < bsize) { in do_write()
206 if (memcmp(buf, rbuf, bsize) != 0) { in do_write()
/illumos-gate/usr/src/test/smbclient-tests/cmd/file_trunc/
H A Dfile_trunc.c48 static size_t bsize = BSIZE; variable
104 count = fsize / bsize; in parse_options()
109 bsize = atoi(optarg); in parse_options()
173 buf = (char *)calloc(1, bsize); in do_write()
174 rbuf = (char *)calloc(1, bsize); in do_write()
187 if (write(fd, buf, bsize) < bsize) { in do_write()
198 if (read(fd, rbuf, bsize) < bsize) { in do_write()
203 if (memcmp(buf, rbuf, bsize) != 0) { in do_write()
/illumos-gate/usr/src/uts/common/rpc/
H A Dtypes.h86 #define mem_alloc(bsize) malloc(bsize) argument
87 #define mem_free(ptr, bsize) free(ptr) argument
91 #define mem_alloc(bsize) kmem_alloc(bsize, KM_SLEEP) argument
92 #define mem_free(ptr, bsize) kmem_free(ptr, bsize) argument
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dnblk.c41 nblk(fsblkcnt_t size, ulong_t bsize, ulong_t frsize) in nblk() argument
46 if (size == 0 || bsize == 0) in nblk()
53 ind = howmany(bsize, sizeof (daddr_t)); in nblk()
57 tot = howmany(size, bsize); in nblk()
70 roundup(size, bsize); in nblk()
80 tot *= howmany(bsize, DEV_BSIZE); in nblk()
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dufs_bio.h62 daddr_t blkno, long bsize);
66 daddr_t blkno, long bsize, int flag);
68 #define UFS_BREAD(ufsvfsp, dev, blkno, bsize) \ argument
69 bread_common(ufsvfsp, dev, blkno, bsize)
80 #define UFS_GETBLK(ufsvfsp, dev, blkno, bsize) \ argument
81 getblk_common(ufsvfsp, dev, blkno, bsize, /* errflg */ 0)
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_bmap.c320 long bsize = VBSIZE(vp); in bmap_write() local
369 if (osize < bsize && osize > 0) { in bmap_write()
394 (uint_t)bsize, S_OTHER, &fbp); in bmap_write()
417 ip->i_blocks += btodb(bsize - osize); in bmap_write()
487 nsize = bsize; in bmap_write()
669 added_sectors += btodb(bsize); in bmap_write()
670 ip->i_blocks += btodb(bsize); in bmap_write()
803 PAGESIZE, u_offset_t) < bsize) { in bmap_write()
807 (uint_t)bsize, &fbp); in bmap_write()
873 added_sectors += btodb(bsize); in bmap_write()
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dbf.c106 size_t bsize; local
141 if (bsize > 0)
143 bfp->bf_buf = (char *) sm_malloc(bsize);
159 bfp->bf_bufsize = bsize;
219 bfopen(filename, fmode, bsize, flags) in bfopen()
222 size_t bsize;
247 info.bi_bsize = bsize;
830 int bsize; local
837 bsize = *((int *) valp);
838 bfp->bf_bufsize = bsize;
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetxby_door.h65 nss_status_t _nsc_trydoorcall(void **dptr, size_t *bsize, size_t *dsize);
66 nss_status_t _nsc_trydoorcall_ext(void **dptr, size_t *bsize, size_t *dsize);
67 int _nsc_getdoorbuf(void **dptr, size_t *bsize);
68 void _nsc_resizedoorbuf(size_t bsize);
/illumos-gate/usr/src/uts/common/os/
H A Dbio.c226 ASSERT(bp->b_bcount == bsize); in bread_common()
263 bp->b_bcount = bsize; in breada()
277 rabp->b_bcount = bsize; in breada()
705 nbp->b_bcount = bsize; in getblk_common()
753 ngeteblk(long bsize) in ngeteblk() argument
761 bp->b_bufsize = bsize; in ngeteblk()
766 bp->b_bcount = bsize; in ngeteblk()
1450 bio_getfreeblk(long bsize) in bio_getfreeblk() argument
1474 bp->b_bufsize = bsize; in bio_getfreeblk()
1552 bp->b_bufsize = bsize; in bio_getfreeblk()
[all …]
H A Ddkioc_free_util.c158 uint_t bsize = 1U << dfi->dfi_bshift; in dfl_iter() local
177 if (!IS_P2ALIGNED(dfi->dfi_max_bytes, bsize)) { in dfl_iter()
183 if (dfi->dfi_align == 0 || !IS_P2ALIGNED(dfi->dfi_align, bsize)) { in dfl_iter()
189 if (!IS_P2ALIGNED(dfi->dfi_max_ext_bytes, bsize)) { in dfl_iter()
355 const uint64_t bsize = (uint64_t)1 << dfi->dfi_bshift; in adjust_exts() local
374 if (start < dfl->dfl_offset || start > (UINT64_MAX - bsize)) { in adjust_exts()
390 end = P2ALIGN(end, bsize); in adjust_exts()
/illumos-gate/usr/src/cmd/genmsg/
H A Dgenmsg.l433 int bsize = BUFSIZ; /* growing buffer size */
437 if ((buf = ptr = malloc(bsize)) == NULL) {
442 if (i == bsize) {
443 bsize += BUFSIZ;
444 if ((buf = realloc(buf, bsize)) == NULL) {
482 int bsize = BUFSIZ; /* growing buffer size */
486 if ((buf = ptr = malloc(bsize)) == NULL) {
493 if (i == bsize) {
494 bsize += BUFSIZ;
495 if ((buf = realloc(buf, bsize)) == NULL) {
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Ddockspace.c160 if (fs_tab->bsize != 0) in fsys_stat()
172 fs_tab->bsize = svfsb.f_bsize; in fsys_stat()
255 fs_tab->bsize, in readmap()
318 nblk(fs_tab->bsize, in readmap()
319 fs_tab->bsize, in readmap()
323 fs_tab->bsize, in readmap()
334 fs_tab->bsize, in readmap()
337 fs_tab->bsize, in readmap()
/illumos-gate/usr/src/cmd/fs.d/ufs/newfs/
H A Dnewfs.c115 static int bsize; /* block size */ variable
255 if (bsize < MINBSIZE || bsize > MAXBSIZE) in main()
510 fsize = bsize; in main()
520 fsize = bsize/8; in main()
573 maxipg = roundup(bsize * NBBY / 3, in main()
574 bsize / sizeof (struct inode)); in main()
793 if (bsize == 0) in getdiskbydev()
794 bsize = DESBLKSIZE; in getdiskbydev()
819 maxcontig /= bsize; in getdiskbydev()
1099 bsize = INOPB(fs) * sizeof (struct dinode); in notrand()
[all …]
/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()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dstk.c215 register size_t bsize; in stkopen() local
232 bsize = init+sizeof(struct frame); in stkopen()
235 bsize = roundof(bsize,STK_FSIZE/16); in stkopen()
238 bsize = roundof(bsize,STK_FSIZE); in stkopen()
239 bsize -= sizeof(struct frame); in stkopen()
240 if(!(fp=newof((char*)0,struct frame, 1,bsize))) in stkopen()
245 count(addsize,sizeof(*fp)+bsize); in stkopen()
251 fp->end = sp->stkend = cp+bsize; in stkopen()
252 if(!sfnew(stream,cp,bsize,-1,SF_STRING|SF_WRITE|SF_STATIC|SF_EOF)) in stkopen()
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/
H A Dhash.c173 (info && info->bsize ? info->bsize : DEF_BUCKET_SIZE)) !=
207 csize = info->cachesize / hashp->hdr.bsize;
209 csize = DEF_CACHESIZE / hashp->hdr.bsize;
253 "BUCKET SIZE ", hashp->hdr.bsize,
331 hashp->hdr.bsize = DEF_BUCKET_SIZE;
342 hashp->hdr.bsize = statbuf.st_blksize;
346 if (info->bsize) {
348 hashp->hdr.bshift = __log2(info->bsize);
350 if (hashp->hdr.bsize > MAX_BSIZE) {
1044 P_32_COPY(srcp->bsize, destp->bsize);
[all …]
H A Dhash_page.c134 key->size = hashp->hdr.bsize -
335 delta = hashp->hdr.bsize - DATA_OFF(pagep, ndx);
362 (u_int8_t *)pagep + hashp->hdr.bsize - len;
446 off = hashp->hdr.bsize;
452 memcpy(temp_pagep, old_pagep, hashp->hdr.bsize);
464 off = hashp->hdr.bsize;
778 OFFSET(pagep) = hashp->hdr.bsize - 1;
882 max = hashp->hdr.bsize >> 2; /* divide by 4 bytes */
913 max = hashp->hdr.bsize >> 2; /* divide by 4 bytes */
1040 0xFF, hashp->hdr.bsize - clearbytes);
[all …]
/illumos-gate/usr/src/lib/varpd/libvarpd/common/
H A Dlibvarpd_arp.c234 size_t bsize, plen; in libvarpd_plugin_proxy_ndp() local
283 bsize = vaq->vaq_bsize; in libvarpd_plugin_proxy_ndp()
284 bsize -= otl->otl_hdrsize; in libvarpd_plugin_proxy_ndp()
285 assert(bsize > sizeof (ip6_t)); in libvarpd_plugin_proxy_ndp()
314 bsize -= sizeof (ip6_t); in libvarpd_plugin_proxy_ndp()
316 if (bsize < plen) { in libvarpd_plugin_proxy_ndp()
614 size_t bsize = 0; in libvarpd_inject_arp() local
629 eh = (struct ether_header *)(buf + bsize); in libvarpd_inject_arp()
630 bsize += sizeof (struct ether_header); in libvarpd_inject_arp()
636 ea = (struct ether_arp *)(buf + bsize); in libvarpd_inject_arp()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_ffs.c101 int bnum, offset, bsize; in block_map() local
114 bsize = MAPBUF_LEN; in block_map()
121 bsize = SUPERBLOCK->fs_bsize; in block_map()
125 if (! devread (bnum, offset * sizeof (int), bsize, (char *) MAPBUF)) in block_map()
135 mapblock_bsize = bsize; in block_map()
H A Dfsys_ufs2.c125 int bnum, offset, bsize; in block_map() local
139 bsize = MAPBUF_LEN; in block_map()
146 bsize = SUPERBLOCK->fs_bsize; in block_map()
150 if (! devread (bnum, offset * sizeof (int), bsize, (char *) MAPBUF)) in block_map()
160 mapblock_bsize = bsize; in block_map()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dserialize.c145 size_t bufsize, bsize; in krb5_externalize_data() local
152 bsize = bufsize; in krb5_externalize_data()
157 &bsize))) { in krb5_externalize_data()
158 if (bsize != 0) in krb5_externalize_data()
159 bufsize -= bsize; in krb5_externalize_data()
/illumos-gate/usr/src/contrib/zlib/
H A Dzutil.c217 ulg bsize = (ulg)items*size; in zcalloc() local
224 if (bsize < 65520L) { in zcalloc()
225 buf = farmalloc(bsize); in zcalloc()
228 buf = farmalloc(bsize + 16L); in zcalloc()
/illumos-gate/usr/src/cmd/cdrw/
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/uts/common/fs/bootfs/
H A Dbootfs_vnops.c213 ulong_t bsize, brem; in bootfs_readdir() local
236 brem = bsize = uiop->uio_iov->iov_len; in bootfs_readdir()
237 buf = kmem_alloc(bsize, KM_SLEEP); in bootfs_readdir()
250 kmem_free(buf, bsize); in bootfs_readdir()
267 kmem_free(buf, bsize); in bootfs_readdir()
293 kmem_free(buf, bsize); in bootfs_readdir()
310 ret = uiomove(buf, (bsize - brem), UIO_READ, uiop); in bootfs_readdir()
323 kmem_free(buf, bsize); in bootfs_readdir()

123456