Home
last modified time | relevance | path

Searched refs:secy_id (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/net/phy/
H A Dnxp-c45-tja11xx-macsec.c22 #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()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dmcs.c414 void mcs_secy_plcy_write(struct mcs *mcs, u64 plcy, int secy_id, int dir) in mcs_secy_plcy_write() argument
419 reg = MCSX_CPM_RX_SLAVE_SECY_PLCY_MEM_0X(secy_id); in mcs_secy_plcy_write()
421 reg = MCSX_CPM_TX_SLAVE_SECY_PLCY_MEMX(secy_id); in mcs_secy_plcy_write()
426 mcs_reg_write(mcs, MCSX_CPM_RX_SLAVE_SECY_PLCY_MEM_1X(secy_id), 0x0ull); in mcs_secy_plcy_write()
495 int flow_id, secy_id, reg_id; in mcs_install_flowid_bypass_entry() local
513 secy_id = mcs->hw->secy_entries - MCS_RSRC_RSVD_CNT; in mcs_install_flowid_bypass_entry()
514 __set_bit(secy_id, mcs->rx.secy.bmap); in mcs_install_flowid_bypass_entry()
515 __set_bit(secy_id, mcs->tx.secy.bmap); in mcs_install_flowid_bypass_entry()
521 mcs_secy_plcy_write(mcs, plcy, secy_id, MCS_RX); in mcs_install_flowid_bypass_entry()
527 mcs_secy_plcy_write(mcs, plcy, secy_id, MCS_TX); in mcs_install_flowid_bypass_entry()
[all …]
H A Dmcs.h183 int mcs_alloc_all_rsrc(struct mcs *mcs, u8 *flowid, u8 *secy_id,
186 void mcs_clear_secy_plcy(struct mcs *mcs, int secy_id, int dir);
H A Dmcs_rvu_if.c583 mcs_rx_sc_cam_write(mcs, req->sci, req->secy_id, req->sc_id); in rvu_mbox_handler_mcs_rx_sc_cam_write()
598 req->secy_id, req->dir); in rvu_mbox_handler_mcs_secy_plcy_write()
617 map.secy = req->secy_id; in rvu_mbox_handler_mcs_flowid_entry_write()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dcn10k_macsec.c299 req->secy_id = hw_secy_id; in cn10k_mcs_write_rx_secy()
341 req->secy_id = hw_secy_id; in cn10k_mcs_write_rx_flowid()
373 sc_req->secy_id = hw_secy_id; in cn10k_mcs_write_sc_cam()
568 req->secy_id = txsc->hw_secy_id_tx; in cn10k_mcs_write_tx_secy()
610 req->secy_id = txsc->hw_secy_id_tx; in cn10k_mcs_write_tx_flowid()