Lines Matching refs:mlx5_ib_dev

61 		struct mlx5_ib_dev	      *dev;
81 struct mlx5_ib_dev *mlx5_ib_get_ibdev_from_mpi(struct mlx5_ib_multiport_info *mpi) in mlx5_ib_get_ibdev_from_mpi()
83 struct mlx5_ib_dev *dev; in mlx5_ib_get_ibdev_from_mpi()
107 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_ib_port_link_layer()
127 static struct mlx5_roce *mlx5_get_rep_roce(struct mlx5_ib_dev *dev, in mlx5_get_rep_roce()
170 struct mlx5_ib_dev *ibdev; in mlx5_netdev_event()
250 struct mlx5_ib_dev *ibdev = to_mdev(device); in mlx5_ib_get_netdev()
275 struct mlx5_core_dev *mlx5_ib_get_native_port_mdev(struct mlx5_ib_dev *ibdev, in mlx5_ib_get_native_port_mdev()
311 void mlx5_ib_put_native_port_mdev(struct mlx5_ib_dev *ibdev, u32 port_num) in mlx5_ib_put_native_port_mdev()
474 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_query_port_roce()
568 int set_roce_addr(struct mlx5_ib_dev *dev, u32 port_num, in set_roce_addr()
635 __be16 mlx5_get_roce_udp_sport_min(const struct mlx5_ib_dev *dev, in mlx5_get_roce_udp_sport_min()
644 static int mlx5_use_mad_ifc(struct mlx5_ib_dev *dev) in mlx5_use_mad_ifc()
669 static void get_atomic_caps(struct mlx5_ib_dev *dev, in get_atomic_caps()
691 static void get_atomic_caps_qp(struct mlx5_ib_dev *dev, in get_atomic_caps_qp()
702 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_query_system_image_guid()
734 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_query_max_pkeys()
755 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_query_vendor_id()
770 static int mlx5_query_node_guid(struct mlx5_ib_dev *dev, in mlx5_query_node_guid()
802 static int mlx5_query_node_desc(struct mlx5_ib_dev *dev, char *node_desc) in mlx5_query_node_desc()
821 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_query_device()
1220 struct mlx5_ib_dev *dev = to_mdev(ibdev); in translate_active_width()
1305 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_query_hca_port()
1394 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_query_port()
1434 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_query_gid()
1453 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_query_hca_nic_pkey()
1495 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_modify_device()
1521 static int set_port_caps_atomic(struct mlx5_ib_dev *dev, u32 port_num, u32 mask, in set_port_caps_atomic()
1558 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_modify_port()
1595 static void print_lib_caps(struct mlx5_ib_dev *dev, u64 caps) in print_lib_caps()
1610 static int calc_total_bfregs(struct mlx5_ib_dev *dev, bool lib_uar_4k, in calc_total_bfregs()
1648 static int allocate_uars(struct mlx5_ib_dev *dev, struct mlx5_ib_ucontext *context) in allocate_uars()
1678 static void deallocate_uars(struct mlx5_ib_dev *dev, in deallocate_uars()
1692 int mlx5_ib_enable_lb(struct mlx5_ib_dev *dev, bool td, bool qp) in mlx5_ib_enable_lb()
1715 void mlx5_ib_disable_lb(struct mlx5_ib_dev *dev, bool td, bool qp) in mlx5_ib_disable_lb()
1734 static int mlx5_ib_alloc_transport_domain(struct mlx5_ib_dev *dev, u32 *tdn, in mlx5_ib_alloc_transport_domain()
1754 static void mlx5_ib_dealloc_transport_domain(struct mlx5_ib_dev *dev, u32 tdn, in mlx5_ib_dealloc_transport_domain()
1774 struct mlx5_ib_dev *dev = to_mdev(ibdev); in set_ucontext_resp()
1852 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_alloc_ucontext()
2014 struct mlx5_ib_dev *dev = to_mdev(ibcontext->device); in mlx5_ib_dealloc_ucontext()
2028 static phys_addr_t uar_index2pfn(struct mlx5_ib_dev *dev, in uar_index2pfn()
2038 static u64 uar_index2paddress(struct mlx5_ib_dev *dev, in uar_index2paddress()
2091 static int mlx5_ib_mmap_clock_info_page(struct mlx5_ib_dev *dev, in mlx5_ib_mmap_clock_info_page()
2116 struct mlx5_ib_dev *dev = to_mdev(entry->ucontext->device); in mlx5_ib_mmap_free()
2142 static int uar_mmap(struct mlx5_ib_dev *dev, enum mlx5_ib_mmap_cmd cmd, in uar_mmap()
2261 static int mlx5_ib_mmap_offset(struct mlx5_ib_dev *dev, in mlx5_ib_mmap_offset()
2304 struct mlx5_ib_dev *dev = to_mdev(ibcontext->device); in mlx5_ib_mmap()
2385 struct mlx5_ib_dev *mdev = to_mdev(pd->device); in mlx5_ib_dealloc_pd()
2393 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); in mlx5_ib_mcg_attach()
2416 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); in mlx5_ib_mcg_detach()
2430 static int init_node_data(struct mlx5_ib_dev *dev) in init_node_data()
2446 struct mlx5_ib_dev *dev = in fw_pages_show()
2447 rdma_device_to_drv_device(device, struct mlx5_ib_dev, ib_dev); in fw_pages_show()
2456 struct mlx5_ib_dev *dev = in reg_pages_show()
2457 rdma_device_to_drv_device(device, struct mlx5_ib_dev, ib_dev); in reg_pages_show()
2466 struct mlx5_ib_dev *dev = in hca_type_show()
2467 rdma_device_to_drv_device(device, struct mlx5_ib_dev, ib_dev); in hca_type_show()
2476 struct mlx5_ib_dev *dev = in hw_rev_show()
2477 rdma_device_to_drv_device(device, struct mlx5_ib_dev, ib_dev); in hw_rev_show()
2486 struct mlx5_ib_dev *dev = in board_id_show()
2487 rdma_device_to_drv_device(device, struct mlx5_ib_dev, ib_dev); in board_id_show()
2523 static void mlx5_ib_handle_internal_error(struct mlx5_ib_dev *ibdev) in mlx5_ib_handle_internal_error()
2601 static void handle_general_event(struct mlx5_ib_dev *ibdev, struct mlx5_eqe *eqe, in handle_general_event()
2617 static int handle_port_change(struct mlx5_ib_dev *ibdev, struct mlx5_eqe *eqe, in handle_port_change()
2666 struct mlx5_ib_dev *ibdev; in mlx5_ib_handle_event()
2722 work->dev = container_of(nb, struct mlx5_ib_dev, mdev_events); in mlx5_ib_event()
2751 static int set_has_smi_cap(struct mlx5_ib_dev *dev) in set_has_smi_cap()
2778 static void get_ext_port_caps(struct mlx5_ib_dev *dev) in get_ext_port_caps()
2798 static int mlx5_ib_dev_res_init(struct mlx5_ib_dev *dev) in mlx5_ib_dev_res_init()
2872 static void mlx5_ib_dev_res_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_dev_res_cleanup()
2897 struct mlx5_ib_dev *dev = to_mdev(ibdev); in get_core_cap_flags()
2932 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_port_immutable()
2977 struct mlx5_ib_dev *dev = in get_dev_fw_str()
2978 container_of(ibdev, struct mlx5_ib_dev, ib_dev); in get_dev_fw_str()
2984 static int mlx5_eth_lag_init(struct mlx5_ib_dev *dev) in mlx5_eth_lag_init()
3015 static void mlx5_eth_lag_cleanup(struct mlx5_ib_dev *dev) in mlx5_eth_lag_cleanup()
3071 static void mlx5_mdev_netdev_track(struct mlx5_ib_dev *dev, u32 port_num) in mlx5_mdev_netdev_track()
3080 static void mlx5_mdev_netdev_untrack(struct mlx5_ib_dev *dev, u32 port_num) in mlx5_mdev_netdev_untrack()
3088 static int mlx5_enable_eth(struct mlx5_ib_dev *dev) in mlx5_enable_eth()
3111 static void mlx5_disable_eth(struct mlx5_ib_dev *dev) in mlx5_disable_eth()
3167 static void mlx5_ib_unbind_slave_port(struct mlx5_ib_dev *ibdev, in mlx5_ib_unbind_slave_port()
3225 static bool mlx5_ib_bind_slave_port(struct mlx5_ib_dev *ibdev, in mlx5_ib_bind_slave_port()
3264 static int mlx5_ib_init_multiport_master(struct mlx5_ib_dev *dev) in mlx5_ib_init_multiport_master()
3332 static void mlx5_ib_cleanup_multiport_master(struct mlx5_ib_dev *dev) in mlx5_ib_cleanup_multiport_master()
3502 struct mlx5_ib_dev *dev = to_mdev(device); in var_is_supported()
3513 struct mlx5_ib_dev *dev; in alloc_uar_entry()
3654 static void mlx5_ib_stage_init_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_init_cleanup()
3664 static int mlx5_ib_stage_init_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_init_init()
3727 struct mlx5_ib_dev *mdev = to_mdev(dev); in mlx5_ib_enable_driver()
3833 static int mlx5_ib_init_var_table(struct mlx5_ib_dev *dev) in mlx5_ib_init_var_table()
3858 static void mlx5_ib_stage_caps_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_caps_cleanup()
3863 static int mlx5_ib_stage_caps_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_caps_init()
3920 static int mlx5_ib_stage_non_default_cb(struct mlx5_ib_dev *dev) in mlx5_ib_stage_non_default_cb()
3932 static int mlx5_ib_stage_raw_eth_non_default_cb(struct mlx5_ib_dev *dev) in mlx5_ib_stage_raw_eth_non_default_cb()
3950 static int mlx5_ib_roce_init(struct mlx5_ib_dev *dev) in mlx5_ib_roce_init()
3980 static void mlx5_ib_roce_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_roce_cleanup()
3998 static int mlx5_ib_stage_cong_debugfs_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_cong_debugfs_init()
4005 static void mlx5_ib_stage_cong_debugfs_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_cong_debugfs_cleanup()
4011 static int mlx5_ib_stage_uar_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_uar_init()
4017 static void mlx5_ib_stage_uar_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_uar_cleanup()
4022 static int mlx5_ib_stage_bfrag_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_bfrag_init()
4037 static void mlx5_ib_stage_bfrag_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_bfrag_cleanup()
4043 static int mlx5_ib_stage_ib_reg_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_ib_reg_init()
4054 static void mlx5_ib_stage_pre_ib_reg_umr_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_pre_ib_reg_umr_cleanup()
4060 static void mlx5_ib_stage_ib_reg_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_ib_reg_cleanup()
4065 static int mlx5_ib_stage_post_ib_reg_umr_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_post_ib_reg_umr_init()
4081 static int mlx5_ib_stage_delay_drop_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_delay_drop_init()
4111 static void mlx5_ib_stage_delay_drop_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_delay_drop_cleanup()
4124 static int mlx5_ib_stage_dev_notifier_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_dev_notifier_init()
4134 static void mlx5_ib_stage_dev_notifier_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_dev_notifier_cleanup()
4140 void __mlx5_ib_remove(struct mlx5_ib_dev *dev, in __mlx5_ib_remove()
4157 int __mlx5_ib_add(struct mlx5_ib_dev *dev, in __mlx5_ib_add()
4315 struct mlx5_ib_dev *dev; in mlx5r_mp_probe()
4376 struct mlx5_ib_dev *dev; in mlx5r_probe()
4383 dev = ib_alloc_device(mlx5_ib_dev, ib_dev); in mlx5r_probe()
4414 struct mlx5_ib_dev *dev; in mlx5r_remove()