mlxsw_driver 62 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *driver; mlxsw_driver 701 drivers/net/ethernet/mellanox/mlxsw/core.c int mlxsw_core_driver_register(struct mlxsw_driver *mlxsw_driver) mlxsw_driver 704 drivers/net/ethernet/mellanox/mlxsw/core.c list_add_tail(&mlxsw_driver->list, &mlxsw_core_driver_list); mlxsw_driver 710 drivers/net/ethernet/mellanox/mlxsw/core.c void mlxsw_core_driver_unregister(struct mlxsw_driver *mlxsw_driver) mlxsw_driver 713 drivers/net/ethernet/mellanox/mlxsw/core.c list_del(&mlxsw_driver->list); mlxsw_driver 718 drivers/net/ethernet/mellanox/mlxsw/core.c static struct mlxsw_driver *__driver_find(const char *kind) mlxsw_driver 720 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver; mlxsw_driver 722 drivers/net/ethernet/mellanox/mlxsw/core.c list_for_each_entry(mlxsw_driver, &mlxsw_core_driver_list, list) { mlxsw_driver 723 drivers/net/ethernet/mellanox/mlxsw/core.c if (strcmp(mlxsw_driver->kind, kind) == 0) mlxsw_driver 724 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_driver; mlxsw_driver 729 drivers/net/ethernet/mellanox/mlxsw/core.c static struct mlxsw_driver *mlxsw_core_driver_get(const char *kind) mlxsw_driver 731 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver; mlxsw_driver 734 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_driver = __driver_find(kind); mlxsw_driver 736 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_driver; mlxsw_driver 778 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver = mlxsw_core->driver; mlxsw_driver 780 drivers/net/ethernet/mellanox/mlxsw/core.c if (!mlxsw_driver->sb_pool_get) mlxsw_driver 782 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_driver->sb_pool_get(mlxsw_core, sb_index, mlxsw_driver 793 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver = mlxsw_core->driver; mlxsw_driver 795 drivers/net/ethernet/mellanox/mlxsw/core.c if (!mlxsw_driver->sb_pool_set) mlxsw_driver 797 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_driver->sb_pool_set(mlxsw_core, sb_index, mlxsw_driver 811 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver = mlxsw_core->driver; mlxsw_driver 814 drivers/net/ethernet/mellanox/mlxsw/core.c if (!mlxsw_driver->port_type_set) mlxsw_driver 817 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_driver->port_type_set(mlxsw_core, mlxsw_driver 827 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver = mlxsw_core->driver; mlxsw_driver 830 drivers/net/ethernet/mellanox/mlxsw/core.c if (!mlxsw_driver->sb_port_pool_get || mlxsw_driver 833 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_driver->sb_port_pool_get(mlxsw_core_port, sb_index, mlxsw_driver 843 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver = mlxsw_core->driver; mlxsw_driver 846 drivers/net/ethernet/mellanox/mlxsw/core.c if (!mlxsw_driver->sb_port_pool_set || mlxsw_driver 849 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_driver->sb_port_pool_set(mlxsw_core_port, sb_index, mlxsw_driver 860 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver = mlxsw_core->driver; mlxsw_driver 863 drivers/net/ethernet/mellanox/mlxsw/core.c if (!mlxsw_driver->sb_tc_pool_bind_get || mlxsw_driver 866 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_driver->sb_tc_pool_bind_get(mlxsw_core_port, sb_index, mlxsw_driver 879 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver = mlxsw_core->driver; mlxsw_driver 882 drivers/net/ethernet/mellanox/mlxsw/core.c if (!mlxsw_driver->sb_tc_pool_bind_set || mlxsw_driver 885 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_driver->sb_tc_pool_bind_set(mlxsw_core_port, sb_index, mlxsw_driver 894 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver = mlxsw_core->driver; mlxsw_driver 896 drivers/net/ethernet/mellanox/mlxsw/core.c if (!mlxsw_driver->sb_occ_snapshot) mlxsw_driver 898 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_driver->sb_occ_snapshot(mlxsw_core, sb_index); mlxsw_driver 905 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver = mlxsw_core->driver; mlxsw_driver 907 drivers/net/ethernet/mellanox/mlxsw/core.c if (!mlxsw_driver->sb_occ_max_clear) mlxsw_driver 909 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_driver->sb_occ_max_clear(mlxsw_core, sb_index); mlxsw_driver 918 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver = mlxsw_core->driver; mlxsw_driver 921 drivers/net/ethernet/mellanox/mlxsw/core.c if (!mlxsw_driver->sb_occ_port_pool_get || mlxsw_driver 924 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_driver->sb_occ_port_pool_get(mlxsw_core_port, sb_index, mlxsw_driver 935 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver = mlxsw_core->driver; mlxsw_driver 938 drivers/net/ethernet/mellanox/mlxsw/core.c if (!mlxsw_driver->sb_occ_tc_port_bind_get || mlxsw_driver 941 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_driver->sb_occ_tc_port_bind_get(mlxsw_core_port, mlxsw_driver 1017 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver = mlxsw_core->driver; mlxsw_driver 1019 drivers/net/ethernet/mellanox/mlxsw/core.c if (!mlxsw_driver->flash_update) mlxsw_driver 1021 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_driver->flash_update(mlxsw_core, file_name, mlxsw_driver 1030 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver = mlxsw_core->driver; mlxsw_driver 1032 drivers/net/ethernet/mellanox/mlxsw/core.c if (!mlxsw_driver->trap_init) mlxsw_driver 1034 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_driver->trap_init(mlxsw_core, trap, trap_ctx); mlxsw_driver 1042 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver = mlxsw_core->driver; mlxsw_driver 1044 drivers/net/ethernet/mellanox/mlxsw/core.c if (!mlxsw_driver->trap_fini) mlxsw_driver 1046 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_driver->trap_fini(mlxsw_core, trap, trap_ctx); mlxsw_driver 1054 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver = mlxsw_core->driver; mlxsw_driver 1056 drivers/net/ethernet/mellanox/mlxsw/core.c if (!mlxsw_driver->trap_action_set) mlxsw_driver 1058 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_driver->trap_action_set(mlxsw_core, trap, action); mlxsw_driver 1066 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver = mlxsw_core->driver; mlxsw_driver 1068 drivers/net/ethernet/mellanox/mlxsw/core.c if (!mlxsw_driver->trap_group_init) mlxsw_driver 1070 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_driver->trap_group_init(mlxsw_core, group); mlxsw_driver 1105 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *mlxsw_driver; mlxsw_driver 1110 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_driver = mlxsw_core_driver_get(device_kind); mlxsw_driver 1111 drivers/net/ethernet/mellanox/mlxsw/core.c if (!mlxsw_driver) mlxsw_driver 1115 drivers/net/ethernet/mellanox/mlxsw/core.c alloc_size = sizeof(*mlxsw_core) + mlxsw_driver->priv_size; mlxsw_driver 1126 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_core->driver = mlxsw_driver; mlxsw_driver 1131 drivers/net/ethernet/mellanox/mlxsw/core.c res = mlxsw_driver->res_query_enabled ? &mlxsw_core->res : NULL; mlxsw_driver 1132 drivers/net/ethernet/mellanox/mlxsw/core.c err = mlxsw_bus->init(bus_priv, mlxsw_core, mlxsw_driver->profile, res); mlxsw_driver 1136 drivers/net/ethernet/mellanox/mlxsw/core.c if (mlxsw_driver->resources_register && !reload) { mlxsw_driver 1137 drivers/net/ethernet/mellanox/mlxsw/core.c err = mlxsw_driver->resources_register(mlxsw_core); mlxsw_driver 1168 drivers/net/ethernet/mellanox/mlxsw/core.c if (mlxsw_driver->params_register && !reload) { mlxsw_driver 1169 drivers/net/ethernet/mellanox/mlxsw/core.c err = mlxsw_driver->params_register(mlxsw_core); mlxsw_driver 1174 drivers/net/ethernet/mellanox/mlxsw/core.c if (mlxsw_driver->init) { mlxsw_driver 1175 drivers/net/ethernet/mellanox/mlxsw/core.c err = mlxsw_driver->init(mlxsw_core, mlxsw_bus_info); mlxsw_driver 1189 drivers/net/ethernet/mellanox/mlxsw/core.c if (mlxsw_driver->params_register) mlxsw_driver 1203 drivers/net/ethernet/mellanox/mlxsw/core.c if (mlxsw_driver->params_unregister && !reload) mlxsw_driver 1204 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_driver->params_unregister(mlxsw_core); mlxsw_driver 2098 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_driver *driver = mlxsw_core->driver; mlxsw_driver 23 drivers/net/ethernet/mellanox/mlxsw/core.h struct mlxsw_driver; mlxsw_driver 33 drivers/net/ethernet/mellanox/mlxsw/core.h int mlxsw_core_driver_register(struct mlxsw_driver *mlxsw_driver); mlxsw_driver 34 drivers/net/ethernet/mellanox/mlxsw/core.h void mlxsw_core_driver_unregister(struct mlxsw_driver *mlxsw_driver); mlxsw_driver 361 drivers/net/ethernet/mellanox/mlxsw/minimal.c static struct mlxsw_driver mlxsw_m_driver = { mlxsw_driver 5375 drivers/net/ethernet/mellanox/mlxsw/spectrum.c static struct mlxsw_driver mlxsw_sp1_driver = { mlxsw_driver 5409 drivers/net/ethernet/mellanox/mlxsw/spectrum.c static struct mlxsw_driver mlxsw_sp2_driver = { mlxsw_driver 5442 drivers/net/ethernet/mellanox/mlxsw/spectrum.c static struct mlxsw_driver mlxsw_sp3_driver = { mlxsw_driver 505 drivers/net/ethernet/mellanox/mlxsw/switchib.c static struct mlxsw_driver mlxsw_sib_driver = { mlxsw_driver 516 drivers/net/ethernet/mellanox/mlxsw/switchib.c static struct mlxsw_driver mlxsw_sib2_driver = { mlxsw_driver 1652 drivers/net/ethernet/mellanox/mlxsw/switchx2.c static struct mlxsw_driver mlxsw_sx_driver = {