• Home
  • Raw
  • Download

Lines Matching refs:dsr

110 		 (int) (dev->dsr->caps.fw_ver >> 32),  in pvrdma_get_fw_ver_str()
111 (int) (dev->dsr->caps.fw_ver >> 16) & 0xffff, in pvrdma_get_fw_ver_str()
112 (int) dev->dsr->caps.fw_ver & 0xffff); in pvrdma_get_fw_ver_str()
135 if (dev->dsr->caps.gid_types == PVRDMA_GID_TYPE_FLAG_ROCE_V1) in pvrdma_port_immutable()
137 else if (dev->dsr->caps.gid_types == PVRDMA_GID_TYPE_FLAG_ROCE_V2) in pvrdma_port_immutable()
174 dev->ib_dev.node_guid = dev->dsr->caps.node_guid; in pvrdma_register_device()
175 dev->sys_image_guid = dev->dsr->caps.sys_image_guid; in pvrdma_register_device()
204 dev->ib_dev.phys_port_cnt = dev->dsr->caps.phys_port_cnt; in pvrdma_register_device()
245 dev->cq_tbl = kcalloc(dev->dsr->caps.max_cq, sizeof(void *), in pvrdma_register_device()
251 dev->qp_tbl = kcalloc(dev->dsr->caps.max_qp, sizeof(void *), in pvrdma_register_device()
308 qp = dev->qp_tbl[qpn % dev->dsr->caps.max_qp]; in pvrdma_qp_event()
335 cq = dev->cq_tbl[cqn % dev->dsr->caps.max_cq]; in pvrdma_cq_event()
370 if (port < 1 || port > dev->dsr->caps.phys_port_cnt) { in pvrdma_dev_event()
390 int ring_slots = (dev->dsr->async_ring_pages.num_pages - 1) * in pvrdma_intr1_handler()
465 int ring_slots = (dev->dsr->cq_ring_pages.num_pages - 1) * PAGE_SIZE / in pvrdma_intrx_handler()
478 cq = dev->cq_tbl[cqne->info % dev->dsr->caps.max_cq]; in pvrdma_intrx_handler()
568 dev->dsr->resp_slot_dma); in pvrdma_free_slots()
571 dev->dsr->cmd_slot_dma); in pvrdma_free_slots()
832 dev->dsr = dma_alloc_coherent(&pdev->dev, sizeof(*dev->dsr), in pvrdma_pci_probe()
834 if (!dev->dsr) { in pvrdma_pci_probe()
841 memset(dev->dsr, 0, sizeof(*dev->dsr)); in pvrdma_pci_probe()
842 dev->dsr->driver_version = PVRDMA_VERSION; in pvrdma_pci_probe()
843 dev->dsr->gos_info.gos_bits = sizeof(void *) == 4 ? in pvrdma_pci_probe()
846 dev->dsr->gos_info.gos_type = PVRDMA_GOS_TYPE_LINUX; in pvrdma_pci_probe()
847 dev->dsr->gos_info.gos_ver = 1; in pvrdma_pci_probe()
848 dev->dsr->uar_pfn = dev->driver_uar.pfn; in pvrdma_pci_probe()
858 dev->dsr->cmd_slot_dma = (u64)slot_dma; in pvrdma_pci_probe()
868 dev->dsr->resp_slot_dma = (u64)slot_dma; in pvrdma_pci_probe()
871 dev->dsr->async_ring_pages.num_pages = PVRDMA_NUM_RING_PAGES; in pvrdma_pci_probe()
873 dev->dsr->async_ring_pages.num_pages, true); in pvrdma_pci_probe()
877 dev->dsr->async_ring_pages.pdir_dma = dev->async_pdir.dir_dma; in pvrdma_pci_probe()
880 dev->dsr->cq_ring_pages.num_pages = PVRDMA_NUM_RING_PAGES; in pvrdma_pci_probe()
882 dev->dsr->cq_ring_pages.num_pages, true); in pvrdma_pci_probe()
886 dev->dsr->cq_ring_pages.pdir_dma = dev->cq_pdir.dir_dma; in pvrdma_pci_probe()
951 dev->sgid_tbl = kcalloc(dev->dsr->caps.gid_tbl_len, in pvrdma_pci_probe()
957 dev_dbg(&pdev->dev, "gid table len %d\n", dev->dsr->caps.gid_tbl_len); in pvrdma_pci_probe()
1009 dma_free_coherent(&pdev->dev, sizeof(*dev->dsr), dev->dsr, in pvrdma_pci_probe()
1058 dma_free_coherent(&pdev->dev, sizeof(*dev->dsr), dev->dsr, in pvrdma_pci_remove()