Home
last modified time | relevance | path

Searched refs:dmem (Results 1 – 5 of 5) sorted by relevance

/drivers/net/ethernet/cavium/thunder/
Dnicvf_queues.c53 static int nicvf_alloc_q_desc_mem(struct nicvf *nic, struct q_desc_mem *dmem, in nicvf_alloc_q_desc_mem() argument
56 dmem->q_len = q_len; in nicvf_alloc_q_desc_mem()
57 dmem->size = (desc_size * q_len) + align_bytes; in nicvf_alloc_q_desc_mem()
59 dmem->unalign_base = dma_zalloc_coherent(&nic->pdev->dev, dmem->size, in nicvf_alloc_q_desc_mem()
60 &dmem->dma, GFP_KERNEL); in nicvf_alloc_q_desc_mem()
61 if (!dmem->unalign_base) in nicvf_alloc_q_desc_mem()
65 dmem->phys_base = NICVF_ALIGNED_ADDR((u64)dmem->dma, align_bytes); in nicvf_alloc_q_desc_mem()
66 dmem->base = dmem->unalign_base + (dmem->phys_base - dmem->dma); in nicvf_alloc_q_desc_mem()
71 static void nicvf_free_q_desc_mem(struct nicvf *nic, struct q_desc_mem *dmem) in nicvf_free_q_desc_mem() argument
73 if (!dmem) in nicvf_free_q_desc_mem()
[all …]
Dnicvf_queues.h202 struct q_desc_mem dmem; member
225 struct q_desc_mem dmem; member
246 struct q_desc_mem dmem; member
Dnicvf_main.c661 cqe_head &= (cq->dmem.q_len - 1); in nicvf_cq_intr_handler()
/drivers/usb/host/
Dimx21-dbg.c213 struct imx21_dmem_area *dmem; in debug_status_show() local
228 list_for_each_entry(dmem, &imx21->dmem_list, list) { in debug_status_show()
229 dmem_bytes += dmem->size; in debug_status_show()
265 struct imx21_dmem_area *dmem; in debug_dmem_show() local
271 list_for_each_entry(dmem, &imx21->dmem_list, list) in debug_dmem_show()
275 dmem->offset, dmem->size, in debug_dmem_show()
276 format_ep(dmem->ep, ep_text, sizeof(ep_text))); in debug_dmem_show()
Dimx21-hcd.c247 void __iomem *dmem = imx21->regs + USBOTG_DMEM + dmem_offset; in copy_to_dmem() local
257 writel(word, dmem); in copy_to_dmem()
258 dmem += 4; in copy_to_dmem()
264 writel(word, dmem); in copy_to_dmem()