Home
last modified time | relevance | path

Searched refs:mlxsw_core (Results 1 – 9 of 9) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/
Dcore.c87 struct mlxsw_core { struct
282 struct mlxsw_core *mlxsw_core) in mlxsw_emad_pack_op_tlv() argument
298 mlxsw_emad_op_tlv_tid_set(op_tlv, mlxsw_core->emad.tid); in mlxsw_emad_pack_op_tlv()
320 struct mlxsw_core *mlxsw_core) in mlxsw_emad_construct() argument
331 mlxsw_emad_pack_op_tlv(buf, reg, type, mlxsw_core); in mlxsw_emad_construct()
370 static int __mlxsw_emad_transmit(struct mlxsw_core *mlxsw_core, in __mlxsw_emad_transmit() argument
377 mlxsw_core->emad.trans_active = true; in __mlxsw_emad_transmit()
379 err = mlxsw_core_skb_transmit(mlxsw_core->driver_priv, skb, tx_info); in __mlxsw_emad_transmit()
381 dev_err(mlxsw_core->bus_info->dev, "Failed to transmit EMAD (tid=%llx)\n", in __mlxsw_emad_transmit()
382 mlxsw_core->emad.tid); in __mlxsw_emad_transmit()
[all …]
Dcmd.h58 struct mlxsw_core;
60 int mlxsw_cmd_exec(struct mlxsw_core *mlxsw_core, u16 opcode, u8 opcode_mod,
65 static inline int mlxsw_cmd_exec_in(struct mlxsw_core *mlxsw_core, u16 opcode, in mlxsw_cmd_exec_in() argument
69 return mlxsw_cmd_exec(mlxsw_core, opcode, opcode_mod, in_mod, false, in mlxsw_cmd_exec_in()
73 static inline int mlxsw_cmd_exec_out(struct mlxsw_core *mlxsw_core, u16 opcode, in mlxsw_cmd_exec_out() argument
78 return mlxsw_cmd_exec(mlxsw_core, opcode, opcode_mod, in_mod, in mlxsw_cmd_exec_out()
83 static inline int mlxsw_cmd_exec_none(struct mlxsw_core *mlxsw_core, u16 opcode, in mlxsw_cmd_exec_none() argument
86 return mlxsw_cmd_exec(mlxsw_core, opcode, opcode_mod, in_mod, false, in mlxsw_cmd_exec_none()
224 static inline int mlxsw_cmd_query_fw(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_fw() argument
227 return mlxsw_cmd_exec_out(mlxsw_core, MLXSW_CMD_OPCODE_QUERY_FW, in mlxsw_cmd_query_fw()
[all …]
Dcore.h59 struct mlxsw_core;
70 void mlxsw_core_bus_device_unregister(struct mlxsw_core *mlxsw_core);
95 int mlxsw_core_rx_listener_register(struct mlxsw_core *mlxsw_core,
98 void mlxsw_core_rx_listener_unregister(struct mlxsw_core *mlxsw_core,
102 int mlxsw_core_event_listener_register(struct mlxsw_core *mlxsw_core,
105 void mlxsw_core_event_listener_unregister(struct mlxsw_core *mlxsw_core,
109 int mlxsw_reg_query(struct mlxsw_core *mlxsw_core,
111 int mlxsw_reg_write(struct mlxsw_core *mlxsw_core,
119 void mlxsw_core_skb_receive(struct mlxsw_core *mlxsw_core, struct sk_buff *skb,
174 int (*init)(void *driver_priv, struct mlxsw_core *mlxsw_core,
[all …]
DMakefile1 obj-$(CONFIG_MLXSW_CORE) += mlxsw_core.o
2 mlxsw_core-objs := core.o
Dspectrum.h56 struct mlxsw_core *core;
DKconfig11 module will be called mlxsw_core.
Dspectrum.c1628 static int __mlxsw_sp_flood_init(struct mlxsw_core *mlxsw_core, in __mlxsw_sp_flood_init() argument
1649 return mlxsw_reg_write(mlxsw_core, MLXSW_REG(sfgc), sfgc_pl); in __mlxsw_sp_flood_init()
1686 static int mlxsw_sp_init(void *priv, struct mlxsw_core *mlxsw_core, in mlxsw_sp_init() argument
1692 mlxsw_sp->core = mlxsw_core; in mlxsw_sp_init()
Dswitchx2.c62 struct mlxsw_core *core;
1437 static int mlxsw_sx_init(void *priv, struct mlxsw_core *mlxsw_core, in mlxsw_sx_init() argument
1443 mlxsw_sx->core = mlxsw_core; in mlxsw_sx_init()
Dpci.c175 struct mlxsw_core *core;
1393 static int mlxsw_pci_init(void *bus_priv, struct mlxsw_core *mlxsw_core, in mlxsw_pci_init() argument
1405 mlxsw_pci->core = mlxsw_core; in mlxsw_pci_init()
1419 err = mlxsw_cmd_query_fw(mlxsw_core, mbox); in mlxsw_pci_init()