Home
last modified time | relevance | path

Searched refs:max_sgl_entries (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/dev/mpi3mr/
H A Dmpi3mr_pci.c181 sc->max_sgl_entries = maxphys / PAGE_SIZE; in mpi3mr_get_tunables()
189 TUNABLE_INT_FETCH("hw.mpi3mr.max_sgl_entries", &sc->max_sgl_entries); in mpi3mr_get_tunables()
206 TUNABLE_INT_FETCH(tmpstr, &sc->max_sgl_entries); in mpi3mr_get_tunables()
461 if (sc->max_sgl_entries > MPI3MR_MAX_SGL_ENTRIES) in mpi3mr_pci_attach()
462 sc->max_sgl_entries = MPI3MR_MAX_SGL_ENTRIES; in mpi3mr_pci_attach()
463 else if (sc->max_sgl_entries < MPI3MR_DEFAULT_SGL_ENTRIES) in mpi3mr_pci_attach()
464 sc->max_sgl_entries = MPI3MR_DEFAULT_SGL_ENTRIES; in mpi3mr_pci_attach()
466 sc->max_sgl_entries /= MPI3MR_DEFAULT_SGL_ENTRIES; in mpi3mr_pci_attach()
467 sc->max_sgl_entries *= MPI3MR_DEFAULT_SGL_ENTRIES; in mpi3mr_pci_attach()
H A Dmpi3mr_cam.c178 KASSERT(nsegs <= sc->max_sgl_entries && nsegs > 0, in mpi3mr_prepare_sgls()
220 memset(chain_req->buf, 0, sc->max_sgl_entries * sizeof(Mpi3SGESimple_t)); in mpi3mr_prepare_sgls()
1156 if (csio->dxfer_len > (sc->max_sgl_entries * PAGE_SIZE)) { in mpi3mr_action_scsiio()
1361 cpi->maxio = PAGE_SIZE * (sc->max_sgl_entries - 1); in mpi3mr_cam_action()
H A Dmpi3mr.h684 U32 max_sgl_entries; member
H A Dmpi3mr.c2549 if (sc->max_sgl_entries > sc->facts.max_data_length / PAGE_SIZE) in mpi3mr_alloc_chain_bufs()
2550 sc->max_sgl_entries = sc->facts.max_data_length / PAGE_SIZE; in mpi3mr_alloc_chain_bufs()
2551 sz = sc->max_sgl_entries * sizeof(Mpi3SGESimple_t); in mpi3mr_alloc_chain_bufs()
5171 nsegs = sc->max_sgl_entries; in mpi3mr_alloc_requests()