Lines Matching refs:tcam
2108 struct cudbg_mps_tcam *tcam, u32 idx) in cudbg_collect_tcam_index() argument
2134 tcam->lookup_type = DATALKPTYPE_G(data2); in cudbg_collect_tcam_index()
2140 if (tcam->lookup_type && tcam->lookup_type != DATALKPTYPE_M) { in cudbg_collect_tcam_index()
2142 tcam->vniy = (data2 & DATAVIDH2_F) | DATAVIDH1_G(data2); in cudbg_collect_tcam_index()
2143 tcam->vniy = (tcam->vniy << 16) | VIDL_G(val); in cudbg_collect_tcam_index()
2144 tcam->dip_hit = data2 & DATADIPHIT_F; in cudbg_collect_tcam_index()
2146 tcam->vlan_vld = data2 & DATAVIDH2_F; in cudbg_collect_tcam_index()
2147 tcam->ivlan = VIDL_G(val); in cudbg_collect_tcam_index()
2150 tcam->port_num = DATAPORTNUM_G(data2); in cudbg_collect_tcam_index()
2159 if (tcam->lookup_type && tcam->lookup_type != DATALKPTYPE_M) { in cudbg_collect_tcam_index()
2161 tcam->vnix = (data2 & DATAVIDH2_F) | DATAVIDH1_G(data2); in cudbg_collect_tcam_index()
2162 tcam->vnix = (tcam->vnix << 16) | VIDL_G(val); in cudbg_collect_tcam_index()
2173 tcam->cls_lo = t4_read_reg(padap, MPS_CLS_SRAM_L(idx)); in cudbg_collect_tcam_index()
2174 tcam->cls_hi = t4_read_reg(padap, MPS_CLS_SRAM_H(idx)); in cudbg_collect_tcam_index()
2177 tcam->repli = (tcam->cls_lo & REPLICATE_F); in cudbg_collect_tcam_index()
2179 tcam->repli = (tcam->cls_lo & T6_REPLICATE_F); in cudbg_collect_tcam_index()
2181 if (tcam->repli) { in cudbg_collect_tcam_index()
2212 tcam->rplc[0] = ntohl(mps_rplc.rplc31_0); in cudbg_collect_tcam_index()
2213 tcam->rplc[1] = ntohl(mps_rplc.rplc63_32); in cudbg_collect_tcam_index()
2214 tcam->rplc[2] = ntohl(mps_rplc.rplc95_64); in cudbg_collect_tcam_index()
2215 tcam->rplc[3] = ntohl(mps_rplc.rplc127_96); in cudbg_collect_tcam_index()
2217 tcam->rplc[4] = ntohl(mps_rplc.rplc159_128); in cudbg_collect_tcam_index()
2218 tcam->rplc[5] = ntohl(mps_rplc.rplc191_160); in cudbg_collect_tcam_index()
2219 tcam->rplc[6] = ntohl(mps_rplc.rplc223_192); in cudbg_collect_tcam_index()
2220 tcam->rplc[7] = ntohl(mps_rplc.rplc255_224); in cudbg_collect_tcam_index()
2223 cudbg_tcamxy2valmask(tcamx, tcamy, tcam->addr, &tcam->mask); in cudbg_collect_tcam_index()
2224 tcam->idx = idx; in cudbg_collect_tcam_index()
2225 tcam->rplc_size = padap->params.arch.mps_rplc_size; in cudbg_collect_tcam_index()
2236 struct cudbg_mps_tcam *tcam; in cudbg_collect_mps_tcam() local
2245 tcam = (struct cudbg_mps_tcam *)temp_buff.data; in cudbg_collect_mps_tcam()
2247 rc = cudbg_collect_tcam_index(pdbg_init, tcam, i); in cudbg_collect_mps_tcam()
2254 tcam++; in cudbg_collect_mps_tcam()