Lines Matching defs:dev
188 static int wait_fw_init(struct mlx5_core_dev *dev, u32 max_wait_mili, in wait_fw_init()
216 static void mlx5_set_driver_version(struct mlx5_core_dev *dev) in mlx5_set_driver_version()
271 static int mlx5_pci_enable_device(struct mlx5_core_dev *dev) in mlx5_pci_enable_device()
287 static void mlx5_pci_disable_device(struct mlx5_core_dev *dev) in mlx5_pci_disable_device()
325 static u16 to_fw_pkey_sz(struct mlx5_core_dev *dev, u32 size) in to_fw_pkey_sz()
346 void mlx5_core_uplink_netdev_set(struct mlx5_core_dev *dev, struct net_device *netdev) in mlx5_core_uplink_netdev_set()
355 void mlx5_core_uplink_netdev_event_replay(struct mlx5_core_dev *dev) in mlx5_core_uplink_netdev_event_replay()
364 void mlx5_core_mp_event_replay(struct mlx5_core_dev *dev, u32 event, void *data) in mlx5_core_mp_event_replay()
370 int mlx5_core_get_caps_mode(struct mlx5_core_dev *dev, enum mlx5_cap_type cap_type, in mlx5_core_get_caps_mode()
417 int mlx5_core_get_caps(struct mlx5_core_dev *dev, enum mlx5_cap_type cap_type) in mlx5_core_get_caps()
427 static int set_caps(struct mlx5_core_dev *dev, void *in, int opmod) in set_caps()
434 static int handle_hca_cap_atomic(struct mlx5_core_dev *dev, void *set_ctx) in handle_hca_cap_atomic()
463 static int handle_hca_cap_odp(struct mlx5_core_dev *dev, void *set_ctx) in handle_hca_cap_odp()
481 #define ODP_CAP_SET_MAX(dev, field) \ in handle_hca_cap_odp() argument
511 static int max_uc_list_get_devlink_param(struct mlx5_core_dev *dev) in max_uc_list_get_devlink_param()
526 bool mlx5_is_roce_on(struct mlx5_core_dev *dev) in mlx5_is_roce_on()
544 static int handle_hca_cap_2(struct mlx5_core_dev *dev, void *set_ctx) in handle_hca_cap_2()
569 static int handle_hca_cap(struct mlx5_core_dev *dev, void *set_ctx) in handle_hca_cap()
675 static bool is_roce_fw_disabled(struct mlx5_core_dev *dev) in is_roce_fw_disabled()
681 static int handle_hca_cap_roce(struct mlx5_core_dev *dev, void *set_ctx) in handle_hca_cap_roce()
709 static int handle_hca_cap_port_selection(struct mlx5_core_dev *dev, in handle_hca_cap_port_selection()
736 static int set_hca_cap(struct mlx5_core_dev *dev) in set_hca_cap()
792 static int set_hca_ctrl(struct mlx5_core_dev *dev) in set_hca_ctrl()
809 static int mlx5_core_set_hca_defaults(struct mlx5_core_dev *dev) in mlx5_core_set_hca_defaults()
820 int mlx5_core_enable_hca(struct mlx5_core_dev *dev, u16 func_id) in mlx5_core_enable_hca()
831 int mlx5_core_disable_hca(struct mlx5_core_dev *dev, u16 func_id) in mlx5_core_disable_hca()
842 static int mlx5_core_set_issi(struct mlx5_core_dev *dev) in mlx5_core_set_issi()
890 static int mlx5_pci_init(struct mlx5_core_dev *dev, struct pci_dev *pdev, in mlx5_pci_init()
943 static void mlx5_pci_close(struct mlx5_core_dev *dev) in mlx5_pci_close()
955 static int mlx5_init_once(struct mlx5_core_dev *dev) in mlx5_init_once()
1102 static void mlx5_cleanup_once(struct mlx5_core_dev *dev) in mlx5_cleanup_once()
1129 static int mlx5_function_enable(struct mlx5_core_dev *dev, bool boot, u64 timeout) in mlx5_function_enable()
1209 static void mlx5_function_disable(struct mlx5_core_dev *dev, bool boot) in mlx5_function_disable()
1218 static int mlx5_function_open(struct mlx5_core_dev *dev) in mlx5_function_open()
1257 static int mlx5_function_close(struct mlx5_core_dev *dev) in mlx5_function_close()
1270 static int mlx5_function_setup(struct mlx5_core_dev *dev, bool boot, u64 timeout) in mlx5_function_setup()
1284 static int mlx5_function_teardown(struct mlx5_core_dev *dev, bool boot) in mlx5_function_teardown()
1296 static int mlx5_load(struct mlx5_core_dev *dev) in mlx5_load()
1415 static void mlx5_unload(struct mlx5_core_dev *dev) in mlx5_unload()
1438 int mlx5_init_one_devl_locked(struct mlx5_core_dev *dev) in mlx5_init_one_devl_locked()
1502 int mlx5_init_one(struct mlx5_core_dev *dev) in mlx5_init_one()
1516 void mlx5_uninit_one(struct mlx5_core_dev *dev) in mlx5_uninit_one()
1546 int mlx5_load_one_devl_locked(struct mlx5_core_dev *dev, bool recovery) in mlx5_load_one_devl_locked()
1593 int mlx5_load_one(struct mlx5_core_dev *dev, bool recovery) in mlx5_load_one()
1604 void mlx5_unload_one_devl_locked(struct mlx5_core_dev *dev, bool suspend) in mlx5_unload_one_devl_locked()
1624 void mlx5_unload_one(struct mlx5_core_dev *dev, bool suspend) in mlx5_unload_one()
1636 static int mlx5_query_hca_caps_light(struct mlx5_core_dev *dev) in mlx5_query_hca_caps_light()
1670 int mlx5_init_one_light(struct mlx5_core_dev *dev) in mlx5_init_one_light()
1709 void mlx5_uninit_one_light(struct mlx5_core_dev *dev) in mlx5_uninit_one_light()
1727 void mlx5_unload_one_light(struct mlx5_core_dev *dev) in mlx5_unload_one_light()
1760 static void mlx5_hca_caps_free(struct mlx5_core_dev *dev) in mlx5_hca_caps_free()
1771 static int mlx5_hca_caps_alloc(struct mlx5_core_dev *dev) in mlx5_hca_caps_alloc()
1794 struct mlx5_core_dev *dev = file->private; in vhca_id_show() local
1802 int mlx5_mdev_init(struct mlx5_core_dev *dev, int profile_idx) in mlx5_mdev_init()
1891 void mlx5_mdev_uninit(struct mlx5_core_dev *dev) in mlx5_mdev_uninit()
1916 struct mlx5_core_dev *dev; in probe_one() local
1974 struct mlx5_core_dev *dev = pci_get_drvdata(pdev); in remove_one() local
1988 #define mlx5_pci_trace(dev, fmt, ...) ({ \ argument
2006 struct mlx5_core_dev *dev = pci_get_drvdata(pdev); in mlx5_pci_err_detected() local
2030 struct mlx5_core_dev *dev = pci_get_drvdata(pdev); in wait_vital() local
2057 struct mlx5_core_dev *dev = pci_get_drvdata(pdev); in mlx5_pci_slot_reset() local
2090 struct mlx5_core_dev *dev = pci_get_drvdata(pdev); in mlx5_pci_resume() local
2111 static int mlx5_try_fast_unload(struct mlx5_core_dev *dev) in mlx5_try_fast_unload()
2162 struct mlx5_core_dev *dev = pci_get_drvdata(pdev); in shutdown() local
2176 struct mlx5_core_dev *dev = pci_get_drvdata(pdev); in mlx5_suspend() local
2185 struct mlx5_core_dev *dev = pci_get_drvdata(pdev); in mlx5_resume() local
2218 void mlx5_disable_device(struct mlx5_core_dev *dev) in mlx5_disable_device()
2224 int mlx5_recover_device(struct mlx5_core_dev *dev) in mlx5_recover_device()