Home
last modified time | relevance | path

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

1234

/freebsd-14-stable/sys/kern/
HDsubr_param.c102 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 …]
HDkern_physio.c71 (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()
HDkern_mib.c154 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/
HDg_eli_integrity.c351 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/
HDtcopy.c83 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/
HDvm_init.c213 size = (long)nbuf * BKVASIZE + (long)bio_transient_maxcnt * maxphys; in vm_ksubmap_init()
233 size = (long)bio_transient_maxcnt * maxphys; in vm_ksubmap_init()
HDvnode_pager.c902 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()
HDvm_pager.h136 #define PBUF_PAGES (atop(maxphys) + 1)
/freebsd-14-stable/sys/dev/isci/scil/
HDsci_controller_constants.h158 #define __MAXPHYS_ELEMENTS ((maxphys / PAGE_SIZE) + 1)
/freebsd-14-stable/sys/dev/pms/freebsd/driver/ini/src/
HDagdef.h64 #define AGTIAPI_NSEGS (MIN(btoc(maxphys), 64) + 1)
/freebsd-14-stable/sys/geom/virstor/
HDg_virstor.h42 #define VIRSTOR_MAP_BLOCK_ENTRIES (maxphys / VIRSTOR_MAP_ENTRY_SIZE)
/freebsd-14-stable/sys/geom/part/
HDg_part_gpt.c566 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()
HDg_part_apm.c583 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/
HDg_shsec.c115 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/
HDg_stripe.c119 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/
HDg_label_ntfs.c123 if (recsize <= 0 || recsize > maxphys || recsize % pp->sectorsize != 0) in g_label_ntfs_taste()
/freebsd-14-stable/sys/dev/acpica/
HDacpi_pxm.c527 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/
HDgeom_vinum_var.h109 #define GV_MAX_SYNCSIZE maxphys
/freebsd-14-stable/sys/dev/sdhci/
HDsdhci.c801 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/
HDmambo_disk.c116 d->d_maxsize = maxphys; /* Maybe ask bridge? */ in mambodisk_attach()
/freebsd-14-stable/sys/dev/virtio/block/
HDvirtio_blk.c348 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/
HDcqspi.c720 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/
HDcam_compat.c387 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/
HDudf_vfsops.c328 if (mp->mnt_iosize_max > maxphys) in udf_mountfs()
329 mp->mnt_iosize_max = maxphys; in udf_mountfs()
/freebsd-14-stable/sys/fs/cd9660/
HDcd9660_vfsops.c244 if (mp->mnt_iosize_max > maxphys) in iso_mountfs()
245 mp->mnt_iosize_max = maxphys; in iso_mountfs()

1234