Home
last modified time | relevance | path

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

1234567

/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dstride_dd.c26 static int bsize = 0; variable
118 bsize = atoi(optarg); in parse_options()
184 if (bsize <= 0 || stride <= 0 || ifile == NULL || ofile == NULL || in parse_options()
204 c = read(ifd, buf, bsize); in read_entire_file()
209 c = write(ofd, buf, bsize); in read_entire_file()
217 if (lseek(ifd, (stride - 1) * bsize, SEEK_CUR) == -1) { in read_entire_file()
221 if (lseek(ofd, (stride - 1) * bsize, SEEK_CUR) == -1) { in read_entire_file()
236 c = read(ifd, buf, bsize); in read_on_count()
237 if (c != bsize) { in read_on_count()
244 c, bsize); in read_on_count()
[all …]
/freebsd/lib/libc/db/test/
H A Drun.test622 bsize=256
624 echo " bucketsize $bsize, fill factor $ffactor"
626 -ibsize=$bsize,ffactor=$ffactor,nelem=25000,cachesize=65536\
631 bsize=$bsize ffactor=$ffactor nelem=25000 cachesize=65536 failed"
635 bsize=512
637 echo " bucketsize $bsize, fill factor $ffactor"
639 -ibsize=$bsize,ffactor=$ffactor,nelem=25000,cachesize=65536\
644 bsize=$bsize ffactor=$ffactor nelem=25000 cachesize=65536 failed"
648 bsize=1024
650 echo " bucketsize $bsize, fill factor $ffactor"
[all …]
/freebsd/crypto/krb5/src/plugins/kdb/db2/libdb2/test/
H A Drun.test683 bsize=256
685 echo " bucketsize $bsize, fill factor $ffactor"
687 -ibsize=$bsize,ffactor=$ffactor,nelem=25000,cachesize=65536\
692 bsize=$bsize ffactor=$ffactor nelem=25000 cachesize=65536 failed"
696 bsize=512
698 echo " bucketsize $bsize, fill factor $ffactor"
700 -ibsize=$bsize,ffactor=$ffactor,nelem=25000,cachesize=65536\
705 bsize=$bsize ffactor=$ffactor nelem=25000 cachesize=65536 failed"
709 bsize=1024
711 echo " bucketsize $bsize, fill factor $ffactor"
[all …]
/freebsd/tests/sys/cddl/zfs/bin/
H A Dfile_trunc.c49 static size_t bsize = BSIZE; variable
105 count = fsize / bsize; in parse_options()
110 bsize = atoi(optarg); in parse_options()
174 buf = (char *)calloc(1, bsize); in do_write()
175 rbuf = (char *)calloc(1, bsize); in do_write()
188 if (write(fd, buf, bsize) < bsize) { in do_write()
199 if (read(fd, rbuf, bsize) < bsize) { in do_write()
204 if (memcmp(buf, rbuf, bsize) != 0) { in do_write()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/file/
H A Dfile_trunc.c54 static size_t bsize = BSIZE; variable
108 count = fsize / bsize; in parse_options()
113 bsize = atoi(optarg); in parse_options()
177 buf = (char *)calloc(1, bsize); in do_write()
178 rbuf = (char *)calloc(1, bsize); in do_write()
191 if (write(fd, buf, bsize) < bsize) { in do_write()
202 if (read(fd, rbuf, bsize) < bsize) { in do_write()
207 if (memcmp(buf, rbuf, bsize) != 0) { in do_write()
/freebsd/sys/rpc/
H A Dtypes.h65 #define mem_alloc(bsize) malloc(bsize, M_RPC, M_WAITOK|M_ZERO) argument
66 #define mem_free(ptr, bsize) free(ptr, M_RPC) argument
68 #define mem_alloc(bsize) calloc(1, bsize) argument
69 #define mem_free(ptr, bsize) free(ptr) argument
/freebsd/crypto/openssl/crypto/
H A Dparam_build.c323 const char *buf, size_t bsize) in param_bld_convert()
333 if (bsize == 0) in param_bld_convert()
334 bsize = strlen(buf); in param_bld_convert()
336 pd = param_push(bld, key, bsize, bsize + 1, OSSL_PARAM_UTF8_STRING, secure); in param_bld_convert()
344 char *buf, size_t bsize) in param_bld_convert()
353 if (bsize == 0) in param_bld_convert()
354 bsize = strlen(buf); in param_bld_convert()
355 pd = param_push(bld, key, bsize, sizeof(buf), OSSL_PARAM_UTF8_PTR, 0); in param_bld_convert()
363 const void *buf, size_t bsize) in OSSL_PARAM_BLD_to_param()
253 OSSL_PARAM_BLD_push_utf8_string(OSSL_PARAM_BLD * bld,const char * key,const char * buf,size_t bsize) OSSL_PARAM_BLD_push_utf8_string() argument
269 OSSL_PARAM_BLD_push_utf8_ptr(OSSL_PARAM_BLD * bld,const char * key,char * buf,size_t bsize) OSSL_PARAM_BLD_push_utf8_ptr() argument
283 OSSL_PARAM_BLD_push_octet_string(OSSL_PARAM_BLD * bld,const char * key,const void * buf,size_t bsize) OSSL_PARAM_BLD_push_octet_string() argument
297 OSSL_PARAM_BLD_push_octet_ptr(OSSL_PARAM_BLD * bld,const char * key,void * buf,size_t bsize) OSSL_PARAM_BLD_push_octet_ptr() argument
[all...]
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_alloc.cpp141 bufsize bsize; /* Buffer size: positive if free, negative if allocated. */ member
300 KMP_DEBUG_ASSERT(b->bh.bb.bsize != 0); in __kmp_bget_dequeue()
321 KMP_DEBUG_ASSERT(b->bh.bb.bsize != 0); in __kmp_bget_enqueue()
369 KMP_DEBUG_ASSERT(b->bh.bb.bsize % SizeQuant == 0); in __kmp_bget_insert_into_freelist()
371 bin = bget_get_bin(b->bh.bb.bsize); in __kmp_bget_insert_into_freelist()
408 *total_free += (b->bh.bb.bsize - sizeof(bhead_t)); in bcheck()
409 if ((best == &thr->freelist[bin]) || (b->bh.bb.bsize < best->bh.bb.bsize)) in bcheck()
416 if (*max_free < best->bh.bb.bsize) in bcheck()
417 *max_free = best->bh.bb.bsize; in bcheck()
472 if (b->bh.bb.bsize >= (bufsize)size) { in bget()
[all …]
/freebsd/sys/geom/eli/
H A Dpkcs5v2.c66 u_int i, bsize; in pkcs5v2_genkey_raw() local
75 for (count = 1; keylen > 0; count++, keylen -= bsize, keyp += bsize) { in pkcs5v2_genkey_raw()
76 bsize = MIN(keylen, sizeof(md)); in pkcs5v2_genkey_raw()
84 xor(keyp, md, bsize); in pkcs5v2_genkey_raw()
90 xor(keyp, md, bsize); in pkcs5v2_genkey_raw()
/freebsd/stand/uboot/
H A Duboot_disk.c63 u_int bsize; /* block size */ member
119 stor_info[stor_info_no].bsize = in stor_init()
158 if (size % SI(dev).bsize) { in stor_strategy()
161 size, SI(dev).bsize); in stor_strategy()
164 bcount = size / SI(dev).bsize; in stor_strategy()
205 return (disk_open(dev, SI(dev).blocks * SI(dev).bsize, in stor_opendev()
206 SI(dev).bsize)); in stor_opendev()
287 *(u_int *)data = SI(dev).bsize; in stor_ioctl()
290 *(uint64_t *)data = SI(dev).bsize * SI(dev).blocks; in stor_ioctl()
/freebsd/contrib/sendmail/src/
H A Dbf.c106 size_t bsize; local
114 bsize = ((struct bf_info *) info)->bi_bsize;
141 if (bsize > 0)
143 bfp->bf_buf = (char *) sm_malloc(bsize);
159 bfp->bf_bufsize = bsize;
216 bfopen(char *filename, MODE_T fmode, size_t bsize, long flags) in bfopen() argument
219 bfopen(filename, fmode, bsize, flags) in bfopen()
222 size_t bsize;
247 info.bi_bsize = bsize;
831 int bsize; local
[all …]
/freebsd/sys/fs/udf/
H A Dudf_vfsops.c312 int bsize; in udf_mountfs() local
370 bsize = cp->provider->sectorsize; in udf_mountfs()
377 if ((error = bread(devvp, sector * btodb(logical_secsize), bsize, in udf_mountfs()
394 mvds_end = mvds_start + (le32toh(avdp.main_vds_ex.len) - 1) / bsize; in udf_mountfs()
397 bsize, NOCRED, &bp)) != 0) { in udf_mountfs()
403 udfmp->bsize = le32toh(lvd->lb_size); in udf_mountfs()
404 if (udfmp->bsize < 0 || udfmp->bsize > maxbcachebuf) { in udf_mountfs()
405 printf("lvd block size %d\n", udfmp->bsize); in udf_mountfs()
409 udfmp->bmask = udfmp->bsize - 1; in udf_mountfs()
410 udfmp->bshift = ffs(udfmp->bsize) - 1; in udf_mountfs()
[all …]
/freebsd/crypto/openssl/test/
H A Dpunycode_test.c116 unsigned int bsize = OSSL_NELEM(buffer); in test_punycode() local
120 buffer, &bsize))) in test_punycode()
125 if (!TEST_mem_eq(buffer, bsize * sizeof(*buffer), in test_punycode()
188 unsigned int bsize = OSSL_NELEM(buf) - 1; in test_puny_overrun() local
190 if (!TEST_false(ossl_punycode_decode(in, strlen(in), buf, &bsize))) { in test_puny_overrun()
191 if (TEST_mem_eq(buf, bsize * sizeof(*buf), out, sizeof(out))) in test_puny_overrun()
/freebsd/crypto/krb5/src/lib/krb5/os/
H A Dhostrealm_registry.c56 DWORD bsize = 0; in get_from_registry() local
67 &bsize); in get_from_registry()
70 if (FAILED(rc) || bsize <= 0) in get_from_registry()
72 str = malloc(bsize); in get_from_registry()
76 &bsize); in get_from_registry()
/freebsd/sys/fs/ext2fs/
H A Dext2_bmap.c101 int error, depth, maxrun = 0, bsize; in ext4_bmapext() local
110 bsize = EXT2_BLOCK_SIZE(ump->um_e2fs); in ext4_bmapext()
114 maxrun = mp->mnt_iosize_max / bsize - 1; in ext4_bmapext()
219 int error, num, maxrun = 0, bsize; in ext2_bmaparray() local
227 bsize = EXT2_BLOCK_SIZE(ump->um_e2fs); in ext2_bmaparray()
230 maxrun = mp->mnt_iosize_max / bsize - 1; in ext2_bmaparray()
335 uint64_t bsize; in ext2_bmap_seekdata() local
350 bsize = mp->mnt_stat.f_iosize; in ext2_bmap_seekdata()
351 for (bn = *offp / bsize, numblks = howmany(ip->i_size, bsize); in ext2_bmap_seekdata()
411 if (error == 0 && *offp < bn * bsize) in ext2_bmap_seekdata()
[all …]
/freebsd/crypto/krb5/src/plugins/kdb/db2/libdb2/hash/
H A Dhash.c148 (info && info->bsize ? info->bsize : DEF_BUCKET_SIZE)) != in __kdb2_hash_open()
170 (hashp->hdr.bsize << BYTE_SHIFT) - 1) >> in __kdb2_hash_open()
182 csize = info->cachesize / hashp->hdr.bsize; in __kdb2_hash_open()
184 csize = DEF_CACHESIZE / hashp->hdr.bsize; in __kdb2_hash_open()
185 hashp->mp = mpool_open(&mpool_key, hashp->fp, hashp->hdr.bsize, csize); in __kdb2_hash_open()
204 hashp->split_buf = (PAGE16 *)malloc(hashp->hdr.bsize); in __kdb2_hash_open()
228 "BUCKET SIZE ", hashp->hdr.bsize, in __kdb2_hash_open()
299 hashp->hdr.bsize = DEF_BUCKET_SIZE; in init_hash()
310 hashp->hdr.bsize = statbuf.st_blksize; in init_hash()
311 if (hashp->hdr.bsize > MAX_BSIZE) in init_hash()
[all …]
/freebsd/usr.bin/tsort/
H A Dtsort.c107 int bsize, ch, nused; in main() local
153 bsize = b->b_bsize; in main()
156 if (nused == bsize) in main()
157 b->b_buf = grow_buf(b->b_buf, bsize *= 2); in main()
162 b->b_bsize = bsize; in main()
196 int bsize, i; in add_arc() local
217 bsize = n1->n_arcsize * sizeof(*n1->n_arcs) * 2; in add_arc()
218 n1->n_arcs = grow_buf(n1->n_arcs, bsize); in add_arc()
219 n1->n_arcsize = bsize / sizeof(*n1->n_arcs); in add_arc()
/freebsd/usr.sbin/makefs/
H A Dffs.c156 { 'b', "bsize", &ffs_opts->bsize, OPT_INT32, in ffs_prep_opts()
185 ffs_opts->bsize= -1; in ffs_prep_opts()
346 if (ffs_opts->bsize == -1) in ffs_validate()
347 ffs_opts->bsize = MIN(DFL_BLKSIZE, 8 * ffs_opts->fsize); in ffs_validate()
361 MAX(1, MIN(MAXPHYS, FFS_MAXBSIZE) / ffs_opts->bsize); in ffs_validate()
364 ffs_opts->maxbpg = ffs_opts->bsize / sizeof(int32_t); in ffs_validate()
371 roundup(fsopts->minsize, ffs_opts->bsize) > fsopts->maxsize) in ffs_validate()
375 (long long)fsopts->minsize, ffs_opts->bsize, in ffs_validate()
403 roundup(SBLOCK_UFS1 + SBLOCKSIZE, ffs_opts->bsize); in ffs_validate()
404 fsopts->size += roundup(SBLOCKSIZE, ffs_opts->bsize); in ffs_validate()
[all …]
/freebsd/sbin/ggate/ggatel/
H A Dggatel.c93 size_t bsize; in g_gatel_serve() local
104 bsize = sectorsize; in g_gatel_serve()
105 ggio.gctl_data = malloc(bsize); in g_gatel_serve()
109 ggio.gctl_length = bsize; in g_gatel_serve()
129 bsize = ggio.gctl_length; in g_gatel_serve()
142 if ((size_t)ggio.gctl_length > bsize) { in g_gatel_serve()
146 bsize = ggio.gctl_length; in g_gatel_serve()
/freebsd/crypto/openssl/include/openssl/
H A Dparam_build.h52 const char *buf, size_t bsize);
54 char *buf, size_t bsize);
56 const void *buf, size_t bsize);
58 void *buf, size_t bsize);
/freebsd/sys/fs/msdosfs/
H A Dmsdosfs_fat.c144 u_long bsize; in pcbmap() local
203 fatblock(pmp, byteoffset, &bn, &bsize, &bo); in pcbmap()
207 error = bread(pmp->pm_devvp, bn, bsize, NOCRED, &bp); in pcbmap()
214 if (bo >= bsize) { in pcbmap()
473 u_long bn, bo, bsize, byteoffset; in fatentry() local
511 fatblock(pmp, byteoffset, &bn, &bsize, &bo); in fatentry()
512 error = bread(pmp->pm_devvp, bn, bsize, NOCRED, &bp); in fatentry()
578 u_long bn, bo, bsize, byteoffset, readcn, newc; in fatchain() local
593 fatblock(pmp, byteoffset, &bn, &bsize, &bo); in fatchain()
594 error = bread(pmp->pm_devvp, bn, bsize, NOCRED, &bp); in fatchain()
[all …]
/freebsd/sys/dev/ath/
H A Dif_ath_descdma.c246 int i, bsize, error; in ath_descdma_setup() local
260 bsize = sizeof(struct ath_buf) * nbuf; in ath_descdma_setup()
261 bf = malloc(bsize, M_ATHDEV, M_NOWAIT | M_ZERO); in ath_descdma_setup()
265 dd->dd_name, bsize); in ath_descdma_setup()
330 int i, bsize, error; in ath_descdma_setup_rx_edma() local
348 bsize = sizeof(struct ath_buf) * nbuf; in ath_descdma_setup_rx_edma()
349 bf = malloc(bsize, M_ATHDEV, M_NOWAIT | M_ZERO); in ath_descdma_setup_rx_edma()
353 dd->dd_name, bsize); in ath_descdma_setup_rx_edma()
/freebsd/usr.sbin/makefs/msdos/
H A Dmsdosfs_fat.c144 u_long bsize; in pcbmap() local
201 fatblock(pmp, byteoffset, &bn, &bsize, &bo); in pcbmap()
205 error = bread((void *)pmp->pm_devvp, bn, bsize, in pcbmap()
214 if (bo >= bsize) { in pcbmap()
452 u_long bn, bo, bsize, byteoffset; in fatentry() local
490 fatblock(pmp, byteoffset, &bn, &bsize, &bo); in fatentry()
491 error = bread((void *)pmp->pm_devvp, bn, bsize, NOCRED, &bp); in fatentry()
558 u_long bn, bo, bsize, byteoffset, readcn, newc; in fatchain() local
573 fatblock(pmp, byteoffset, &bn, &bsize, &bo); in fatchain()
574 error = bread((void *)pmp->pm_devvp, bn, bsize, NOCRED, &bp); in fatchain()
[all …]
/freebsd/sys/vm/
H A Dvnode_pager.c373 int bsize; in vnode_pager_haspage() local
390 bsize = vp->v_mount->mnt_stat.f_iosize; in vnode_pager_haspage()
391 pagesperblock = atop(bsize); in vnode_pager_haspage()
396 blocksperpage = (PAGE_SIZE / bsize); in vnode_pager_haspage()
630 int bsize; in vnode_pager_addr() local
638 bsize = vp->v_mount->mnt_stat.f_iosize; in vnode_pager_addr()
639 vblock = address / bsize; in vnode_pager_addr()
640 voffset = address % bsize; in vnode_pager_addr()
648 *run *= atop(bsize); in vnode_pager_addr()
674 vm_offset_t bsize; in vnode_pager_input_smlfs() local
[all …]
/freebsd/sbin/newfs/
H A Dnewfs.h66 #define MAXBLKPG(bsize) ((bsize) / sizeof(ufs2_daddr_t)) argument
95 extern int bsize; /* block size */

1234567