Home
last modified time | relevance | path

Searched refs:maxphys (Results 1 – 17 of 17) sorted by relevance

/f-stack/freebsd/kern/
H A Dsubr_param.c107 u_long maxphys; /* max raw I/O transfer size */ variable
299 maxphys = MAXPHYS; in init_param2()
300 TUNABLE_ULONG_FETCH("kern.maxphys", &maxphys); in init_param2()
301 if (maxphys == 0) { in init_param2()
302 maxphys = MAXPHYS; in init_param2()
303 } else if (__bitcountl(maxphys) != 1) { /* power of two */ in init_param2()
304 if (flsl(maxphys) == NBBY * sizeof(maxphys)) in init_param2()
305 maxphys = MAXPHYS; in init_param2()
307 maxphys = 1UL << flsl(maxphys); in init_param2()
309 if (maxphys < PAGE_SIZE) in init_param2()
[all …]
H A Dkern_physio.c75 (uio->uio_resid > dev->si_iosize_max || uio->uio_resid > maxphys || in physio()
84 if (uio->uio_resid > maxphys) in physio()
87 uio->uio_resid, maxphys); in physio()
107 maxpages = btoc(MIN(uio->uio_resid, maxphys)) + 1; in physio()
151 if (bp->bio_length > maxphys) in physio()
152 bp->bio_length = maxphys; in physio()
H A Dkern_mib.c156 lvalue = maxphys; in sysctl_maxphys()
164 SYSCTL_PROC(_kern, KERN_MAXPHYS, maxphys, CTLTYPE_LONG | CTLFLAG_RDTUN |
168 SYSCTL_ULONG(_kern, KERN_MAXPHYS, maxphys,
170 &maxphys, 0, "Maximum block I/O access size");
H A Dvfs_bio.c1003 if (maxbcachebuf > maxphys) in maxbcachebuf_adjust()
1004 maxbcachebuf = maxphys; in maxbcachebuf_adjust()
1122 if (biotmap_sz / INT_MAX > maxphys) in kern_vfs_bio_buffer_alloc()
1125 bio_transient_maxcnt = biotmap_sz / maxphys; in kern_vfs_bio_buffer_alloc()
1167 unmapped_buf = (caddr_t)kva_alloc(maxphys); in bufinit()
1306 maxphys, ("b_data + b_offset unmapped %p", bp)); in vfs_buf_check_mapped()
3200 maxcl = maxphys / size; in vfs_bio_awrite()
H A Dvfs_default.c979 if (iosize > maxphys) in vop_stdallocate()
980 iosize = maxphys; in vop_stdallocate()
H A Dvfs_aio.c1247 if (job->uiop->uio_iov[i].iov_len > maxphys) { in aio_qbio()
1323 atop(maxphys) + 1); in aio_qbio()
2438 MPASS(pbuf->b_npages <= atop(maxphys) + 1); in aio_biocleanup()
2448 MPASS(bp->bio_ma_n <= atop(maxphys) + 1); in aio_biocleanup()
H A Dkern_sendfile.c927 rhpages = min(howmany(maxphys, PAGE_SIZE), rhpages); in vn_sendfile()
/f-stack/freebsd/vm/
H A Dvm_init.c215 size = (long)nbuf * BKVASIZE + (long)bio_transient_maxcnt * maxphys; in vm_ksubmap_init()
236 size = (long)bio_transient_maxcnt * maxphys; in vm_ksubmap_init()
H A Dvnode_pager.c820 KASSERT(count <= atop(maxphys), in vnode_pager_generic_getpages()
920 if (rbehind + rahead + count > atop(maxphys)) { in vnode_pager_generic_getpages()
923 trim = rbehind + rahead + count - atop(maxphys) + 1; in vnode_pager_generic_getpages()
934 KASSERT(rbehind + rahead + count <= atop(maxphys), in vnode_pager_generic_getpages()
936 rbehind, rahead, count, maxphys)); in vnode_pager_generic_getpages()
1018 KASSERT(bp->b_npages <= atop(maxphys), in vnode_pager_generic_getpages()
H A Dvm_pager.h119 #define PBUF_PAGES (atop(maxphys) + 1)
H A Dvm_map.h400 #define VM_FAULT_READ_AHEAD_MAX min(atop(maxphys) - 1, UINT8_MAX)
H A Dswap_pager.c604 nsw_cluster_max = min(maxphys / PAGE_SIZE, MAX_PAGEOUT_CLUSTER); in swap_pager_swap_init()
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/
H A Dvdev_geom.c382 maxio = maxphys - (maxphys % cp->provider->sectorsize); in vdev_geom_io()
H A Dzvol_os.c1229 dev->si_iosize_max = maxphys; in zvol_rename_minor()
1370 dev->si_iosize_max = maxphys; in zvol_create_minor_impl()
/f-stack/freebsd/sys/
H A Dsystm.h77 extern u_long maxphys; /* max raw I/O transfer size */
/f-stack/freebsd/mips/ingenic/
H A Djz4780_mmc.c61 #define JZ_MSC_DMA_MAX_SIZE maxphys
/f-stack/freebsd/net/
H A Dif.c3210 max_len = maxphys - 1; in ifconf()