Lines Matching refs:dev_info
28 struct be_dev_info dev_info; in _be_roce_dev_add() local
45 dev_info.dpp_unmapped_addr = pci_resource_start(pdev, 2); in _be_roce_dev_add()
46 dev_info.dpp_unmapped_len = pci_resource_len(pdev, 2); in _be_roce_dev_add()
48 dev_info.dpp_unmapped_addr = 0; in _be_roce_dev_add()
49 dev_info.dpp_unmapped_len = 0; in _be_roce_dev_add()
51 dev_info.pdev = adapter->pdev; in _be_roce_dev_add()
52 dev_info.db = adapter->db; in _be_roce_dev_add()
53 dev_info.unmapped_db = adapter->roce_db.io_addr; in _be_roce_dev_add()
54 dev_info.db_page_size = adapter->roce_db.size; in _be_roce_dev_add()
55 dev_info.db_total_size = adapter->roce_db.total_size; in _be_roce_dev_add()
56 dev_info.netdev = adapter->netdev; in _be_roce_dev_add()
57 memcpy(dev_info.mac_addr, adapter->netdev->dev_addr, ETH_ALEN); in _be_roce_dev_add()
58 dev_info.dev_family = adapter->sli_family; in _be_roce_dev_add()
64 dev_info.intr_mode = BE_INTERRUPT_MODE_MSIX; in _be_roce_dev_add()
65 dev_info.msix.num_vectors = min(num_vec, MAX_MSIX_VECTORS); in _be_roce_dev_add()
70 dev_info.msix.start_vector = adapter->num_evt_qs; in _be_roce_dev_add()
71 for (i = 0; i < dev_info.msix.num_vectors; i++) { in _be_roce_dev_add()
72 dev_info.msix.vector_list[i] = in _be_roce_dev_add()
76 dev_info.msix.num_vectors = 0; in _be_roce_dev_add()
77 dev_info.intr_mode = BE_INTERRUPT_MODE_INTX; in _be_roce_dev_add()
79 adapter->ocrdma_dev = ocrdma_drv->add(&dev_info); in _be_roce_dev_add()