/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | Makefile | |
H A D | cmd.h | 65 static inline int mlxsw_cmd_exec_in(struct mlxsw_core *mlxsw_core, u16 opcode, mlxsw_cmd_exec_in() argument 73 static inline int mlxsw_cmd_exec_out(struct mlxsw_core *mlxsw_core, u16 opcode, mlxsw_cmd_exec_out() argument 83 static inline int mlxsw_cmd_exec_none(struct mlxsw_core *mlxsw_core, u16 opcode, mlxsw_cmd_exec_none() argument 224 static inline int mlxsw_cmd_query_fw(struct mlxsw_core *mlxsw_core, mlxsw_cmd_query_fw() argument 352 static inline int mlxsw_cmd_boardinfo(struct mlxsw_core *mlxsw_core, mlxsw_cmd_boardinfo() argument 396 static inline int mlxsw_cmd_query_aq_cap(struct mlxsw_core *mlxsw_core, mlxsw_cmd_query_aq_cap() argument 469 static inline int mlxsw_cmd_map_fa(struct mlxsw_core *mlxsw_core, mlxsw_cmd_map_fa() argument 498 static inline int mlxsw_cmd_unmap_fa(struct mlxsw_core *mlxsw_core) mlxsw_cmd_unmap_fa() argument 518 static inline int mlxsw_cmd_config_profile_set(struct mlxsw_core *mlxsw_core, mlxsw_cmd_config_profile_set() argument 772 static inline int mlxsw_cmd_access_reg(struct mlxsw_core *mlxsw_core, mlxsw_cmd_access_reg() argument 790 static inline int __mlxsw_cmd_sw2hw_dq(struct mlxsw_core *mlxsw_core, __mlxsw_cmd_sw2hw_dq() argument 804 static inline int mlxsw_cmd_sw2hw_sdq(struct mlxsw_core *mlxsw_core, mlxsw_cmd_sw2hw_sdq() argument 811 static inline int mlxsw_cmd_sw2hw_rdq(struct mlxsw_core *mlxsw_core, mlxsw_cmd_sw2hw_rdq() argument 849 static inline int __mlxsw_cmd_hw2sw_dq(struct mlxsw_core *mlxsw_core, __mlxsw_cmd_hw2sw_dq() argument 856 static inline int mlxsw_cmd_hw2sw_sdq(struct mlxsw_core *mlxsw_core, mlxsw_cmd_hw2sw_sdq() argument 863 static inline int mlxsw_cmd_hw2sw_rdq(struct mlxsw_core *mlxsw_core, mlxsw_cmd_hw2sw_rdq() argument 884 static inline int __mlxsw_cmd_2err_dq(struct mlxsw_core *mlxsw_core, __mlxsw_cmd_2err_dq() argument 891 static inline int mlxsw_cmd_2err_sdq(struct mlxsw_core *mlxsw_core, mlxsw_cmd_2err_sdq() argument 898 static inline int mlxsw_cmd_2err_rdq(struct mlxsw_core *mlxsw_core, mlxsw_cmd_2err_rdq() argument 915 static inline int __mlxsw_cmd_query_dq(struct mlxsw_core *mlxsw_core, __mlxsw_cmd_query_dq() argument 924 static inline int mlxsw_cmd_query_sdq(struct mlxsw_core *mlxsw_core, mlxsw_cmd_query_sdq() argument 931 static inline int mlxsw_cmd_query_rdq(struct mlxsw_core *mlxsw_core, mlxsw_cmd_query_rdq() argument 948 static inline int mlxsw_cmd_sw2hw_cq(struct mlxsw_core *mlxsw_core, mlxsw_cmd_sw2hw_cq() argument 1005 static inline int mlxsw_cmd_hw2sw_cq(struct mlxsw_core *mlxsw_core, mlxsw_cmd_hw2sw_cq() argument 1024 static inline int mlxsw_cmd_query_cq(struct mlxsw_core *mlxsw_core, mlxsw_cmd_query_cq() argument 1042 static inline int mlxsw_cmd_sw2hw_eq(struct mlxsw_core *mlxsw_core, mlxsw_cmd_sw2hw_eq() argument 1092 static inline int mlxsw_cmd_hw2sw_eq(struct mlxsw_core *mlxsw_core, mlxsw_cmd_hw2sw_eq() argument 1107 static inline int mlxsw_cmd_query_eq(struct mlxsw_core *mlxsw_core, mlxsw_cmd_query_eq() argument
|
H A D | core.c | 87 struct mlxsw_core { struct 370 static int __mlxsw_emad_transmit(struct mlxsw_core *mlxsw_core, __mlxsw_emad_transmit() argument 404 static int mlxsw_emad_process_status(struct mlxsw_core *mlxsw_core, mlxsw_emad_process_status() argument 436 static int mlxsw_emad_process_status_skb(struct mlxsw_core *mlxsw_core, mlxsw_emad_process_status_skb() argument 442 static int mlxsw_emad_transmit(struct mlxsw_core *mlxsw_core, mlxsw_emad_transmit() argument 483 struct mlxsw_core *mlxsw_core = priv; mlxsw_emad_rx_listener_func() local 502 static int mlxsw_emad_traps_set(struct mlxsw_core *mlxsw_core) mlxsw_emad_traps_set() argument 518 static int mlxsw_emad_init(struct mlxsw_core *mlxsw_core) mlxsw_emad_init() argument 554 static void mlxsw_emad_fini(struct mlxsw_core *mlxsw_core) mlxsw_emad_fini() argument 568 static struct sk_buff *mlxsw_emad_alloc(const struct mlxsw_core *mlxsw_core, mlxsw_emad_alloc() argument 595 struct mlxsw_core *mlxsw_core = file->private; mlxsw_core_rx_stats_dbg_read() local 665 struct mlxsw_core *mlxsw_core = inode->i_private; mlxsw_core_rx_stats_dbg_open() local 678 static void mlxsw_core_buf_dump_dbg(struct mlxsw_core *mlxsw_core, mlxsw_core_buf_dump_dbg() argument 757 static int mlxsw_core_debugfs_init(struct mlxsw_core *mlxsw_core) mlxsw_core_debugfs_init() argument 778 static void mlxsw_core_debugfs_fini(struct mlxsw_core *mlxsw_core) mlxsw_core_debugfs_fini() argument 788 struct mlxsw_core *mlxsw_core; mlxsw_core_bus_device_register() local 852 void mlxsw_core_bus_device_unregister(struct mlxsw_core *mlxsw_core) mlxsw_core_bus_device_unregister() argument 874 struct mlxsw_core *mlxsw_core = __mlxsw_core_get(driver_priv); mlxsw_core_skb_transmit_busy() local 884 struct mlxsw_core *mlxsw_core = __mlxsw_core_get(driver_priv); mlxsw_core_skb_transmit() local 900 __find_rx_listener_item(struct mlxsw_core *mlxsw_core, __find_rx_listener_item() argument 914 int mlxsw_core_rx_listener_register(struct mlxsw_core *mlxsw_core, mlxsw_core_rx_listener_register() argument 934 void mlxsw_core_rx_listener_unregister(struct mlxsw_core *mlxsw_core, mlxsw_core_rx_listener_unregister() argument 973 __find_event_listener_item(struct mlxsw_core *mlxsw_core, __find_event_listener_item() argument 987 int mlxsw_core_event_listener_register(struct mlxsw_core *mlxsw_core, mlxsw_core_event_listener_register() argument 1025 void mlxsw_core_event_listener_unregister(struct mlxsw_core *mlxsw_core, mlxsw_core_event_listener_unregister() argument 1045 static int mlxsw_core_reg_access_emad(struct mlxsw_core *mlxsw_core, mlxsw_core_reg_access_emad() argument 1087 static int mlxsw_core_reg_access_cmd(struct mlxsw_core *mlxsw_core, mlxsw_core_reg_access_cmd() argument 1129 static int mlxsw_core_reg_access(struct mlxsw_core *mlxsw_core, mlxsw_core_reg_access() argument 1169 int mlxsw_reg_query(struct mlxsw_core *mlxsw_core, mlxsw_reg_query() argument 1177 int mlxsw_reg_write(struct mlxsw_core *mlxsw_core, mlxsw_reg_write() argument 1185 void mlxsw_core_skb_receive(struct mlxsw_core *mlxsw_core, struct sk_buff *skb, mlxsw_core_skb_receive() argument 1239 int mlxsw_cmd_exec(struct mlxsw_core *mlxsw_core, u16 opcode, u8 opcode_mod, mlxsw_cmd_exec() argument 279 mlxsw_emad_pack_op_tlv(char *op_tlv, const struct mlxsw_reg_info *reg, enum mlxsw_core_reg_access_type type, struct mlxsw_core *mlxsw_core) mlxsw_emad_pack_op_tlv() argument 316 mlxsw_emad_construct(struct sk_buff *skb, const struct mlxsw_reg_info *reg, char *payload, enum mlxsw_core_reg_access_type type, struct mlxsw_core *mlxsw_core) mlxsw_emad_construct() argument
|
H A D | switchx2.c | 1437 static int mlxsw_sx_init(void *priv, struct mlxsw_core *mlxsw_core, mlxsw_sx_init() argument
|
H A D | pci.c | 1393 static int mlxsw_pci_init(void *bus_priv, struct mlxsw_core *mlxsw_core, mlxsw_pci_init() argument
|
H A D | spectrum.c | 1628 static int __mlxsw_sp_flood_init(struct mlxsw_core *mlxsw_core, __mlxsw_sp_flood_init() argument 1686 static int mlxsw_sp_init(void *priv, struct mlxsw_core *mlxsw_core, mlxsw_sp_init() argument
|