Searched refs:tcam (Results 1 - 5 of 5) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/marvell/
H A Dmvpp2.c878 union mvpp2_prs_tcam_entry tcam; member in struct:mvpp2_prs_entry
1007 /* Update parser tcam and sram hw entries */ mvpp2_prs_hw_write()
1016 pe->tcam.word[MVPP2_PRS_TCAM_INV_WORD] &= ~MVPP2_PRS_TCAM_INV_MASK; mvpp2_prs_hw_write()
1018 /* Write tcam index - indirect access */ mvpp2_prs_hw_write()
1021 mvpp2_write(priv, MVPP2_PRS_TCAM_DATA_REG(i), pe->tcam.word[i]); mvpp2_prs_hw_write()
1031 /* Read tcam entry from hw */ mvpp2_prs_hw_read()
1039 /* Write tcam index - indirect access */ mvpp2_prs_hw_read()
1042 pe->tcam.word[MVPP2_PRS_TCAM_INV_WORD] = mvpp2_read(priv, mvpp2_prs_hw_read()
1044 if (pe->tcam.word[MVPP2_PRS_TCAM_INV_WORD] & MVPP2_PRS_TCAM_INV_MASK) mvpp2_prs_hw_read()
1048 pe->tcam.word[i] = mvpp2_read(priv, MVPP2_PRS_TCAM_DATA_REG(i)); mvpp2_prs_hw_read()
1058 /* Invalidate tcam hw entry */ mvpp2_prs_hw_inv()
1082 /* Update lookup field in tcam sw entry */ mvpp2_prs_tcam_lu_set()
1087 pe->tcam.byte[MVPP2_PRS_TCAM_LU_BYTE] = lu; mvpp2_prs_tcam_lu_set()
1088 pe->tcam.byte[enable_off] = MVPP2_PRS_LU_MASK; mvpp2_prs_tcam_lu_set()
1091 /* Update mask for single port in tcam sw entry */ mvpp2_prs_tcam_port_set()
1098 pe->tcam.byte[enable_off] &= ~(1 << port); mvpp2_prs_tcam_port_set()
1100 pe->tcam.byte[enable_off] |= 1 << port; mvpp2_prs_tcam_port_set()
1103 /* Update port map in tcam sw entry */ mvpp2_prs_tcam_port_map_set()
1110 pe->tcam.byte[MVPP2_PRS_TCAM_PORT_BYTE] = 0; mvpp2_prs_tcam_port_map_set()
1111 pe->tcam.byte[enable_off] &= ~port_mask; mvpp2_prs_tcam_port_map_set()
1112 pe->tcam.byte[enable_off] |= ~ports & MVPP2_PRS_PORT_MASK; mvpp2_prs_tcam_port_map_set()
1115 /* Obtain port map from tcam sw entry */ mvpp2_prs_tcam_port_map_get()
1120 return ~(pe->tcam.byte[enable_off]) & MVPP2_PRS_PORT_MASK; mvpp2_prs_tcam_port_map_get()
1123 /* Set byte of data and its enable bits in tcam sw entry */ mvpp2_prs_tcam_data_byte_set()
1128 pe->tcam.byte[MVPP2_PRS_TCAM_DATA_BYTE(offs)] = byte; mvpp2_prs_tcam_data_byte_set()
1129 pe->tcam.byte[MVPP2_PRS_TCAM_DATA_BYTE_EN(offs)] = enable; mvpp2_prs_tcam_data_byte_set()
1132 /* Get byte of data and its enable bits from tcam sw entry */ mvpp2_prs_tcam_data_byte_get()
1137 *byte = pe->tcam.byte[MVPP2_PRS_TCAM_DATA_BYTE(offs)]; mvpp2_prs_tcam_data_byte_get()
1138 *enable = pe->tcam.byte[MVPP2_PRS_TCAM_DATA_BYTE_EN(offs)]; mvpp2_prs_tcam_data_byte_get()
1141 /* Compare tcam data bytes with a pattern */ mvpp2_prs_tcam_data_cmp()
1148 tcam_data = (8 << pe->tcam.byte[off + 1]) | pe->tcam.byte[off]; mvpp2_prs_tcam_data_cmp()
1154 /* Update ai bits in tcam sw entry */ mvpp2_prs_tcam_ai_update()
1166 pe->tcam.byte[ai_idx] |= 1 << i; mvpp2_prs_tcam_ai_update()
1168 pe->tcam.byte[ai_idx] &= ~(1 << i); mvpp2_prs_tcam_ai_update()
1171 pe->tcam.byte[MVPP2_PRS_TCAM_EN_OFFS(ai_idx)] |= enable; mvpp2_prs_tcam_ai_update()
1174 /* Get ai bits from tcam sw entry */ mvpp2_prs_tcam_ai_get()
1177 return pe->tcam.byte[MVPP2_PRS_TCAM_AI_BYTE]; mvpp2_prs_tcam_ai_get()
1180 /* Set ethertype in tcam sw entry */ mvpp2_prs_match_etype()
1264 /* In sram sw entry set lookup ID field of the tcam key to be used in the next
1385 /* Return first free tcam index, seeking from start to end */ mvpp2_prs_tcam_first_free()
1510 /* Update tcam entry data first byte */ mvpp2_prs_mac_multi_set()
1691 /* Get current ai value from tcam */ mvpp2_prs_vlan_find()
1719 /* Create new tcam entry */ mvpp2_prs_vlan_add()
1852 /* Create new tcam entry */ mvpp2_prs_double_vlan_add()
2415 /* Clear tcam data before updating */ mvpp2_prs_etype_init()
2416 pe.tcam.byte[MVPP2_PRS_TCAM_DATA_BYTE(MVPP2_ETH_TYPE_LEN)] = 0x0; mvpp2_prs_etype_init()
2417 pe.tcam.byte[MVPP2_PRS_TCAM_DATA_BYTE_EN(MVPP2_ETH_TYPE_LEN)] = 0x0; mvpp2_prs_etype_init()
2913 /* Enable tcam table */ mvpp2_prs_default_init()
2916 /* Clear all tcam and sram entries */ mvpp2_prs_default_init()
2927 /* Invalidate all tcam entries */ mvpp2_prs_default_init()
2973 /* Compare MAC DA with tcam entry data */ mvpp2_prs_mac_range_equals()
2992 /* Find tcam entry with matched pair <MAC DA, port> */
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/
H A Dhns_dsaf_main.c777 /*write tcam mcast*/ hns_dsaf_tcam_mc_invld()
806 /*read tcam item puls*/ hns_dsaf_tcam_uc_get()
809 /*read tcam data*/ hns_dsaf_tcam_uc_get()
815 /*read tcam mcast*/ hns_dsaf_tcam_uc_get()
854 /*read tcam item puls*/ hns_dsaf_tcam_mc_get()
857 /*read tcam data*/ hns_dsaf_tcam_mc_get()
863 /*read tcam mcast*/ hns_dsaf_tcam_mc_get()
907 /*tcam tbl*/ hns_dsaf_tbl_tcam_init()
1124 /* malloc mem for tcam mac key(vlan+mac) */ hns_dsaf_init()
1213 * @mac_key: tcam key pointer
H A Dhns_dsaf_main.h334 u16 index; /*the entry's index in tcam tab*/
/linux-4.4.14/drivers/net/ethernet/sun/
H A Dniu.c5018 tp = &parent->tcam[index]; niu_set_ip_frag_rule()
7188 tp = &parent->tcam[idx]; niu_get_ethtool_tcam_entry()
7249 /* put the tcam size here */ niu_get_ethtool_tcam_entry()
7265 /* put the tcam size here */ niu_get_ethtool_tcam_all()
7271 tp = &parent->tcam[idx]; niu_get_ethtool_tcam_all()
7524 tp = &parent->tcam[idx]; niu_add_ethtool_tcam_entry()
7528 /* fill in the tcam key and mask */ niu_add_ethtool_tcam_entry()
7608 tp = &parent->tcam[idx]; niu_del_ethtool_tcam_entry()
H A Dniu.h3115 struct niu_tcam_entry tcam[NIU_TCAM_ENTRIES_MAX]; member in struct:rx_pkt_hdr0::niu_parent

Completed in 343 milliseconds