Home
last modified time | relevance | path

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

1234

/freebsd-13.1/sys/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");
/freebsd-13.1/sys/geom/eli/
H A Dg_eli_integrity.c358 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 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.c826 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 Dvm_pager.h131 #define PBUF_PAGES (atop(maxphys) + 1)
/freebsd-13.1/sys/dev/isci/scil/
H A Dsci_controller_constants.h160 #define __MAXPHYS_ELEMENTS ((maxphys / PAGE_SIZE) + 1)
/freebsd-13.1/sys/geom/virstor/
H A Dg_virstor.h44 #define VIRSTOR_MAP_BLOCK_ENTRIES (maxphys / VIRSTOR_MAP_ENTRY_SIZE)
/freebsd-13.1/sys/dev/pms/freebsd/driver/ini/src/
H A Dagdef.h65 #define AGTIAPI_NSEGS (MIN(btoc(maxphys), 64) + 1)
/freebsd-13.1/sys/geom/part/
H A Dg_part_gpt.c559 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 Dg_part_apm.c585 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 Dg_shsec.c117 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 Dg_stripe.c121 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 Dg_label_ntfs.c125 if (recsize <= 0 || recsize > maxphys || recsize % pp->sectorsize != 0) in g_label_ntfs_taste()
/freebsd-13.1/sys/dev/acpica/
H A Dacpi_pxm.c529 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 Dgeom_vinum_var.h109 #define GV_MAX_SYNCSIZE maxphys
/freebsd-13.1/sys/dev/sdhci/
H A Dsdhci.c725 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 Dmambo_disk.c118 d->d_maxsize = maxphys; /* Maybe ask bridge? */ in mambodisk_attach()
/freebsd-13.1/sys/dev/flash/
H A Dcqspi.c724 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 Dcam_compat.c389 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 Dudf_vfsops.c341 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 Dscsi_sg.c330 else if (cpi.maxio > maxphys) in sgregister()
331 softc->maxio = maxphys; /* for safety */ in sgregister()
/freebsd-13.1/sys/fs/cd9660/
H A Dcd9660_vfsops.c241 if (mp->mnt_iosize_max > maxphys)
242 mp->mnt_iosize_max = maxphys;
/freebsd-13.1/sys/geom/journal/
H A Dg_journal.h218 ((sc)->sc_jprovider->sectorsize + GJ_RECORD_HEADER_NENTRIES * maxphys)

1234