Lines Matching refs:secy

429 		if (priv->secy->replay_protect)  in vsc8584_macsec_flow()
431 if (priv->secy->validate_frames == MACSEC_VALIDATE_STRICT) in vsc8584_macsec_flow()
433 else if (priv->secy->validate_frames == MACSEC_VALIDATE_CHECK) in vsc8584_macsec_flow()
436 if (priv->secy->protect_frames) in vsc8584_macsec_flow()
438 if (priv->secy->tx_sc.encrypt) in vsc8584_macsec_flow()
440 if (priv->secy->tx_sc.send_sci) in vsc8584_macsec_flow()
530 ret = vsc8584_macsec_derive_key(flow->key, priv->secy->key_len, hkey); in vsc8584_macsec_transformation()
534 switch (priv->secy->key_len) { in vsc8584_macsec_transformation()
546 (CONTROL_TYPE_EGRESS | CONTROL_AN(priv->secy->tx_sc.encoding_sa)) : in vsc8584_macsec_transformation()
563 for (i = 0; i < priv->secy->key_len / sizeof(u32); i++) in vsc8584_macsec_transformation()
583 priv->secy->replay_window); in vsc8584_macsec_transformation()
586 sci = (__force u64)(bank == MACSEC_INGR ? flow->rx_sa->sc->sci : priv->secy->sci); in vsc8584_macsec_transformation()
714 memcpy(flow->key, ctx->sa.key, priv->secy->key_len); in __vsc8584_macsec_add_rxsa()
724 if (priv->secy->validate_frames != MACSEC_VALIDATE_DISABLED) in __vsc8584_macsec_add_rxsa()
741 memcpy(flow->key, ctx->sa.key, priv->secy->key_len); in __vsc8584_macsec_add_txsa()
786 struct macsec_secy *secy = ctx->secy; in vsc8584_macsec_add_secy() local
789 if (priv->secy) in vsc8584_macsec_add_secy()
795 priv->secy = secy; in vsc8584_macsec_add_secy()
798 secy->validate_frames != MACSEC_VALIDATE_DISABLED); in vsc8584_macsec_add_secy()
800 secy->validate_frames != MACSEC_VALIDATE_DISABLED); in vsc8584_macsec_add_secy()
820 priv->secy = NULL; in vsc8584_macsec_del_secy()
987 vsc8531->secy = NULL; in vsc8584_macsec_init()
1010 rec = 6 + priv->secy->key_len / sizeof(u32); in vsc8584_handle_macsec_interrupt()
1021 macsec_pn_wrapped(priv->secy, flow->tx_sa); in vsc8584_handle_macsec_interrupt()