Lines Matching defs:dev
171 int mlx4_check_port_params(struct mlx4_dev *dev, in mlx4_check_port_params()
195 static void mlx4_set_port_mask(struct mlx4_dev *dev) in mlx4_set_port_mask()
207 static int mlx4_query_func(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_query_func()
226 static void mlx4_enable_cqe_eqe_stride(struct mlx4_dev *dev) in mlx4_enable_cqe_eqe_stride()
261 static int _mlx4_dev_port(struct mlx4_dev *dev, int port, in _mlx4_dev_port()
287 static int mlx4_dev_port(struct mlx4_dev *dev, int port, in mlx4_dev_port()
300 static inline void mlx4_enable_ignore_fcs(struct mlx4_dev *dev) in mlx4_enable_ignore_fcs()
320 static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_dev_cap()
567 static int mlx4_get_pcie_dev_link_caps(struct mlx4_dev *dev, in mlx4_get_pcie_dev_link_caps()
608 static void mlx4_check_pcie_caps(struct mlx4_dev *dev) in mlx4_check_pcie_caps()
647 static int mlx4_how_many_lives_vf(struct mlx4_dev *dev) in mlx4_how_many_lives_vf()
666 int mlx4_get_parav_qkey(struct mlx4_dev *dev, u32 qpn, u32 *qkey) in mlx4_get_parav_qkey()
684 void mlx4_sync_pkey_table(struct mlx4_dev *dev, int slave, int port, int i, int val) in mlx4_sync_pkey_table()
695 void mlx4_put_slave_node_guid(struct mlx4_dev *dev, int slave, __be64 guid) in mlx4_put_slave_node_guid()
706 __be64 mlx4_get_slave_node_guid(struct mlx4_dev *dev, int slave) in mlx4_get_slave_node_guid()
717 int mlx4_is_slave_active(struct mlx4_dev *dev, int slave) in mlx4_is_slave_active()
730 static void slave_adjust_steering_mode(struct mlx4_dev *dev, in slave_adjust_steering_mode()
747 static int mlx4_slave_cap(struct mlx4_dev *dev) in mlx4_slave_cap()
944 static void mlx4_request_modules(struct mlx4_dev *dev) in mlx4_request_modules()
969 int mlx4_change_port_types(struct mlx4_dev *dev, in mlx4_change_port_types()
1007 static ssize_t show_port_type(struct device *dev, in show_port_type()
1027 static ssize_t set_port_type(struct device *dev, in set_port_type()
1136 static ssize_t show_port_ib_mtu(struct device *dev, in show_port_ib_mtu()
1152 static ssize_t set_port_ib_mtu(struct device *dev, in set_port_ib_mtu()
1197 int mlx4_bond(struct mlx4_dev *dev) in mlx4_bond()
1218 int mlx4_unbond(struct mlx4_dev *dev) in mlx4_unbond()
1238 int mlx4_port_map_set(struct mlx4_dev *dev, struct mlx4_port_map *v2p) in mlx4_port_map_set()
1282 static int mlx4_load_fw(struct mlx4_dev *dev) in mlx4_load_fw()
1316 static int mlx4_init_cmpt_table(struct mlx4_dev *dev, u64 cmpt_base, in mlx4_init_cmpt_table()
1375 static int mlx4_init_icm(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap, in mlx4_init_icm()
1579 static void mlx4_free_icms(struct mlx4_dev *dev) in mlx4_free_icms()
1602 static void mlx4_slave_exit(struct mlx4_dev *dev) in mlx4_slave_exit()
1613 static int map_bf_area(struct mlx4_dev *dev) in map_bf_area()
1634 static void unmap_bf_area(struct mlx4_dev *dev) in unmap_bf_area()
1640 cycle_t mlx4_read_clock(struct mlx4_dev *dev) in mlx4_read_clock()
1662 static int map_internal_clock(struct mlx4_dev *dev) in map_internal_clock()
1677 static void unmap_internal_clock(struct mlx4_dev *dev) in unmap_internal_clock()
1685 static void mlx4_close_hca(struct mlx4_dev *dev) in mlx4_close_hca()
1697 static void mlx4_close_fw(struct mlx4_dev *dev) in mlx4_close_fw()
1705 static int mlx4_comm_check_offline(struct mlx4_dev *dev) in mlx4_comm_check_offline()
1733 static void mlx4_reset_vf_support(struct mlx4_dev *dev) in mlx4_reset_vf_support()
1749 static int mlx4_init_slave(struct mlx4_dev *dev) in mlx4_init_slave()
1819 static void mlx4_parav_master_pf_caps(struct mlx4_dev *dev) in mlx4_parav_master_pf_caps()
1872 static void choose_steering_mode(struct mlx4_dev *dev, in choose_steering_mode()
1925 static void choose_tunnel_offload_mode(struct mlx4_dev *dev, in choose_tunnel_offload_mode()
1938 static int mlx4_validate_optimized_steering(struct mlx4_dev *dev) in mlx4_validate_optimized_steering()
1967 static int mlx4_init_fw(struct mlx4_dev *dev) in mlx4_init_fw()
1998 static int mlx4_init_hca(struct mlx4_dev *dev) in mlx4_init_hca()
2193 static int mlx4_init_counters_table(struct mlx4_dev *dev) in mlx4_init_counters_table()
2205 static void mlx4_cleanup_counters_table(struct mlx4_dev *dev) in mlx4_cleanup_counters_table()
2210 int __mlx4_counter_alloc(struct mlx4_dev *dev, u32 *idx) in __mlx4_counter_alloc()
2224 int mlx4_counter_alloc(struct mlx4_dev *dev, u32 *idx) in mlx4_counter_alloc()
2242 void __mlx4_counter_free(struct mlx4_dev *dev, u32 idx) in __mlx4_counter_free()
2248 void mlx4_counter_free(struct mlx4_dev *dev, u32 idx) in mlx4_counter_free()
2263 void mlx4_set_admin_guid(struct mlx4_dev *dev, __be64 guid, int entry, int port) in mlx4_set_admin_guid()
2271 __be64 mlx4_get_admin_guid(struct mlx4_dev *dev, int entry, int port) in mlx4_get_admin_guid()
2279 void mlx4_set_random_admin_guid(struct mlx4_dev *dev, int entry, int port) in mlx4_set_random_admin_guid()
2294 static int mlx4_setup_hca(struct mlx4_dev *dev) in mlx4_setup_hca()
2484 static void mlx4_enable_msi_x(struct mlx4_dev *dev) in mlx4_enable_msi_x()
2535 static int mlx4_init_port_info(struct mlx4_dev *dev, int port) in mlx4_init_port_info()
2599 static int mlx4_init_steering(struct mlx4_dev *dev) in mlx4_init_steering()
2617 static void mlx4_clear_steering(struct mlx4_dev *dev) in mlx4_clear_steering()
2658 static int mlx4_get_ownership(struct mlx4_dev *dev) in mlx4_get_ownership()
2679 static void mlx4_free_ownership(struct mlx4_dev *dev) in mlx4_free_ownership()
2701 static u64 mlx4_enable_sriov(struct mlx4_dev *dev, struct pci_dev *pdev, in mlx4_enable_sriov()
2759 static int mlx4_check_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap, in mlx4_check_dev_cap()
2777 struct mlx4_dev *dev; in mlx4_load_one() local
3334 struct mlx4_dev *dev; in mlx4_init_one() local
3367 static void mlx4_clean_dev(struct mlx4_dev *dev) in mlx4_clean_dev()
3381 struct mlx4_dev *dev = persist->dev; in mlx4_unload_one() local
3460 struct mlx4_dev *dev = persist->dev; in mlx4_remove_one() local
3497 static int restore_current_port_types(struct mlx4_dev *dev, in restore_current_port_types()
3519 struct mlx4_dev *dev = persist->dev; in mlx4_restart_one() local
3616 struct mlx4_dev *dev = persist->dev; in mlx4_pci_slot_reset() local