/illumos-gate/usr/src/lib/libbc/inc/include/rpc/ |
H A D | types.h | 54 #define mem_alloc(bsize) malloc(bsize) 55 #define mem_free(ptr, bsize) free(ptr) 58 #define mem_alloc(bsize) kmem_alloc((u_int)bsize) 59 #define mem_free(ptr, bsize) kmem_free((caddr_t)(ptr), (u_int)(bsize))
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | types.h | 86 #define mem_alloc(bsize) malloc(bsize) 87 #define mem_free(ptr, bsize) free(ptr) 91 #define mem_alloc(bsize) kmem_alloc(bsize, KM_SLEEP) 92 #define mem_free(ptr, bsize) kmem_free(ptr, bsize)
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | nblk.c | 41 nblk(fsblkcnt_t size, ulong_t bsize, ulong_t frsize) argument 46 if (size == 0 || bsize == 0) 53 ind = howmany(bsize, sizeof (daddr_t)); 57 tot = howmany(size, bsize); 70 roundup(size, bsize); 80 tot *= howmany(bsize, DEV_BSIZE);
|
/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | ufs_bio.h | 64 daddr_t blkno, long bsize); 68 daddr_t blkno, long bsize, int flag); 70 #define UFS_BREAD(ufsvfsp, dev, blkno, bsize) \ 71 bread_common(ufsvfsp, dev, blkno, bsize) 82 #define UFS_GETBLK(ufsvfsp, dev, blkno, bsize) \ 83 getblk_common(ufsvfsp, dev, blkno, bsize, /* errflg */ 0)
|
/illumos-gate/usr/src/cmd/sgs/tools/common/ |
H A D | alist.c | 107 Aliste bsize; local 114 bsize = size * init_arritems; 115 bsize = S_ROUND(bsize, sizeof (void *)); 116 bsize = ALIST_OFF_DATA + bsize; 117 if ((lp = malloc((size_t)bsize)) == NULL) 133 Aliste bsize; local 135 bsize = lp->al_size * lp->al_arritems * 2; 136 bsize 196 Aliste bsize; local 214 Aliste bsize; local [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getxby_door.h | 67 nss_status_t _nsc_trydoorcall(void **dptr, size_t *bsize, size_t *dsize); 68 nss_status_t _nsc_trydoorcall_ext(void **dptr, size_t *bsize, size_t *dsize); 69 int _nsc_getdoorbuf(void **dptr, size_t *bsize); 70 void _nsc_resizedoorbuf(size_t bsize);
|
/illumos-gate/usr/src/test/zfs-tests/cmd/file_trunc/ |
H A D | file_trunc.c | 53 static size_t bsize = BSIZE; variable 107 count = fsize / bsize; 112 bsize = atoi(optarg); 176 buf = (char *)calloc(1, bsize); 177 rbuf = (char *)calloc(1, bsize); 190 if (write(fd, buf, bsize) < bsize) { 201 if (read(fd, rbuf, bsize) < bsize) { 206 if (memcmp(buf, rbuf, bsize) ! [all...] |
/illumos-gate/usr/src/uts/common/sys/ |
H A D | fbuf.h | 61 extern int fbiwrite(struct fbuf *, struct vnode *, daddr_t bn, int bsize);
|
/illumos-gate/usr/src/boot/sys/boot/uboot/lib/ |
H A D | disk.c | 65 u_int bsize; /* block size */ member in struct:__anon366 119 stor_info[stor_info_no].bsize = 158 if (size % SI(dev).bsize) { 161 size, SI(dev).bsize); 164 bcount = size / SI(dev).bsize; 205 return (disk_open(dev, SI(dev).blocks * SI(dev).bsize, 206 SI(dev).bsize, 0)); 271 *(u_int *)data = SI(dev).bsize; 274 *(off_t *)data = SI(dev).bsize * SI(dev).blocks;
|
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | dockspace.c | 156 if (fs_tab->bsize != 0) 168 fs_tab->bsize = svfsb.f_bsize; 251 fs_tab->bsize, 314 nblk(fs_tab->bsize, 315 fs_tab->bsize, 319 fs_tab->bsize, 330 fs_tab->bsize, 333 fs_tab->bsize,
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | bf.c | 108 size_t bsize; local 116 bsize = ((struct bf_info *) info)->bi_bsize; 142 /* A zero bsize is valid, just don't allocate memory */ 143 if (bsize > 0) 145 bfp->bf_buf = (char *) sm_malloc(bsize); 161 bfp->bf_bufsize = bsize; 192 ** bsize -- amount of buffer space to allocate (may be 0) 218 bfopen(char *filename, MODE_T fmode, size_t bsize, long flags) argument 221 bfopen(filename, fmode, bsize, flags) 224 size_t bsize; 832 int bsize; local [all...] |
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_ffs.c | 101 int bnum, offset, bsize; local 114 bsize = MAPBUF_LEN; 121 bsize = SUPERBLOCK->fs_bsize; 125 if (! devread (bnum, offset * sizeof (int), bsize, (char *) MAPBUF)) 135 mapblock_bsize = bsize;
|
H A D | fsys_ufs2.c | 125 int bnum, offset, bsize; local 139 bsize = MAPBUF_LEN; 146 bsize = SUPERBLOCK->fs_bsize; 150 if (! devread (bnum, offset * sizeof (int), bsize, (char *) MAPBUF)) 160 mapblock_bsize = bsize;
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_bmap.c | 103 * bsize > PAGESIZE 106 * PAGESIZE >= bsize 107 * we assume that a page is a multiple of bsize, i.e., 179 * PAGESIZE < bsize 188 * PAGESIZE == bsize 192 * PAGESIZE > bsize 201 * inode. Two is nice for PAGESIZE > bsize. 320 long bsize = VBSIZE(vp); local 369 if (osize < bsize && osize > 0) { 377 btodb(bsize [all...] |
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | write_image.c | 105 uint_t bsize; local 118 &bsize)) <= 0) { 132 &bsize);
|
H A D | dumpinfo.c | 45 uint_t bsize; local 94 cap = read_format_capacity(target->d_fd, &bsize);
|
/illumos-gate/usr/src/uts/common/zmod/ |
H A D | zutil.c | 225 ulg bsize = (ulg)items*size; local 230 if (bsize < 65520L) { 231 buf = farmalloc(bsize); 234 buf = farmalloc(bsize + 16L);
|
/illumos-gate/usr/src/lib/libast/common/misc/ |
H A D | stk.c | 215 register int bsize; local 232 bsize = init+sizeof(struct frame); 235 bsize = roundof(bsize,STK_FSIZE/16); 238 bsize = roundof(bsize,STK_FSIZE); 239 bsize -= sizeof(struct frame); 240 if(!(fp=newof((char*)0,struct frame, 1,bsize))) 245 count(addsize,sizeof(*fp)+bsize); 251 fp->end = sp->stkend = cp+bsize; [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/fsirand/ |
H A D | fsirand.c | 70 int bsize; local 134 bsize = INOPB(fs) * sizeof (struct dinode); 147 n = read(fd, (char *)dibuf, bsize); 148 if (n != bsize) { 172 n = write(fd, (char *)dibuf, bsize); 173 if (n != bsize) {
|
/illumos-gate/usr/src/cmd/genmsg/ |
H A D | genmsg.l | 433 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)) [all...] |
/illumos-gate/usr/src/uts/common/avs/ns/nsctl/ |
H A D | nsctl.c | 759 struct nscioc_bsize *bsize = NULL; local 867 bsize = nsc_kmem_alloc(sizeof (*bsize), KM_SLEEP, 869 if (bsize == NULL) { 874 if (ddi_copyin((void *)arg, bsize, sizeof (*bsize), mode) < 0) { 879 rc = nskern_bsize(bsize, rvp); 881 if (ddi_copyout(bsize, (void *)arg, 882 sizeof (*bsize), mode) < 0) { 894 if (bsize ! [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | bio.c | 201 bread(dev_t dev, daddr_t blkno, long bsize) argument 203 return (BREAD(dev, blkno, bsize)); 212 bread_common(void *arg, dev_t dev, daddr_t blkno, long bsize) argument 219 bp = getblk_common(ufsvfsp, dev, blkno, bsize, /* errflg */ 1); 223 ASSERT(bp->b_bcount == bsize); 249 breada(dev_t dev, daddr_t blkno, daddr_t rablkno, long bsize) argument 257 bp = GETBLK(dev, blkno, bsize); 260 bp->b_bcount = bsize; 269 rabp = GETBLK(dev, rablkno, bsize); 274 rabp->b_bcount = bsize; 558 getblk(dev_t dev, daddr_t blkno, long bsize) argument 570 getblk_common(void * arg, dev_t dev, daddr_t blkno, long bsize, int errflg) argument 751 ngeteblk(long bsize) argument 1476 bio_getfreeblk(long bsize) argument 1674 bio_mem_get(long bsize) argument 1716 bio_recycle(int want, long bsize) argument [all...] |
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | serialize.c | 150 size_t bufsize, bsize; 157 bsize = bufsize; 162 &bsize))) { 163 if (bsize != 0) 164 bufsize -= bsize; 145 size_t bufsize, bsize; local
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/ |
H A D | hash.c | 177 (info && info->bsize ? info->bsize : DEF_BUCKET_SIZE)) != 199 (hashp->hdr.bsize << BYTE_SHIFT) - 1) >> 211 csize = info->cachesize / hashp->hdr.bsize; 213 csize = DEF_CACHESIZE / hashp->hdr.bsize; 214 hashp->mp = mpool_open(&mpool_key, hashp->fp, hashp->hdr.bsize, csize); 233 hashp->split_buf = (PAGE16 *)malloc(hashp->hdr.bsize); 257 "BUCKET SIZE ", hashp->hdr.bsize, 337 hashp->hdr.bsize = DEF_BUCKET_SIZE; 348 hashp->hdr.bsize [all...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | _times_power.c | 170 if (productsize <= pbf->bsize) { 191 pbf->bsize = productsize; 254 assert(pbf->blength <= pbf->bsize); 271 assert(pbf->blength <= pbf->bsize); 438 if ((pbfold != pbf) && (pbf->blength <= pbfold->bsize)) { /* Don't need that huge 441 printf(" free called from times_power because final length %d <= %d original size \n", pbf->blength, pbfold->bsize);
|