Lines Matching refs:sa_idx

192 static int aq_get_rxsa_stats(struct aq_hw_s *hw, const int sa_idx,  in aq_get_rxsa_stats()  argument
198 ret = aq_mss_get_ingress_sa_counters(hw, &i_sa_counters, sa_idx); in aq_get_rxsa_stats()
222 static int aq_get_txsa_stats(struct aq_hw_s *hw, const int sa_idx, in aq_get_txsa_stats() argument
228 ret = aq_mss_get_egress_sa_counters(hw, &e_sa_counters, sa_idx); in aq_get_txsa_stats()
244 static int aq_get_txsa_next_pn(struct aq_hw_s *hw, const int sa_idx, u32 *pn) in aq_get_txsa_next_pn() argument
249 ret = aq_mss_get_egress_sa_record(hw, &sa_rec, sa_idx); in aq_get_txsa_next_pn()
256 static int aq_get_rxsa_next_pn(struct aq_hw_s *hw, const int sa_idx, u32 *pn) in aq_get_rxsa_next_pn() argument
261 ret = aq_mss_get_ingress_sa_record(hw, &sa_rec, sa_idx); in aq_get_rxsa_next_pn()
549 const unsigned int sa_idx = sc_idx | an; in aq_update_txsa() local
559 ret = aq_mss_set_egress_sa_record(hw, &sa_rec, sa_idx); in aq_update_txsa()
571 ret = aq_mss_set_egress_sakey_record(hw, &key_rec, sa_idx); in aq_update_txsa()
628 const int sa_idx = aq_txsc->hw_sc_idx | sa_num; in aq_clear_txsa() local
642 ret = aq_mss_set_egress_sa_record(hw, &sa_rec, sa_idx); in aq_clear_txsa()
647 return aq_mss_set_egress_sakey_record(hw, &key_rec, sa_idx); in aq_clear_txsa()
867 const int sa_idx = sc_idx | an; in aq_update_rxsa() local
875 ret = aq_mss_set_ingress_sa_record(hw, &sa_record, sa_idx); in aq_update_rxsa()
901 ret = aq_mss_set_ingress_sakey_record(hw, &sa_key_record, sa_idx); in aq_update_rxsa()
958 int sa_idx = aq_rxsc->hw_sc_idx | sa_num; in aq_clear_rxsa() local
972 ret = aq_mss_set_ingress_sa_record(hw, &sa_record, sa_idx); in aq_clear_rxsa()
977 sa_idx); in aq_clear_rxsa()
1054 unsigned int sa_idx; in aq_mdo_get_tx_sa_stats() local
1064 sa_idx = aq_txsc->hw_sc_idx | ctx->sa.assoc_num; in aq_mdo_get_tx_sa_stats()
1066 ret = aq_get_txsa_stats(hw, sa_idx, stats); in aq_mdo_get_tx_sa_stats()
1075 ret = aq_get_txsa_next_pn(hw, sa_idx, &next_pn); in aq_mdo_get_tx_sa_stats()
1092 unsigned int sa_idx; in aq_mdo_get_rx_sc_stats() local
1107 sa_idx = aq_rxsc->hw_sc_idx | i; in aq_mdo_get_rx_sc_stats()
1108 ret = aq_get_rxsa_stats(hw, sa_idx, stats); in aq_mdo_get_rx_sc_stats()
1138 unsigned int sa_idx; in aq_mdo_get_rx_sa_stats() local
1149 sa_idx = aq_rxsc->hw_sc_idx | ctx->sa.assoc_num; in aq_mdo_get_rx_sa_stats()
1150 ret = aq_get_rxsa_stats(hw, sa_idx, stats); in aq_mdo_get_rx_sa_stats()
1161 ret = aq_get_rxsa_next_pn(hw, sa_idx, &next_pn); in aq_mdo_get_rx_sa_stats()
1306 static int aq_sa_from_sa_idx(const enum aq_macsec_sc_sa sc_sa, const int sa_idx) in aq_sa_from_sa_idx() argument
1310 return sa_idx & 3; in aq_sa_from_sa_idx()
1312 return sa_idx & 1; in aq_sa_from_sa_idx()
1322 const int sa_idx) in aq_sc_idx_from_sa_idx() argument
1326 return sa_idx & ~3; in aq_sc_idx_from_sa_idx()
1328 return sa_idx & ~1; in aq_sc_idx_from_sa_idx()
1330 return sa_idx; in aq_sc_idx_from_sa_idx()
1621 int i, sa_idx, assoc_num; in aq_macsec_update_stats() local
1639 sa_idx = aq_txsc->hw_sc_idx | assoc_num; in aq_macsec_update_stats()
1640 ret = aq_get_txsa_stats(hw, sa_idx, in aq_macsec_update_stats()
1655 sa_idx = aq_rxsc->hw_sc_idx | assoc_num; in aq_macsec_update_stats()
1657 ret = aq_get_rxsa_stats(hw, sa_idx, in aq_macsec_update_stats()