Lines Matching refs:sc_sa

80 static int aq_get_txsc_idx_from_sc_idx(const enum aq_macsec_sc_sa sc_sa,  in aq_get_txsc_idx_from_sc_idx()  argument
83 switch (sc_sa) { in aq_get_txsc_idx_from_sc_idx()
337 tx_class_rec.sc_sa = nic->macsec_cfg->sc_sa; in aq_set_txsc()
382 static u32 aq_sc_idx_max(const enum aq_macsec_sc_sa sc_sa) in aq_sc_idx_max() argument
386 switch (sc_sa) { in aq_sc_idx_max()
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
405 switch (sc_sa) { in aq_to_hw_sc_idx()
421 enum aq_macsec_sc_sa sc_sa = aq_macsec_sa_sc_not_used; in sc_sa_from_num_an() local
425 sc_sa = aq_macsec_sa_sc_4sa_8sc; in sc_sa_from_num_an()
428 sc_sa = aq_macsec_sa_sc_2sa_16sc; in sc_sa_from_num_an()
431 sc_sa = aq_macsec_sa_sc_1sa_32sc; in sc_sa_from_num_an()
437 return sc_sa; in sc_sa_from_num_an()
445 enum aq_macsec_sc_sa sc_sa; in aq_mdo_add_secy() local
452 sc_sa = sc_sa_from_num_an(MACSEC_NUM_AN); in aq_mdo_add_secy()
453 if (sc_sa == aq_macsec_sa_sc_not_used) in aq_mdo_add_secy()
456 if (hweight32(cfg->txsc_idx_busy) >= aq_sc_idx_max(sc_sa)) in aq_mdo_add_secy()
463 cfg->sc_sa = sc_sa; in aq_mdo_add_secy()
464 cfg->aq_txsc[txsc_idx].hw_sc_idx = aq_to_hw_sc_idx(txsc_idx, sc_sa); in aq_mdo_add_secy()
708 pre_class_record.an_mask = nic->macsec_cfg->sc_sa; in aq_set_rxsc()
749 const u32 rxsc_idx_max = aq_sc_idx_max(cfg->sc_sa); in aq_mdo_add_rxsc()
761 cfg->sc_sa); in aq_mdo_add_rxsc()
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
1308 switch (sc_sa) { in aq_sa_from_sa_idx()
1321 static int aq_sc_idx_from_sa_idx(const enum aq_macsec_sc_sa sc_sa, in aq_sc_idx_from_sa_idx() argument
1324 switch (sc_sa) { in aq_sc_idx_from_sa_idx()
1345 enum aq_macsec_sc_sa sc_sa; in aq_check_txsa_expiration() local
1351 sc_sa = cfg->sc_sa; in aq_check_txsa_expiration()
1362 an = aq_sa_from_sa_idx(sc_sa, i); in aq_check_txsa_expiration()
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()