Lines Matching refs:mlxsw_core
26 struct mlxsw_core;
28 int mlxsw_cmd_exec(struct mlxsw_core *mlxsw_core, u16 opcode, u8 opcode_mod,
33 static inline int mlxsw_cmd_exec_in(struct mlxsw_core *mlxsw_core, u16 opcode, in mlxsw_cmd_exec_in() argument
37 return mlxsw_cmd_exec(mlxsw_core, opcode, opcode_mod, in_mod, false, in mlxsw_cmd_exec_in()
41 static inline int mlxsw_cmd_exec_out(struct mlxsw_core *mlxsw_core, u16 opcode, in mlxsw_cmd_exec_out() argument
46 return mlxsw_cmd_exec(mlxsw_core, opcode, opcode_mod, in_mod, in mlxsw_cmd_exec_out()
51 static inline int mlxsw_cmd_exec_none(struct mlxsw_core *mlxsw_core, u16 opcode, in mlxsw_cmd_exec_none() argument
54 return mlxsw_cmd_exec(mlxsw_core, opcode, opcode_mod, in_mod, false, in mlxsw_cmd_exec_none()
199 static inline int mlxsw_cmd_query_fw(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_fw() argument
202 return mlxsw_cmd_exec_out(mlxsw_core, MLXSW_CMD_OPCODE_QUERY_FW, in mlxsw_cmd_query_fw()
339 static inline int mlxsw_cmd_boardinfo(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_boardinfo() argument
342 return mlxsw_cmd_exec_out(mlxsw_core, MLXSW_CMD_OPCODE_QUERY_BOARDINFO, in mlxsw_cmd_boardinfo()
400 static inline int mlxsw_cmd_query_aq_cap(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_aq_cap() argument
403 return mlxsw_cmd_exec_out(mlxsw_core, MLXSW_CMD_OPCODE_QUERY_AQ_CAP, in mlxsw_cmd_query_aq_cap()
478 static inline int mlxsw_cmd_map_fa(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_map_fa() argument
481 return mlxsw_cmd_exec_in(mlxsw_core, MLXSW_CMD_OPCODE_MAP_FA, in mlxsw_cmd_map_fa()
507 static inline int mlxsw_cmd_unmap_fa(struct mlxsw_core *mlxsw_core) in mlxsw_cmd_unmap_fa() argument
509 return mlxsw_cmd_exec_none(mlxsw_core, MLXSW_CMD_OPCODE_UNMAP_FA, 0, 0); in mlxsw_cmd_unmap_fa()
527 static inline int mlxsw_cmd_query_resources(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_resources() argument
530 return mlxsw_cmd_exec_out(mlxsw_core, MLXSW_CMD_OPCODE_QUERY_RESOURCES, in mlxsw_cmd_query_resources()
561 static inline int mlxsw_cmd_config_profile_set(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_config_profile_set() argument
564 return mlxsw_cmd_exec_in(mlxsw_core, MLXSW_CMD_OPCODE_CONFIG_PROFILE, in mlxsw_cmd_config_profile_set()
885 static inline int mlxsw_cmd_access_reg(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_access_reg() argument
889 return mlxsw_cmd_exec(mlxsw_core, MLXSW_CMD_OPCODE_ACCESS_REG, in mlxsw_cmd_access_reg()
905 static inline int __mlxsw_cmd_sw2hw_dq(struct mlxsw_core *mlxsw_core, in __mlxsw_cmd_sw2hw_dq() argument
909 return mlxsw_cmd_exec_in(mlxsw_core, MLXSW_CMD_OPCODE_SW2HW_DQ, in __mlxsw_cmd_sw2hw_dq()
919 static inline int mlxsw_cmd_sw2hw_sdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_sw2hw_sdq() argument
922 return __mlxsw_cmd_sw2hw_dq(mlxsw_core, in_mbox, dq_number, in mlxsw_cmd_sw2hw_sdq()
926 static inline int mlxsw_cmd_sw2hw_rdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_sw2hw_rdq() argument
929 return __mlxsw_cmd_sw2hw_dq(mlxsw_core, in_mbox, dq_number, in mlxsw_cmd_sw2hw_rdq()
976 static inline int __mlxsw_cmd_hw2sw_dq(struct mlxsw_core *mlxsw_core, in __mlxsw_cmd_hw2sw_dq() argument
979 return mlxsw_cmd_exec_none(mlxsw_core, MLXSW_CMD_OPCODE_HW2SW_DQ, in __mlxsw_cmd_hw2sw_dq()
983 static inline int mlxsw_cmd_hw2sw_sdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_hw2sw_sdq() argument
986 return __mlxsw_cmd_hw2sw_dq(mlxsw_core, dq_number, in mlxsw_cmd_hw2sw_sdq()
990 static inline int mlxsw_cmd_hw2sw_rdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_hw2sw_rdq() argument
993 return __mlxsw_cmd_hw2sw_dq(mlxsw_core, dq_number, in mlxsw_cmd_hw2sw_rdq()
1011 static inline int __mlxsw_cmd_2err_dq(struct mlxsw_core *mlxsw_core, in __mlxsw_cmd_2err_dq() argument
1014 return mlxsw_cmd_exec_none(mlxsw_core, MLXSW_CMD_OPCODE_2ERR_DQ, in __mlxsw_cmd_2err_dq()
1018 static inline int mlxsw_cmd_2err_sdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_2err_sdq() argument
1021 return __mlxsw_cmd_2err_dq(mlxsw_core, dq_number, in mlxsw_cmd_2err_sdq()
1025 static inline int mlxsw_cmd_2err_rdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_2err_rdq() argument
1028 return __mlxsw_cmd_2err_dq(mlxsw_core, dq_number, in mlxsw_cmd_2err_rdq()
1042 static inline int __mlxsw_cmd_query_dq(struct mlxsw_core *mlxsw_core, in __mlxsw_cmd_query_dq() argument
1046 return mlxsw_cmd_exec_out(mlxsw_core, MLXSW_CMD_OPCODE_2ERR_DQ, in __mlxsw_cmd_query_dq()
1051 static inline int mlxsw_cmd_query_sdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_sdq() argument
1054 return __mlxsw_cmd_query_dq(mlxsw_core, out_mbox, dq_number, in mlxsw_cmd_query_sdq()
1058 static inline int mlxsw_cmd_query_rdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_rdq() argument
1061 return __mlxsw_cmd_query_dq(mlxsw_core, out_mbox, dq_number, in mlxsw_cmd_query_rdq()
1075 static inline int mlxsw_cmd_sw2hw_cq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_sw2hw_cq() argument
1078 return mlxsw_cmd_exec_in(mlxsw_core, MLXSW_CMD_OPCODE_SW2HW_CQ, in mlxsw_cmd_sw2hw_cq()
1129 static inline int mlxsw_cmd_hw2sw_cq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_hw2sw_cq() argument
1132 return mlxsw_cmd_exec_none(mlxsw_core, MLXSW_CMD_OPCODE_HW2SW_CQ, in mlxsw_cmd_hw2sw_cq()
1148 static inline int mlxsw_cmd_query_cq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_cq() argument
1151 return mlxsw_cmd_exec_out(mlxsw_core, MLXSW_CMD_OPCODE_QUERY_CQ, in mlxsw_cmd_query_cq()
1166 static inline int mlxsw_cmd_sw2hw_eq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_sw2hw_eq() argument
1169 return mlxsw_cmd_exec_in(mlxsw_core, MLXSW_CMD_OPCODE_SW2HW_EQ, in mlxsw_cmd_sw2hw_eq()
1211 static inline int mlxsw_cmd_hw2sw_eq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_hw2sw_eq() argument
1214 return mlxsw_cmd_exec_none(mlxsw_core, MLXSW_CMD_OPCODE_HW2SW_EQ, in mlxsw_cmd_hw2sw_eq()
1226 static inline int mlxsw_cmd_query_eq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_eq() argument
1229 return mlxsw_cmd_exec_out(mlxsw_core, MLXSW_CMD_OPCODE_QUERY_EQ, in mlxsw_cmd_query_eq()