Lines Matching refs:macsec_cfg

49 static int aq_get_txsc_idx_from_secy(struct aq_macsec_cfg *macsec_cfg,  in aq_get_txsc_idx_from_secy()  argument
58 if (macsec_cfg->aq_txsc[i].sw_secy == secy) in aq_get_txsc_idx_from_secy()
64 static int aq_get_rxsc_idx_from_rxsc(struct aq_macsec_cfg *macsec_cfg, in aq_get_rxsc_idx_from_rxsc() argument
73 if (macsec_cfg->aq_rxsc[i].sw_rxsc == rxsc) in aq_get_rxsc_idx_from_rxsc()
313 if (nic->macsec_cfg->txsc_idx_busy & BIT(i)) in aq_mdo_dev_stop()
314 aq_clear_secy(nic, nic->macsec_cfg->aq_txsc[i].sw_secy, in aq_mdo_dev_stop()
323 struct aq_macsec_txsc *aq_txsc = &nic->macsec_cfg->aq_txsc[txsc_idx]; in aq_set_txsc()
343 tx_class_rec.sc_sa = nic->macsec_cfg->sc_sa; in aq_set_txsc()
449 struct aq_macsec_cfg *cfg = nic->macsec_cfg; in aq_mdo_add_secy()
491 txsc_idx = aq_get_txsc_idx_from_secy(nic->macsec_cfg, secy); in aq_mdo_upd_secy()
507 struct aq_macsec_txsc *tx_sc = &nic->macsec_cfg->aq_txsc[txsc_idx]; in aq_clear_txsc()
534 clear_bit(txsc_idx, &nic->macsec_cfg->txsc_idx_busy); in aq_clear_txsc()
535 nic->macsec_cfg->aq_txsc[txsc_idx].sw_secy = NULL; in aq_clear_txsc()
549 if (!nic->macsec_cfg) in aq_mdo_del_secy()
594 struct aq_macsec_cfg *cfg = nic->macsec_cfg; in aq_mdo_add_txsa()
624 struct aq_macsec_cfg *cfg = nic->macsec_cfg; in aq_mdo_upd_txsa()
676 struct aq_macsec_cfg *cfg = nic->macsec_cfg; in aq_mdo_del_txsa()
712 &nic->macsec_cfg->aq_rxsc[rxsc_idx]; in aq_set_rxsc()
731 pre_class_record.an_mask = nic->macsec_cfg->sc_sa; in aq_set_rxsc()
771 struct aq_macsec_cfg *cfg = nic->macsec_cfg; in aq_mdo_add_rxsc()
808 rxsc_idx = aq_get_rxsc_idx_from_rxsc(nic->macsec_cfg, ctx->rx_sc); in aq_mdo_upd_rxsc()
824 struct aq_macsec_rxsc *rx_sc = &nic->macsec_cfg->aq_rxsc[rxsc_idx]; in aq_clear_rxsc()
860 clear_bit(rxsc_idx, &nic->macsec_cfg->rxsc_idx_busy); in aq_clear_rxsc()
875 rxsc_idx = aq_get_rxsc_idx_from_rxsc(nic->macsec_cfg, ctx->rx_sc); in aq_mdo_del_rxsc()
947 rxsc_idx = aq_get_rxsc_idx_from_rxsc(nic->macsec_cfg, rx_sc); in aq_mdo_add_rxsa()
954 aq_rxsc = &nic->macsec_cfg->aq_rxsc[rxsc_idx]; in aq_mdo_add_rxsa()
972 struct aq_macsec_cfg *cfg = nic->macsec_cfg; in aq_mdo_upd_rxsa()
1024 struct aq_macsec_cfg *cfg = nic->macsec_cfg; in aq_mdo_del_rxsa()
1044 struct aq_macsec_common_stats *stats = &nic->macsec_cfg->stats; in aq_mdo_get_dev_stats()
1072 txsc_idx = aq_get_txsc_idx_from_secy(nic->macsec_cfg, ctx->secy); in aq_mdo_get_tx_sc_stats()
1079 aq_txsc = &nic->macsec_cfg->aq_txsc[txsc_idx]; in aq_mdo_get_tx_sc_stats()
1094 struct aq_macsec_cfg *cfg = nic->macsec_cfg; in aq_mdo_get_tx_sa_stats()
1137 struct aq_macsec_cfg *cfg = nic->macsec_cfg; in aq_mdo_get_rx_sc_stats()
1185 struct aq_macsec_cfg *cfg = nic->macsec_cfg; in aq_mdo_get_rx_sa_stats()
1228 struct aq_macsec_txsc *aq_txsc = &nic->macsec_cfg->aq_txsc[txsc_idx]; in apply_txsc_cfg()
1256 struct aq_macsec_rxsc *aq_rxsc = &nic->macsec_cfg->aq_rxsc[rxsc_idx]; in apply_rxsc_cfg()
1290 txsc_idx = aq_get_txsc_idx_from_secy(nic->macsec_cfg, secy); in aq_clear_secy()
1299 rxsc_idx = aq_get_rxsc_idx_from_rxsc(nic->macsec_cfg, rx_sc); in aq_clear_secy()
1319 txsc_idx = aq_get_txsc_idx_from_secy(nic->macsec_cfg, secy); in aq_apply_secy_cfg()
1325 rxsc_idx = aq_get_rxsc_idx_from_rxsc(nic->macsec_cfg, rx_sc); in aq_apply_secy_cfg()
1343 if (nic->macsec_cfg->txsc_idx_busy & BIT(i)) { in aq_apply_macsec_cfg()
1351 if (nic->macsec_cfg->rxsc_idx_busy & BIT(i)) { in aq_apply_macsec_cfg()
1395 struct aq_macsec_cfg *cfg = nic->macsec_cfg; in aq_check_txsa_expiration()
1489 nic->macsec_cfg = kzalloc(sizeof(*cfg), GFP_KERNEL); in aq_macsec_init()
1490 if (!nic->macsec_cfg) in aq_macsec_init()
1501 kfree(nic->macsec_cfg); in aq_macsec_free()
1502 nic->macsec_cfg = NULL; in aq_macsec_free()
1515 if (!nic->macsec_cfg) in aq_macsec_enable()
1573 if (!nic->macsec_cfg) in aq_macsec_work()
1586 struct aq_macsec_cfg *cfg = nic->macsec_cfg; in aq_macsec_rx_sa_cnt()
1603 if (!nic->macsec_cfg) in aq_macsec_tx_sc_cnt()
1606 return hweight_long(nic->macsec_cfg->txsc_idx_busy); in aq_macsec_tx_sc_cnt()
1611 struct aq_macsec_cfg *cfg = nic->macsec_cfg; in aq_macsec_tx_sa_cnt()
1628 struct aq_macsec_cfg *cfg = nic->macsec_cfg; in aq_macsec_update_stats()
1680 struct aq_macsec_cfg *cfg = nic->macsec_cfg; in aq_macsec_get_stats()