Home
last modified time | relevance | path

Searched refs:maxio (Results 1 – 25 of 55) sorted by relevance

123

/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dvdev_geom.c386 off_t off, maxio, s, end; in vdev_geom_io() local
390 maxio = MAXPHYS - (MAXPHYS % cp->provider->sectorsize); in vdev_geom_io()
395 n_bios += (sizes[i] + maxio - 1) / maxio; in vdev_geom_io()
410 for (; off < end; off += maxio, p += maxio, s -= maxio, j++) { in vdev_geom_io()
415 bios[j]->bio_length = MIN(s, maxio); in vdev_geom_io()
428 for (; off < end; off += maxio, s -= maxio, j++) { in vdev_geom_io()
/freebsd-12.1/sys/cam/scsi/
H A Dscsi_sg.c104 u_int maxio; member
329 if (cpi.maxio == 0) in sgregister()
330 softc->maxio = DFLTPHYS; /* traditional default */ in sgregister()
331 else if (cpi.maxio > MAXPHYS) in sgregister()
332 softc->maxio = MAXPHYS; /* for safety */ in sgregister()
334 softc->maxio = cpi.maxio; /* real value */ in sgregister()
907 error = cam_periph_mapmem(ccb, &mapinfo, softc->maxio); in sgsendccb()
H A Dscsi_target.c99 u_int maxio; member
407 if (cpi.maxio == 0) in targenable()
408 softc->maxio = DFLTPHYS; /* traditional default */ in targenable()
409 else if (cpi.maxio > MAXPHYS) in targenable()
410 softc->maxio = MAXPHYS; /* for safety */ in targenable()
412 softc->maxio = cpi.maxio; /* real value */ in targenable()
735 error = cam_periph_mapmem(ccb, mapinfo, softc->maxio); in targsendccb()
H A Dscsi_pass.c134 u_int maxio; member
592 if (cpi.maxio == 0) in passregister()
593 softc->maxio = DFLTPHYS; /* traditional default */ in passregister()
594 else if (cpi.maxio > MAXPHYS) in passregister()
595 softc->maxio = MAXPHYS; /* for safety */ in passregister()
597 softc->maxio = cpi.maxio; /* real value */ in passregister()
1347 maxmap = softc->maxio; in passmemsetup()
1365 maxmap = softc->maxio; in passmemsetup()
1377 maxmap = softc->maxio; in passmemsetup()
1403 maxmap = softc->maxio; in passmemsetup()
[all …]
H A Dscsi_sa.c339 u_int32_t maxio; member
2283 dev->si_iosize_max = softc->maxio; in sasetupdev()
2326 &softc->maxio, 0, "Maximum I/O size"); in sasysctlinit()
2460 if (cpi.maxio == 0) in saregister()
2461 softc->maxio = DFLTPHYS; in saregister()
2462 else if (cpi.maxio > MAXPHYS) in saregister()
2463 softc->maxio = MAXPHYS; in saregister()
2465 softc->maxio = cpi.maxio; in saregister()
2471 softc->cpi_maxio = cpi.maxio; in saregister()
4503 SASBADDUINTDESC(sb, indent, softc->maxio, %u, maxio, in saextget()
[all …]
H A Dscsi_da.c336 u_int maxio; member
2828 if (cpi.maxio == 0) in daregister()
2829 softc->maxio = DFLTPHYS; /* traditional default */ in daregister()
2830 else if (cpi.maxio > MAXPHYS) in daregister()
2831 softc->maxio = MAXPHYS; /* for safety */ in daregister()
2833 softc->maxio = cpi.maxio; in daregister()
2835 softc->maxio = min(softc->maxio, 128 * 1024); in daregister()
2836 softc->disk->d_maxsize = softc->maxio; in daregister()
5001 softc->disk->d_maxsize = MIN(softc->maxio, in dadone_probeblklimits()
/freebsd-12.1/sys/dev/aac/
H A Daac_disk.c237 size_t len, maxio; in aac_disk_dump() local
266 maxio = sc->aac_max_sectors << 9; in aac_disk_dump()
267 len = (length > maxio) ? maxio : length; in aac_disk_dump()
/freebsd-12.1/sys/cam/nvme/
H A Dnvme_da.c713 u_int maxio; in ndaregister() local
772 maxio = cpi.maxio; /* Honor max I/O size of SIM */ in ndaregister()
773 if (maxio == 0) in ndaregister()
774 maxio = DFLTPHYS; /* traditional default */ in ndaregister()
775 else if (maxio > MAXPHYS) in ndaregister()
776 maxio = MAXPHYS; /* for safety */ in ndaregister()
777 disk->d_maxsize = maxio; in ndaregister()
/freebsd-12.1/sys/cam/ata/
H A Data_da.c3316 u_int maxio, d_flags; in adasetgeom() local
3350 maxio = softc->cpi.maxio; /* Honor max I/O size of SIM */ in adasetgeom()
3351 if (maxio == 0) in adasetgeom()
3352 maxio = DFLTPHYS; /* traditional default */ in adasetgeom()
3353 else if (maxio > MAXPHYS) in adasetgeom()
3354 maxio = MAXPHYS; /* for safety */ in adasetgeom()
3356 maxio = min(maxio, 65536 * softc->params.secsize); in adasetgeom()
3358 maxio = min(maxio, 256 * softc->params.secsize); in adasetgeom()
3360 maxio = min(maxio, 128 * 1024); in adasetgeom()
3361 softc->disk->d_maxsize = maxio; in adasetgeom()
[all …]
/freebsd-12.1/sys/cam/ctl/
H A Dscsi_ctl.c84 u_int maxio; member
329 if (cpi->maxio != 0) in ctlfeasync()
330 softc->maxio = cpi->maxio; in ctlfeasync()
332 softc->maxio = DFLTPHYS; in ctlfeasync()
703 if (io->scsiio.kern_data_len - off <= bus_softc->maxio) { in ctlfedata()
706 *dxfer_len = bus_softc->maxio; in ctlfedata()
707 cmd_info->cur_transfer_off += bus_softc->maxio; in ctlfedata()
732 if (ctl_sglist[i + idx].len - off <= bus_softc->maxio - *dxfer_len) { in ctlfedata()
736 cam_sglist[i].ds_len = bus_softc->maxio - *dxfer_len; in ctlfedata()
H A Dctl_backend_block.c1923 int error, atomic, maxio, ref, unmap, tmp; in ctl_be_block_open_dev() local
1935 atomic = maxio = CTLBLK_MAX_IO_SIZE; in ctl_be_block_open_dev()
1940 maxio = dev->si_iosize_max; in ctl_be_block_open_dev()
1941 if (maxio <= 0) in ctl_be_block_open_dev()
1942 maxio = DFLTPHYS; in ctl_be_block_open_dev()
1943 if (maxio > CTLBLK_MAX_IO_SIZE) in ctl_be_block_open_dev()
1944 maxio = CTLBLK_MAX_IO_SIZE; in ctl_be_block_open_dev()
2067 cbe_lun->opttxferlen = maxio / cbe_lun->blocksize; in ctl_be_block_open_dev()
H A Dctl_frontend_cam_sim.c781 cpi->maxio = 1024 * 1024; in cfcs_action()
/freebsd-12.1/sys/fs/nfsclient/
H A Dnfs_clvfsops.c191 int iosize, maxio; in newnfs_iosize() local
195 maxio = NFS_MAXBSIZE; in newnfs_iosize()
198 maxio = NFS_MAXDGRAMDATA; in newnfs_iosize()
200 maxio = NFS_MAXBSIZE; in newnfs_iosize()
202 maxio = NFS_V2MAXDATA; in newnfs_iosize()
204 if (nmp->nm_rsize > maxio || nmp->nm_rsize == 0) in newnfs_iosize()
205 nmp->nm_rsize = maxio; in newnfs_iosize()
208 if (nmp->nm_readdirsize > maxio || nmp->nm_readdirsize == 0) in newnfs_iosize()
209 nmp->nm_readdirsize = maxio; in newnfs_iosize()
212 if (nmp->nm_wsize > maxio || nmp->nm_wsize == 0) in newnfs_iosize()
[all …]
/freebsd-12.1/usr.sbin/dumpcis/
H A Dcardinfo.h173 int maxio; /* Max allowed I/O windows */ member
/freebsd-12.1/sys/dev/mps/
H A Dmps.c384 u_int reqcr, prireqcr, maxio, sges_per_frame; in mps_resize_queues() local
416 maxio = (sges_per_frame * sc->facts->MaxChainDepth + 1) * PAGE_SIZE; in mps_resize_queues()
423 maxio = min(maxio, sc->max_io_pages * PAGE_SIZE); in mps_resize_queues()
424 sc->maxio = maxio; in mps_resize_queues()
426 sc->maxio = maxio; in mps_resize_queues()
427 maxio = min(maxio, MAXPHYS); in mps_resize_queues()
430 sc->num_chains = (maxio / PAGE_SIZE + sges_per_frame - 2) / in mps_resize_queues()
1493 nsegs = (sc->maxio / PAGE_SIZE) + 1; in mps_alloc_requests()
/freebsd-12.1/sys/cam/mmc/
H A Dmmc_da.c1423 u_int maxio; in sdda_add_part() local
1482 maxio = cpi.maxio; /* Honor max I/O size of SIM */ in sdda_add_part()
1483 if (maxio == 0) in sdda_add_part()
1484 maxio = DFLTPHYS; /* traditional default */ in sdda_add_part()
1485 else if (maxio > MAXPHYS) in sdda_add_part()
1486 maxio = MAXPHYS; /* for safety */ in sdda_add_part()
1487 part->disk->d_maxsize = maxio; in sdda_add_part()
/freebsd-12.1/sys/dev/mpr/
H A Dmpr.c388 u_int reqcr, prireqcr, maxio, sges_per_frame, chain_seg_size; in mpr_resize_queues() local
438 maxio = (sges_per_frame * sc->facts->MaxChainDepth + 1) * PAGE_SIZE; in mpr_resize_queues()
445 maxio = min(maxio, sc->max_io_pages * PAGE_SIZE); in mpr_resize_queues()
446 sc->maxio = maxio; in mpr_resize_queues()
448 sc->maxio = maxio; in mpr_resize_queues()
449 maxio = min(maxio, MAXPHYS); in mpr_resize_queues()
452 sc->num_chains = (maxio / PAGE_SIZE + sges_per_frame - 2) / in mpr_resize_queues()
1542 nsegs = (sc->maxio / PAGE_SIZE) + 1; in mpr_alloc_requests()
1634 PRPs_required = sc->maxio / PAGE_SIZE; in mpr_alloc_nvme_prp_pages()
/freebsd-12.1/sys/cam/
H A Dcam_compat.h108 u_int maxio; /* Max supported I/O size, in bytes. */ member
H A Dcam_compat.c222 cpi17->maxio = cpi->maxio; in cam_compat_handle_0x17()
/freebsd-12.1/sys/fs/msdosfs/
H A Dmsdosfs_vnops.c1750 int bnpercn, error, maxio, maxrun, run; in msdosfs_bmap() local
1771 maxio = mp->mnt_iosize_max / mp->mnt_stat.f_iosize; in msdosfs_bmap()
1774 maxrun = ulmin(maxio - 1, pmp->pm_maxcluster - cn); in msdosfs_bmap()
1783 maxrun = ulmin(maxio - 1, cn); in msdosfs_bmap()
/freebsd-12.1/sys/dev/nvme/
H A Dnvme_sim.c188 cpi->maxio = ctrlr->max_xfer_size; in nvme_sim_action()
/freebsd-12.1/sys/dev/twa/
H A Dtw_osl_cam.c436 path_inq->maxio = TW_CL_MAX_IO_SIZE; in twa_action()
/freebsd-12.1/sys/dev/isci/
H A Disci_controller.c693 cpi->maxio = isci_io_request_get_max_io_size(); in isci_action()
/freebsd-12.1/sys/powerpc/ps3/
H A Dps3cdrom.c432 cpi->maxio = PAGE_SIZE; in ps3cdrom_action()
/freebsd-12.1/sys/dev/ahci/
H A Dahciem.c644 cpi->maxio = MAXPHYS; in ahciemaction()

123