| /freebsd-14-stable/sys/kern/ |
| HD | subr_param.c | 102 u_long maxphys; /* max raw I/O transfer size */ variable 332 maxphys = MAXPHYS; in init_param2() 333 TUNABLE_ULONG_FETCH("kern.maxphys", &maxphys); in init_param2() 334 if (maxphys == 0) { in init_param2() 335 maxphys = MAXPHYS; in init_param2() 336 } else if (__bitcountl(maxphys) != 1) { /* power of two */ in init_param2() 337 if (flsl(maxphys) == NBBY * sizeof(maxphys)) in init_param2() 338 maxphys = MAXPHYS; in init_param2() 340 maxphys = 1UL << flsl(maxphys); in init_param2() 342 if (maxphys < PAGE_SIZE) in init_param2() [all …]
|
| HD | kern_physio.c | 71 (uio->uio_resid > dev->si_iosize_max || uio->uio_resid > maxphys || in physio() 80 if (uio->uio_resid > maxphys) in physio() 83 uio->uio_resid, maxphys); in physio() 103 maxpages = btoc(MIN(uio->uio_resid, maxphys)) + 1; in physio() 153 if (bp->bio_length > maxphys) in physio() 154 bp->bio_length = maxphys; in physio()
|
| HD | kern_mib.c | 154 lvalue = maxphys; in sysctl_maxphys() 162 SYSCTL_PROC(_kern, KERN_MAXPHYS, maxphys, CTLTYPE_LONG | CTLFLAG_RDTUN | 166 SYSCTL_ULONG(_kern, KERN_MAXPHYS, maxphys, 168 &maxphys, 0, "Maximum block I/O access size");
|
| /freebsd-14-stable/sys/geom/eli/ |
| HD | g_eli_integrity.c | 351 if (cbp->bio_length > maxphys) { in g_eli_auth_write_done() 353 cbp2->bio_length = cbp->bio_length - maxphys; in g_eli_auth_write_done() 354 cbp2->bio_data = cbp->bio_data + maxphys; in g_eli_auth_write_done() 355 cbp2->bio_offset = cbp->bio_offset + maxphys; in g_eli_auth_write_done() 358 cbp->bio_length = maxphys; in g_eli_auth_write_done() 419 if (cbp->bio_length > maxphys) { in g_eli_auth_read() 421 cbp2->bio_length = cbp->bio_length - maxphys; in g_eli_auth_read() 422 cbp2->bio_data = cbp->bio_data + maxphys; in g_eli_auth_read() 423 cbp2->bio_offset = cbp->bio_offset + maxphys; in g_eli_auth_read() 426 cbp->bio_length = maxphys; in g_eli_auth_read()
|
| /freebsd-14-stable/usr.bin/tcopy/ |
| HD | tcopy.c | 83 unsigned long maxphys = 0; in main() local 84 size_t l_maxphys = sizeof maxphys; in main() 86 if (!sysctlbyname("kern.maxphys", &maxphys, &l_maxphys, NULL, 0)) in main() 87 maxblk = maxphys; in main()
|
| /freebsd-14-stable/sys/vm/ |
| HD | vm_init.c | 213 size = (long)nbuf * BKVASIZE + (long)bio_transient_maxcnt * maxphys; in vm_ksubmap_init() 233 size = (long)bio_transient_maxcnt * maxphys; in vm_ksubmap_init()
|
| HD | vnode_pager.c | 902 KASSERT(count <= atop(maxphys), in vnode_pager_generic_getpages() 1002 if (rbehind + rahead + count > atop(maxphys)) { in vnode_pager_generic_getpages() 1005 trim = rbehind + rahead + count - atop(maxphys) + 1; in vnode_pager_generic_getpages() 1016 KASSERT(rbehind + rahead + count <= atop(maxphys), in vnode_pager_generic_getpages() 1018 rbehind, rahead, count, maxphys)); in vnode_pager_generic_getpages() 1100 KASSERT(bp->b_npages <= atop(maxphys), in vnode_pager_generic_getpages()
|
| HD | vm_pager.h | 136 #define PBUF_PAGES (atop(maxphys) + 1)
|
| /freebsd-14-stable/sys/dev/isci/scil/ |
| HD | sci_controller_constants.h | 158 #define __MAXPHYS_ELEMENTS ((maxphys / PAGE_SIZE) + 1)
|
| /freebsd-14-stable/sys/dev/pms/freebsd/driver/ini/src/ |
| HD | agdef.h | 64 #define AGTIAPI_NSEGS (MIN(btoc(maxphys), 64) + 1)
|
| /freebsd-14-stable/sys/geom/virstor/ |
| HD | g_virstor.h | 42 #define VIRSTOR_MAP_BLOCK_ENTRIES (maxphys / VIRSTOR_MAP_ENTRY_SIZE)
|
| /freebsd-14-stable/sys/geom/part/ |
| HD | g_part_gpt.c | 566 for (idx = 0; idx < sectors; idx += maxphys / pp->sectorsize) { in gpt_read_tbl() 567 size = (sectors - idx > maxphys / pp->sectorsize) ? maxphys: in gpt_read_tbl() 1264 for (index = 0; index < tblsz; index += maxphys / pp->sectorsize) { in g_part_gpt_write() 1268 (tblsz - index > maxphys / pp->sectorsize) ? maxphys : in g_part_gpt_write() 1286 for (index = 0; index < tblsz; index += maxphys / pp->sectorsize) { in g_part_gpt_write() 1290 (tblsz - index > maxphys / pp->sectorsize) ? maxphys : in g_part_gpt_write()
|
| HD | g_part_apm.c | 583 for (index = 0; index < tblsz; index += maxphys / pp->sectorsize) { in g_part_apm_write() 586 (tblsz - index > maxphys / pp->sectorsize) ? maxphys: in g_part_apm_write()
|
| /freebsd-14-stable/sys/geom/shsec/ |
| HD | g_shsec.c | 115 g_shsec_maxmem = maxphys * 100; in g_shsec_init() 117 g_shsec_zone = uma_zcreate("g_shsec_zone", maxphys, NULL, NULL, NULL, in g_shsec_init() 119 g_shsec_maxmem -= g_shsec_maxmem % maxphys; in g_shsec_init() 120 uma_zone_set_max(g_shsec_zone, g_shsec_maxmem / maxphys); in g_shsec_init()
|
| /freebsd-14-stable/sys/geom/stripe/ |
| HD | g_stripe.c | 119 g_stripe_maxmem = maxphys * 100; in g_stripe_init() 121 g_stripe_zone = uma_zcreate("g_stripe_zone", maxphys, NULL, NULL, in g_stripe_init() 123 g_stripe_maxmem -= g_stripe_maxmem % maxphys; in g_stripe_init() 124 uma_zone_set_max(g_stripe_zone, g_stripe_maxmem / maxphys); in g_stripe_init() 641 if (g_stripe_fast && bp->bio_length <= maxphys && in g_stripe_start()
|
| /freebsd-14-stable/sys/geom/label/ |
| HD | g_label_ntfs.c | 123 if (recsize <= 0 || recsize > maxphys || recsize % pp->sectorsize != 0) in g_label_ntfs_taste()
|
| /freebsd-14-stable/sys/dev/acpica/ |
| HD | acpi_pxm.c | 527 acpi_pxm_init(int ncpus, vm_paddr_t maxphys) in acpi_pxm_init() argument 537 maxphyaddr = maxphys; in acpi_pxm_init()
|
| /freebsd-14-stable/sys/geom/vinum/ |
| HD | geom_vinum_var.h | 109 #define GV_MAX_SYNCSIZE maxphys
|
| /freebsd-14-stable/sys/dev/sdhci/ |
| HD | sdhci.c | 801 if (maxphys <= 1024 * 4) 803 else if (maxphys <= 1024 * 8) 805 else if (maxphys <= 1024 * 16) 807 else if (maxphys <= 1024 * 32) 809 else if (maxphys <= 1024 * 64) 811 else if (maxphys <= 1024 * 128) 813 else if (maxphys <= 1024 * 256) 2660 mmc_path_inq(&ccb->cpi, "Deglitch Networks", sim, maxphys);
|
| /freebsd-14-stable/sys/powerpc/mambo/ |
| HD | mambo_disk.c | 116 d->d_maxsize = maxphys; /* Maybe ask bridge? */ in mambodisk_attach()
|
| /freebsd-14-stable/sys/dev/virtio/block/ |
| HD | virtio_blk.c | 348 if (blkcfg.size_max < maxphys) { in vtblk_attach() 386 maxphys, /* max request size */ in vtblk_attach() 388 maxphys, /* maxsegsize */ in vtblk_attach() 689 nsegs += MIN(blkcfg->seg_max, maxphys / PAGE_SIZE + 1); in vtblk_maximum_segments()
|
| /freebsd-14-stable/sys/dev/flash/ |
| HD | cqspi.c | 720 xdma_prep_sg(sc->xchan_tx, TX_QUEUE_SIZE, maxphys, 8, 16, 0, in cqspi_attach() 722 xdma_prep_sg(sc->xchan_rx, TX_QUEUE_SIZE, maxphys, 8, 16, 0, in cqspi_attach()
|
| /freebsd-14-stable/sys/cam/ |
| HD | cam_compat.c | 387 error = cam_periph_mapmem(ccb, &mapinfo, maxphys); in cam_compat_translate_dev_match_0x18() 450 error = cam_periph_mapmem(ccb, &mapinfo, maxphys); in cam_compat_handle_0x19()
|
| /freebsd-14-stable/sys/fs/udf/ |
| HD | udf_vfsops.c | 328 if (mp->mnt_iosize_max > maxphys) in udf_mountfs() 329 mp->mnt_iosize_max = maxphys; in udf_mountfs()
|
| /freebsd-14-stable/sys/fs/cd9660/ |
| HD | cd9660_vfsops.c | 244 if (mp->mnt_iosize_max > maxphys) in iso_mountfs() 245 mp->mnt_iosize_max = maxphys; in iso_mountfs()
|