Lines Matching refs:ibdev
76 ret = ib_device_set_netdev(&dev->ibdev, netdev, 1); in erdma_enum_and_get_netdev()
79 ibdev_warn(&dev->ibdev, in erdma_enum_and_get_netdev()
96 struct ib_device *ibdev = &dev->ibdev; in erdma_device_register() local
104 addrconf_addr_eui48((u8 *)&ibdev->node_guid, dev->netdev->dev_addr); in erdma_device_register()
106 ret = ib_register_device(ibdev, "erdma_%d", &dev->pdev->dev); in erdma_device_register()
116 ibdev_err(&dev->ibdev, "failed to register notifier.\n"); in erdma_device_register()
117 ib_unregister_device(ibdev); in erdma_device_register()
261 dev = ib_alloc_device(erdma_dev, ibdev); in erdma_probe_dev()
354 ib_dealloc_device(&dev->ibdev); in erdma_probe_dev()
377 ib_dealloc_device(&dev->ibdev); in erdma_remove_dev()
528 struct ib_device *ibdev = &dev->ibdev; in erdma_ib_device_add() local
540 ibdev->node_type = RDMA_NODE_RNIC; in erdma_ib_device_add()
541 memcpy(ibdev->node_desc, ERDMA_NODE_DESC, sizeof(ERDMA_NODE_DESC)); in erdma_ib_device_add()
548 ibdev->phys_port_cnt = 1; in erdma_ib_device_add()
549 ibdev->num_comp_vectors = dev->attrs.irq_num - 1; in erdma_ib_device_add()
551 ib_set_device_ops(ibdev, &erdma_device_ops); in erdma_ib_device_add()
601 ib_unregister_device(&dev->ibdev); in erdma_ib_device_remove()