Lines Matching defs:secy

192 	struct macsec_secy *secy;
378 if (pos->secy->sci == sci)
493 u32 key_size = ctx->secy->key_len / 4;
506 if (ctx->secy->xpn) {
616 bool end_station = phy_secy->secy->tx_sc.end_station;
617 bool scb = phy_secy->secy->tx_sc.scb;
622 if (!nxp_c45_port_is_1(phy_secy->secy->sci))
645 bool end_station = phy_secy->secy->tx_sc.end_station;
646 bool send_sci = phy_secy->secy->tx_sc.send_sci;
647 bool scb = phy_secy->secy->tx_sc.scb;
658 if (pos->secy == ctx->secy)
661 if (memcmp(pos->secy->netdev->dev_addr,
662 ctx->secy->netdev->dev_addr, ETH_ALEN) == 0)
686 const u8 *dev_addr = phy_secy->secy->netdev->dev_addr;
709 phydev_dbg(phydev, "XPN %s\n", phy_secy->secy->xpn ? "on" : "off");
710 if (phy_secy->secy->xpn)
715 phydev_dbg(phydev, "key len %u\n", phy_secy->secy->key_len);
716 if (phy_secy->secy->key_len == 32)
722 phy_secy->secy->tx_sc.encrypt ? "on" : "off");
723 if (phy_secy->secy->tx_sc.encrypt)
729 phy_secy->secy->protect_frames ? "on" : "off");
730 if (phy_secy->secy->protect_frames)
736 phy_secy->secy->tx_sc.send_sci ? "on" : "off");
737 if (phy_secy->secy->tx_sc.send_sci)
743 phy_secy->secy->tx_sc.end_station ? "on" : "off");
744 if (phy_secy->secy->tx_sc.end_station)
750 phy_secy->secy->tx_sc.scb ? "on" : "off");
751 if (phy_secy->secy->tx_sc.scb)
822 cfg = phy_secy->secy->validate_frames << MACSEC_RXSC_CFG_VF_OFF;
825 phy_secy->secy->validate_frames);
827 phy_secy->secy->replay_protect ? "on" : "off",
828 phy_secy->secy->replay_window);
829 if (phy_secy->secy->replay_protect) {
832 phy_secy->secy->replay_window);
845 phydev_dbg(phydev, "key len %u\n", phy_secy->secy->key_len);
846 if (phy_secy->secy->key_len == 32)
851 phydev_dbg(phydev, "XPN %s\n", phy_secy->secy->xpn ? "on" : "off");
852 if (phy_secy->secy->xpn)
931 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci);
958 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci);
986 sci_to_cpu(ctx->secy->sci));
1003 phy_secy->secy = ctx->secy;
1018 nxp_c45_set_sci(phydev, MACSEC_TXSC_SCI_1H, ctx->secy->sci);
1046 u8 encoding_sa = ctx->secy->tx_sc.encoding_sa;
1054 sci_to_cpu(ctx->secy->sci));
1056 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci);
1075 nxp_c45_tx_sa_update(phydev, &next_sa, ctx->secy->operational);
1086 u8 encoding_sa = ctx->secy->tx_sc.encoding_sa;
1093 sci_to_cpu(ctx->secy->sci));
1095 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci);
1130 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci);
1137 if (phy_secy->secy->tx_sc.end_station &&
1160 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci);
1180 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci);
1204 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci);
1214 ctx->secy->replay_window);
1234 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci);
1245 ctx->secy->replay_window);
1264 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci);
1292 sci_to_cpu(ctx->secy->sci));
1294 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci);
1305 if (ctx->secy->tx_sc.encoding_sa == sa->an)
1322 sci_to_cpu(ctx->secy->sci));
1324 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci);
1335 if (ctx->secy->tx_sc.encoding_sa == sa->an)
1351 sci_to_cpu(ctx->secy->sci));
1353 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci);
1362 if (ctx->secy->tx_sc.encoding_sa == sa->an)
1378 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci);
1392 if (phy_secy->secy->validate_frames == MACSEC_VALIDATE_STRICT)
1399 if (phy_secy->secy->validate_frames == MACSEC_VALIDATE_STRICT)
1421 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci);
1455 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci);
1481 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci);
1534 phy_secy = nxp_c45_find_secy(&priv->macsec->secy_list, ctx->secy->sci);
1692 struct nxp_c45_secy *secy;
1707 secy = nxp_c45_find_secy_by_id(&priv->macsec->secy_list,
1709 if (IS_ERR(secy)) {
1714 encoding_sa = secy->secy->tx_sc.encoding_sa;
1716 secy->secy_id, encoding_sa);
1718 sa = nxp_c45_find_sa(&secy->sa_list, TX_SA, encoding_sa);
1720 macsec_pn_wrapped(secy->secy, sa->sa);