Lines Matching refs:desc_count
280 U16 desc_count = 0; in mpi3mr_app_build_nvme_prp() local
499 if ((++desc_count) >= in mpi3mr_app_build_nvme_prp()
506 dma_buff->dma_desc[desc_count].dma_addr; in mpi3mr_app_build_nvme_prp()
508 dma_buff->dma_desc[desc_count].size; in mpi3mr_app_build_nvme_prp()
542 U8 desc_count) in mpi3mr_map_data_buffer_dma() argument
551 if ((needed_desc + desc_count) > MPI3MR_NUM_IOCTL_SGE) { in mpi3mr_map_data_buffer_dma()
553 __func__, needed_desc, desc_count, MPI3MR_NUM_IOCTL_SGE); in mpi3mr_map_data_buffer_dma()
563 for (i = 0; i < needed_desc; i++, desc_count++) { in mpi3mr_map_data_buffer_dma()
565 dma_buffers->dma_desc[i].addr = sc->ioctl_sge[desc_count].addr; in mpi3mr_map_data_buffer_dma()
566 dma_buffers->dma_desc[i].dma_addr = sc->ioctl_sge[desc_count].dma_addr; in mpi3mr_map_data_buffer_dma()
568 if (buf_len < sc->ioctl_sge[desc_count].size) in mpi3mr_map_data_buffer_dma()
571 dma_buffers->dma_desc[i].size = sc->ioctl_sge[desc_count].size; in mpi3mr_map_data_buffer_dma()
574 memset(dma_buffers->dma_desc[i].addr, 0, sc->ioctl_sge[desc_count].size); in mpi3mr_map_data_buffer_dma()
786 U16 desc_count = 0; in mpi3mr_app_mptcmds() local
988 if (mpi3mr_map_data_buffer_dma(sc, dma_buff, desc_count)) { in mpi3mr_app_mptcmds()
994 desc_count += dma_buff->num_dma_desc; in mpi3mr_app_mptcmds()
1176 for (desc_count = 0; desc_count < dma_buff->num_dma_desc; desc_count++) { in mpi3mr_app_mptcmds()
1177 if (copyout(dma_buff->dma_desc[desc_count].addr, in mpi3mr_app_mptcmds()
1179 dma_buff->dma_desc[desc_count].size)) { in mpi3mr_app_mptcmds()
1185 tmplen += dma_buff->dma_desc[desc_count].size; in mpi3mr_app_mptcmds()