/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | stride_dd.c | 25 static int bsize = 0; variable 117 bsize = atoi(optarg); in parse_options() 183 if (bsize <= 0 || stride <= 0 || ifile == NULL || ofile == NULL || in parse_options() 203 c = read(ifd, buf, bsize); in read_entire_file() 208 c = write(ofd, buf, bsize); in read_entire_file() 216 if (lseek(ifd, (stride - 1) * bsize, SEEK_CUR) == -1) { in read_entire_file() 220 if (lseek(ofd, (stride - 1) * bsize, SEEK_CUR) == -1) { in read_entire_file() 235 c = read(ifd, buf, bsize); in read_on_count() 236 if (c != bsize) { in read_on_count() 243 c, bsize); in read_on_count() [all …]
|
/freebsd/lib/libc/db/test/ |
H A D | run.test | 622 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/tests/sys/cddl/zfs/bin/ |
H A D | file_trunc.c | 49 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 D | file_trunc.c | 53 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()
|
/freebsd/crypto/openssl/crypto/ |
H A D | param_build.c | 237 const char *buf, size_t bsize) in OSSL_PARAM_BLD_push_utf8_string() argument 242 if (bsize == 0) in OSSL_PARAM_BLD_push_utf8_string() 243 bsize = strlen(buf); in OSSL_PARAM_BLD_push_utf8_string() 244 if (bsize > INT_MAX) { in OSSL_PARAM_BLD_push_utf8_string() 249 pd = param_push(bld, key, bsize, bsize + 1, OSSL_PARAM_UTF8_STRING, secure); in OSSL_PARAM_BLD_push_utf8_string() 257 char *buf, size_t bsize) in OSSL_PARAM_BLD_push_utf8_ptr() argument 261 if (bsize == 0) in OSSL_PARAM_BLD_push_utf8_ptr() 262 bsize = strlen(buf); in OSSL_PARAM_BLD_push_utf8_ptr() 263 if (bsize > INT_MAX) { in OSSL_PARAM_BLD_push_utf8_ptr() 267 pd = param_push(bld, key, bsize, sizeof(buf), OSSL_PARAM_UTF8_PTR, 0); in OSSL_PARAM_BLD_push_utf8_ptr() [all …]
|
/freebsd/sys/rpc/ |
H A D | types.h | 65 #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/test/ |
H A D | punycode_test.c | 151 unsigned int bsize = OSSL_NELEM(buffer); in test_punycode() local 155 buffer, &bsize))) in test_punycode() 160 if (!TEST_mem_eq(buffer, bsize * sizeof(*buffer), in test_punycode() 204 unsigned int bsize = OSSL_NELEM(buf) - 1; in test_puny_overrun() local 206 if (!TEST_false(ossl_punycode_decode(in, strlen(in), buf, &bsize))) { in test_puny_overrun() 207 if (TEST_mem_eq(buf, bsize * sizeof(*buf), out, sizeof(out))) in test_puny_overrun()
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_alloc.cpp | 141 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 D | pkcs5v2.c | 66 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 D | uboot_disk.c | 62 u_int bsize; /* block size */ member 118 stor_info[stor_info_no].bsize = in stor_init() 157 if (size % SI(dev).bsize) { in stor_strategy() 160 size, SI(dev).bsize); in stor_strategy() 163 bcount = size / SI(dev).bsize; in stor_strategy() 204 return (disk_open(dev, SI(dev).blocks * SI(dev).bsize, in stor_opendev() 205 SI(dev).bsize)); in stor_opendev() 286 *(u_int *)data = SI(dev).bsize; in stor_ioctl() 289 *(uint64_t *)data = SI(dev).bsize * SI(dev).blocks; in stor_ioctl()
|
/freebsd/contrib/sendmail/src/ |
H A D | bf.c | 106 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 D | udf_vfsops.c | 311 int bsize; in udf_mountfs() 369 bsize = cp->provider->sectorsize; in udf_mountfs() 376 if ((error = bread(devvp, sector * btodb(logical_secsize), bsize, in udf_mountfs() 393 mvds_end = mvds_start + (le32toh(avdp.main_vds_ex.len) - 1) / bsize; in udf_mountfs() 396 bsize, NOCRED, &bp)) != 0) { in udf_mountfs() 402 udfmp->bsize = le32toh(lvd->lb_size); in udf_mountfs() 403 if (udfmp->bsize < 0 || udfmp->bsize > maxbcachebuf) { in udf_mountfs() 404 printf("lvd block size %d\n", udfmp->bsize); in udf_mountfs() 408 udfmp->bmask = udfmp->bsize in udf_mountfs() 322 int bsize; udf_mountfs() local [all...] |
/freebsd/sys/fs/ext2fs/ |
H A D | ext2_bmap.c | 101 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/usr.bin/tsort/ |
H A D | tsort.c | 107 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/sbin/ggate/ggatel/ |
H A D | ggatel.c | 93 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 D | param_build.h | 52 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/usr.sbin/makefs/ |
H A D | ffs.c | 156 { '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() 372 errx(1, "`%s' minsize of %lld rounded up to ffs bsize of %d " in ffs_validate() 373 "exceeds maxsize %lld. Lower bsize, o in ffs_validate() [all...] |
H A D | ffs.c | 156 { '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() 372 errx(1, "`%s' minsize of %lld rounded up to ffs bsize of %d " in ffs_validate() 373 "exceeds maxsize %lld. Lower bsize, o in ffs_validate() [all...] |
/freebsd/sys/fs/msdosfs/ |
H A D | msdosfs_fat.c | 144 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/usr.sbin/makefs/msdos/ |
H A D | msdosfs_fat.c | 144 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/dev/ath/ |
H A D | if_ath_descdma.c | 246 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/sys/vm/ |
H A D | vnode_pager.c | 373 int bsize; in vnode_pager_haspage() local 390 bsize = vp->v_mount->mnt_stat.f_iosize; in vnode_pager_haspage() 391 pagesperblock = bsize / PAGE_SIZE; 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 *= bsize / PAGE_SIZE; in vnode_pager_addr() 674 vm_offset_t bsize; in vnode_pager_input_smlfs() local [all …]
|
/freebsd/sbin/newfs/ |
H A D | newfs.h | 66 #define MAXBLKPG(bsize) ((bsize) / sizeof(ufs2_daddr_t)) argument 95 extern int bsize; /* block size */
|
/freebsd/sbin/ggate/shared/ |
H A D | ggate.c | 279 int bsize, on; in g_gate_socket_settings() local 291 bsize = rcvbuf; in g_gate_socket_settings() 292 if (setsockopt(sfd, SOL_SOCKET, SO_RCVBUF, &bsize, sizeof(bsize)) == -1) in g_gate_socket_settings() 294 bsize = sndbuf; in g_gate_socket_settings() 295 if (setsockopt(sfd, SOL_SOCKET, SO_SNDBUF, &bsize, sizeof(bsize)) == -1) in g_gate_socket_settings()
|
/freebsd/sbin/fsirand/ |
H A D | fsirand.c | 111 u_int32_t bsize = DEV_BSIZE; in fsirand() local 180 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) { in fsirand() 181 warn("can't seek to %jd", (intmax_t)dblk * bsize); in fsirand() 211 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) { in fsirand() 213 (intmax_t)dblk * bsize); in fsirand()
|