Home
last modified time | relevance | path

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

123

/src/contrib/lib9p/pytest/
H A Dp9conn.py113 self.maxio = None
155 def declare_connected(self, chan, name, maxio): argument
162 if maxio:
164 if maxio < minio:
165 raise LocalError('maxio={0} < minimum {1}'.format(maxio, minio))
170 if maxio is not None:
171 self.maxio = maxio
172 self.max_payload = maxio - self.size_coder.size
174 def reduce_maxio(self, maxio): argument
177 if maxio < minio:
[all …]
/src/sys/cam/scsi/
H A Dscsi_sg.c99 u_int maxio; member
322 if (cpi.maxio == 0) in sgregister()
323 softc->maxio = DFLTPHYS; /* traditional default */ in sgregister()
324 else if (cpi.maxio > maxphys) in sgregister()
325 softc->maxio = maxphys; /* for safety */ in sgregister()
327 softc->maxio = cpi.maxio; /* real value */ in sgregister()
898 error = cam_periph_mapmem(ccb, &mapinfo, softc->maxio); in sgsendccb()
H A Dscsi_target.c94 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 Dscsi_pass.c131 u_int maxio; member
604 if (cpi.maxio == 0) in passregister()
605 softc->maxio = DFLTPHYS; /* traditional default */ in passregister()
606 else if (cpi.maxio > maxphys) in passregister()
607 softc->maxio = maxphys; /* for safety */ in passregister()
609 softc->maxio = cpi.maxio; /* real value */ in passregister()
1353 maxmap = softc->maxio; in passmemsetup()
1371 maxmap = softc->maxio; in passmemsetup()
1383 maxmap = softc->maxio; in passmemsetup()
1409 maxmap = softc->maxio; in passmemsetup()
[all …]
H A Dscsi_sa.c394 uint32_t maxio; member
2342 dev->si_iosize_max = softc->maxio; in sasetupdev()
2420 &softc->maxio, 0, "Maximum I/O size"); in sasysctlinit()
2604 if (cpi.maxio == 0) in saregister()
2605 softc->maxio = DFLTPHYS; in saregister()
2606 else if (cpi.maxio > maxphys) in saregister()
2607 softc->maxio = maxphys; in saregister()
2609 softc->maxio = cpi.maxio; in saregister()
2615 softc->cpi_maxio = cpi.maxio; in saregister()
4803 SASBADDUINTDESC(sb, indent, softc->maxio, %u, maxio, in saextget()
[all …]
H A Dscsi_da.c363 u_int maxio; member
3006 if (cpi.maxio == 0) in daregister()
3007 softc->maxio = DFLTPHYS; /* traditional default */ in daregister()
3008 else if (cpi.maxio > maxphys) in daregister()
3009 softc->maxio = maxphys; /* for safety */ in daregister()
3011 softc->maxio = cpi.maxio; in daregister()
3013 softc->maxio = min(softc->maxio, 128 * 1024); in daregister()
3014 softc->disk->d_maxsize = softc->maxio; in daregister()
5272 softc->disk->d_maxsize = MIN(softc->maxio, in dadone_probeblklimits()
/src/sys/dev/aac/
H A Daac_disk.c238 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()
/src/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dvdev_geom.c379 off_t off, maxio, s, end; in vdev_geom_io() local
383 maxio = maxphys - (maxphys % cp->provider->sectorsize); in vdev_geom_io()
388 n_bios += (sizes[i] + maxio - 1) / maxio; in vdev_geom_io()
403 for (; off < end; off += maxio, p += maxio, s -= maxio, j++) { in vdev_geom_io()
408 bios[j]->bio_length = MIN(s, maxio); in vdev_geom_io()
421 for (; off < end; off += maxio, s -= maxio, j++) { in vdev_geom_io()
/src/sys/cam/mmc/
H A Dmmc_all.h72 const struct cam_sim *sim, size_t maxio);
H A Dmmc_xpt.c1203 const struct cam_sim *sim, size_t maxio) in mmc_path_inq() argument
1214 cpi->maxio = maxio; in mmc_path_inq()
/src/sys/cam/nvme/
H A Dnvme_da.c953 u_int maxio; in ndaregister() local
1003 maxio = cpi.maxio; /* Honor max I/O size of SIM */ in ndaregister()
1004 if (maxio == 0) in ndaregister()
1005 maxio = DFLTPHYS; /* traditional default */ in ndaregister()
1006 else if (maxio > maxphys) in ndaregister()
1007 maxio = maxphys; /* for safety */ in ndaregister()
1008 disk->d_maxsize = maxio; in ndaregister()
/src/sys/cam/ctl/
H A Dscsi_ctl.c81 u_int maxio; member
326 if (cpi->maxio != 0) in ctlfeasync()
327 softc->maxio = cpi->maxio; in ctlfeasync()
329 softc->maxio = DFLTPHYS; in ctlfeasync()
701 if (io->scsiio.kern_data_len - off <= bus_softc->maxio) { in ctlfedata()
704 *dxfer_len = bus_softc->maxio; in ctlfedata()
705 cmd_info->cur_transfer_off += bus_softc->maxio; in ctlfedata()
730 if (ctl_sglist[i + idx].len - off <= bus_softc->maxio - *dxfer_len) { in ctlfedata()
734 cam_sglist[i].ds_len = bus_softc->maxio - *dxfer_len; in ctlfedata()
H A Dctl_backend_block.c2328 int error, atomic, maxio, ref, unmap, tmp; in ctl_be_block_open_dev() local
2340 atomic = maxio = CTLBLK_MAX_IO_SIZE; in ctl_be_block_open_dev()
2345 maxio = dev->si_iosize_max; in ctl_be_block_open_dev()
2346 if (maxio <= 0) in ctl_be_block_open_dev()
2347 maxio = DFLTPHYS; in ctl_be_block_open_dev()
2348 if (maxio > CTLBLK_MAX_SEG) in ctl_be_block_open_dev()
2349 maxio = CTLBLK_MAX_SEG; in ctl_be_block_open_dev()
2472 cbe_lun->opttxferlen = maxio / cbe_lun->blocksize; in ctl_be_block_open_dev()
/src/sys/cam/ata/
H A Data_da.c3515 u_int maxio, d_flags; in adasetgeom() local
3550 maxio = softc->cpi.maxio; /* Honor max I/O size of SIM */ in adasetgeom()
3551 if (maxio == 0) in adasetgeom()
3552 maxio = DFLTPHYS; /* traditional default */ in adasetgeom()
3553 else if (maxio > maxphys) in adasetgeom()
3554 maxio = maxphys; /* for safety */ in adasetgeom()
3556 maxio = min(maxio, 65536 * softc->params.secsize); in adasetgeom()
3558 maxio = min(maxio, 256 * softc->params.secsize); in adasetgeom()
3560 maxio = min(maxio, 128 * 1024); in adasetgeom()
3561 softc->disk->d_maxsize = maxio; in adasetgeom()
[all …]
/src/usr.sbin/dumpcis/
H A Dcardinfo.h172 int maxio; /* Max allowed I/O windows */ member
/src/sys/fs/nfsclient/
H A Dnfs_clvfsops.c194 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 …]
/src/sys/dev/mps/
H A Dmps.c380 u_int reqcr, prireqcr, maxio, sges_per_frame; in mps_resize_queues() local
412 maxio = (sges_per_frame * sc->facts->MaxChainDepth + 1) * PAGE_SIZE; in mps_resize_queues()
419 maxio = min(maxio, sc->max_io_pages * PAGE_SIZE); in mps_resize_queues()
420 sc->maxio = maxio; in mps_resize_queues()
422 sc->maxio = maxio; in mps_resize_queues()
423 maxio = min(maxio, maxphys); in mps_resize_queues()
426 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()
/src/sys/dev/mpr/
H A Dmpr.c383 u_int reqcr, prireqcr, maxio, sges_per_frame, chain_seg_size; in mpr_resize_queues() local
433 maxio = (sges_per_frame * sc->facts->MaxChainDepth + 1) * PAGE_SIZE; in mpr_resize_queues()
440 maxio = min(maxio, sc->max_io_pages * PAGE_SIZE); in mpr_resize_queues()
441 sc->maxio = maxio; in mpr_resize_queues()
443 sc->maxio = maxio; in mpr_resize_queues()
444 maxio = min(maxio, maxphys); in mpr_resize_queues()
447 sc->num_chains = (maxio / PAGE_SIZE + sges_per_frame - 2) / in mpr_resize_queues()
1563 nsegs = (sc->maxio / PAGE_SIZE) + 1; in mpr_alloc_requests()
1647 PRPs_required = sc->maxio / PAGE_SIZE; in mpr_alloc_nvme_prp_pages()
/src/sys/cam/
H A Dcam_compat.h105 u_int maxio; /* Max supported I/O size, in bytes. */ member
H A Dcam_compat.c235 cpi17->maxio = cpi->maxio; in cam_compat_handle_0x17()
/src/sys/fs/msdosfs/
H A Dmsdosfs_vnops.c1788 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()
/src/sys/dev/nvmf/host/
H A Dnvmf_sim.c197 cpi->maxio = sc->max_xfer_size; in nvmf_sim_action()
/src/sys/dev/ufshci/
H A Dufshci_sim.c268 cpi->maxio = ctrlr->max_xfer_size; in ufshci_cam_action()
/src/sys/dev/nvme/
H A Dnvme_sim.c194 cpi->maxio = ctrlr->max_xfer_size; in nvme_sim_action()
/src/sys/dev/mpi3mr/
H A Dmpi3mr_cam.c1356 cpi->maxio = targ->dev_spec.pcie_inf.mdts; in mpi3mr_cam_action()
1359 ccb->ccb_h.target_id, cpi->maxio); in mpi3mr_cam_action()
1361 cpi->maxio = PAGE_SIZE * (sc->max_sgl_entries - 1); in mpi3mr_cam_action()

123