/freebsd/sys/kern/ |
H A D | subr_param.c | 101 u_long maxphys; /* max raw I/O transfer size */ variable 331 maxphys = MAXPHYS; in init_param2() 332 TUNABLE_ULONG_FETCH("kern.maxphys", &maxphys); in init_param2() 333 if (maxphys == 0) { in init_param2() 334 maxphys = MAXPHYS; in init_param2() 335 } else if (__bitcountl(maxphys) != 1) { /* power of two */ in init_param2() 336 if (flsl(maxphys) == NBBY * sizeof(maxphys)) in init_param2() 337 maxphys = MAXPHYS; in init_param2() 339 maxphys = 1UL << flsl(maxphys); in init_param2() 341 if (maxphys < PAGE_SIZE) in init_param2() [all …]
|
H A D | kern_physio.c | 70 (uio->uio_resid > dev->si_iosize_max || uio->uio_resid > maxphys || in physio() 79 if (uio->uio_resid > maxphys) in physio() 80 uprintf("%s: request size=%zd > maxphys=%lu; " in physio() 82 uio->uio_resid, maxphys); in physio() 96 maxpages = btoc(MIN(uio->uio_resid, maxphys)) + 1; in physio() 146 if (bp->bio_length > maxphys) in physio() 147 bp->bio_length = maxphys; in physio()
|
H A D | 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/sys/geom/eli/ |
H A D | g_eli_integrity.c | 350 if (cbp->bio_length > maxphys) { in g_eli_auth_write_done() 352 cbp2->bio_length = cbp->bio_length - maxphys; in g_eli_auth_write_done() 353 cbp2->bio_data = cbp->bio_data + maxphys; in g_eli_auth_write_done() 354 cbp2->bio_offset = cbp->bio_offset + maxphys; in g_eli_auth_write_done() 357 cbp->bio_length = maxphys; in g_eli_auth_write_done() 418 if (cbp->bio_length > maxphys) { in g_eli_auth_read() 420 cbp2->bio_length = cbp->bio_length - maxphys; in g_eli_auth_read() 421 cbp2->bio_data = cbp->bio_data + maxphys; in g_eli_auth_read() 422 cbp2->bio_offset = cbp->bio_offset + maxphys; in g_eli_auth_read() 425 cbp->bio_length = maxphys; in g_eli_auth_read()
|
/freebsd/usr.bin/tcopy/ |
H A D | tcopy.c | 73 unsigned long maxphys = 0; in main() local 74 size_t l_maxphys = sizeof maxphys; in main() 77 if (!sysctlbyname("kern.maxphys", &maxphys, &l_maxphys, NULL, 0)) in main() 78 maxblk = maxphys; in main()
|
/freebsd/sys/vm/ |
H A D | vm_init.c | 232 size = (long)nbuf * BKVASIZE + (long)bio_transient_maxcnt * maxphys; in vm_ksubmap_init() 252 size = (long)bio_transient_maxcnt * maxphys; in vm_ksubmap_init()
|
H A D | vnode_pager.c | 917 KASSERT(count <= atop(maxphys), in vnode_pager_generic_getpages() 1016 if (rbehind + rahead + count > atop(maxphys)) { in vnode_pager_generic_getpages() 1019 trim = rbehind + rahead + count - atop(maxphys) + 1; in vnode_pager_generic_getpages() 1030 KASSERT(rbehind + rahead + count <= atop(maxphys), in vnode_pager_generic_getpages() 1032 rbehind, rahead, count, maxphys)); in vnode_pager_generic_getpages() 1062 KASSERT(bp->b_npages <= atop(maxphys), in vnode_pager_generic_getpages()
|
/freebsd/sys/dev/isci/scil/ |
H A D | sci_controller_constants.h | 158 #define __MAXPHYS_ELEMENTS ((maxphys / PAGE_SIZE) + 1)
|
/freebsd/sys/geom/part/ |
H A D | g_part_gpt.c | 568 for (idx = 0; idx < sectors; idx += maxphys / pp->sectorsize) { in gpt_read_tbl() 569 size = (sectors - idx > maxphys / pp->sectorsize) ? maxphys: in gpt_read_tbl() 1280 for (index = 0; index < tblsz; index += maxphys / pp->sectorsize) { in g_part_gpt_write() 1284 (tblsz - index > maxphys / pp->sectorsize) ? maxphys : in g_part_gpt_write() 1302 for (index = 0; index < tblsz; index += maxphys / pp->sectorsize) { in g_part_gpt_write() 1306 (tblsz - index > maxphys / pp->sectorsize) ? maxphys : in g_part_gpt_write()
|
H A D | 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/sys/dev/pms/freebsd/driver/ini/src/ |
H A D | agdef.h | 64 #define AGTIAPI_NSEGS (MIN(btoc(maxphys), 64) + 1)
|
/freebsd/sys/geom/virstor/ |
H A D | g_virstor.h | 42 #define VIRSTOR_MAP_BLOCK_ENTRIES (maxphys / VIRSTOR_MAP_ENTRY_SIZE)
|
/freebsd/sys/geom/shsec/ |
H A D | g_shsec.c | 114 g_shsec_maxmem = maxphys * 100; in g_shsec_init() 116 g_shsec_zone = uma_zcreate("g_shsec_zone", maxphys, NULL, NULL, NULL, in g_shsec_init() 118 g_shsec_maxmem -= g_shsec_maxmem % maxphys; in g_shsec_init() 119 uma_zone_set_max(g_shsec_zone, g_shsec_maxmem / maxphys); in g_shsec_init()
|
/freebsd/sys/geom/stripe/ |
H A D | g_stripe.c | 118 g_stripe_maxmem = maxphys * 100; in g_stripe_init() 120 g_stripe_zone = uma_zcreate("g_stripe_zone", maxphys, NULL, NULL, in g_stripe_init() 122 g_stripe_maxmem -= g_stripe_maxmem % maxphys; in g_stripe_init() 123 uma_zone_set_max(g_stripe_zone, g_stripe_maxmem / maxphys); in g_stripe_init() 629 * 2. Request size is less than or equal to maxphys, in g_stripe_start() 640 if (g_stripe_fast && bp->bio_length <= maxphys && in g_stripe_start()
|
/freebsd/sys/geom/label/ |
H A D | g_label_ntfs.c | 122 if (recsize <= 0 || recsize > maxphys || recsize % pp->sectorsize != 0) in g_label_ntfs_taste()
|
/freebsd/sys/dev/acpica/ |
H A D | 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/sys/dev/sdhci/ |
H A D | sdhci.c | 800 if (maxphys <= 1024 * 4) 802 else if (maxphys <= 1024 * 8) 804 else if (maxphys <= 1024 * 16) 806 else if (maxphys <= 1024 * 32) 808 else if (maxphys <= 1024 * 64) 810 else if (maxphys <= 1024 * 128) 812 else if (maxphys <= 1024 * 256) 2662 mmc_path_inq(&ccb->cpi, "Deglitch Networks", sim, maxphys);
|
/freebsd/sys/powerpc/mambo/ |
H A D | mambo_disk.c | 115 d->d_maxsize = maxphys; /* Maybe ask bridge? */ in mambodisk_attach()
|
/freebsd/sys/dev/virtio/block/ |
H A D | virtio_blk.c | 347 if (blkcfg.size_max < maxphys) { in vtblk_attach() 385 maxphys, /* max request size */ in vtblk_attach() 387 maxphys, /* maxsegsize */ in vtblk_attach() 688 nsegs += MIN(blkcfg->seg_max, maxphys / PAGE_SIZE + 1); in vtblk_maximum_segments() 782 * which is typically greater than maxphys. Eventually we should in vtblk_alloc_disk() 783 * just advertise maxphys and split buffers that are too big. in vtblk_alloc_disk()
|
/freebsd/sys/dev/flash/ |
H A D | 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/sys/fs/udf/ |
H A D | udf_vfsops.c | 328 if (mp->mnt_iosize_max > maxphys) in udf_mountfs() 329 mp->mnt_iosize_max = maxphys; in udf_mountfs()
|
/freebsd/sys/dev/md/ |
H A D | md.c | 960 npages = atop(min(maxphys, round_page(len + (ma_offs & in mdstart_vnode() 964 KASSERT(npages <= atop(maxphys + PAGE_SIZE), in mdstart_vnode() 1494 sc->kva = kva_alloc(maxphys + PAGE_SIZE); in mdcreate_vnode() 1554 kva_free(sc->kva, maxphys + PAGE_SIZE); in mddestroy() 1703 if (sectsize > maxphys || mdr->md_mediasize < sectsize) in kern_mdattach_locked()
|
/freebsd/sys/cam/scsi/ |
H A D | scsi_sg.c | 324 else if (cpi.maxio > maxphys) in sgregister() 325 softc->maxio = maxphys; /* for safety */ in sgregister()
|
/freebsd/sys/fs/cd9660/ |
H A D | cd9660_vfsops.c | 241 if (mp->mnt_iosize_max > maxphys) in iso_mountfs() 242 mp->mnt_iosize_max = maxphys; in iso_mountfs()
|
/freebsd/sys/dev/siis/ |
H A D | siis.h | 265 #define SIIS_SG_ENTRIES (roundup(btoc(maxphys), 4) + 1)
|