Home
last modified time | relevance | path

Searched refs:sc_id (Results 1 – 9 of 9) sorted by relevance

/drivers/net/ethernet/marvell/octeontx2/af/
Dmcs_cnf10kb.c96 reg = MCSX_CPM_TX_SLAVE_SA_MAP_MEM_0X(map->sc_id); in cnf10kb_mcs_tx_sa_mem_map_write()
103 val |= BIT_ULL(map->sc_id); in cnf10kb_mcs_tx_sa_mem_map_write()
105 val &= ~BIT_ULL(map->sc_id); in cnf10kb_mcs_tx_sa_mem_map_write()
109 mcs_reg_write(mcs, MCSX_CPM_TX_SLAVE_SA_INDEX0_VLDX(map->sc_id), map->sa_index0_vld); in cnf10kb_mcs_tx_sa_mem_map_write()
110 mcs_reg_write(mcs, MCSX_CPM_TX_SLAVE_SA_INDEX1_VLDX(map->sc_id), map->sa_index1_vld); in cnf10kb_mcs_tx_sa_mem_map_write()
112 mcs_reg_write(mcs, MCSX_CPM_TX_SLAVE_TX_SA_ACTIVEX(map->sc_id), map->tx_sa_active); in cnf10kb_mcs_tx_sa_mem_map_write()
121 reg = MCSX_CPM_RX_SLAVE_SA_MAP_MEMX((4 * map->sc_id) + map->an); in cnf10kb_mcs_rx_sa_mem_map_write()
Dmcs.c354 reg = MCSX_CPM_TX_SLAVE_SA_MAP_MEM_0X(map->sc_id); in cn10kb_mcs_tx_sa_mem_map_write()
358 reg = MCSX_CPM_TX_SLAVE_SA_MAP_MEM_1X(map->sc_id); in cn10kb_mcs_tx_sa_mem_map_write()
368 reg = MCSX_CPM_RX_SLAVE_SA_MAP_MEMX((4 * map->sc_id) + map->an); in cn10kb_mcs_rx_sa_mem_map_write()
390 void mcs_ena_dis_sc_cam_entry(struct mcs *mcs, int sc_id, int ena) in mcs_ena_dis_sc_cam_entry() argument
395 if (sc_id > 63) in mcs_ena_dis_sc_cam_entry()
399 val = mcs_reg_read(mcs, reg) | BIT_ULL(sc_id); in mcs_ena_dis_sc_cam_entry()
401 val = mcs_reg_read(mcs, reg) & ~BIT_ULL(sc_id); in mcs_ena_dis_sc_cam_entry()
406 void mcs_rx_sc_cam_write(struct mcs *mcs, u64 sci, u64 secy, int sc_id) in mcs_rx_sc_cam_write() argument
408 mcs_reg_write(mcs, MCSX_CPM_RX_SLAVE_SC_CAMX(0, sc_id), sci); in mcs_rx_sc_cam_write()
409 mcs_reg_write(mcs, MCSX_CPM_RX_SLAVE_SC_CAMX(1, sc_id), secy); in mcs_rx_sc_cam_write()
[all …]
Drvu_debugfs.c324 int sc_id; in rvu_dbg_mcs_tx_sc_stats_display() local
330 for_each_set_bit(sc_id, map->bmap, mcs->hw->sc_entries) { in rvu_dbg_mcs_tx_sc_stats_display()
331 mcs_get_sc_stats(mcs, &stats, sc_id, MCS_TX); in rvu_dbg_mcs_tx_sc_stats_display()
332 seq_printf(filp, "\n=======sc%d======\n\n", sc_id); in rvu_dbg_mcs_tx_sc_stats_display()
333 seq_printf(filp, "sc%d: Pkts encrypted: %lld\n", sc_id, stats.pkt_encrypt_cnt); in rvu_dbg_mcs_tx_sc_stats_display()
334 seq_printf(filp, "sc%d: Pkts protected: %lld\n", sc_id, stats.pkt_protected_cnt); in rvu_dbg_mcs_tx_sc_stats_display()
337 seq_printf(filp, "sc%d: Octets encrypted: %lld\n", sc_id, in rvu_dbg_mcs_tx_sc_stats_display()
339 seq_printf(filp, "sc%d: Octets protected: %lld\n", sc_id, in rvu_dbg_mcs_tx_sc_stats_display()
354 int sc_id; in rvu_dbg_mcs_rx_sc_stats_display() local
360 for_each_set_bit(sc_id, map->bmap, mcs->hw->sc_entries) { in rvu_dbg_mcs_rx_sc_stats_display()
[all …]
Dmcs.h184 u8 *sc_id, u8 *sa1_id, u8 *sa2_id, u16 pcifunc, int dir);
191 void mcs_rx_sc_cam_write(struct mcs *mcs, u64 sci, u64 secy, int sc_id);
Dmcs_rvu_if.c548 mcs->tx_sa_active[req->sc_id] = req->tx_sa_active; in rvu_mbox_handler_mcs_tx_sc_sa_map_write()
581 mcs_rx_sc_cam_write(mcs, req->sci, req->secy_id, req->sc_id); in rvu_mbox_handler_mcs_rx_sc_cam_write()
616 map.sc = req->sc_id; in rvu_mbox_handler_mcs_flowid_entry_write()
Dmbox.h1862 u8 sc_id; /* Valid if dir = MCS_TX, SC_CAM id mapped to flowid */ member
1884 u8 sc_id; /* SC CAM entry index */ member
1908 u8 sc_id; /* used as index for SA_MEM_MAP */ member
1917 u8 sc_id; member
/drivers/crypto/
Dsa2ul.c688 void sa_set_swinfo(u8 eng_id, u16 sc_id, dma_addr_t sc_phys, in sa_set_swinfo() argument
692 swinfo[0] = sc_id; in sa_set_swinfo()
724 u16 sc_id = ctx->sc_id; in sa_init_sc() local
751 memcpy(&sc_buf[2], &sc_id, 2); in sa_init_sc()
775 sa_set_swinfo(first_engine, ctx->sc_id, ctx->sc_phys, 1, 0, in sa_init_sc()
789 bn = ctx->sc_id - data->sc_id_start; in sa_free_ctx_info()
792 data->sc_id--; in sa_free_ctx_info()
810 data->sc_id++; in sa_init_ctx_info()
813 ctx->sc_id = (u16)(data->sc_id_start + bn); in sa_init_ctx_info()
827 data->sc_id--; in sa_init_ctx_info()
[all …]
Dsa2ul.h204 u16 sc_id; member
288 u16 sc_id; member
/drivers/net/ethernet/marvell/octeontx2/nic/
Dcn10k_macsec.c344 req->sc_id = rxsc->hw_sc_id; in cn10k_mcs_write_rx_flowid()
374 sc_req->sc_id = rxsc->hw_sc_id; in cn10k_mcs_write_sc_cam()
459 map_req->sc_id = rxsc->hw_sc_id; in cn10k_mcs_write_rx_sa_plcy()
612 req->sc_id = txsc->hw_sc_id; in cn10k_mcs_write_tx_flowid()
650 map_req->sc_id = txsc->hw_sc_id; in cn10k_mcs_link_tx_sa2sc()