Lines Matching full:dsr
105 (int) (dev->dsr->caps.fw_ver >> 32), in pvrdma_get_fw_ver_str()
106 (int) (dev->dsr->caps.fw_ver >> 16) & 0xffff, in pvrdma_get_fw_ver_str()
107 (int) dev->dsr->caps.fw_ver & 0xffff); in pvrdma_get_fw_ver_str()
131 if (dev->dsr->caps.gid_types == PVRDMA_GID_TYPE_FLAG_ROCE_V1) in pvrdma_port_immutable()
133 else if (dev->dsr->caps.gid_types == PVRDMA_GID_TYPE_FLAG_ROCE_V2) in pvrdma_port_immutable()
205 dev->ib_dev.node_guid = dev->dsr->caps.node_guid; in pvrdma_register_device()
206 dev->sys_image_guid = dev->dsr->caps.sys_image_guid; in pvrdma_register_device()
212 dev->ib_dev.phys_port_cnt = dev->dsr->caps.phys_port_cnt; in pvrdma_register_device()
219 dev->cq_tbl = kcalloc(dev->dsr->caps.max_cq, sizeof(struct pvrdma_cq *), in pvrdma_register_device()
225 dev->qp_tbl = kcalloc(dev->dsr->caps.max_qp, sizeof(struct pvrdma_qp *), in pvrdma_register_device()
232 if (dev->dsr->caps.max_srq) { in pvrdma_register_device()
235 dev->srq_tbl = kcalloc(dev->dsr->caps.max_srq, in pvrdma_register_device()
290 qp = dev->qp_tbl[qpn % dev->dsr->caps.max_qp]; in pvrdma_qp_event()
316 cq = dev->cq_tbl[cqn % dev->dsr->caps.max_cq]; in pvrdma_cq_event()
343 srq = dev->srq_tbl[srqn % dev->dsr->caps.max_srq]; in pvrdma_srq_event()
379 if (port < 1 || port > dev->dsr->caps.phys_port_cnt) { in pvrdma_dev_event()
399 int ring_slots = (dev->dsr->async_ring_pages.num_pages - 1) * in pvrdma_intr1_handler()
475 int ring_slots = (dev->dsr->cq_ring_pages.num_pages - 1) * PAGE_SIZE / in pvrdma_intrx_handler()
487 cq = dev->cq_tbl[cqne->info % dev->dsr->caps.max_cq]; in pvrdma_intrx_handler()
576 dev->dsr->resp_slot_dma); in pvrdma_free_slots()
579 dev->dsr->cmd_slot_dma); in pvrdma_free_slots()
849 dev->dsr = dma_alloc_coherent(&pdev->dev, sizeof(*dev->dsr), in pvrdma_pci_probe()
851 if (!dev->dsr) { in pvrdma_pci_probe()
858 dev->dsr->driver_version = PVRDMA_VERSION; in pvrdma_pci_probe()
859 dev->dsr->gos_info.gos_bits = sizeof(void *) == 4 ? in pvrdma_pci_probe()
862 dev->dsr->gos_info.gos_type = PVRDMA_GOS_TYPE_LINUX; in pvrdma_pci_probe()
863 dev->dsr->gos_info.gos_ver = 1; in pvrdma_pci_probe()
866 dev->dsr->uar_pfn = dev->driver_uar.pfn; in pvrdma_pci_probe()
868 dev->dsr->uar_pfn64 = dev->driver_uar.pfn; in pvrdma_pci_probe()
878 dev->dsr->cmd_slot_dma = (u64)slot_dma; in pvrdma_pci_probe()
888 dev->dsr->resp_slot_dma = (u64)slot_dma; in pvrdma_pci_probe()
891 dev->dsr->async_ring_pages.num_pages = PVRDMA_NUM_RING_PAGES; in pvrdma_pci_probe()
893 dev->dsr->async_ring_pages.num_pages, true); in pvrdma_pci_probe()
897 dev->dsr->async_ring_pages.pdir_dma = dev->async_pdir.dir_dma; in pvrdma_pci_probe()
900 dev->dsr->cq_ring_pages.num_pages = PVRDMA_NUM_RING_PAGES; in pvrdma_pci_probe()
902 dev->dsr->cq_ring_pages.num_pages, true); in pvrdma_pci_probe()
906 dev->dsr->cq_ring_pages.pdir_dma = dev->cq_pdir.dir_dma; in pvrdma_pci_probe()
972 dev->sgid_tbl = kcalloc(dev->dsr->caps.gid_tbl_len, in pvrdma_pci_probe()
978 dev_dbg(&pdev->dev, "gid table len %d\n", dev->dsr->caps.gid_tbl_len); in pvrdma_pci_probe()
1032 dma_free_coherent(&pdev->dev, sizeof(*dev->dsr), dev->dsr, in pvrdma_pci_probe()
1084 dma_free_coherent(&pdev->dev, sizeof(*dev->dsr), dev->dsr, in pvrdma_pci_remove()