Lines Matching refs:sc_idx
81 const int sc_idx) in aq_get_txsc_idx_from_sc_idx() argument
85 return sc_idx >> 2; in aq_get_txsc_idx_from_sc_idx()
87 return sc_idx >> 1; in aq_get_txsc_idx_from_sc_idx()
89 return sc_idx; in aq_get_txsc_idx_from_sc_idx()
268 static int aq_get_txsc_stats(struct aq_hw_s *hw, const int sc_idx, in aq_get_txsc_stats() argument
274 ret = aq_mss_get_egress_sc_counters(hw, &e_sc_counters, sc_idx); in aq_get_txsc_stats()
321 unsigned int sc_idx = aq_txsc->hw_sc_idx; in aq_set_txsc() local
335 tx_class_rec.sc_idx = sc_idx; in aq_set_txsc()
379 return aq_mss_set_egress_sc_record(hw, &sc_rec, sc_idx); in aq_set_txsc()
403 static u32 aq_to_hw_sc_idx(const u32 sc_idx, const enum aq_macsec_sc_sa sc_sa) in aq_to_hw_sc_idx() argument
407 return sc_idx << 2; in aq_to_hw_sc_idx()
409 return sc_idx << 1; in aq_to_hw_sc_idx()
411 return sc_idx; in aq_to_hw_sc_idx()
416 return sc_idx; in aq_to_hw_sc_idx()
542 static int aq_update_txsa(struct aq_nic_s *nic, const unsigned int sc_idx, in aq_update_txsa() argument
549 const unsigned int sa_idx = sc_idx | an; in aq_update_txsa()
709 pre_class_record.sc_idx = hw_sc_idx; in aq_set_rxsc()
858 static int aq_update_rxsa(struct aq_nic_s *nic, const unsigned int sc_idx, in aq_update_rxsa() argument
867 const int sa_idx = sc_idx | an; in aq_update_rxsa()
1344 int sc_idx = 0, txsc_idx = 0; in aq_check_txsa_expiration() local
1363 sc_idx = aq_sc_idx_from_sa_idx(sc_sa, i); in aq_check_txsa_expiration()
1364 txsc_idx = aq_get_txsc_idx_from_sc_idx(sc_sa, sc_idx); in aq_check_txsa_expiration()