Lines Matching defs:dev

181 static inline void mlx4_set_num_reserved_uars(struct mlx4_dev *dev,  in mlx4_set_num_reserved_uars()
195 int mlx4_check_port_params(struct mlx4_dev *dev, in mlx4_check_port_params()
219 static void mlx4_set_port_mask(struct mlx4_dev *dev) in mlx4_set_port_mask()
231 static int mlx4_query_func(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_query_func()
250 static void mlx4_enable_cqe_eqe_stride(struct mlx4_dev *dev) in mlx4_enable_cqe_eqe_stride()
285 static int _mlx4_dev_port(struct mlx4_dev *dev, int port, in _mlx4_dev_port()
312 static int mlx4_dev_port(struct mlx4_dev *dev, int port, in mlx4_dev_port()
325 static inline void mlx4_enable_ignore_fcs(struct mlx4_dev *dev) in mlx4_enable_ignore_fcs()
345 static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_dev_cap()
627 static int mlx4_get_pcie_dev_link_caps(struct mlx4_dev *dev, in mlx4_get_pcie_dev_link_caps()
668 static void mlx4_check_pcie_caps(struct mlx4_dev *dev) in mlx4_check_pcie_caps()
707 static int mlx4_how_many_lives_vf(struct mlx4_dev *dev) in mlx4_how_many_lives_vf()
726 int mlx4_get_parav_qkey(struct mlx4_dev *dev, u32 qpn, u32 *qkey) in mlx4_get_parav_qkey()
744 void mlx4_sync_pkey_table(struct mlx4_dev *dev, int slave, int port, int i, int val) in mlx4_sync_pkey_table()
755 void mlx4_put_slave_node_guid(struct mlx4_dev *dev, int slave, __be64 guid) in mlx4_put_slave_node_guid()
766 __be64 mlx4_get_slave_node_guid(struct mlx4_dev *dev, int slave) in mlx4_get_slave_node_guid()
777 int mlx4_is_slave_active(struct mlx4_dev *dev, int slave) in mlx4_is_slave_active()
790 static void slave_adjust_steering_mode(struct mlx4_dev *dev, in slave_adjust_steering_mode()
807 static int mlx4_slave_cap(struct mlx4_dev *dev) in mlx4_slave_cap()
1017 static void mlx4_request_modules(struct mlx4_dev *dev) in mlx4_request_modules()
1042 int mlx4_change_port_types(struct mlx4_dev *dev, in mlx4_change_port_types()
1080 static ssize_t show_port_type(struct device *dev, in show_port_type()
1167 static ssize_t set_port_type(struct device *dev, in set_port_type()
1232 static ssize_t show_port_ib_mtu(struct device *dev, in show_port_ib_mtu()
1245 static ssize_t set_port_ib_mtu(struct device *dev, in set_port_ib_mtu()
1292 static int mlx4_mf_bond(struct mlx4_dev *dev) in mlx4_mf_bond()
1348 static int mlx4_mf_unbond(struct mlx4_dev *dev) in mlx4_mf_unbond()
1368 int mlx4_bond(struct mlx4_dev *dev) in mlx4_bond()
1396 int mlx4_unbond(struct mlx4_dev *dev) in mlx4_unbond()
1426 int mlx4_port_map_set(struct mlx4_dev *dev, struct mlx4_port_map *v2p) in mlx4_port_map_set()
1470 static int mlx4_load_fw(struct mlx4_dev *dev) in mlx4_load_fw()
1504 static int mlx4_init_cmpt_table(struct mlx4_dev *dev, u64 cmpt_base, in mlx4_init_cmpt_table()
1563 static int mlx4_init_icm(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap, in mlx4_init_icm()
1767 static void mlx4_free_icms(struct mlx4_dev *dev) in mlx4_free_icms()
1790 static void mlx4_slave_exit(struct mlx4_dev *dev) in mlx4_slave_exit()
1801 static int map_bf_area(struct mlx4_dev *dev) in map_bf_area()
1822 static void unmap_bf_area(struct mlx4_dev *dev) in unmap_bf_area()
1828 s64 mlx4_read_clock(struct mlx4_dev *dev) in mlx4_read_clock()
1853 static int map_internal_clock(struct mlx4_dev *dev) in map_internal_clock()
1868 int mlx4_get_internal_clock_params(struct mlx4_dev *dev, in mlx4_get_internal_clock_params()
1892 static void unmap_internal_clock(struct mlx4_dev *dev) in unmap_internal_clock()
1900 static void mlx4_close_hca(struct mlx4_dev *dev) in mlx4_close_hca()
1913 static void mlx4_close_fw(struct mlx4_dev *dev) in mlx4_close_fw()
1921 static int mlx4_comm_check_offline(struct mlx4_dev *dev) in mlx4_comm_check_offline()
1949 static void mlx4_reset_vf_support(struct mlx4_dev *dev) in mlx4_reset_vf_support()
1965 static int mlx4_init_slave(struct mlx4_dev *dev) in mlx4_init_slave()
2035 static void mlx4_parav_master_pf_caps(struct mlx4_dev *dev) in mlx4_parav_master_pf_caps()
2088 static void choose_steering_mode(struct mlx4_dev *dev, in choose_steering_mode()
2141 static void choose_tunnel_offload_mode(struct mlx4_dev *dev, in choose_tunnel_offload_mode()
2154 static int mlx4_validate_optimized_steering(struct mlx4_dev *dev) in mlx4_validate_optimized_steering()
2183 static int mlx4_init_fw(struct mlx4_dev *dev) in mlx4_init_fw()
2214 static int mlx4_init_hca(struct mlx4_dev *dev) in mlx4_init_hca()
2416 static int mlx4_init_counters_table(struct mlx4_dev *dev) in mlx4_init_counters_table()
2434 static void mlx4_cleanup_counters_table(struct mlx4_dev *dev) in mlx4_cleanup_counters_table()
2445 static void mlx4_cleanup_default_counters(struct mlx4_dev *dev) in mlx4_cleanup_default_counters()
2455 static int mlx4_allocate_default_counters(struct mlx4_dev *dev) in mlx4_allocate_default_counters()
2491 int __mlx4_counter_alloc(struct mlx4_dev *dev, u32 *idx) in __mlx4_counter_alloc()
2507 int mlx4_counter_alloc(struct mlx4_dev *dev, u32 *idx) in mlx4_counter_alloc()
2525 static int __mlx4_clear_if_stat(struct mlx4_dev *dev, in __mlx4_clear_if_stat()
2544 void __mlx4_counter_free(struct mlx4_dev *dev, u32 idx) in __mlx4_counter_free()
2558 void mlx4_counter_free(struct mlx4_dev *dev, u32 idx) in mlx4_counter_free()
2573 int mlx4_get_default_counter_index(struct mlx4_dev *dev, int port) in mlx4_get_default_counter_index()
2581 void mlx4_set_admin_guid(struct mlx4_dev *dev, __be64 guid, int entry, int port) in mlx4_set_admin_guid()
2589 __be64 mlx4_get_admin_guid(struct mlx4_dev *dev, int entry, int port) in mlx4_get_admin_guid()
2597 void mlx4_set_random_admin_guid(struct mlx4_dev *dev, int entry, int port) in mlx4_set_random_admin_guid()
2612 static int mlx4_setup_hca(struct mlx4_dev *dev) in mlx4_setup_hca()
2814 static int mlx4_init_affinity_hint(struct mlx4_dev *dev, int port, int eqn) in mlx4_init_affinity_hint()
2841 static void mlx4_enable_msi_x(struct mlx4_dev *dev) in mlx4_enable_msi_x()
2935 static int mlx4_init_port_info(struct mlx4_dev *dev, int port) in mlx4_init_port_info()
3003 static int mlx4_init_steering(struct mlx4_dev *dev) in mlx4_init_steering()
3021 static void mlx4_clear_steering(struct mlx4_dev *dev) in mlx4_clear_steering()
3062 static int mlx4_get_ownership(struct mlx4_dev *dev) in mlx4_get_ownership()
3083 static void mlx4_free_ownership(struct mlx4_dev *dev) in mlx4_free_ownership()
3105 static u64 mlx4_enable_sriov(struct mlx4_dev *dev, struct pci_dev *pdev, in mlx4_enable_sriov()
3164 static int mlx4_check_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap, in mlx4_check_dev_cap()
3178 static int mlx4_pci_enable_device(struct mlx4_dev *dev) in mlx4_pci_enable_device()
3194 static void mlx4_pci_disable_device(struct mlx4_dev *dev) in mlx4_pci_disable_device()
3210 struct mlx4_dev *dev; in mlx4_load_one() local
3760 struct mlx4_dev *dev; in mlx4_init_one() local
3816 static void mlx4_clean_dev(struct mlx4_dev *dev) in mlx4_clean_dev()
3830 struct mlx4_dev *dev = persist->dev; in mlx4_unload_one() local
3911 struct mlx4_dev *dev = persist->dev; in mlx4_remove_one() local
3955 static int restore_current_port_types(struct mlx4_dev *dev, in restore_current_port_types()
3978 struct mlx4_dev *dev = persist->dev; in mlx4_restart_one() local
4089 struct mlx4_dev *dev = persist->dev; in mlx4_pci_slot_reset() local
4106 struct mlx4_dev *dev = persist->dev; in mlx4_pci_resume() local