Home
last modified time | relevance | path

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

12345

/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dstride_dd.c24 static int bsize = 0; variable
72 bsize = atoi(optarg); in parse_options()
151 int err = posix_memalign(&buf, 4096, bsize); in main()
159 if (lseek(ofd, seek * bsize, SEEK_CUR) == -1) { in main()
166 c = read(ifd, buf, bsize); in main()
167 if (c != bsize) { in main()
172 if (c != bsize) { in main()
179 c, bsize); in main()
184 c = write(ofd, buf, bsize); in main()
185 if (c != bsize) { in main()
[all …]
/freebsd/lib/libc/db/test/
H A Drun.test622 bsize=256
624 echo " bucketsize $bsize, fill factor $ffactor"
635 bsize=512
637 echo " bucketsize $bsize, fill factor $ffactor"
648 bsize=1024
650 echo " bucketsize $bsize, fill factor $ffactor"
661 bsize=2048
663 echo " bucketsize $bsize, fill factor $ffactor"
674 bsize=4096
676 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.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()
/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.c242 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()
280 if (bsize > INT_MAX) { in OSSL_PARAM_BLD_push_octet_string()
285 pd = param_push(bld, key, bsize, bsize, OSSL_PARAM_OCTET_STRING, secure); in OSSL_PARAM_BLD_push_octet_string()
[all …]
/freebsd/crypto/openssl/test/
H A Dpunycode_test.c151 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 Dkmp_alloc.cpp409 if ((best == &thr->freelist[bin]) || (b->bh.bb.bsize < best->bh.bb.bsize)) in bcheck()
474 (b->bh.bb.bsize < best->bh.bb.bsize)) { in bget()
545 b->bh.bb.bsize = -(b->bh.bb.bsize); in bget()
645 rsize = -(b->bb.bsize); in bgetz()
680 osize = -b->bb.bsize; in bgetr()
773 b->bh.bb.bsize -= size; in brel()
781 b->bh.bb.bsize = -b->bh.bb.bsize; in brel()
801 b->bh.bb.bsize += bn->bh.bb.bsize; in brel()
839 KMP_DEBUG_ASSERT(BH((char *)b + b->bh.bb.bsize)->bb.bsize == ESent); in brel()
935 bn->bb.bsize = ESent; in bpool()
[all …]
/freebsd/sys/geom/eli/
H A Dpkcs5v2.c56 u_int i, bsize, passlen; in pkcs5v2_genkey() local
66 for (count = 1; keylen > 0; count++, keylen -= bsize, keyp += bsize) { in pkcs5v2_genkey()
67 bsize = MIN(keylen, sizeof(md)); in pkcs5v2_genkey()
75 xor(keyp, md, bsize); in pkcs5v2_genkey()
81 xor(keyp, md, bsize); in pkcs5v2_genkey()
/freebsd/stand/uboot/
H A Duboot_disk.c62 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 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;
831 int bsize; local
838 bsize = *((int *) valp);
839 bfp->bf_bufsize = bsize;
[all …]
/freebsd/sys/fs/udf/
H A Dudf_vfsops.c311 int bsize; in udf_mountfs() local
369 bsize = cp->provider->sectorsize; 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()
408 udfmp->bmask = udfmp->bsize - 1; in udf_mountfs()
409 udfmp->bshift = ffs(udfmp->bsize) - 1; in udf_mountfs()
565 sbp->f_bsize = udfmp->bsize; in udf_statfs()
566 sbp->f_iosize = udfmp->bsize; in udf_statfs()
655 if (lea > udfmp->bsize || lad > udfmp->bsize) { in udf_vget()
[all …]
/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/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/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/sbin/ggate/ggatel/
H A Dggatel.c87 size_t bsize; in g_gatel_serve() local
98 bsize = sectorsize; in g_gatel_serve()
99 ggio.gctl_data = malloc(bsize); in g_gatel_serve()
103 ggio.gctl_length = bsize; in g_gatel_serve()
123 bsize = ggio.gctl_length; in g_gatel_serve()
136 if ((size_t)ggio.gctl_length > bsize) { in g_gatel_serve()
140 bsize = ggio.gctl_length; in g_gatel_serve()
/freebsd/sbin/newfs/
H A Dnewfs.h66 #define MAXBLKPG(bsize) ((bsize) / sizeof(ufs2_daddr_t)) argument
95 extern int bsize; /* block size */
/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()
375 (long long)fsopts->minsize, ffs_opts->bsize, in ffs_validate()
405 fsopts->size += ffs_opts->bsize; in ffs_validate()
412 fsopts->size += ffs_opts->bsize; in ffs_validate()
473 fs->bsize, fs->fsize, fs->cpg, fs->density); in ffs_dump_fsinfo()
630 fsopts->size += ffs_opts->bsize * \ in ffs_size_dir()
636 fsopts->size += roundup((x), ffs_opts->bsize); \ in ffs_size_dir()
955 fbuf = emalloc(ffs_opts->bsize); in ffs_write_file()
[all …]
/freebsd/sys/fs/msdosfs/
H A Dmsdosfs_fat.c144 u_long bsize; in pcbmap() local
203 fatblock(pmp, byteoffset, &bn, &bsize, &bo); 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()
593 fatblock(pmp, byteoffset, &bn, &bsize, &bo); in fatchain()
628 if (bo >= bsize) in fatchain()
838 u_long bn, bo, bsize, byteoffset; in freeclusterchain() local
844 fatblock(pmp, byteoffset, &bn, &bsize, &bo); in freeclusterchain()
1140 u_long bn, bo, bsize, byteoffset, fatval; in markvoldirty_upgrade() local
[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/contrib/file/src/
H A Dprint.c272 file_fmtdatetime(char *buf, size_t bsize, uint64_t v, int flags) in file_fmtdatetime() argument
305 strlcpy(buf, "*Invalid datetime*", bsize); in file_fmtdatetime()
314 file_fmtdate(char *buf, size_t bsize, uint16_t v) in file_fmtdate() argument
323 if (strftime(buf, bsize, "%a, %b %d %Y", &tm) == 0) in file_fmtdate()
328 strlcpy(buf, "*Invalid date*", bsize); in file_fmtdate()
333 file_fmttime(char *buf, size_t bsize, uint16_t v) in file_fmttime() argument
342 if (strftime(buf, bsize, "%T", &tm) == 0) in file_fmttime()
347 strlcpy(buf, "*Invalid time*", bsize); in file_fmttime()
/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()
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()
558 u_long bn, bo, bsize, byteoffset, readcn, newc; in fatchain() local
573 fatblock(pmp, byteoffset, &bn, &bsize, &bo); in fatchain()
609 if (bo >= bsize) in fatchain()
811 u_long bn, bo, bsize, byteoffset; in freeclusterchain() local
816 fatblock(pmp, byteoffset, &bn, &bsize, &bo); in freeclusterchain()
[all …]
/freebsd/sbin/fsirand/
H A Dfsirand.c111 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()
/freebsd/sys/vm/
H A Dvnode_pager.c356 int bsize; in vnode_pager_haspage() local
613 int bsize; in vnode_pager_addr() local
622 vblock = address / bsize; in vnode_pager_addr()
623 voffset = address % bsize; in vnode_pager_addr()
631 *run *= bsize / PAGE_SIZE; in vnode_pager_addr()
657 vm_offset_t bsize; in vnode_pager_input_smlfs() local
675 bits = vm_page_bits(i * bsize, bsize); in vnode_pager_input_smlfs()
701 bp->b_bcount = bsize; in vnode_pager_input_smlfs()
702 bp->b_bufsize = bsize; in vnode_pager_input_smlfs()
727 bzero((caddr_t)sf_buf_kva(sf) + i * bsize, bsize); in vnode_pager_input_smlfs()
[all …]
/freebsd/sbin/ggate/shared/
H A Dggate.c279 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()

12345