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()
365 static inline int mlxsw_cmd_boardinfo(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_boardinfo() argument
368 return mlxsw_cmd_exec_out(mlxsw_core, MLXSW_CMD_OPCODE_QUERY_BOARDINFO, in mlxsw_cmd_boardinfo()
409 static inline int mlxsw_cmd_query_aq_cap(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_aq_cap() argument
412 return mlxsw_cmd_exec_out(mlxsw_core, MLXSW_CMD_OPCODE_QUERY_AQ_CAP, in mlxsw_cmd_query_aq_cap()
487 static inline int mlxsw_cmd_map_fa(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_map_fa() argument
490 return mlxsw_cmd_exec_in(mlxsw_core, MLXSW_CMD_OPCODE_MAP_FA, in mlxsw_cmd_map_fa()
516 static inline int mlxsw_cmd_unmap_fa(struct mlxsw_core *mlxsw_core) in mlxsw_cmd_unmap_fa() argument
518 return mlxsw_cmd_exec_none(mlxsw_core, MLXSW_CMD_OPCODE_UNMAP_FA, 0, 0); in mlxsw_cmd_unmap_fa()
536 static inline int mlxsw_cmd_query_resources(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_resources() argument
539 return mlxsw_cmd_exec_out(mlxsw_core, MLXSW_CMD_OPCODE_QUERY_RESOURCES, in mlxsw_cmd_query_resources()
570 static inline int mlxsw_cmd_config_profile_set(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_config_profile_set() argument
573 return mlxsw_cmd_exec_in(mlxsw_core, MLXSW_CMD_OPCODE_CONFIG_PROFILE, in mlxsw_cmd_config_profile_set()
932 static inline int mlxsw_cmd_access_reg(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_access_reg() argument
936 return mlxsw_cmd_exec(mlxsw_core, MLXSW_CMD_OPCODE_ACCESS_REG, in mlxsw_cmd_access_reg()
952 static inline int __mlxsw_cmd_sw2hw_dq(struct mlxsw_core *mlxsw_core, in __mlxsw_cmd_sw2hw_dq() argument
956 return mlxsw_cmd_exec_in(mlxsw_core, MLXSW_CMD_OPCODE_SW2HW_DQ, in __mlxsw_cmd_sw2hw_dq()
966 static inline int mlxsw_cmd_sw2hw_sdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_sw2hw_sdq() argument
969 return __mlxsw_cmd_sw2hw_dq(mlxsw_core, in_mbox, dq_number, in mlxsw_cmd_sw2hw_sdq()
973 static inline int mlxsw_cmd_sw2hw_rdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_sw2hw_rdq() argument
976 return __mlxsw_cmd_sw2hw_dq(mlxsw_core, in_mbox, dq_number, in mlxsw_cmd_sw2hw_rdq()
1023 static inline int __mlxsw_cmd_hw2sw_dq(struct mlxsw_core *mlxsw_core, in __mlxsw_cmd_hw2sw_dq() argument
1026 return mlxsw_cmd_exec_none(mlxsw_core, MLXSW_CMD_OPCODE_HW2SW_DQ, in __mlxsw_cmd_hw2sw_dq()
1030 static inline int mlxsw_cmd_hw2sw_sdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_hw2sw_sdq() argument
1033 return __mlxsw_cmd_hw2sw_dq(mlxsw_core, dq_number, in mlxsw_cmd_hw2sw_sdq()
1037 static inline int mlxsw_cmd_hw2sw_rdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_hw2sw_rdq() argument
1040 return __mlxsw_cmd_hw2sw_dq(mlxsw_core, dq_number, in mlxsw_cmd_hw2sw_rdq()
1058 static inline int __mlxsw_cmd_2err_dq(struct mlxsw_core *mlxsw_core, in __mlxsw_cmd_2err_dq() argument
1061 return mlxsw_cmd_exec_none(mlxsw_core, MLXSW_CMD_OPCODE_2ERR_DQ, in __mlxsw_cmd_2err_dq()
1065 static inline int mlxsw_cmd_2err_sdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_2err_sdq() argument
1068 return __mlxsw_cmd_2err_dq(mlxsw_core, dq_number, in mlxsw_cmd_2err_sdq()
1072 static inline int mlxsw_cmd_2err_rdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_2err_rdq() argument
1075 return __mlxsw_cmd_2err_dq(mlxsw_core, dq_number, in mlxsw_cmd_2err_rdq()
1089 static inline int __mlxsw_cmd_query_dq(struct mlxsw_core *mlxsw_core, in __mlxsw_cmd_query_dq() argument
1093 return mlxsw_cmd_exec_out(mlxsw_core, MLXSW_CMD_OPCODE_2ERR_DQ, in __mlxsw_cmd_query_dq()
1098 static inline int mlxsw_cmd_query_sdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_sdq() argument
1101 return __mlxsw_cmd_query_dq(mlxsw_core, out_mbox, dq_number, in mlxsw_cmd_query_sdq()
1105 static inline int mlxsw_cmd_query_rdq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_rdq() argument
1108 return __mlxsw_cmd_query_dq(mlxsw_core, out_mbox, dq_number, in mlxsw_cmd_query_rdq()
1122 static inline int mlxsw_cmd_sw2hw_cq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_sw2hw_cq() argument
1125 return mlxsw_cmd_exec_in(mlxsw_core, MLXSW_CMD_OPCODE_SW2HW_CQ, in mlxsw_cmd_sw2hw_cq()
1176 static inline int mlxsw_cmd_hw2sw_cq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_hw2sw_cq() argument
1179 return mlxsw_cmd_exec_none(mlxsw_core, MLXSW_CMD_OPCODE_HW2SW_CQ, in mlxsw_cmd_hw2sw_cq()
1195 static inline int mlxsw_cmd_query_cq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_cq() argument
1198 return mlxsw_cmd_exec_out(mlxsw_core, MLXSW_CMD_OPCODE_QUERY_CQ, in mlxsw_cmd_query_cq()
1213 static inline int mlxsw_cmd_sw2hw_eq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_sw2hw_eq() argument
1216 return mlxsw_cmd_exec_in(mlxsw_core, MLXSW_CMD_OPCODE_SW2HW_EQ, in mlxsw_cmd_sw2hw_eq()
1258 static inline int mlxsw_cmd_hw2sw_eq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_hw2sw_eq() argument
1261 return mlxsw_cmd_exec_none(mlxsw_core, MLXSW_CMD_OPCODE_HW2SW_EQ, in mlxsw_cmd_hw2sw_eq()
1273 static inline int mlxsw_cmd_query_eq(struct mlxsw_core *mlxsw_core, in mlxsw_cmd_query_eq() argument
1276 return mlxsw_cmd_exec_out(mlxsw_core, MLXSW_CMD_OPCODE_QUERY_EQ, in mlxsw_cmd_query_eq()