Home
last modified time | relevance | path

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

/Linux-v5.4/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()
536 int pvrdma_page_dir_init(struct pvrdma_dev *dev, struct pvrdma_page_dir *pdir,
539 struct pvrdma_page_dir *pdir);
540 int pvrdma_page_dir_insert_dma(struct pvrdma_page_dir *pdir, u64 idx,
542 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()
292 pvrdma_page_dir_cleanup(dev, &mr->pdir); in pvrdma_dereg_mr()
Dpvrdma_cq.c162 ret = pvrdma_page_dir_init(dev, &cq->pdir, npages, cq->is_kernel); in pvrdma_create_cq()
171 cq->ring_state = cq->pdir.pages[0]; in pvrdma_create_cq()
173 pvrdma_page_dir_insert_umem(&cq->pdir, cq->umem, 0); in pvrdma_create_cq()
184 cmd->pdir_dma = cq->pdir.dir_dma; in pvrdma_create_cq()
214 pvrdma_page_dir_cleanup(dev, &cq->pdir); in pvrdma_create_cq()
230 pvrdma_page_dir_cleanup(dev, &cq->pdir); in pvrdma_free_cq()
269 &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.c319 ret = pvrdma_page_dir_init(dev, &qp->pdir, qp->npages, in pvrdma_create_qp()
328 pvrdma_page_dir_insert_umem(&qp->pdir, qp->sumem, 0); in pvrdma_create_qp()
330 pvrdma_page_dir_insert_umem(&qp->pdir, in pvrdma_create_qp()
335 qp->sq.ring = qp->pdir.pages[0]; in pvrdma_create_qp()
368 cmd->pdir_dma = qp->pdir.dir_dma; in pvrdma_create_qp()
392 pvrdma_page_dir_cleanup(dev, &qp->pdir); in pvrdma_create_qp()
431 pvrdma_page_dir_cleanup(dev, &qp->pdir); in pvrdma_free_qp()
583 return pvrdma_page_dir_get_ptr(&qp->pdir, in get_sq_wqe()
589 return pvrdma_page_dir_get_ptr(&qp->pdir, in get_rq_wqe()
599 wqe_hdr->wr.fast_reg.pl_pdir_dma = mr->pdir.dir_dma; in set_reg_seg()
[all …]
/Linux-v5.4/scripts/package/
Dbuilddeb28 local pname="$1" pdir="$2"
30 mkdir -m 755 -p "$pdir/DEBIAN"
31 mkdir -p "$pdir/usr/share/doc/$pname"
32 cp debian/copyright "$pdir/usr/share/doc/$pname/"
33 cp debian/changelog "$pdir/usr/share/doc/$pname/changelog.Debian"
34 gzip -9 "$pdir/usr/share/doc/$pname/changelog.Debian"
35 sh -c "cd '$pdir'; find . -type f ! -path './DEBIAN/*' -printf '%P\0' \
39 chown -R root:root "$pdir"
40 chmod -R go-w "$pdir"
42 chmod -R a+rX "$pdir"
[all …]
/Linux-v5.4/sound/soc/ti/
Ddavinci-mcasp.c102 unsigned long pdir; /* Pin direction bitfield */ member
188 for_each_set_bit_from(bit, &mcasp->pdir, PIN_BIT_AFSR + 1) { in mcasp_set_clk_pdir()
200 for_each_set_bit(bit, &mcasp->pdir, PIN_BIT_AMUTE) { in mcasp_set_axr_pdir()
499 set_bit(PIN_BIT_ACLKX, &mcasp->pdir); in davinci_mcasp_set_dai_fmt()
500 set_bit(PIN_BIT_ACLKR, &mcasp->pdir); in davinci_mcasp_set_dai_fmt()
502 set_bit(PIN_BIT_AFSX, &mcasp->pdir); in davinci_mcasp_set_dai_fmt()
503 set_bit(PIN_BIT_AFSR, &mcasp->pdir); in davinci_mcasp_set_dai_fmt()
516 set_bit(PIN_BIT_ACLKX, &mcasp->pdir); in davinci_mcasp_set_dai_fmt()
517 set_bit(PIN_BIT_ACLKR, &mcasp->pdir); in davinci_mcasp_set_dai_fmt()
519 clear_bit(PIN_BIT_AFSX, &mcasp->pdir); in davinci_mcasp_set_dai_fmt()
[all …]
/Linux-v5.4/scripts/
Dasn1_compiler.c320 const char *const *pdir = _pdir, *dir = *pdir; in directive_compare() local