/linux-master/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum1_mr_tcam.c | 57 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rmft2), rmft2_pl); 79 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rmft2), rmft2_pl); 184 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rtar), rtar_pl); 195 mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rtar), rtar_pl); 211 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rtar), rtar_pl); 226 mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rrcr), rrcr_pl);
|
H A D | spectrum_acl_ctcam.c | 23 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptar), ptar_pl); 36 mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(prcr), prcr_pl); 75 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptce2), ptce2_pl); 96 mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptce2), ptce2_pl); 117 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptce2), ptce2_pl);
|
H A D | core.c | 270 err = mlxsw_reg_write(mlxsw_core, MLXSW_REG(htgt), htgt_pl); 861 err = mlxsw_reg_query(mlxsw_core, MLXSW_REG(mgir), mgir_pl); 1089 err = mlxsw_reg_query(mlxsw_core, MLXSW_REG(mcqi), mcqi_pl); 1109 err = mlxsw_reg_query(mlxsw_core, MLXSW_REG(mcc), mcc_pl); 1118 return mlxsw_reg_write(mlxsw_core, MLXSW_REG(mcc), mcc_pl); 1131 return mlxsw_reg_write(mlxsw_core, MLXSW_REG(mcc), mcc_pl); 1143 return mlxsw_reg_write(mlxsw_core, MLXSW_REG(mcda), mcda_pl); 1156 return mlxsw_reg_write(mlxsw_core, MLXSW_REG(mcc), mcc_pl); 1167 return mlxsw_reg_write(mlxsw_core, MLXSW_REG(mcc), mcc_pl); 1183 err = mlxsw_reg_query(mlxsw_core, MLXSW_REG(mc [all...] |
H A D | core_env.c | 118 err = mlxsw_reg_query(core, MLXSW_REG(mcia), mcia_pl); 192 err = mlxsw_reg_query(mlxsw_core, MLXSW_REG(mcia), mcia_pl); 226 err = mlxsw_reg_query(core, MLXSW_REG(mtmp), mtmp_pl); 278 err = mlxsw_reg_query(core, MLXSW_REG(mcia), mcia_pl); 497 err = mlxsw_reg_query(mlxsw_core, MLXSW_REG(mcia), mcia_pl); 524 return mlxsw_reg_write(mlxsw_core, MLXSW_REG(pmaos), pmaos_pl); 609 err = mlxsw_reg_query(mlxsw_core, MLXSW_REG(mcion), mcion_pl); 642 return mlxsw_reg_write(mlxsw_core, MLXSW_REG(pmaos), pmaos_pl); 661 return mlxsw_reg_write(mlxsw_core, MLXSW_REG(pmmp), pmmp_pl); 779 err = mlxsw_reg_query(mlxsw_core, MLXSW_REG(mtb [all...] |
H A D | core_hwmon.c | 81 err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mtmp), mtmp_pl); 106 err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mtmp), mtmp_pl); 139 err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mtmp), mtmp_pl); 144 err = mlxsw_reg_write(mlxsw_hwmon->core, MLXSW_REG(mtmp), mtmp_pl); 164 err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mfsm), mfsm_pl); 184 err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(fore), fore_pl); 206 err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mfsc), mfsc_pl); 234 err = mlxsw_reg_write(mlxsw_hwmon->core, MLXSW_REG(mfsc), mfsc_pl); 258 err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mtmp), mtmp_pl); 297 err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mtb [all...] |
H A D | core_linecards.c | 84 err = mlxsw_reg_query(mlxsw_core, MLXSW_REG(mddq), mddq_pl); 115 MLXSW_REG(mcqi), &mcqi_pl); 118 err = mlxsw_reg_query(mlxsw_core, MLXSW_REG(mddt), mddt_pl); 146 MLXSW_REG(mcc), &mcc_pl); 148 err = mlxsw_reg_query(mlxsw_core, MLXSW_REG(mddt), mddt_pl); 159 MLXSW_REG(mcc), &mcc_pl); 162 return mlxsw_reg_write(mlxsw_core, MLXSW_REG(mddt), mddt_pl); 182 MLXSW_REG(mcc), &mcc_pl); 185 return mlxsw_reg_write(mlxsw_core, MLXSW_REG(mddt), mddt_pl); 204 MLXSW_REG(mcd [all...] |
H A D | core_thermal.c | 221 err = mlxsw_reg_query(thermal->core, MLXSW_REG(mtmp), mtmp_pl); 302 err = mlxsw_reg_query(thermal->core, MLXSW_REG(mtmp), mtmp_pl); 328 err = mlxsw_reg_query(thermal->core, MLXSW_REG(mtmp), mtmp_pl); 366 err = mlxsw_reg_query(thermal->core, MLXSW_REG(mfsc), mfsc_pl); 397 err = mlxsw_reg_write(thermal->core, MLXSW_REG(mfsc), mfsc_pl); 489 err = mlxsw_reg_query(core, MLXSW_REG(mgpir), mgpir_pl); 586 err = mlxsw_reg_query(core, MLXSW_REG(mgpir), mgpir_pl); 709 err = mlxsw_reg_query(core, MLXSW_REG(mgpir), mgpir_pl); 727 err = mlxsw_reg_query(thermal->core, MLXSW_REG(mfcr), mfcr_pl); 741 err = mlxsw_reg_query(thermal->core, MLXSW_REG(mfs [all...] |
H A D | minimal.c | 59 err = mlxsw_reg_query(mlxsw_m->core, MLXSW_REG(spad), spad_pl); 197 err = mlxsw_reg_query(mlxsw_m->core, MLXSW_REG(pmlp), pmlp_pl); 216 err = mlxsw_reg_query(mlxsw_m->core, MLXSW_REG(ppad), ppad_pl); 369 err = mlxsw_reg_query(mlxsw_m->core, MLXSW_REG(mgpir), mgpir_pl);
|
H A D | pci.c | 1605 err = mlxsw_reg_write(mlxsw_pci->core, MLXSW_REG(mrsr), mrsr_pl); 1629 return mlxsw_reg_write(mlxsw_pci->core, MLXSW_REG(mrsr), mrsr_pl); 1654 err = mlxsw_reg_query(mlxsw_pci->core, MLXSW_REG(mcam), mcam_pl);
|
H A D | reg.h | 28 #define MLXSW_REG(type) (&mlxsw_reg_##type) macro 29 #define MLXSW_REG_LEN(type) MLXSW_REG(type)->len 30 #define MLXSW_REG_ZERO(type, payload) memset(payload, 0, MLXSW_REG(type)->len) 13001 MLXSW_REG(sgcr), 13002 MLXSW_REG(spad), 13003 MLXSW_REG(sspr), 13004 MLXSW_REG(sfdat), 13005 MLXSW_REG(sfd), 13006 MLXSW_REG(sfn), 13007 MLXSW_REG(spm [all...] |
H A D | spectrum.c | 189 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(mgpc), mgpc_pl); 206 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mgpc), mgpc_pl); 358 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(spms), spms_pl); 368 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(spad), spad_pl); 384 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(paos), paos_pl); 395 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ppad), ppad_pl); 415 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(pmtu), pmtu_pl); 433 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pmtu), pmtu_pl); 442 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pspa), pspa_pl); 451 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(svp [all...] |
H A D | spectrum1_acl_tcam.c | 215 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ptce2), ptce2_pl);
|
H A D | spectrum2_acl_tcam.c | 113 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pefa), pefa_pl); 118 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pgcr), pgcr_pl);
|
H A D | spectrum2_kvdl.c | 119 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(iedr), iedr_pl);
|
H A D | spectrum2_mr_tcam.c | 44 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pemrbt), pemrbt_pl);
|
H A D | spectrum_acl_atcam.c | 287 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(perar), perar_pl); 408 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptce3), ptce3_pl); 437 mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptce3), ptce3_pl); 466 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptce3), ptce3_pl);
|
H A D | spectrum_acl_bloom_filter.c | 441 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(peabfe), peabfe_pl); 478 mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(peabfe), peabfe_pl);
|
H A D | spectrum_acl_erp.c | 193 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(percr), percr_pl); 401 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(perpt), perpt_pl); 420 mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(perpt), perpt_pl); 436 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pererp), pererp_pl); 454 mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pererp), pererp_pl); 660 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pererp), pererp_pl); 677 mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pererp), pererp_pl); 1365 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(percr), percr_pl); 1376 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pererp), pererp_pl);
|
H A D | spectrum_acl_flex_actions.c | 27 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pefa), pefa_pl); 78 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(pefa), pefa_pl); 98 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ppbs), ppbs_pl);
|
H A D | spectrum_acl_tcam.c | 226 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pagt), pagt_pl); 318 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ppbt), ppbt_pl); 333 mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ppbt), ppbt_pl); 590 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptar), ptar_pl); 606 mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptar), ptar_pl); 617 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pacl), pacl_pl); 628 mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pacl), pacl_pl);
|
H A D | spectrum_buffers.c | 193 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbpr), sbpr_pl); 217 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbpr), sbpr_pl); 232 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbcm), sbcm_pl); 261 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbpm), sbpm_pl); 284 return mlxsw_reg_trans_query(mlxsw_sp->core, MLXSW_REG(sbpm), sbpm_pl, 312 return mlxsw_reg_trans_query(mlxsw_sp->core, MLXSW_REG(sbpm), sbpm_pl, 474 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pbmc), pbmc_pl); 498 err = mlxsw_reg_write(mlxsw_sp_port->mlxsw_sp->core, MLXSW_REG(pptb), pptb_pl); 518 err = mlxsw_reg_write(mlxsw_sp_port->mlxsw_sp->core, MLXSW_REG(sbib), sbib_pl); 1152 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbm [all...] |
H A D | spectrum_dcb.c | 257 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qpts), qpts_pl); 269 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qrwe), qrwe_pl); 307 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qpdp), qpdp_pl); 321 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qpdpm), qpdpm_pl); 335 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qpdsm), qpdsm_pl); 487 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ppcnt), ppcnt_pl); 527 return mlxsw_reg_write(mlxsw_sp_port->mlxsw_sp->core, MLXSW_REG(pfcc),
|
H A D | spectrum_ethtool.c | 160 err = mlxsw_reg_query(mlxsw_sp_port->mlxsw_sp->core, MLXSW_REG(pddr), 199 return mlxsw_reg_write(mlxsw_sp_port->mlxsw_sp->core, MLXSW_REG(pfcc), 710 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mlcr), mlcr_pl); 940 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ptys), ptys_pl); 998 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ptys), ptys_pl); 1017 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ptys), ptys_pl);
|
H A D | spectrum_fid.c | 587 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfmr), sfmr_pl); 609 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfmr), sfmr_pl); 626 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(svfa), svfa_pl); 658 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(svfa), svfa_pl); 685 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(svfa), svfa_pl); 786 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(reiv), reiv_pl); 905 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(svfa), svfa_pl); 1066 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(smpe), smpe_pl); 1087 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(reiv), reiv_pl); 1227 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfg [all...] |
H A D | spectrum_ipip.c | 184 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ratr), ratr_pl); 223 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rtdp), rtdp_pl); 402 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ratr), ratr_pl); 440 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(rtdp), rtdp_pl); 552 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(tieem), tieem_pl); 583 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(tidem), tidem_pl);
|