Home
last modified time | relevance | path

Searched refs:pdir (Results 1 – 7 of 7) sorted by relevance

/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_misc.c52 int pvrdma_page_dir_init(struct pvrdma_dev *dev, struct pvrdma_page_dir *pdir, in pvrdma_page_dir_init() argument
60 memset(pdir, 0, sizeof(*pdir)); in pvrdma_page_dir_init()
62 pdir->dir = dma_alloc_coherent(&dev->pdev->dev, PAGE_SIZE, in pvrdma_page_dir_init()
63 &pdir->dir_dma, GFP_KERNEL); in pvrdma_page_dir_init()
64 if (!pdir->dir) in pvrdma_page_dir_init()
67 pdir->ntables = PVRDMA_PAGE_DIR_TABLE(npages - 1) + 1; in pvrdma_page_dir_init()
68 pdir->tables = kcalloc(pdir->ntables, sizeof(*pdir->tables), in pvrdma_page_dir_init()
70 if (!pdir->tables) in pvrdma_page_dir_init()
73 for (i = 0; i < pdir->ntables; i++) { in pvrdma_page_dir_init()
74 pdir->tables[i] = dma_alloc_coherent(&dev->pdev->dev, PAGE_SIZE, in pvrdma_page_dir_init()
[all …]
Dpvrdma.h93 struct pvrdma_page_dir pdir; member
144 struct pvrdma_page_dir pdir; member
174 struct pvrdma_page_dir pdir; member
189 struct pvrdma_page_dir pdir; member
319 static inline void *pvrdma_page_dir_get_ptr(struct pvrdma_page_dir *pdir, in pvrdma_page_dir_get_ptr() argument
322 return pdir->pages[offset / PAGE_SIZE] + (offset % PAGE_SIZE); in pvrdma_page_dir_get_ptr()
540 int pvrdma_page_dir_init(struct pvrdma_dev *dev, struct pvrdma_page_dir *pdir,
543 struct pvrdma_page_dir *pdir);
544 int pvrdma_page_dir_insert_dma(struct pvrdma_page_dir *pdir, u64 idx,
546 int pvrdma_page_dir_insert_umem(struct pvrdma_page_dir *pdir,
[all …]
Dpvrdma_mr.c154 ret = pvrdma_page_dir_init(dev, &mr->pdir, npages, false); in pvrdma_reg_user_mr()
161 ret = pvrdma_page_dir_insert_umem(&mr->pdir, mr->umem, 0); in pvrdma_reg_user_mr()
172 cmd->pdir_dma = mr->pdir.dir_dma; in pvrdma_reg_user_mr()
188 pvrdma_page_dir_cleanup(dev, &mr->pdir); in pvrdma_reg_user_mr()
230 ret = pvrdma_page_dir_init(dev, &mr->pdir, max_num_sg, false); in pvrdma_alloc_mr()
262 pvrdma_page_dir_cleanup(dev, &mr->pdir); in pvrdma_alloc_mr()
293 pvrdma_page_dir_cleanup(dev, &mr->pdir); in pvrdma_dereg_mr()
Dpvrdma_cq.c165 ret = pvrdma_page_dir_init(dev, &cq->pdir, npages, cq->is_kernel); in pvrdma_create_cq()
174 cq->ring_state = cq->pdir.pages[0]; in pvrdma_create_cq()
176 pvrdma_page_dir_insert_umem(&cq->pdir, cq->umem, 0); in pvrdma_create_cq()
187 cmd->pdir_dma = cq->pdir.dir_dma; in pvrdma_create_cq()
217 pvrdma_page_dir_cleanup(dev, &cq->pdir); in pvrdma_create_cq()
233 pvrdma_page_dir_cleanup(dev, &cq->pdir); in pvrdma_free_cq()
273 &cq->pdir, in get_cqe()
Dpvrdma_srq.c164 ret = pvrdma_page_dir_init(dev, &srq->pdir, srq->npages, false); in pvrdma_create_srq()
171 pvrdma_page_dir_insert_umem(&srq->pdir, srq->umem, 0); in pvrdma_create_srq()
181 cmd->pdir_dma = srq->pdir.dir_dma; in pvrdma_create_srq()
207 pvrdma_page_dir_cleanup(dev, &srq->pdir); in pvrdma_create_srq()
231 pvrdma_page_dir_cleanup(dev, &srq->pdir); in pvrdma_free_srq()
Dpvrdma_qp.c328 ret = pvrdma_page_dir_init(dev, &qp->pdir, qp->npages, in pvrdma_create_qp()
337 pvrdma_page_dir_insert_umem(&qp->pdir, qp->sumem, 0); in pvrdma_create_qp()
339 pvrdma_page_dir_insert_umem(&qp->pdir, in pvrdma_create_qp()
344 qp->sq.ring = qp->pdir.pages[0]; in pvrdma_create_qp()
377 cmd->pdir_dma = qp->pdir.dir_dma; in pvrdma_create_qp()
421 pvrdma_page_dir_cleanup(dev, &qp->pdir); in pvrdma_create_qp()
446 pvrdma_page_dir_cleanup(dev, &qp->pdir); in _pvrdma_free_qp()
636 return pvrdma_page_dir_get_ptr(&qp->pdir, in get_sq_wqe()
642 return pvrdma_page_dir_get_ptr(&qp->pdir, in get_rq_wqe()
652 wqe_hdr->wr.fast_reg.pl_pdir_dma = mr->pdir.dir_dma; in set_reg_seg()
[all …]
/drivers/scsi/qla2xxx/
Dqla_edif.c338 int pdir) in __qla2x00_release_all_sadb() argument
358 entry->sa_pair[i].sa_index, pdir); in __qla2x00_release_all_sadb()
360 qla_edif_find_sa_ctl_by_index(fcport, sa_ctl->index, pdir)) { in __qla2x00_release_all_sadb()
380 if (pdir != SAU_FLG_TX) { in __qla2x00_release_all_sadb()
417 __func__, key_cnt, pdir ? "tx" : "rx"); in __qla2x00_release_all_sadb()