Lines Matching refs:mapaddr
60 dma_addr_t mapaddr; member
292 return q->mem_item.mapaddr + MLXSW_PCI_PAGE_SIZE * page_index; in __mlxsw_pci_queue_page_get()
319 dma_addr_t mapaddr = __mlxsw_pci_queue_page_get(q, i); in mlxsw_pci_sdq_init() local
321 mlxsw_cmd_mbox_sw2hw_dq_pa_set(mbox, i, mapaddr); in mlxsw_pci_sdq_init()
350 dma_addr_t mapaddr; in mlxsw_pci_wqe_rx_frag_set() local
352 mapaddr = page_pool_get_dma_addr(page); in mlxsw_pci_wqe_rx_frag_set()
355 mapaddr += MLXSW_PCI_SKB_HEADROOM; in mlxsw_pci_wqe_rx_frag_set()
359 mlxsw_pci_wqe_address_set(wqe, index, mapaddr); in mlxsw_pci_wqe_rx_frag_set()
368 dma_addr_t mapaddr; in mlxsw_pci_wqe_frag_map() local
370 mapaddr = dma_map_single(&pdev->dev, frag_data, frag_len, direction); in mlxsw_pci_wqe_frag_map()
371 if (unlikely(dma_mapping_error(&pdev->dev, mapaddr))) { in mlxsw_pci_wqe_frag_map()
375 mlxsw_pci_wqe_address_set(wqe, index, mapaddr); in mlxsw_pci_wqe_frag_map()
385 dma_addr_t mapaddr = mlxsw_pci_wqe_address_get(wqe, index); in mlxsw_pci_wqe_frag_unmap() local
389 dma_unmap_single(&pdev->dev, mapaddr, frag_len, direction); in mlxsw_pci_wqe_frag_unmap()
556 dma_addr_t mapaddr = __mlxsw_pci_queue_page_get(q, i); in mlxsw_pci_rdq_init() local
558 mlxsw_cmd_mbox_sw2hw_dq_pa_set(mbox, i, mapaddr); in mlxsw_pci_rdq_init()
1050 dma_addr_t mapaddr = __mlxsw_pci_queue_page_get(q, i); in mlxsw_pci_cq_init() local
1052 mlxsw_cmd_mbox_sw2hw_cq_pa_set(mbox, i, mapaddr); in mlxsw_pci_cq_init()
1170 dma_addr_t mapaddr = __mlxsw_pci_queue_page_get(q, i); in mlxsw_pci_eq_init() local
1172 mlxsw_cmd_mbox_sw2hw_eq_pa_set(mbox, i, mapaddr); in mlxsw_pci_eq_init()
1259 mem_item->size, &mem_item->mapaddr, in mlxsw_pci_queue_init()
1291 mem_item->buf, mem_item->mapaddr); in mlxsw_pci_queue_init()
1304 mem_item->buf, mem_item->mapaddr); in mlxsw_pci_queue_fini()
1680 &mem_item->mapaddr, GFP_KERNEL); in mlxsw_pci_fw_area_init()
1685 mlxsw_cmd_mbox_map_fa_pa_set(mbox, nent, mem_item->mapaddr); in mlxsw_pci_fw_area_init()
1710 mem_item->buf, mem_item->mapaddr); in mlxsw_pci_fw_area_init()
1727 mem_item->buf, mem_item->mapaddr); in mlxsw_pci_fw_area_fini()
1750 &mbox->mapaddr, GFP_KERNEL); in mlxsw_pci_mbox_alloc()
1765 mbox->mapaddr); in mlxsw_pci_mbox_free()
2212 in_mapaddr = mlxsw_pci->cmd.in_mbox.mapaddr; in mlxsw_pci_cmd_exec()
2218 out_mapaddr = mlxsw_pci->cmd.out_mbox.mapaddr; in mlxsw_pci_cmd_exec()