• Home
  • Raw
  • Download

Lines Matching refs:dir

133 			  int id, int dir)  in mcs_get_flowid_stats()  argument
137 if (dir == MCS_RX) in mcs_get_flowid_stats()
146 int id, int dir) in mcs_get_port_stats() argument
150 if (dir == MCS_RX) { in mcs_get_port_stats()
172 void mcs_get_sa_stats(struct mcs *mcs, struct mcs_sa_stats *stats, int id, int dir) in mcs_get_sa_stats() argument
176 if (dir == MCS_RX) { in mcs_get_sa_stats()
201 int id, int dir) in mcs_get_sc_stats() argument
205 if (dir == MCS_RX) { in mcs_get_sc_stats()
252 void mcs_clear_stats(struct mcs *mcs, u8 type, u8 id, int dir) in mcs_clear_stats() argument
261 if (dir == MCS_RX) in mcs_clear_stats()
270 mcs_get_flowid_stats(mcs, &flowid_st, id, dir); in mcs_clear_stats()
273 if (dir == MCS_RX) in mcs_clear_stats()
279 mcs_get_sc_stats(mcs, &sc_st, id, dir); in mcs_clear_stats()
282 mcs_get_sa_stats(mcs, &sa_st, id, dir); in mcs_clear_stats()
285 mcs_get_port_stats(mcs, &port_st, id, dir); in mcs_clear_stats()
292 int mcs_clear_all_stats(struct mcs *mcs, u16 pcifunc, int dir) in mcs_clear_all_stats() argument
297 if (dir == MCS_RX) in mcs_clear_all_stats()
306 mcs_clear_stats(mcs, MCS_FLOWID_STATS, id, dir); in mcs_clear_all_stats()
313 mcs_clear_stats(mcs, MCS_SECY_STATS, id, dir); in mcs_clear_all_stats()
320 mcs_clear_stats(mcs, MCS_SC_STATS, id, dir); in mcs_clear_all_stats()
327 mcs_clear_stats(mcs, MCS_SA_STATS, id, dir); in mcs_clear_all_stats()
332 void mcs_pn_table_write(struct mcs *mcs, u8 pn_id, u64 next_pn, u8 dir) in mcs_pn_table_write() argument
336 if (dir == MCS_RX) in mcs_pn_table_write()
372 void mcs_sa_plcy_write(struct mcs *mcs, u64 *plcy, int sa_id, int dir) in mcs_sa_plcy_write() argument
377 if (dir == MCS_RX) { in mcs_sa_plcy_write()
414 void mcs_secy_plcy_write(struct mcs *mcs, u64 plcy, int secy_id, int dir) in mcs_secy_plcy_write() argument
418 if (dir == MCS_RX) in mcs_secy_plcy_write()
425 if (mcs->hw->mcs_blks == 1 && dir == MCS_RX) in mcs_secy_plcy_write()
429 void cn10kb_mcs_flowid_secy_map(struct mcs *mcs, struct secy_mem_map *map, int dir) in cn10kb_mcs_flowid_secy_map() argument
434 if (dir == MCS_RX) { in cn10kb_mcs_flowid_secy_map()
444 void mcs_ena_dis_flowid_entry(struct mcs *mcs, int flow_id, int dir, int ena) in mcs_ena_dis_flowid_entry() argument
448 if (dir == MCS_RX) { in mcs_ena_dis_flowid_entry()
467 void mcs_flowid_entry_write(struct mcs *mcs, u64 *data, u64 *mask, int flow_id, int dir) in mcs_flowid_entry_write() argument
472 if (dir == MCS_RX) { in mcs_flowid_entry_write()
544 void mcs_clear_secy_plcy(struct mcs *mcs, int secy_id, int dir) in mcs_clear_secy_plcy() argument
549 if (dir == MCS_RX) in mcs_clear_secy_plcy()
555 mcs_secy_plcy_write(mcs, 0, secy_id, dir); in mcs_clear_secy_plcy()
561 mcs_ena_dis_flowid_entry(mcs, flow_id, dir, false); in mcs_clear_secy_plcy()
589 reg = (req->dir == MCS_RX) ? MCSX_PEX_RX_SLAVE_RULE_ENABLE : MCSX_PEX_TX_SLAVE_RULE_ENABLE; in mcs_free_ctrlpktrule()
590 map = (req->dir == MCS_RX) ? &mcs->rx : &mcs->tx; in mcs_free_ctrlpktrule()
624 reg = (req->dir == MCS_RX) ? MCSX_PEX_RX_SLAVE_RULE_ETYPE_CFGX(idx) : in mcs_ctrlpktrule_write()
634 reg = (req->dir == MCS_RX) ? MCSX_PEX_RX_SLAVE_RULE_DAX(idx) : in mcs_ctrlpktrule_write()
644 if (req->dir == MCS_RX) { in mcs_ctrlpktrule_write()
663 if (req->dir == MCS_RX) { in mcs_ctrlpktrule_write()
684 reg = (req->dir == MCS_RX) ? MCSX_PEX_RX_SLAVE_RULE_MAC : in mcs_ctrlpktrule_write()
691 reg = (req->dir == MCS_RX) ? MCSX_PEX_RX_SLAVE_RULE_ENABLE : MCSX_PEX_TX_SLAVE_RULE_ENABLE; in mcs_ctrlpktrule_write()
712 int mcs_free_all_rsrc(struct mcs *mcs, int dir, u16 pcifunc) in mcs_free_all_rsrc() argument
717 if (dir == MCS_RX) in mcs_free_all_rsrc()
728 mcs_ena_dis_flowid_entry(mcs, id, dir, false); in mcs_free_all_rsrc()
737 mcs_clear_secy_plcy(mcs, id, dir); in mcs_free_all_rsrc()
747 if (dir == MCS_RX) in mcs_free_all_rsrc()
772 u8 *sc_id, u8 *sa1_id, u8 *sa2_id, u16 pcifunc, int dir) in mcs_alloc_all_rsrc() argument
777 if (dir == MCS_RX) in mcs_alloc_all_rsrc()
940 enum mcs_direction dir) in cn10kb_mcs_bbe_intr_handler() argument
949 reg = (dir == MCS_RX) ? MCSX_BBE_RX_SLAVE_DFIFO_OVERFLOW_0 : in cn10kb_mcs_bbe_intr_handler()
952 reg = (dir == MCS_RX) ? MCSX_BBE_RX_SLAVE_PLFIFO_OVERFLOW_0 : in cn10kb_mcs_bbe_intr_handler()
965 enum mcs_direction dir) in cn10kb_mcs_pab_intr_handler() argument
1296 reg = (req->dir == MCS_RX) ? MCSX_PEX_RX_SLAVE_CUSTOM_TAGX(idx) : in mcs_get_custom_tag_cfg()
1299 reg = (req->dir == MCS_RX) ? MCSX_PEX_RX_SLAVE_VLAN_CFGX(idx) : in mcs_get_custom_tag_cfg()
1306 reg = (req->dir == MCS_RX) ? MCSX_PEX_RX_SLAVE_ETYPE_ENABLE : in mcs_get_custom_tag_cfg()
1317 rsp->dir = req->dir; in mcs_get_custom_tag_cfg()
1343 if (pn->dir == MCS_RX) in mcs_pn_threshold_set()