Searched refs:maxphys (Results 1 - 25 of 93) sorted by relevance

1234

/freebsd-current/sys/kern/
H A Dsubr_param.c101 u_long maxphys; /* max raw I/O transfer size */ variable
312 maxphys = MAXPHYS;
313 TUNABLE_ULONG_FETCH("kern.maxphys", &maxphys);
314 if (maxphys == 0) {
315 maxphys = MAXPHYS;
316 } else if (__bitcountl(maxphys) != 1) { /* power of two */
317 if (flsl(maxphys) == NBBY * sizeof(maxphys))
318 maxphys
[all...]
H A Dkern_physio.c70 (uio->uio_resid > dev->si_iosize_max || uio->uio_resid > maxphys ||
79 if (uio->uio_resid > maxphys)
80 uprintf("%s: request size=%zd > maxphys=%lu; "
82 uio->uio_resid, maxphys);
102 maxpages = btoc(MIN(uio->uio_resid, maxphys)) + 1;
152 if (bp->bio_length > maxphys)
153 bp->bio_length = maxphys;
H A Dkern_mib.c152 lvalue = maxphys;
160 SYSCTL_PROC(_kern, KERN_MAXPHYS, maxphys, CTLTYPE_LONG | CTLFLAG_RDTUN |
164 SYSCTL_ULONG(_kern, KERN_MAXPHYS, maxphys,
166 &maxphys, 0, "Maximum block I/O access size");
/freebsd-current/sys/dev/isci/scil/
H A Dsci_controller_constants.h158 #define __MAXPHYS_ELEMENTS ((maxphys / PAGE_SIZE) + 1)
/freebsd-current/sys/geom/virstor/
H A Dg_virstor.h42 #define VIRSTOR_MAP_BLOCK_ENTRIES (maxphys / VIRSTOR_MAP_ENTRY_SIZE)
/freebsd-current/usr.bin/tcopy/
H A Dtcopy.c72 unsigned long maxphys = 0; local
73 size_t l_maxphys = sizeof maxphys;
75 if (!sysctlbyname("kern.maxphys", &maxphys, &l_maxphys, NULL, 0))
76 maxblk = maxphys;
/freebsd-current/sys/geom/eli/
H A Dg_eli_integrity.c347 * more than maxphys.
350 if (cbp->bio_length > maxphys) {
352 cbp2->bio_length = cbp->bio_length - maxphys;
353 cbp2->bio_data = cbp->bio_data + maxphys;
354 cbp2->bio_offset = cbp->bio_offset + maxphys;
357 cbp->bio_length = maxphys;
415 * more than maxphys.
418 if (cbp->bio_length > maxphys) {
420 cbp2->bio_length = cbp->bio_length - maxphys;
421 cbp2->bio_data = cbp->bio_data + maxphys;
[all...]
/freebsd-current/sys/vm/
H A Dvm_init.c210 size = (long)nbuf * BKVASIZE + (long)bio_transient_maxcnt * maxphys;
230 size = (long)bio_transient_maxcnt * maxphys;
H A Dvnode_pager.c918 KASSERT(count <= atop(maxphys),
1018 if (rbehind + rahead + count > atop(maxphys)) {
1021 trim = rbehind + rahead + count - atop(maxphys) + 1;
1032 KASSERT(rbehind + rahead + count <= atop(maxphys),
1033 ("%s: behind %d ahead %d count %d maxphys %lu", __func__,
1034 rbehind, rahead, count, maxphys));
1116 KASSERT(bp->b_npages <= atop(maxphys),
H A Dvm_pager.h132 * It is +1 to allow for unaligned data buffer of maxphys size.
134 #define PBUF_PAGES (atop(maxphys) + 1)
/freebsd-current/sys/dev/pms/freebsd/driver/ini/src/
H A Dagdef.h64 #define AGTIAPI_NSEGS (MIN(btoc(maxphys), 64) + 1)
/freebsd-current/sys/geom/label/
H A Dg_label_ntfs.c122 if (recsize <= 0 || recsize > maxphys || recsize % pp->sectorsize != 0)
/freebsd-current/sys/geom/part/
H A Dg_part_gpt.c565 for (idx = 0; idx < sectors; idx += maxphys / pp->sectorsize) {
566 size = (sectors - idx > maxphys / pp->sectorsize) ? maxphys:
1263 for (index = 0; index < tblsz; index += maxphys / pp->sectorsize) {
1267 (tblsz - index > maxphys / pp->sectorsize) ? maxphys :
1285 for (index = 0; index < tblsz; index += maxphys / pp->sectorsize) {
1289 (tblsz - index > maxphys / pp->sectorsize) ? maxphys :
H A Dg_part_apm.c582 for (index = 0; index < tblsz; index += maxphys / pp->sectorsize) {
585 (tblsz - index > maxphys / pp->sectorsize) ? maxphys:
H A Dg_part_ldm.c1020 for (n = 0; n < size; n += maxphys / pp->sectorsize) {
1022 sectors = (size - n) > (maxphys / pp->sectorsize) ?
1023 maxphys / pp->sectorsize : size - n;
/freebsd-current/sys/dev/acpica/
H A Dacpi_pxm.c527 acpi_pxm_init(int ncpus, vm_paddr_t maxphys) argument
537 maxphyaddr = maxphys;
/freebsd-current/sys/geom/vinum/
H A Dgeom_vinum_var.h109 #define GV_MAX_SYNCSIZE maxphys
/freebsd-current/sys/powerpc/mambo/
H A Dmambo_disk.c115 d->d_maxsize = maxphys; /* Maybe ask bridge? */
/freebsd-current/sys/geom/shsec/
H A Dg_shsec.c114 g_shsec_maxmem = maxphys * 100;
116 g_shsec_zone = uma_zcreate("g_shsec_zone", maxphys, NULL, NULL, NULL,
118 g_shsec_maxmem -= g_shsec_maxmem % maxphys;
119 uma_zone_set_max(g_shsec_zone, g_shsec_maxmem / maxphys);
/freebsd-current/sys/geom/stripe/
H A Dg_stripe.c118 g_stripe_maxmem = maxphys * 100;
120 g_stripe_zone = uma_zcreate("g_stripe_zone", maxphys, NULL, NULL,
122 g_stripe_maxmem -= g_stripe_maxmem % maxphys;
123 uma_zone_set_max(g_stripe_zone, g_stripe_maxmem / maxphys);
629 * 2. Request size is less than or equal to maxphys,
640 if (g_stripe_fast && bp->bio_length <= maxphys &&
/freebsd-current/sys/dev/flash/
H A Dcqspi.c720 xdma_prep_sg(sc->xchan_tx, TX_QUEUE_SIZE, maxphys, 8, 16, 0,
722 xdma_prep_sg(sc->xchan_rx, TX_QUEUE_SIZE, maxphys, 8, 16, 0,
/freebsd-current/sys/dev/sdhci/
H A Dsdhci.c796 if (maxphys <= 1024 * 4)
798 else if (maxphys <= 1024 * 8)
800 else if (maxphys <= 1024 * 16)
802 else if (maxphys <= 1024 * 32)
804 else if (maxphys <= 1024 * 64)
806 else if (maxphys <= 1024 * 128)
808 else if (maxphys <= 1024 * 256)
2655 mmc_path_inq(&ccb->cpi, "Deglitch Networks", sim, maxphys);
/freebsd-current/sys/cam/
H A Dcam_compat.c384 error = cam_periph_mapmem(ccb, &mapinfo, maxphys);
447 error = cam_periph_mapmem(ccb, &mapinfo, maxphys);
/freebsd-current/sys/geom/journal/
H A Dg_journal.h216 ((sc)->sc_jprovider->sectorsize + GJ_RECORD_HEADER_NENTRIES * maxphys)
/freebsd-current/sys/dev/virtio/block/
H A Dvirtio_blk.c347 if (blkcfg.size_max < maxphys) {
385 maxphys, /* max request size */
387 maxphys, /* maxsegsize */
688 nsegs += MIN(blkcfg->seg_max, maxphys / PAGE_SIZE + 1);
782 * which is typically greater than maxphys. Eventually we should
783 * just advertise maxphys and split buffers that are too big.

Completed in 181 milliseconds

1234