Lines Matching refs:to_mdev
140 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_ib_port_link_layer()
274 struct mlx5_ib_dev *ibdev = to_mdev(device); in mlx5_ib_get_netdev()
485 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_query_port_roce()
621 return set_roce_addr(to_mdev(attr->device), attr->port_num, in mlx5_ib_add_gid()
628 return set_roce_addr(to_mdev(attr->device), attr->port_num, in mlx5_ib_del_gid()
656 if (mlx5_use_mad_ifc(to_mdev(ibdev))) in mlx5_get_vport_access_method()
714 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_query_system_image_guid()
746 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_query_max_pkeys()
767 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_query_vendor_id()
832 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_query_device()
1216 struct mlx5_ib_dev *dev = to_mdev(ibdev); in translate_active_width()
1301 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_query_hca_port()
1393 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_query_port()
1435 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_query_gid()
1454 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_query_hca_nic_pkey()
1496 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_modify_device()
1559 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_modify_port()
1772 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_alloc_ucontext()
1995 struct mlx5_ib_dev *dev = to_mdev(ibcontext->device); in mlx5_ib_dealloc_ucontext()
2198 struct mlx5_ib_dev *dev = to_mdev(context->device); in dm_mmap()
2219 struct mlx5_ib_dev *dev = to_mdev(ibcontext->device); in mlx5_ib_mmap()
2293 struct mlx5_dm *dm_db = &to_mdev(ctx->device)->dm; in handle_alloc_dm_memic()
2339 struct mlx5_core_dev *dev = to_mdev(ctx->device)->mdev; in handle_alloc_dm_sw_icm()
2382 mlx5_ib_dbg(to_mdev(ibdev), "alloc_dm req: dm_type=%d user_length=0x%llx log_alignment=%d\n", in mlx5_ib_alloc_dm()
2385 err = check_dm_type_support(to_mdev(ibdev), type); in mlx5_ib_alloc_dm()
2429 struct mlx5_core_dev *dev = to_mdev(ibdm->device)->mdev; in mlx5_ib_dealloc_dm()
2430 struct mlx5_dm *dm_db = &to_mdev(ibdm->device)->dm; in mlx5_ib_dealloc_dm()
2485 err = mlx5_cmd_exec(to_mdev(ibdev)->mdev, in, sizeof(in), in mlx5_ib_alloc_pd()
2495 mlx5_cmd_dealloc_pd(to_mdev(ibdev)->mdev, pd->pdn, uid); in mlx5_ib_alloc_pd()
2505 struct mlx5_ib_dev *mdev = to_mdev(pd->device); in mlx5_ib_dealloc_pd()
3371 struct mlx5_ib_dev *dev = to_mdev(ibdev); in read_flow_counters()
3445 to_mdev(ibcounters->device)->mdev, false); in flow_counters_set_data()
3477 mlx5_fc_destroy(to_mdev(ibcounters->device)->mdev, in flow_counters_set_data()
3791 struct mlx5_ib_dev *dev = to_mdev(qp->device); in mlx5_ib_create_flow()
4194 struct mlx5_ib_dev *mdev = to_mdev(device); in mlx5_ib_create_flow_action_esp()
4346 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); in mlx5_ib_mcg_attach()
4369 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); in mlx5_ib_mcg_detach()
5094 struct mlx5_ib_dev *dev = to_mdev(ibdev); in get_core_cap_flags()
5129 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_port_immutable()
5513 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_alloc_hw_stats()
5587 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_get_hw_stats()
5640 struct mlx5_ib_dev *dev = to_mdev(counter->device); in mlx5_ib_counter_alloc_stats()
5652 struct mlx5_ib_dev *dev = to_mdev(counter->device); in mlx5_ib_counter_update_stats()
5663 struct mlx5_ib_dev *dev = to_mdev(qp->device); in mlx5_ib_counter_bind_qp()
5696 struct mlx5_ib_dev *dev = to_mdev(counter->device); in mlx5_ib_counter_dealloc()
5708 return mlx5_rdma_rn_get_params(to_mdev(device)->mdev, device, params); in mlx5_ib_rn_get_params()
6123 mlx5_fc_destroy(to_mdev(counters->device)->mdev, in mlx5_ib_destroy_counters()