Home
last modified time | relevance | path

Searched refs:secy (Results 1 – 4 of 4) sorted by relevance

/drivers/net/
Dmacsec.c64 #define for_each_rxsc(secy, sc) \ argument
65 for (sc = rcu_dereference_bh(secy->rx_sc); \
68 #define for_each_rxsc_rtnl(secy, sc) \ argument
69 for (sc = rtnl_dereference(secy->rx_sc); \
107 struct macsec_secy secy; member
245 static bool send_sci(const struct macsec_secy *secy) in send_sci() argument
247 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; in send_sci()
250 (secy->n_rx_sc > 1 && !tx_sc->end_station && !tx_sc->scb); in send_sci()
293 const struct macsec_secy *secy, u32 pn, in macsec_fill_sectag() argument
296 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; in macsec_fill_sectag()
[all …]
/drivers/net/ethernet/aquantia/atlantic/
Daq_macsec.c32 static int aq_clear_secy(struct aq_nic_s *nic, const struct macsec_secy *secy,
36 const struct macsec_secy *secy);
50 const struct macsec_secy *secy) in aq_get_txsc_idx_from_secy() argument
54 if (unlikely(!secy)) in aq_get_txsc_idx_from_secy()
58 if (macsec_cfg->aq_txsc[i].sw_secy == secy) in aq_get_txsc_idx_from_secy()
299 ret = aq_apply_secy_cfg(nic, ctx->secy); in aq_mdo_dev_open()
325 const struct macsec_secy *secy = aq_txsc->sw_secy; in aq_set_txsc() local
331 aq_ether_addr_to_mac(tx_class_rec.mac_sa, secy->netdev->dev_addr); in aq_set_txsc()
333 put_unaligned_be64((__force u64)secy->sci, tx_class_rec.sci); in aq_set_txsc()
349 sc_rec.protect = secy->protect_frames; in aq_set_txsc()
[all …]
/drivers/net/phy/mscc/
Dmscc_macsec.c429 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()
[all …]
Dmscc.h377 struct macsec_secy *secy; member