/freebsd-current/sys/kern/ |
H A D | subr_param.c | 101 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 D | kern_physio.c | 70 (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 D | kern_mib.c | 152 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 D | sci_controller_constants.h | 158 #define __MAXPHYS_ELEMENTS ((maxphys / PAGE_SIZE) + 1)
|
/freebsd-current/sys/geom/virstor/ |
H A D | g_virstor.h | 42 #define VIRSTOR_MAP_BLOCK_ENTRIES (maxphys / VIRSTOR_MAP_ENTRY_SIZE)
|
/freebsd-current/usr.bin/tcopy/ |
H A D | tcopy.c | 72 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 D | g_eli_integrity.c | 347 * 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 D | vm_init.c | 210 size = (long)nbuf * BKVASIZE + (long)bio_transient_maxcnt * maxphys; 230 size = (long)bio_transient_maxcnt * maxphys;
|
H A D | vnode_pager.c | 918 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 D | vm_pager.h | 132 * 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 D | agdef.h | 64 #define AGTIAPI_NSEGS (MIN(btoc(maxphys), 64) + 1)
|
/freebsd-current/sys/geom/label/ |
H A D | g_label_ntfs.c | 122 if (recsize <= 0 || recsize > maxphys || recsize % pp->sectorsize != 0)
|
/freebsd-current/sys/geom/part/ |
H A D | g_part_gpt.c | 565 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 D | g_part_apm.c | 582 for (index = 0; index < tblsz; index += maxphys / pp->sectorsize) { 585 (tblsz - index > maxphys / pp->sectorsize) ? maxphys:
|
H A D | g_part_ldm.c | 1020 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 D | acpi_pxm.c | 527 acpi_pxm_init(int ncpus, vm_paddr_t maxphys) argument 537 maxphyaddr = maxphys;
|
/freebsd-current/sys/geom/vinum/ |
H A D | geom_vinum_var.h | 109 #define GV_MAX_SYNCSIZE maxphys
|
/freebsd-current/sys/powerpc/mambo/ |
H A D | mambo_disk.c | 115 d->d_maxsize = maxphys; /* Maybe ask bridge? */
|
/freebsd-current/sys/geom/shsec/ |
H A D | g_shsec.c | 114 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 D | g_stripe.c | 118 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 D | cqspi.c | 720 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 D | sdhci.c | 796 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 D | cam_compat.c | 384 error = cam_periph_mapmem(ccb, &mapinfo, maxphys); 447 error = cam_periph_mapmem(ccb, &mapinfo, maxphys);
|
/freebsd-current/sys/geom/journal/ |
H A D | g_journal.h | 216 ((sc)->sc_jprovider->sectorsize + GJ_RECORD_HEADER_NENTRIES * maxphys)
|
/freebsd-current/sys/dev/virtio/block/ |
H A D | virtio_blk.c | 347 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.
|