Lines Matching refs:secy_id

22 #define TX_SC_BIT(secy_id)		BIT(MACSEC_REG_SIZE - (secy_id) - 1)  argument
195 int secy_id; member
366 reg |= TX_SC_BIT(phy_secy->secy_id); in nxp_c45_secy_irq_en()
368 reg &= ~TX_SC_BIT(phy_secy->secy_id); in nxp_c45_secy_irq_en()
391 if (pos->secy_id == id) in nxp_c45_find_secy_by_id()
635 if (phy_secy->secy_id != 0) in nxp_c45_secy_valid()
669 static void nxp_c45_tx_sc_en_flt(struct phy_device *phydev, int secy_id, in nxp_c45_tx_sc_en_flt() argument
672 u32 tx_flt_base = TX_FLT_BASE(secy_id); in nxp_c45_tx_sc_en_flt()
687 u32 tx_flt_base = TX_FLT_BASE(phy_secy->secy_id); in nxp_c45_tx_sc_set_flt()
698 reg |= TX_SC_FLT_BY_SA | phy_secy->secy_id; in nxp_c45_tx_sc_set_flt()
840 test_bit(phy_secy->secy_id, priv->macsec->secy_bitmap)) in nxp_c45_rx_sc_update()
935 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_dev_open()
937 nxp_c45_tx_sc_en_flt(phydev, phy_secy->secy_id, true); in nxp_c45_mdo_dev_open()
946 set_bit(phy_secy->secy_id, priv->macsec->secy_bitmap); in nxp_c45_mdo_dev_open()
962 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_dev_stop()
964 nxp_c45_tx_sc_en_flt(phydev, phy_secy->secy_id, false); in nxp_c45_mdo_dev_stop()
969 clear_bit(phy_secy->secy_id, priv->macsec->secy_bitmap); in nxp_c45_mdo_dev_stop()
1004 phy_secy->secy_id = idx; in nxp_c45_mdo_add_secy()
1017 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_add_secy()
1071 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_upd_secy()
1098 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_del_secy()
1111 clear_bit(phy_secy->secy_id, priv->macsec->tx_sc_bitmap); in nxp_c45_mdo_del_secy()
1143 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_add_rxsc()
1164 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_upd_rxsc()
1184 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_del_rxsc()
1212 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_add_rxsa()
1242 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_upd_rxsa()
1272 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_del_rxsa()
1302 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_add_txsa()
1332 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_upd_txsa()
1361 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_del_txsa()
1383 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_get_dev_stats()
1426 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_get_tx_sc_stats()
1464 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_get_tx_sa_stats()
1489 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_get_rx_sc_stats()
1543 nxp_c45_select_secy(phydev, phy_secy->secy_id); in nxp_c45_mdo_get_rx_sa_stats()
1695 int secy_id; in nxp_c45_handle_macsec_interrupt() local
1706 secy_id = MACSEC_REG_SIZE - ffs(reg); in nxp_c45_handle_macsec_interrupt()
1708 secy_id); in nxp_c45_handle_macsec_interrupt()
1716 secy->secy_id, encoding_sa); in nxp_c45_handle_macsec_interrupt()
1726 TX_SC_BIT(secy_id)); in nxp_c45_handle_macsec_interrupt()