Searched refs:bsize (Results 1 - 25 of 134) sorted by relevance

123456

/freebsd-9.3-release/sys/rpc/
H A Dtypes.h67 #define mem_alloc(bsize) malloc(bsize, M_RPC, M_WAITOK|M_ZERO)
68 #define mem_free(ptr, bsize) free(ptr, M_RPC)
70 #define mem_alloc(bsize) calloc(1, bsize)
71 #define mem_free(ptr, bsize) free(ptr)
/freebsd-9.3-release/sbin/newfs/
H A Dnewfs.h66 #define MAXBLKPG(bsize) ((bsize) / sizeof(ufs2_daddr_t))
94 extern int bsize; /* block size */
H A Dnewfs.c101 int bsize = 0; /* block size */ variable
201 rval = expand_number_int(optarg, &bsize);
205 if (bsize < MINBSIZE)
208 if (bsize > MAXBSIZE)
379 if (bsize == 0)
380 bsize = pp->p_frag * pp->p_fsize;
388 if (bsize <= 0)
389 bsize = MIN(DFL_BLKSIZE, 8 * fsize);
/freebsd-9.3-release/usr.sbin/makefs/
H A Dffs.h48 int bsize; /* block size */ member in struct:__anon10932
/freebsd-9.3-release/sbin/clri/
H A Dclri.c80 long generation, bsize; local
110 bsize = sbp->fs_bsize;
127 if (read(fd, ibuf, bsize) != bsize)
151 if (lseek(fd, (off_t)-bsize, SEEK_CUR) < 0)
153 if (write(fd, ibuf, bsize) != bsize)
/freebsd-9.3-release/sys/geom/eli/
H A Dpkcs5v2.c57 u_int i, bsize, passlen; local
66 for (count = 1; keylen > 0; count++, keylen -= bsize, keyp += bsize) {
67 bsize = MIN(keylen, sizeof(md));
75 xor(keyp, md, bsize);
80 xor(keyp, md, bsize);
/freebsd-9.3-release/lib/libc/db/test/
H A Drun.test625 bsize=256
627 echo " bucketsize $bsize, fill factor $ffactor"
629 -ibsize=$bsize,ffactor=$ffactor,nelem=25000,cachesize=65536\
634 bsize=$bsize ffactor=$ffactor nelem=25000 cachesize=65536 failed"
638 bsize=512
640 echo " bucketsize $bsize, fill factor $ffactor"
642 -ibsize=$bsize,ffactor=$ffactor,nelem=25000,cachesize=65536\
647 bsize=$bsize ffacto
[all...]
/freebsd-9.3-release/sbin/fsirand/
H A Dfsirand.c122 u_int32_t bsize = DEV_BSIZE; local
134 bsize);
136 bsize = label.d_secsize;
183 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) {
184 warn("can't seek to %jd", (intmax_t)dblk * bsize);
246 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) {
248 (intmax_t)dblk * bsize);
261 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) {
262 warn("can't seek to %jd", (intmax_t)dblk * bsize);
290 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SE
[all...]
/freebsd-9.3-release/sys/boot/uboot/lib/
H A Ddisk.c68 u_int bsize; /* block size */ member in struct:__anon5809
122 stor_info[stor_info_no].bsize =
161 if (size % SI(dev).bsize) {
163 size, SI(dev).bsize);
166 bcount = size / SI(dev).bsize;
207 return (disk_open(dev, SI(dev).blocks * SI(dev).bsize,
208 SI(dev).bsize, 0));
273 *(u_int *)data = SI(dev).bsize;
276 *(off_t *)data = SI(dev).bsize * SI(dev).blocks;
/freebsd-9.3-release/contrib/sendmail/src/
H A Dbf.c106 size_t bsize; local
114 bsize = ((struct bf_info *) info)->bi_bsize;
140 /* A zero bsize is valid, just don't allocate memory */
141 if (bsize > 0)
143 bfp->bf_buf = (char *) sm_malloc(bsize);
159 bfp->bf_bufsize = bsize;
190 ** bsize -- amount of buffer space to allocate (may be 0)
216 bfopen(char *filename, MODE_T fmode, size_t bsize, long flags) argument
219 bfopen(filename, fmode, bsize, flags)
222 size_t bsize;
830 int bsize; local
[all...]
/freebsd-9.3-release/sys/gnu/fs/xfs/
H A Dxfs_attr_leaf.h187 #define XFS_ATTR_LEAF_ENTSIZE_LOCAL_MAX(bsize) \
188 xfs_attr_leaf_entsize_local_max(bsize)
189 static inline int xfs_attr_leaf_entsize_local_max(int bsize) argument
191 return (((bsize) >> 1) + ((bsize) >> 2));
/freebsd-9.3-release/crypto/openssl/demos/
H A Db64.c84 int bsize = BSIZE, verbose = 0; local
166 bsize = (int)n;
168 BIO_printf(bio_err, "bufsize=%d\n", bsize);
172 buff = (unsigned char *)OPENSSL_malloc(EVP_ENCODE_LENGTH(bsize));
226 inl = BIO_read(rbio, (char *)buff, bsize);
/freebsd-9.3-release/sbin/ggate/ggatel/
H A Dggatel.c87 size_t bsize; local
98 bsize = sectorsize;
99 ggio.gctl_data = malloc(bsize);
103 ggio.gctl_length = bsize;
123 bsize = ggio.gctl_length;
136 if ((size_t)ggio.gctl_length > bsize) {
140 bsize = ggio.gctl_length;
/freebsd-9.3-release/usr.bin/tsort/
H A Dtsort.c118 int bsize, ch, nused; local
164 bsize = b->b_bsize;
167 if (nused == bsize)
168 b->b_buf = grow_buf(b->b_buf, bsize *= 2);
173 b->b_bsize = bsize;
205 int bsize, i; local
226 bsize = n1->n_arcsize * sizeof(*n1->n_arcs) * 2;
227 n1->n_arcs = grow_buf(n1->n_arcs, bsize);
228 n1->n_arcsize = bsize / sizeof(*n1->n_arcs);
/freebsd-9.3-release/contrib/binutils/include/coff/
H A Dia64.h48 char bsize[4]; /* uninitialized data " " */ member in struct:__anon524
H A Dexternal.h49 char bsize[4]; /* uninitialized data " " */ member in struct:external_aouthdr
65 char bsize[4]; /* Uninitialized data " ". */ member in struct:external_aouthdr64
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/zmod/
H A Dzutil.c225 ulg bsize = (ulg)items*size; local
230 if (bsize < 65520L) {
231 buf = farmalloc(bsize);
234 buf = farmalloc(bsize + 16L);
/freebsd-9.3-release/sys/i386/ibcs2/
H A Dcoff.h60 long bsize; /* */ member in struct:aouthdr
/freebsd-9.3-release/bin/cat/
H A Dcat.c269 static size_t bsize; local
280 bsize = MIN(BUFSIZE_MAX, MAXPHYS * 8);
282 bsize = BUFSIZE_SMALL;
284 bsize = MAX(sbuf.st_blksize,
286 if ((buf = malloc(bsize)) == NULL)
289 while ((nr = read(rfd, buf, bsize)) > 0)
/freebsd-9.3-release/sys/vm/
H A Dvnode_pager.c296 int bsize; local
314 bsize = vp->v_mount->mnt_stat.f_iosize;
315 pagesperblock = bsize / PAGE_SIZE;
320 blocksperpage = (PAGE_SIZE / bsize);
465 int bsize; local
476 bsize = vp->v_mount->mnt_stat.f_iosize;
477 vblock = address / bsize;
478 voffset = address % bsize;
486 *run *= bsize/PAGE_SIZE;
507 vm_offset_t bsize; local
703 int i, j, size, bsize, first; local
[all...]
/freebsd-9.3-release/sbin/ggate/shared/
H A Dggate.c279 int bsize, on; local
291 bsize = rcvbuf;
292 if (setsockopt(sfd, SOL_SOCKET, SO_RCVBUF, &bsize, sizeof(bsize)) == -1)
294 bsize = sndbuf;
295 if (setsockopt(sfd, SOL_SOCKET, SO_SNDBUF, &bsize, sizeof(bsize)) == -1)
/freebsd-9.3-release/sys/fs/ext2fs/
H A Dext2_subr.c73 int bsize, error; local
81 bsize = blksize(fs, ip, lbn);
105 error = bread(ip->i_devvp, fsbtodb(fs, newblk), bsize, NOCRED, &bp);
116 bp->b_offset = lbn * bsize;
122 if ((error = bread(vp, lbn, bsize, NOCRED, &bp)) != 0) {
/freebsd-9.3-release/sys/fs/msdosfs/
H A Dmsdosfs_fat.c143 u_long bsize; local
202 fatblock(pmp, byteoffset, &bn, &bsize, &bo);
206 error = bread(pmp->pm_devvp, bn, bsize, NOCRED, &bp);
214 if (bo >= bsize) {
480 u_long bn, bo, bsize, byteoffset; local
518 fatblock(pmp, byteoffset, &bn, &bsize, &bo);
519 error = bread(pmp->pm_devvp, bn, bsize, NOCRED, &bp);
590 u_long bn, bo, bsize, byteoffset, readcn, newc; local
605 fatblock(pmp, byteoffset, &bn, &bsize, &bo);
606 error = bread(pmp->pm_devvp, bn, bsize, NOCRE
845 u_long bn, bo, bsize, byteoffset; local
909 u_long bn, bo, bsize, byteoffset; local
1124 u_long bn, bo, bsize, byteoffset, fatval; local
[all...]
/freebsd-9.3-release/lib/libc/gen/
H A Ddisklabel.c135 long bsize; local
137 if (cgetnum(buf, pbsize, &bsize) == 0)
138 pp->p_frag = bsize / pp->p_fsize;
/freebsd-9.3-release/sys/ufs/ffs/
H A Dffs_rawread.c201 int bsize; local
207 bsize = vp->v_mount->mnt_stat.f_iosize;
224 blockno = offset / bsize;
225 blockoff = (offset % bsize) / DEV_BSIZE;
239 if (bp->b_bcount + blockoff * DEV_BSIZE > bsize)
240 bp->b_bcount = bsize - blockoff * DEV_BSIZE;
258 if (bp->b_bcount + blockoff * DEV_BSIZE > bsize * (1 + bforwards))
259 bp->b_bcount = bsize * (1 + bforwards) - blockoff * DEV_BSIZE;

Completed in 166 milliseconds

123456