Searched refs:MAXPHYS (Results 1 - 25 of 29) sorted by relevance

12

/freebsd-current/sys/sys/
H A D_maxphys.h4 #ifndef MAXPHYS
6 #define MAXPHYS (128 * 1024) macro
8 #define MAXPHYS (1024 * 1024) macro
/freebsd-current/usr.bin/dpv/
H A Ddpv_util.h33 #ifndef MAXPHYS
34 #define MAXPHYS (128 * 1024) macro
46 * smaller than MAXPHYS.
48 #define BUFSIZE_SMALL (MAXPHYS)
H A Ddpv.c132 bsize = MIN(BUFSIZE_MAX, MAXPHYS * 8);
139 bsize = MIN(BUFSIZE_MAX, MAXPHYS * 8);
/freebsd-current/tools/test/stress2/misc/
H A Dmd8.sh85 char data[MAXPHYS + 512] __aligned(PAGE_SIZE);
89 if (read(fd, data + 512, MAXPHYS) != MAXPHYS)
95 if (write(fd, data + 512, MAXPHYS) != MAXPHYS)
101 if (read(fd, data + 512, MAXPHYS) != MAXPHYS)
/freebsd-current/tools/build/cross-build/include/common/sys/
H A Dparam.h49 #ifndef MAXPHYS
50 #define MAXPHYS (128 * 1024) /* max raw I/O transfer size */ macro
/freebsd-current/usr.sbin/bhyve/
H A Dahci.h307 #if MAXPHYS < 512 * 1024
308 #undef MAXPHYS macro
309 #define MAXPHYS 512 * 1024 macro
312 #define AHCI_SG_ENTRIES (roundup(btoc(MAXPHYS) + 1, 8))
H A Dblock_if.c258 len = MIN(br->br_resid, MAXPHYS);
299 len = MIN(br->br_resid, MAXPHYS);
381 buf = malloc(MAXPHYS);
/freebsd-current/sys/kern/
H A Dsubr_param.c312 maxphys = MAXPHYS;
315 maxphys = MAXPHYS;
318 maxphys = MAXPHYS;
323 maxphys = MAXPHYS;
/freebsd-current/sbin/hastd/
H A Dactivemap.c128 return (((amp->am_extentsize - 1) / MAXPHYS) + 1);
134 return (((left - 1) / MAXPHYS) + 1);
599 (amp->am_syncoff + MAXPHYS >= amp->am_mediasize ||
601 off2ext(amp, amp->am_syncoff + MAXPHYS))) {
625 amp->am_syncoff += MAXPHYS;
637 if (left > MAXPHYS)
638 left = MAXPHYS;
640 PJDLOG_ASSERT(left >= 0 && left <= MAXPHYS);
H A Dsecondary.c196 hio->hio_data = malloc(MAXPHYS);
200 (size_t)MAXPHYS);
597 if (hio->hio_cmd != HIO_DELETE && hio->hio_length > MAXPHYS) {
599 (uintmax_t)hio->hio_length, (uintmax_t)MAXPHYS);
705 hio->hio_data, MAXPHYS) == -1) {
H A Dprimary.c490 hio->hio_ggio.gctl_data = malloc(MAXPHYS);
494 MAXPHYS);
496 hio->hio_ggio.gctl_length = MAXPHYS;
1236 ggio->gctl_length = MAXPHYS;
1263 * Buffer too small? Impossible, we allocate MAXPHYS
/freebsd-current/contrib/netbsd-tests/fs/ffs/
H A Dt_mount.c52 "blocksize > MAXPHYS");
67 "ffs.img > /dev/null", MAXPHYS * 2);
/freebsd-current/lib/geom/virstor/
H A Dgeom_virstor.c138 CTASSERT(VIRSTOR_MAP_BLOCK_ENTRIES*VIRSTOR_MAP_ENTRY_SIZE == MAXPHYS);
199 if (md.md_chunk_size % MAXPHYS != 0) {
201 * impose some limitations on it, so why not MAXPHYS. */
202 size_t new_size = rounddown(md.md_chunk_size, MAXPHYS);
204 new_size += MAXPHYS;
206 "MAXPHYS (%d kB).\n", MAXPHYS / 1024);
/freebsd-current/bin/cat/
H A Dcat.c91 * smaller than MAXPHYS.
93 #define BUFSIZE_SMALL (MAXPHYS)
412 bsize = MIN(BUFSIZE_MAX, MAXPHYS * 8);
/freebsd-current/usr.bin/mkuzip/
H A Dmkuzip.c250 if (cfs.cbound_blksz > MAXPHYS)
251 errx(1, "maximal compressed cluster size %zu greater than MAXPHYS %zu",
252 cfs.cbound_blksz, (size_t)MAXPHYS);
/freebsd-current/bin/cp/
H A Dutils.c61 * smaller than MAXPHYS.
63 #define BUFSIZE_SMALL (MAXPHYS)
80 bufsize = MIN(BUFSIZE_MAX, MAXPHYS * 8);
/freebsd-current/lib/geom/raid3/
H A Dgeom_raid3.c216 if (md.md_sectorsize > MAXPHYS) {
/freebsd-current/stand/libofw/
H A Dofw_net.c242 OF_call_method("dma-free", netinstance, 2, 0, dmabuf, MAXPHYS);
/freebsd-current/sbin/ggate/shared/
H A Dggate.c233 #define MAX_SEND_SIZE MAXPHYS
/freebsd-current/bin/mv/
H A Dmv.c265 static u_int blen = MAXPHYS;
/freebsd-current/usr.bin/xinstall/
H A Dxinstall.c75 * smaller than MAXPHYS.
77 #define BUFSIZE_SMALL (MAXPHYS)
1110 bufsize = MIN(BUFSIZE_MAX, MAXPHYS * 8);
1223 bufsize = MIN(BUFSIZE_MAX, MAXPHYS * 8);
/freebsd-current/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dvdev_geom.c385 maxio = MAXPHYS - (MAXPHYS % cp->provider->sectorsize);
H A Dzvol_os.c1316 dev->si_iosize_max = MAXPHYS;
1460 dev->si_iosize_max = MAXPHYS;
/freebsd-current/lib/libproc/
H A Dproc_sym.c70 char buf[MAXPHYS];
/freebsd-current/sbin/newfs_msdos/
H A Dmkfs_msdos.c856 warn("sysctl: KERN_MAXPHYS, using %zu", (size_t)MAXPHYS);
861 chunksize = MAXPHYS;

Completed in 436 milliseconds

12