Lines Matching refs:ib_dev
419 if (!rdma_cap_roce_gid_table(&ibdev->ib_dev, port_num)) in mlx4_ib_gid_index_to_real_index()
951 err = mlx4_ib_query_sl2vl(&mdev->ib_dev, i, &sl2vl); in mlx4_init_sl2vl_tbl()
2002 memcpy(dev->ib_dev.node_desc, out_mad->data, IB_DEVICE_NODE_DESC_MAX); in init_node_data()
2011 memcpy(&dev->ib_dev.node_guid, out_mad->data + 12, 8); in init_node_data()
2023 rdma_device_to_drv_device(device, struct mlx4_ib_dev, ib_dev); in hca_type_show()
2033 rdma_device_to_drv_device(device, struct mlx4_ib_dev, ib_dev); in hw_rev_show()
2043 rdma_device_to_drv_device(device, struct mlx4_ib_dev, ib_dev); in board_id_show()
2240 ib_set_device_ops(&ibdev->ib_dev, in mlx4_ib_alloc_diag_counters()
2256 ib_set_device_ops(&ibdev->ib_dev, &mlx4_ib_hw_stats_ops); in mlx4_ib_alloc_diag_counters()
2363 if (ib_get_cached_port_state(&ibdev->ib_dev, port, in mlx4_ib_scan_netdevs()
2377 ibev.device = &ibdev->ib_dev; in mlx4_ib_scan_netdevs()
2467 ibdev->ib_dev.num_comp_vectors = eq; in mlx4_ib_alloc_eqs()
2473 int total_eqs = ibdev->ib_dev.num_comp_vectors; in mlx4_ib_free_eqs()
2480 ibdev->ib_dev.num_comp_vectors = 0; in mlx4_ib_free_eqs()
2524 container_of(device, struct mlx4_ib_dev, ib_dev); in get_fw_ver_str()
2648 ibdev = ib_alloc_device(mlx4_ib_dev, ib_dev); in mlx4_ib_add()
2672 ibdev->ib_dev.node_type = RDMA_NODE_IB_CA; in mlx4_ib_add()
2673 ibdev->ib_dev.local_dma_lkey = dev->caps.reserved_lkey; in mlx4_ib_add()
2675 ibdev->ib_dev.phys_port_cnt = mlx4_is_bonded(dev) ? in mlx4_ib_add()
2677 ibdev->ib_dev.num_comp_vectors = dev->caps.num_comp_vectors; in mlx4_ib_add()
2678 ibdev->ib_dev.dev.parent = &dev->persist->pdev->dev; in mlx4_ib_add()
2680 ib_set_device_ops(&ibdev->ib_dev, &mlx4_ib_dev_ops); in mlx4_ib_add()
2683 ((mlx4_ib_port_link_layer(&ibdev->ib_dev, 1) == in mlx4_ib_add()
2685 (mlx4_ib_port_link_layer(&ibdev->ib_dev, 2) == in mlx4_ib_add()
2687 ib_set_device_ops(&ibdev->ib_dev, &mlx4_ib_dev_wq_ops); in mlx4_ib_add()
2691 ib_set_device_ops(&ibdev->ib_dev, &mlx4_ib_dev_mw_ops); in mlx4_ib_add()
2694 ib_set_device_ops(&ibdev->ib_dev, &mlx4_ib_dev_xrc_ops); in mlx4_ib_add()
2699 ib_set_device_ops(&ibdev->ib_dev, &mlx4_ib_dev_fs_ops); in mlx4_ib_add()
2703 ibdev->ib_dev.ops.uverbs_abi_ver = in mlx4_ib_add()
2724 if (mlx4_ib_port_link_layer(&ibdev->ib_dev, i + 1) == in mlx4_ib_add()
2815 if (ib_register_device(&ibdev->ib_dev, "mlx4_%d", in mlx4_ib_add()
2842 &ibdev->ib_dev); in mlx4_ib_add()
2872 ib_unregister_device(&ibdev->ib_dev); in mlx4_ib_add()
2898 ib_dealloc_device(&ibdev->ib_dev); in mlx4_ib_add()
2986 ib_unregister_device(&ibdev->ib_dev); in mlx4_ib_remove()
3004 ib_dealloc_device(&ibdev->ib_dev); in mlx4_ib_remove()
3122 struct mlx4_ib_dev *ibdev = ew->ib_dev; in handle_bonded_port_state_event()
3146 ibev.device = &ibdev->ib_dev; in handle_bonded_port_state_event()
3159 err = mlx4_ib_query_sl2vl(&mdev->ib_dev, port, &sl2vl); in mlx4_ib_sl2vl_update()
3171 struct mlx4_ib_dev *mdev = ew->ib_dev; in ib_sl2vl_update_work()
3188 ew->ib_dev = ibdev; in mlx4_sched_ib_sl2vl_update_work()
3209 ew->ib_dev = ibdev; in mlx4_ib_event()
3224 rdma_port_get_link_layer(&ibdev->ib_dev, p) == in mlx4_ib_event()
3254 ew->ib_dev = ibdev; in mlx4_ib_event()
3269 if (rdma_port_get_link_layer(&ibdev->ib_dev, i) in mlx4_ib_event()
3283 if (rdma_port_get_link_layer(&ibdev->ib_dev, i) in mlx4_ib_event()