Lines Matching refs:mlx5_ib_dev

88 		struct mlx5_ib_dev	      *dev;
114 struct mlx5_ib_dev *mlx5_ib_get_ibdev_from_mpi(struct mlx5_ib_multiport_info *mpi) in mlx5_ib_get_ibdev_from_mpi()
116 struct mlx5_ib_dev *dev; in mlx5_ib_get_ibdev_from_mpi()
140 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_ib_port_link_layer()
160 static struct mlx5_roce *mlx5_get_rep_roce(struct mlx5_ib_dev *dev, in mlx5_get_rep_roce()
195 struct mlx5_ib_dev *ibdev; in mlx5_netdev_event()
274 struct mlx5_ib_dev *ibdev = to_mdev(device); in mlx5_ib_get_netdev()
299 struct mlx5_core_dev *mlx5_ib_get_native_port_mdev(struct mlx5_ib_dev *ibdev, in mlx5_ib_get_native_port_mdev()
338 void mlx5_ib_put_native_port_mdev(struct mlx5_ib_dev *ibdev, u8 port_num) in mlx5_ib_put_native_port_mdev()
485 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_query_port_roce()
578 static int set_roce_addr(struct mlx5_ib_dev *dev, u8 port_num, in set_roce_addr()
632 __be16 mlx5_get_roce_udp_sport(struct mlx5_ib_dev *dev, in mlx5_get_roce_udp_sport()
641 static int mlx5_use_mad_ifc(struct mlx5_ib_dev *dev) in mlx5_use_mad_ifc()
666 static void get_atomic_caps(struct mlx5_ib_dev *dev, in get_atomic_caps()
688 static void get_atomic_caps_qp(struct mlx5_ib_dev *dev, in get_atomic_caps_qp()
696 static void get_atomic_caps_dc(struct mlx5_ib_dev *dev, in get_atomic_caps_dc()
704 bool mlx5_ib_dc_atomic_is_supported(struct mlx5_ib_dev *dev) in mlx5_ib_dc_atomic_is_supported()
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()
782 static int mlx5_query_node_guid(struct mlx5_ib_dev *dev, in mlx5_query_node_guid()
814 static int mlx5_query_node_desc(struct mlx5_ib_dev *dev, char *node_desc) in mlx5_query_node_desc()
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()
1522 static int set_port_caps_atomic(struct mlx5_ib_dev *dev, u8 port_num, u32 mask, in set_port_caps_atomic()
1559 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_modify_port()
1596 static void print_lib_caps(struct mlx5_ib_dev *dev, u64 caps) in print_lib_caps()
1611 static int calc_total_bfregs(struct mlx5_ib_dev *dev, bool lib_uar_4k, in calc_total_bfregs()
1649 static int allocate_uars(struct mlx5_ib_dev *dev, struct mlx5_ib_ucontext *context) in allocate_uars()
1677 static void deallocate_uars(struct mlx5_ib_dev *dev, in deallocate_uars()
1690 int mlx5_ib_enable_lb(struct mlx5_ib_dev *dev, bool td, bool qp) in mlx5_ib_enable_lb()
1713 void mlx5_ib_disable_lb(struct mlx5_ib_dev *dev, bool td, bool qp) in mlx5_ib_disable_lb()
1732 static int mlx5_ib_alloc_transport_domain(struct mlx5_ib_dev *dev, u32 *tdn, in mlx5_ib_alloc_transport_domain()
1752 static void mlx5_ib_dealloc_transport_domain(struct mlx5_ib_dev *dev, u32 tdn, in mlx5_ib_dealloc_transport_domain()
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()
2009 static phys_addr_t uar_index2pfn(struct mlx5_ib_dev *dev, in uar_index2pfn()
2061 static int mlx5_ib_mmap_clock_info_page(struct mlx5_ib_dev *dev, in mlx5_ib_mmap_clock_info_page()
2083 static int uar_mmap(struct mlx5_ib_dev *dev, enum mlx5_ib_mmap_cmd cmd, in uar_mmap()
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()
2265 static inline int check_dm_type_support(struct mlx5_ib_dev *dev, in check_dm_type_support()
2505 struct mlx5_ib_dev *mdev = to_mdev(pd->device); in mlx5_ib_dealloc_pd()
3172 static void put_flow_table(struct mlx5_ib_dev *dev, in put_flow_table()
3199 struct mlx5_ib_dev *dev = handler->dev; in mlx5_ib_destroy_flow()
3260 static struct mlx5_ib_flow_prio *get_flow_table(struct mlx5_ib_dev *dev, in get_flow_table()
3347 static void set_underlay_qp(struct mlx5_ib_dev *dev, in set_underlay_qp()
3371 struct mlx5_ib_dev *dev = to_mdev(ibdev); in read_flow_counters()
3486 static void mlx5_ib_set_rule_source_port(struct mlx5_ib_dev *dev, in mlx5_ib_set_rule_source_port()
3517 static struct mlx5_ib_flow_handler *_create_flow_rule(struct mlx5_ib_dev *dev, in _create_flow_rule()
3653 static struct mlx5_ib_flow_handler *create_flow_rule(struct mlx5_ib_dev *dev, in create_flow_rule()
3661 static struct mlx5_ib_flow_handler *create_dont_trap_rule(struct mlx5_ib_dev *dev, in create_dont_trap_rule()
3690 static struct mlx5_ib_flow_handler *create_leftovers_rule(struct mlx5_ib_dev *dev, in create_leftovers_rule()
3749 static struct mlx5_ib_flow_handler *create_sniffer_rule(struct mlx5_ib_dev *dev, in create_sniffer_rule()
3791 struct mlx5_ib_dev *dev = to_mdev(qp->device); in mlx5_ib_create_flow()
3933 _get_flow_table(struct mlx5_ib_dev *dev, in _get_flow_table()
4007 _create_raw_flow_rule(struct mlx5_ib_dev *dev, in _create_raw_flow_rule()
4097 mlx5_ib_raw_fs_rule_add(struct mlx5_ib_dev *dev, in mlx5_ib_raw_fs_rule_add()
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()
4383 static int init_node_data(struct mlx5_ib_dev *dev) in init_node_data()
4399 struct mlx5_ib_dev *dev = in fw_pages_show()
4400 rdma_device_to_drv_device(device, struct mlx5_ib_dev, ib_dev); in fw_pages_show()
4409 struct mlx5_ib_dev *dev = in reg_pages_show()
4410 rdma_device_to_drv_device(device, struct mlx5_ib_dev, ib_dev); in reg_pages_show()
4419 struct mlx5_ib_dev *dev = in hca_type_show()
4420 rdma_device_to_drv_device(device, struct mlx5_ib_dev, ib_dev); in hca_type_show()
4429 struct mlx5_ib_dev *dev = in hw_rev_show()
4430 rdma_device_to_drv_device(device, struct mlx5_ib_dev, ib_dev); in hw_rev_show()
4439 struct mlx5_ib_dev *dev = in board_id_show()
4440 rdma_device_to_drv_device(device, struct mlx5_ib_dev, ib_dev); in board_id_show()
4471 static void mlx5_ib_handle_internal_error(struct mlx5_ib_dev *ibdev) in mlx5_ib_handle_internal_error()
4550 static void handle_general_event(struct mlx5_ib_dev *ibdev, struct mlx5_eqe *eqe, in handle_general_event()
4566 static int handle_port_change(struct mlx5_ib_dev *ibdev, struct mlx5_eqe *eqe, in handle_port_change()
4615 struct mlx5_ib_dev *ibdev; in mlx5_ib_handle_event()
4671 work->dev = container_of(nb, struct mlx5_ib_dev, mdev_events); in mlx5_ib_event()
4700 static int set_has_smi_cap(struct mlx5_ib_dev *dev) in set_has_smi_cap()
4729 static void get_ext_port_caps(struct mlx5_ib_dev *dev) in get_ext_port_caps()
4737 static int __get_port_caps(struct mlx5_ib_dev *dev, u8 port) in __get_port_caps()
4779 static int get_port_caps(struct mlx5_ib_dev *dev, u8 port) in get_port_caps()
4789 static void destroy_umrc_res(struct mlx5_ib_dev *dev) in destroy_umrc_res()
4809 static int create_umr_res(struct mlx5_ib_dev *dev) in create_umr_res()
4935 struct mlx5_ib_dev *dev; in create_dev_resources()
4941 dev = container_of(devr, struct mlx5_ib_dev, devr); in create_dev_resources()
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()
5175 struct mlx5_ib_dev *dev = in get_dev_fw_str()
5176 container_of(ibdev, struct mlx5_ib_dev, ib_dev); in get_dev_fw_str()
5182 static int mlx5_eth_lag_init(struct mlx5_ib_dev *dev) in mlx5_eth_lag_init()
5212 static void mlx5_eth_lag_cleanup(struct mlx5_ib_dev *dev) in mlx5_eth_lag_cleanup()
5226 static int mlx5_add_netdev_notifier(struct mlx5_ib_dev *dev, u8 port_num) in mlx5_add_netdev_notifier()
5240 static void mlx5_remove_netdev_notifier(struct mlx5_ib_dev *dev, u8 port_num) in mlx5_remove_netdev_notifier()
5248 static int mlx5_enable_eth(struct mlx5_ib_dev *dev) in mlx5_enable_eth()
5271 static void mlx5_disable_eth(struct mlx5_ib_dev *dev) in mlx5_disable_eth()
5343 static void mlx5_ib_dealloc_counters(struct mlx5_ib_dev *dev) in mlx5_ib_dealloc_counters()
5359 static int __mlx5_ib_alloc_counters(struct mlx5_ib_dev *dev, in __mlx5_ib_alloc_counters()
5402 static void mlx5_ib_fill_counters(struct mlx5_ib_dev *dev, in mlx5_ib_fill_counters()
5450 static int mlx5_ib_alloc_counters(struct mlx5_ib_dev *dev) in mlx5_ib_alloc_counters()
5487 static const struct mlx5_ib_counters *get_counters(struct mlx5_ib_dev *dev, in get_counters()
5503 u16 mlx5_ib_get_counters_id(struct mlx5_ib_dev *dev, u8 port_num) in mlx5_ib_get_counters_id()
5513 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_alloc_hw_stats()
5557 static int mlx5_ib_query_ext_ppcnt_counters(struct mlx5_ib_dev *dev, in mlx5_ib_query_ext_ppcnt_counters()
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()
5711 static void delay_drop_debugfs_cleanup(struct mlx5_ib_dev *dev) in delay_drop_debugfs_cleanup()
5720 static void cancel_delay_drop(struct mlx5_ib_dev *dev) in cancel_delay_drop()
5768 static int delay_drop_debugfs_init(struct mlx5_ib_dev *dev) in delay_drop_debugfs_init()
5816 static void init_delay_drop(struct mlx5_ib_dev *dev) in init_delay_drop()
5833 static void mlx5_ib_unbind_slave_port(struct mlx5_ib_dev *ibdev, in mlx5_ib_unbind_slave_port()
5893 static bool mlx5_ib_bind_slave_port(struct mlx5_ib_dev *ibdev, in mlx5_ib_bind_slave_port()
5941 static int mlx5_ib_init_multiport_master(struct mlx5_ib_dev *dev) in mlx5_ib_init_multiport_master()
6011 static void mlx5_ib_cleanup_multiport_master(struct mlx5_ib_dev *dev) in mlx5_ib_cleanup_multiport_master()
6145 static void mlx5_ib_stage_init_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_init_cleanup()
6156 static int mlx5_ib_stage_init_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_init_init()
6222 static int mlx5_ib_stage_flow_db_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_flow_db_init()
6234 static void mlx5_ib_stage_flow_db_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_flow_db_cleanup()
6339 static int mlx5_ib_stage_caps_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_caps_init()
6436 static int mlx5_ib_stage_non_default_cb(struct mlx5_ib_dev *dev) in mlx5_ib_stage_non_default_cb()
6447 static int mlx5_ib_stage_rep_non_default_cb(struct mlx5_ib_dev *dev) in mlx5_ib_stage_rep_non_default_cb()
6462 static int mlx5_ib_stage_common_roce_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_common_roce_init()
6480 static void mlx5_ib_stage_common_roce_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_common_roce_cleanup()
6487 static int mlx5_ib_stage_rep_roce_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_rep_roce_init()
6503 static void mlx5_ib_stage_rep_roce_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_rep_roce_cleanup()
6508 static int mlx5_ib_stage_roce_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_roce_init()
6535 static void mlx5_ib_stage_roce_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_roce_cleanup()
6550 static int mlx5_ib_stage_dev_res_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_dev_res_init()
6555 static void mlx5_ib_stage_dev_res_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_dev_res_cleanup()
6560 static int mlx5_ib_stage_odp_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_odp_init()
6565 static void mlx5_ib_stage_odp_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_odp_cleanup()
6580 static int mlx5_ib_stage_counters_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_counters_init()
6591 static void mlx5_ib_stage_counters_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_counters_cleanup()
6597 static int mlx5_ib_stage_cong_debugfs_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_cong_debugfs_init()
6604 static void mlx5_ib_stage_cong_debugfs_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_cong_debugfs_cleanup()
6610 static int mlx5_ib_stage_uar_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_uar_init()
6616 static void mlx5_ib_stage_uar_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_uar_cleanup()
6621 static int mlx5_ib_stage_bfrag_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_bfrag_init()
6636 static void mlx5_ib_stage_bfrag_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_bfrag_cleanup()
6642 static int mlx5_ib_stage_ib_reg_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_ib_reg_init()
6654 static void mlx5_ib_stage_pre_ib_reg_umr_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_pre_ib_reg_umr_cleanup()
6659 static void mlx5_ib_stage_ib_reg_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_ib_reg_cleanup()
6664 static int mlx5_ib_stage_post_ib_reg_umr_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_post_ib_reg_umr_init()
6669 static int mlx5_ib_stage_delay_drop_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_delay_drop_init()
6676 static void mlx5_ib_stage_delay_drop_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_delay_drop_cleanup()
6681 static int mlx5_ib_stage_dev_notifier_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_dev_notifier_init()
6688 static void mlx5_ib_stage_dev_notifier_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_dev_notifier_cleanup()
6693 static int mlx5_ib_stage_devx_init(struct mlx5_ib_dev *dev) in mlx5_ib_stage_devx_init()
6705 static void mlx5_ib_stage_devx_cleanup(struct mlx5_ib_dev *dev) in mlx5_ib_stage_devx_cleanup()
6713 void __mlx5_ib_remove(struct mlx5_ib_dev *dev, in __mlx5_ib_remove()
6728 void *__mlx5_ib_add(struct mlx5_ib_dev *dev, in __mlx5_ib_add()
6861 struct mlx5_ib_dev *dev; in mlx5_ib_add_slave_port()
6902 struct mlx5_ib_dev *dev; in mlx5_ib_add()
6923 dev = ib_alloc_device(mlx5_ib_dev, ib_dev); in mlx5_ib_add()
6942 struct mlx5_ib_dev *dev; in mlx5_ib_remove()