| /freebsd-13.1/sys/kern/ |
| H A D | subr_param.c | 107 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 D | kern_physio.c | 75 (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 D | kern_mib.c | 156 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");
|
| /freebsd-13.1/sys/geom/eli/ |
| H A D | g_eli_integrity.c | 358 if (cbp->bio_length > maxphys) { in g_eli_auth_write_done() 360 cbp2->bio_length = cbp->bio_length - maxphys; in g_eli_auth_write_done() 361 cbp2->bio_data = cbp->bio_data + maxphys; in g_eli_auth_write_done() 362 cbp2->bio_offset = cbp->bio_offset + maxphys; in g_eli_auth_write_done() 365 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-13.1/sys/vm/ |
| H A D | vm_init.c | 215 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 D | vnode_pager.c | 826 KASSERT(count <= atop(maxphys), in vnode_pager_generic_getpages() 926 if (rbehind + rahead + count > atop(maxphys)) { in vnode_pager_generic_getpages() 929 trim = rbehind + rahead + count - atop(maxphys) + 1; in vnode_pager_generic_getpages() 940 KASSERT(rbehind + rahead + count <= atop(maxphys), in vnode_pager_generic_getpages() 942 rbehind, rahead, count, maxphys)); in vnode_pager_generic_getpages() 1024 KASSERT(bp->b_npages <= atop(maxphys), in vnode_pager_generic_getpages()
|
| H A D | vm_pager.h | 131 #define PBUF_PAGES (atop(maxphys) + 1)
|
| /freebsd-13.1/sys/dev/isci/scil/ |
| H A D | sci_controller_constants.h | 160 #define __MAXPHYS_ELEMENTS ((maxphys / PAGE_SIZE) + 1)
|
| /freebsd-13.1/sys/geom/virstor/ |
| H A D | g_virstor.h | 44 #define VIRSTOR_MAP_BLOCK_ENTRIES (maxphys / VIRSTOR_MAP_ENTRY_SIZE)
|
| /freebsd-13.1/sys/dev/pms/freebsd/driver/ini/src/ |
| H A D | agdef.h | 65 #define AGTIAPI_NSEGS (MIN(btoc(maxphys), 64) + 1)
|
| /freebsd-13.1/sys/geom/part/ |
| H A D | g_part_gpt.c | 559 for (idx = 0; idx < sectors; idx += maxphys / pp->sectorsize) { in gpt_read_tbl() 560 size = (sectors - idx > maxphys / pp->sectorsize) ? maxphys: in gpt_read_tbl() 1244 for (index = 0; index < tblsz; index += maxphys / pp->sectorsize) { in g_part_gpt_write() 1248 (tblsz - index > maxphys / pp->sectorsize) ? maxphys : in g_part_gpt_write() 1266 for (index = 0; index < tblsz; index += maxphys / pp->sectorsize) { in g_part_gpt_write() 1270 (tblsz - index > maxphys / pp->sectorsize) ? maxphys : in g_part_gpt_write()
|
| H A D | g_part_apm.c | 585 for (index = 0; index < tblsz; index += maxphys / pp->sectorsize) { in g_part_apm_write() 588 (tblsz - index > maxphys / pp->sectorsize) ? maxphys: in g_part_apm_write()
|
| /freebsd-13.1/sys/geom/shsec/ |
| H A D | g_shsec.c | 117 g_shsec_maxmem = maxphys * 100; in g_shsec_init() 119 g_shsec_zone = uma_zcreate("g_shsec_zone", maxphys, NULL, NULL, NULL, in g_shsec_init() 121 g_shsec_maxmem -= g_shsec_maxmem % maxphys; in g_shsec_init() 122 uma_zone_set_max(g_shsec_zone, g_shsec_maxmem / maxphys); in g_shsec_init()
|
| /freebsd-13.1/sys/geom/stripe/ |
| H A D | g_stripe.c | 121 g_stripe_maxmem = maxphys * 100; in g_stripe_init() 123 g_stripe_zone = uma_zcreate("g_stripe_zone", maxphys, NULL, NULL, in g_stripe_init() 125 g_stripe_maxmem -= g_stripe_maxmem % maxphys; in g_stripe_init() 126 uma_zone_set_max(g_stripe_zone, g_stripe_maxmem / maxphys); in g_stripe_init() 638 if (g_stripe_fast && bp->bio_length <= maxphys && in g_stripe_start()
|
| /freebsd-13.1/sys/geom/label/ |
| H A D | g_label_ntfs.c | 125 if (recsize <= 0 || recsize > maxphys || recsize % pp->sectorsize != 0) in g_label_ntfs_taste()
|
| /freebsd-13.1/sys/dev/acpica/ |
| H A D | acpi_pxm.c | 529 acpi_pxm_init(int ncpus, vm_paddr_t maxphys) in acpi_pxm_init() argument 539 maxphyaddr = maxphys; in acpi_pxm_init()
|
| /freebsd-13.1/sys/geom/vinum/ |
| H A D | geom_vinum_var.h | 109 #define GV_MAX_SYNCSIZE maxphys
|
| /freebsd-13.1/sys/dev/sdhci/ |
| H A D | sdhci.c | 725 if (maxphys <= 1024 * 4) 727 else if (maxphys <= 1024 * 8) 729 else if (maxphys <= 1024 * 16) 731 else if (maxphys <= 1024 * 32) 733 else if (maxphys <= 1024 * 64) 735 else if (maxphys <= 1024 * 128) 737 else if (maxphys <= 1024 * 256) 2538 mmc_path_inq(&ccb->cpi, "Deglitch Networks", sim, maxphys);
|
| /freebsd-13.1/sys/powerpc/mambo/ |
| H A D | mambo_disk.c | 118 d->d_maxsize = maxphys; /* Maybe ask bridge? */ in mambodisk_attach()
|
| /freebsd-13.1/sys/dev/flash/ |
| H A D | cqspi.c | 724 xdma_prep_sg(sc->xchan_tx, TX_QUEUE_SIZE, maxphys, 8, 16, 0, in cqspi_attach() 726 xdma_prep_sg(sc->xchan_rx, TX_QUEUE_SIZE, maxphys, 8, 16, 0, in cqspi_attach()
|
| /freebsd-13.1/sys/cam/ |
| H A D | cam_compat.c | 389 cam_periph_mapmem(ccb, &mapinfo, maxphys); in cam_compat_translate_dev_match_0x18() 451 cam_periph_mapmem(ccb, &mapinfo, maxphys); in cam_compat_handle_0x19()
|
| /freebsd-13.1/sys/fs/udf/ |
| H A D | udf_vfsops.c | 341 if (mp->mnt_iosize_max > maxphys) in udf_mountfs() 342 mp->mnt_iosize_max = maxphys; in udf_mountfs()
|
| /freebsd-13.1/sys/cam/scsi/ |
| H A D | scsi_sg.c | 330 else if (cpi.maxio > maxphys) in sgregister() 331 softc->maxio = maxphys; /* for safety */ in sgregister()
|
| /freebsd-13.1/sys/fs/cd9660/ |
| H A D | cd9660_vfsops.c | 241 if (mp->mnt_iosize_max > maxphys) 242 mp->mnt_iosize_max = maxphys;
|
| /freebsd-13.1/sys/geom/journal/ |
| H A D | g_journal.h | 218 ((sc)->sc_jprovider->sectorsize + GJ_RECORD_HEADER_NENTRIES * maxphys)
|