| /freebsd-14.2/contrib/lib9p/pytest/ |
| H A D | p9conn.py | 113 self.maxio = None 162 if maxio: 164 if maxio < minio: 170 if maxio is not None: 171 self.maxio = maxio 174 def reduce_maxio(self, maxio): argument 177 if maxio < minio: 179 if maxio > self.maxio: 182 self.maxio = maxio 188 self.maxio = None [all …]
|
| /freebsd-14.2/sys/cam/scsi/ |
| H A D | scsi_sg.c | 100 u_int maxio; member 323 if (cpi.maxio == 0) in sgregister() 324 softc->maxio = DFLTPHYS; /* traditional default */ in sgregister() 325 else if (cpi.maxio > maxphys) in sgregister() 326 softc->maxio = maxphys; /* for safety */ in sgregister() 328 softc->maxio = cpi.maxio; /* real value */ in sgregister() 899 error = cam_periph_mapmem(ccb, &mapinfo, softc->maxio); in sgsendccb()
|
| H A D | scsi_target.c | 95 u_int maxio; member 403 if (cpi.maxio == 0) in targenable() 404 softc->maxio = DFLTPHYS; /* traditional default */ in targenable() 405 else if (cpi.maxio > maxphys) in targenable() 406 softc->maxio = maxphys; /* for safety */ in targenable() 408 softc->maxio = cpi.maxio; /* real value */ in targenable() 730 error = cam_periph_mapmem(ccb, mapinfo, softc->maxio); in targsendccb()
|
| H A D | scsi_pass.c | 131 u_int maxio; member 603 if (cpi.maxio == 0) in passregister() 604 softc->maxio = DFLTPHYS; /* traditional default */ in passregister() 605 else if (cpi.maxio > maxphys) in passregister() 606 softc->maxio = maxphys; /* for safety */ in passregister() 608 softc->maxio = cpi.maxio; /* real value */ in passregister() 1343 maxmap = softc->maxio; in passmemsetup() 1361 maxmap = softc->maxio; in passmemsetup() 1373 maxmap = softc->maxio; in passmemsetup() 1399 maxmap = softc->maxio; in passmemsetup() [all …]
|
| H A D | scsi_sa.c | 395 uint32_t maxio; member 2343 dev->si_iosize_max = softc->maxio; in sasetupdev() 2421 &softc->maxio, 0, "Maximum I/O size"); in sasysctlinit() 2605 if (cpi.maxio == 0) in saregister() 2606 softc->maxio = DFLTPHYS; in saregister() 2607 else if (cpi.maxio > maxphys) in saregister() 2608 softc->maxio = maxphys; in saregister() 2610 softc->maxio = cpi.maxio; in saregister() 2616 softc->cpi_maxio = cpi.maxio; in saregister() 4809 SASBADDUINTDESC(sb, indent, softc->maxio, %u, maxio, in saextget() [all …]
|
| H A D | scsi_da.c | 360 u_int maxio; member 2954 if (cpi.maxio == 0) in daregister() 2955 softc->maxio = DFLTPHYS; /* traditional default */ in daregister() 2956 else if (cpi.maxio > maxphys) in daregister() 2957 softc->maxio = maxphys; /* for safety */ in daregister() 2959 softc->maxio = cpi.maxio; in daregister() 2961 softc->maxio = min(softc->maxio, 128 * 1024); in daregister() 2962 softc->disk->d_maxsize = softc->maxio; in daregister() 5148 softc->disk->d_maxsize = MIN(softc->maxio, in dadone_probeblklimits()
|
| /freebsd-14.2/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | vdev_geom.c | 378 off_t off, maxio, s, end; in vdev_geom_io() local 383 maxio = maxphys - (maxphys % cp->provider->sectorsize); in vdev_geom_io() 385 maxio = MAXPHYS - (MAXPHYS % cp->provider->sectorsize); in vdev_geom_io() 391 n_bios += (sizes[i] + maxio - 1) / maxio; in vdev_geom_io() 406 for (; off < end; off += maxio, p += maxio, s -= maxio, j++) { in vdev_geom_io() 411 bios[j]->bio_length = MIN(s, maxio); in vdev_geom_io() 424 for (; off < end; off += maxio, s -= maxio, j++) { in vdev_geom_io()
|
| /freebsd-14.2/sys/dev/aac/ |
| H A D | aac_disk.c | 238 size_t len, maxio; in aac_disk_dump() local 267 maxio = sc->aac_max_sectors << 9; in aac_disk_dump() 268 len = (length > maxio) ? maxio : length; in aac_disk_dump()
|
| /freebsd-14.2/sys/cam/mmc/ |
| H A D | mmc_all.h | 72 const struct cam_sim *sim, size_t maxio);
|
| H A D | mmc_xpt.c | 1205 const struct cam_sim *sim, size_t maxio) in mmc_path_inq() argument 1216 cpi->maxio = maxio; in mmc_path_inq()
|
| /freebsd-14.2/sys/cam/nvme/ |
| H A D | nvme_da.c | 851 u_int maxio; in ndaregister() local 909 maxio = cpi.maxio; /* Honor max I/O size of SIM */ in ndaregister() 910 if (maxio == 0) in ndaregister() 911 maxio = DFLTPHYS; /* traditional default */ in ndaregister() 912 else if (maxio > maxphys) in ndaregister() 913 maxio = maxphys; /* for safety */ in ndaregister() 914 disk->d_maxsize = maxio; in ndaregister()
|
| /freebsd-14.2/sys/cam/ata/ |
| H A D | ata_da.c | 3435 u_int maxio, d_flags; in adasetgeom() local 3470 maxio = softc->cpi.maxio; /* Honor max I/O size of SIM */ in adasetgeom() 3471 if (maxio == 0) in adasetgeom() 3472 maxio = DFLTPHYS; /* traditional default */ in adasetgeom() 3473 else if (maxio > maxphys) in adasetgeom() 3474 maxio = maxphys; /* for safety */ in adasetgeom() 3476 maxio = min(maxio, 65536 * softc->params.secsize); in adasetgeom() 3478 maxio = min(maxio, 256 * softc->params.secsize); in adasetgeom() 3480 maxio = min(maxio, 128 * 1024); in adasetgeom() 3481 softc->disk->d_maxsize = maxio; in adasetgeom() [all …]
|
| /freebsd-14.2/sys/cam/ctl/ |
| H A D | scsi_ctl.c | 82 u_int maxio; member 327 if (cpi->maxio != 0) in ctlfeasync() 328 softc->maxio = cpi->maxio; in ctlfeasync() 330 softc->maxio = DFLTPHYS; in ctlfeasync() 702 if (io->scsiio.kern_data_len - off <= bus_softc->maxio) { in ctlfedata() 705 *dxfer_len = bus_softc->maxio; in ctlfedata() 706 cmd_info->cur_transfer_off += bus_softc->maxio; in ctlfedata() 731 if (ctl_sglist[i + idx].len - off <= bus_softc->maxio - *dxfer_len) { in ctlfedata() 735 cam_sglist[i].ds_len = bus_softc->maxio - *dxfer_len; in ctlfedata()
|
| H A D | ctl_backend_block.c | 1995 int error, atomic, maxio, ref, unmap, tmp; in ctl_be_block_open_dev() local 2007 atomic = maxio = CTLBLK_MAX_IO_SIZE; in ctl_be_block_open_dev() 2012 maxio = dev->si_iosize_max; in ctl_be_block_open_dev() 2013 if (maxio <= 0) in ctl_be_block_open_dev() 2014 maxio = DFLTPHYS; in ctl_be_block_open_dev() 2015 if (maxio > CTLBLK_MAX_SEG) in ctl_be_block_open_dev() 2016 maxio = CTLBLK_MAX_SEG; in ctl_be_block_open_dev() 2139 cbe_lun->opttxferlen = maxio / cbe_lun->blocksize; in ctl_be_block_open_dev()
|
| /freebsd-14.2/usr.sbin/dumpcis/ |
| H A D | cardinfo.h | 172 int maxio; /* Max allowed I/O windows */ member
|
| /freebsd-14.2/sys/fs/nfsclient/ |
| H A D | nfs_clvfsops.c | 194 int iosize, maxio; in newnfs_iosize() local 198 maxio = NFS_MAXBSIZE; in newnfs_iosize() 201 maxio = NFS_MAXDGRAMDATA; in newnfs_iosize() 203 maxio = NFS_MAXBSIZE; in newnfs_iosize() 205 maxio = NFS_V2MAXDATA; in newnfs_iosize() 207 if (nmp->nm_rsize > maxio || nmp->nm_rsize == 0) in newnfs_iosize() 208 nmp->nm_rsize = maxio; in newnfs_iosize() 211 if (nmp->nm_readdirsize > maxio || nmp->nm_readdirsize == 0) in newnfs_iosize() 212 nmp->nm_readdirsize = maxio; in newnfs_iosize() 215 if (nmp->nm_wsize > maxio || nmp->nm_wsize == 0) in newnfs_iosize() [all …]
|
| /freebsd-14.2/sys/dev/mps/ |
| H A D | mps.c | 381 u_int reqcr, prireqcr, maxio, sges_per_frame; in mps_resize_queues() local 413 maxio = (sges_per_frame * sc->facts->MaxChainDepth + 1) * PAGE_SIZE; in mps_resize_queues() 420 maxio = min(maxio, sc->max_io_pages * PAGE_SIZE); in mps_resize_queues() 421 sc->maxio = maxio; in mps_resize_queues() 423 sc->maxio = maxio; in mps_resize_queues() 424 maxio = min(maxio, maxphys); in mps_resize_queues() 427 sc->num_chains = (maxio / PAGE_SIZE + sges_per_frame - 2) / in mps_resize_queues() 1494 nsegs = (sc->maxio / PAGE_SIZE) + 1; in mps_alloc_requests()
|
| H A D | mpsvar.h | 322 u_int maxio; member
|
| /freebsd-14.2/sys/dev/mpr/ |
| H A D | mpr.c | 384 u_int reqcr, prireqcr, maxio, sges_per_frame, chain_seg_size; in mpr_resize_queues() local 434 maxio = (sges_per_frame * sc->facts->MaxChainDepth + 1) * PAGE_SIZE; in mpr_resize_queues() 441 maxio = min(maxio, sc->max_io_pages * PAGE_SIZE); in mpr_resize_queues() 442 sc->maxio = maxio; in mpr_resize_queues() 444 sc->maxio = maxio; in mpr_resize_queues() 445 maxio = min(maxio, maxphys); in mpr_resize_queues() 448 sc->num_chains = (maxio / PAGE_SIZE + sges_per_frame - 2) / in mpr_resize_queues() 1564 nsegs = (sc->maxio / PAGE_SIZE) + 1; in mpr_alloc_requests() 1648 PRPs_required = sc->maxio / PAGE_SIZE; in mpr_alloc_nvme_prp_pages()
|
| /freebsd-14.2/sys/cam/ |
| H A D | cam_compat.h | 105 u_int maxio; /* Max supported I/O size, in bytes. */ member
|
| H A D | cam_compat.c | 238 cpi17->maxio = cpi->maxio; in cam_compat_handle_0x17()
|
| /freebsd-14.2/sys/fs/msdosfs/ |
| H A D | msdosfs_vnops.c | 1788 int bnpercn, error, maxio, maxrun, run; in msdosfs_bmap() local 1823 maxio = mp->mnt_iosize_max / mp->mnt_stat.f_iosize; in msdosfs_bmap() 1826 maxrun = ulmin(maxio - 1, pmp->pm_maxcluster - cn); in msdosfs_bmap() 1835 maxrun = ulmin(maxio - 1, cn); in msdosfs_bmap()
|
| /freebsd-14.2/sys/dev/nvme/ |
| H A D | nvme_sim.c | 189 cpi->maxio = ctrlr->max_xfer_size; in nvme_sim_action()
|
| /freebsd-14.2/sys/dev/mpi3mr/ |
| H A D | mpi3mr_cam.c | 1321 cpi->maxio = targ->dev_spec.pcie_inf.mdts; in mpi3mr_cam_action() 1324 ccb->ccb_h.target_id, cpi->maxio); in mpi3mr_cam_action() 1326 cpi->maxio = PAGE_SIZE * (MPI3MR_SG_DEPTH - 1); in mpi3mr_cam_action()
|
| /freebsd-14.2/sys/dev/isci/ |
| H A D | isci_controller.c | 677 cpi->maxio = isci_io_request_get_max_io_size(); in isci_action()
|