pdir 93 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h struct pvrdma_page_dir pdir; pdir 144 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h struct pvrdma_page_dir pdir; pdir 174 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h struct pvrdma_page_dir pdir; pdir 189 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h struct pvrdma_page_dir pdir; pdir 319 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h static inline void *pvrdma_page_dir_get_ptr(struct pvrdma_page_dir *pdir, pdir 322 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h return pdir->pages[offset / PAGE_SIZE] + (offset % PAGE_SIZE); pdir 536 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h int pvrdma_page_dir_init(struct pvrdma_dev *dev, struct pvrdma_page_dir *pdir, pdir 539 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h struct pvrdma_page_dir *pdir); pdir 540 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h int pvrdma_page_dir_insert_dma(struct pvrdma_page_dir *pdir, u64 idx, pdir 542 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h int pvrdma_page_dir_insert_umem(struct pvrdma_page_dir *pdir, pdir 544 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h dma_addr_t pvrdma_page_dir_get_dma(struct pvrdma_page_dir *pdir, u64 idx); pdir 545 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h int pvrdma_page_dir_insert_page_list(struct pvrdma_page_dir *pdir, pdir 162 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c ret = pvrdma_page_dir_init(dev, &cq->pdir, npages, cq->is_kernel); pdir 171 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c cq->ring_state = cq->pdir.pages[0]; pdir 173 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c pvrdma_page_dir_insert_umem(&cq->pdir, cq->umem, 0); pdir 184 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c cmd->pdir_dma = cq->pdir.dir_dma; pdir 214 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c pvrdma_page_dir_cleanup(dev, &cq->pdir); pdir 230 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c pvrdma_page_dir_cleanup(dev, &cq->pdir); pdir 269 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c &cq->pdir, pdir 52 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c int pvrdma_page_dir_init(struct pvrdma_dev *dev, struct pvrdma_page_dir *pdir, pdir 60 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c memset(pdir, 0, sizeof(*pdir)); pdir 62 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c pdir->dir = dma_alloc_coherent(&dev->pdev->dev, PAGE_SIZE, pdir 63 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c &pdir->dir_dma, GFP_KERNEL); pdir 64 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c if (!pdir->dir) pdir 67 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c pdir->ntables = PVRDMA_PAGE_DIR_TABLE(npages - 1) + 1; pdir 68 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c pdir->tables = kcalloc(pdir->ntables, sizeof(*pdir->tables), pdir 70 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c if (!pdir->tables) pdir 73 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c for (i = 0; i < pdir->ntables; i++) { pdir 74 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c pdir->tables[i] = dma_alloc_coherent(&dev->pdev->dev, PAGE_SIZE, pdir 75 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c (dma_addr_t *)&pdir->dir[i], pdir 77 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c if (!pdir->tables[i]) pdir 81 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c pdir->npages = npages; pdir 84 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c pdir->pages = kcalloc(npages, sizeof(*pdir->pages), pdir 86 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c if (!pdir->pages) pdir 89 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c for (i = 0; i < pdir->npages; i++) { pdir 92 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c pdir->pages[i] = dma_alloc_coherent(&dev->pdev->dev, pdir 96 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c if (!pdir->pages[i]) pdir 99 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c pvrdma_page_dir_insert_dma(pdir, i, page_dma); pdir 106 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c pvrdma_page_dir_cleanup(dev, pdir); pdir 111 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c static u64 *pvrdma_page_dir_table(struct pvrdma_page_dir *pdir, u64 idx) pdir 113 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c return pdir->tables[PVRDMA_PAGE_DIR_TABLE(idx)]; pdir 116 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c dma_addr_t pvrdma_page_dir_get_dma(struct pvrdma_page_dir *pdir, u64 idx) pdir 118 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c return pvrdma_page_dir_table(pdir, idx)[PVRDMA_PAGE_DIR_PAGE(idx)]; pdir 122 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c struct pvrdma_page_dir *pdir) pdir 124 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c if (pdir->pages) { pdir 127 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c for (i = 0; i < pdir->npages && pdir->pages[i]; i++) { pdir 128 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c dma_addr_t page_dma = pvrdma_page_dir_get_dma(pdir, i); pdir 131 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c pdir->pages[i], page_dma); pdir 134 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c kfree(pdir->pages); pdir 139 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c struct pvrdma_page_dir *pdir) pdir 141 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c if (pdir->tables) { pdir 144 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c pvrdma_page_dir_cleanup_pages(dev, pdir); pdir 146 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c for (i = 0; i < pdir->ntables; i++) { pdir 147 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c u64 *table = pdir->tables[i]; pdir 151 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c table, pdir->dir[i]); pdir 154 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c kfree(pdir->tables); pdir 159 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c struct pvrdma_page_dir *pdir) pdir 161 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c if (pdir->dir) { pdir 162 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c pvrdma_page_dir_cleanup_tables(dev, pdir); pdir 164 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c pdir->dir, pdir->dir_dma); pdir 168 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c int pvrdma_page_dir_insert_dma(struct pvrdma_page_dir *pdir, u64 idx, pdir 173 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c if (idx >= pdir->npages) pdir 176 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c table = pvrdma_page_dir_table(pdir, idx); pdir 182 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c int pvrdma_page_dir_insert_umem(struct pvrdma_page_dir *pdir, pdir 189 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c if (offset >= pdir->npages) pdir 195 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c ret = pvrdma_page_dir_insert_dma(pdir, i, addr); pdir 206 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c int pvrdma_page_dir_insert_page_list(struct pvrdma_page_dir *pdir, pdir 213 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c if (num_pages > pdir->npages) pdir 217 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c ret = pvrdma_page_dir_insert_dma(pdir, i, page_list[i]); pdir 154 drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c ret = pvrdma_page_dir_init(dev, &mr->pdir, npages, false); pdir 161 drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c ret = pvrdma_page_dir_insert_umem(&mr->pdir, mr->umem, 0); pdir 172 drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c cmd->pdir_dma = mr->pdir.dir_dma; pdir 188 drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c pvrdma_page_dir_cleanup(dev, &mr->pdir); pdir 230 drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c ret = pvrdma_page_dir_init(dev, &mr->pdir, max_num_sg, false); pdir 262 drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c pvrdma_page_dir_cleanup(dev, &mr->pdir); pdir 292 drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c pvrdma_page_dir_cleanup(dev, &mr->pdir); pdir 319 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c ret = pvrdma_page_dir_init(dev, &qp->pdir, qp->npages, pdir 328 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c pvrdma_page_dir_insert_umem(&qp->pdir, qp->sumem, 0); pdir 330 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c pvrdma_page_dir_insert_umem(&qp->pdir, pdir 335 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c qp->sq.ring = qp->pdir.pages[0]; pdir 368 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->pdir_dma = qp->pdir.dir_dma; pdir 392 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c pvrdma_page_dir_cleanup(dev, &qp->pdir); pdir 431 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c pvrdma_page_dir_cleanup(dev, &qp->pdir); pdir 583 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c return pvrdma_page_dir_get_ptr(&qp->pdir, pdir 589 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c return pvrdma_page_dir_get_ptr(&qp->pdir, pdir 599 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c wqe_hdr->wr.fast_reg.pl_pdir_dma = mr->pdir.dir_dma; pdir 606 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c return pvrdma_page_dir_insert_page_list(&mr->pdir, mr->pages, pdir 164 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c ret = pvrdma_page_dir_init(dev, &srq->pdir, srq->npages, false); pdir 171 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c pvrdma_page_dir_insert_umem(&srq->pdir, srq->umem, 0); pdir 181 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c cmd->pdir_dma = srq->pdir.dir_dma; pdir 207 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c pvrdma_page_dir_cleanup(dev, &srq->pdir); pdir 231 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c pvrdma_page_dir_cleanup(dev, &srq->pdir); pdir 320 scripts/asn1_compiler.c const char *const *pdir = _pdir, *dir = *pdir; pdir 102 sound/soc/ti/davinci-mcasp.c unsigned long pdir; /* Pin direction bitfield */ pdir 188 sound/soc/ti/davinci-mcasp.c for_each_set_bit_from(bit, &mcasp->pdir, PIN_BIT_AFSR + 1) { pdir 200 sound/soc/ti/davinci-mcasp.c for_each_set_bit(bit, &mcasp->pdir, PIN_BIT_AMUTE) { pdir 499 sound/soc/ti/davinci-mcasp.c set_bit(PIN_BIT_ACLKX, &mcasp->pdir); pdir 500 sound/soc/ti/davinci-mcasp.c set_bit(PIN_BIT_ACLKR, &mcasp->pdir); pdir 502 sound/soc/ti/davinci-mcasp.c set_bit(PIN_BIT_AFSX, &mcasp->pdir); pdir 503 sound/soc/ti/davinci-mcasp.c set_bit(PIN_BIT_AFSR, &mcasp->pdir); pdir 516 sound/soc/ti/davinci-mcasp.c set_bit(PIN_BIT_ACLKX, &mcasp->pdir); pdir 517 sound/soc/ti/davinci-mcasp.c set_bit(PIN_BIT_ACLKR, &mcasp->pdir); pdir 519 sound/soc/ti/davinci-mcasp.c clear_bit(PIN_BIT_AFSX, &mcasp->pdir); pdir 520 sound/soc/ti/davinci-mcasp.c clear_bit(PIN_BIT_AFSR, &mcasp->pdir); pdir 533 sound/soc/ti/davinci-mcasp.c clear_bit(PIN_BIT_ACLKX, &mcasp->pdir); pdir 534 sound/soc/ti/davinci-mcasp.c clear_bit(PIN_BIT_ACLKR, &mcasp->pdir); pdir 536 sound/soc/ti/davinci-mcasp.c set_bit(PIN_BIT_AFSX, &mcasp->pdir); pdir 537 sound/soc/ti/davinci-mcasp.c set_bit(PIN_BIT_AFSR, &mcasp->pdir); pdir 550 sound/soc/ti/davinci-mcasp.c clear_bit(PIN_BIT_ACLKX, &mcasp->pdir); pdir 551 sound/soc/ti/davinci-mcasp.c clear_bit(PIN_BIT_ACLKR, &mcasp->pdir); pdir 553 sound/soc/ti/davinci-mcasp.c clear_bit(PIN_BIT_AFSX, &mcasp->pdir); pdir 554 sound/soc/ti/davinci-mcasp.c clear_bit(PIN_BIT_AFSR, &mcasp->pdir); pdir 670 sound/soc/ti/davinci-mcasp.c set_bit(PIN_BIT_AHCLKX, &mcasp->pdir); pdir 674 sound/soc/ti/davinci-mcasp.c clear_bit(PIN_BIT_AHCLKX, &mcasp->pdir); pdir 849 sound/soc/ti/davinci-mcasp.c set_bit(PIN_BIT_AXR(i), &mcasp->pdir); pdir 853 sound/soc/ti/davinci-mcasp.c clear_bit(PIN_BIT_AXR(i), &mcasp->pdir); pdir 864 sound/soc/ti/davinci-mcasp.c clear_bit(PIN_BIT_AXR(i), &mcasp->pdir);