/freebsd/sys/kern/ |
H A D | kern_physio.c | 48 int error, i, npages, maxpages; in physio() local 96 maxpages = btoc(MIN(uio->uio_resid, maxphys)) + 1; in physio() 97 pages = malloc(sizeof(*pages) * maxpages, M_DEVBUF, M_WAITOK); in physio() 102 maxpages = PBUF_PAGES; in physio() 155 prot, pages, maxpages)) < 0) { in physio()
|
/freebsd/sys/contrib/openzfs/config/ |
H A D | kernel-vfs-iov_iter.m4 | 22 unsigned maxpages = 1; 26 ret = iov_iter_get_pages2(&iter, pages, maxsize, maxpages, 36 unsigned maxpages = 1; 40 ret = iov_iter_get_pages(&iter, pages, maxsize, maxpages,
|
/freebsd/sys/dev/rtwn/ |
H A D | if_rtwn_fw.c | 162 const int maxpages = len / R92C_FW_PAGE_SIZE; in rtwn_load_firmware() local 168 for (page = 0; page < maxpages; page++) { in rtwn_load_firmware() 175 if (page != maxpages) in rtwn_load_firmware()
|
/freebsd/sys/powerpc/powerpc/ |
H A D | busdma_machdep.c | 314 int maxpages; in bus_dmamap_create() 330 maxpages = MAX_BPAGES; in bus_dmamap_create() 332 maxpages = MIN(MAX_BPAGES, Maxmem -atop(dmat->lowaddr)); in bus_dmamap_create() 334 || (bz->map_count > 0 && bz->total_bpages < maxpages)) { in bus_dmamap_create() 338 pages = MIN(maxpages - bz->total_bpages, pages); in bus_dmamap_create() 310 int maxpages; bus_dmamap_create() local
|
/freebsd/sys/vm/ |
H A D | vm_reserv.c | 631 u_long allocpages, maxpages, minpages; in vm_reserv_alloc_contig() local 706 maxpages = roundup2(minpages, VM_LEVEL_0_NPAGES); in vm_reserv_alloc_contig() 707 allocpages = maxpages; in vm_reserv_alloc_contig() 724 if (first + maxpages > rightcap) { in vm_reserv_alloc_contig() 725 if (maxpages == VM_LEVEL_0_NPAGES) { in vm_reserv_alloc_contig() 748 first + maxpages > object->size) { in vm_reserv_alloc_contig() 749 if (maxpages == VM_LEVEL_0_NPAGES) in vm_reserv_alloc_contig()
|
/freebsd/sys/riscv/riscv/ |
H A D | busdma_bounce.c | 245 int error, maxpages, pages; in bounce_bus_dmamap_create() 289 maxpages = MAX_BPAGES; in bounce_bus_dmamap_create() 291 maxpages = MIN(MAX_BPAGES, Maxmem - in bounce_bus_dmamap_create() 294 (bz->map_count > 0 && bz->total_bpages < maxpages)) { in bounce_bus_dmamap_create() 296 pages = MIN(maxpages - bz->total_bpages, pages); in bounce_bus_dmamap_create() 241 int error, maxpages, pages; bounce_bus_dmamap_create() local
|
/freebsd/sys/x86/x86/ |
H A D | busdma_bounce.c | 276 int error, maxpages, pages; in bounce_bus_dmamap_create() 321 maxpages = MAX_BPAGES; in bounce_bus_dmamap_create() 323 maxpages = MIN(MAX_BPAGES, Maxmem - in bounce_bus_dmamap_create() 326 (bz->map_count > 0 && bz->total_bpages < maxpages)) { in bounce_bus_dmamap_create() 329 pages = MIN(maxpages - bz->total_bpages, pages); in bounce_bus_dmamap_create() 272 int error, maxpages, pages; bounce_bus_dmamap_create() local
|
/freebsd/sys/arm64/arm64/ |
H A D | busdma_bounce.c | 388 int error, maxpages, pages; in bounce_bus_dmamap_create() local 430 maxpages = MAX_BPAGES; in bounce_bus_dmamap_create() 432 maxpages = MIN(MAX_BPAGES, Maxmem - in bounce_bus_dmamap_create() 435 (bz->map_count > 0 && bz->total_bpages < maxpages)) { in bounce_bus_dmamap_create() 437 pages = MIN(maxpages - bz->total_bpages, pages); in bounce_bus_dmamap_create()
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zfs_uio.c | 657 unsigned maxpages = DIV_ROUND_UP(wanted, PAGE_SIZE); in zfs_uio_get_dio_pages_iov_iter() local 663 wanted, maxpages, &skip); in zfs_uio_get_dio_pages_iov_iter() 667 wanted, maxpages, &skip); in zfs_uio_get_dio_pages_iov_iter()
|
/freebsd/sys/arm/arm/ |
H A D | busdma_machdep.c | 523 int maxpages; in allocate_bz_and_pages() 540 maxpages = MAX_BPAGES; in allocate_bz_and_pages() 542 maxpages = 2 * bz->map_count; in allocate_bz_and_pages() 544 (bz->map_count > 0 && bz->total_bpages < maxpages)) { in allocate_bz_and_pages() 548 pages = MIN(maxpages - bz->total_bpages, pages); in allocate_bz_and_pages() 519 int maxpages; allocate_bz_and_pages() local
|