Lines Matching refs:tcam
2540 struct cudbg_mps_tcam *tcam, u32 idx) in cudbg_collect_tcam_index() argument
2566 tcam->lookup_type = DATALKPTYPE_G(data2); in cudbg_collect_tcam_index()
2572 if (tcam->lookup_type && tcam->lookup_type != DATALKPTYPE_M) { in cudbg_collect_tcam_index()
2574 tcam->vniy = (data2 & DATAVIDH2_F) | DATAVIDH1_G(data2); in cudbg_collect_tcam_index()
2575 tcam->vniy = (tcam->vniy << 16) | VIDL_G(val); in cudbg_collect_tcam_index()
2576 tcam->dip_hit = data2 & DATADIPHIT_F; in cudbg_collect_tcam_index()
2578 tcam->vlan_vld = data2 & DATAVIDH2_F; in cudbg_collect_tcam_index()
2579 tcam->ivlan = VIDL_G(val); in cudbg_collect_tcam_index()
2582 tcam->port_num = DATAPORTNUM_G(data2); in cudbg_collect_tcam_index()
2591 if (tcam->lookup_type && tcam->lookup_type != DATALKPTYPE_M) { in cudbg_collect_tcam_index()
2593 tcam->vnix = (data2 & DATAVIDH2_F) | DATAVIDH1_G(data2); in cudbg_collect_tcam_index()
2594 tcam->vnix = (tcam->vnix << 16) | VIDL_G(val); in cudbg_collect_tcam_index()
2605 tcam->cls_lo = t4_read_reg(padap, MPS_CLS_SRAM_L(idx)); in cudbg_collect_tcam_index()
2606 tcam->cls_hi = t4_read_reg(padap, MPS_CLS_SRAM_H(idx)); in cudbg_collect_tcam_index()
2609 tcam->repli = (tcam->cls_lo & REPLICATE_F); in cudbg_collect_tcam_index()
2611 tcam->repli = (tcam->cls_lo & T6_REPLICATE_F); in cudbg_collect_tcam_index()
2613 if (tcam->repli) { in cudbg_collect_tcam_index()
2644 tcam->rplc[0] = ntohl(mps_rplc.rplc31_0); in cudbg_collect_tcam_index()
2645 tcam->rplc[1] = ntohl(mps_rplc.rplc63_32); in cudbg_collect_tcam_index()
2646 tcam->rplc[2] = ntohl(mps_rplc.rplc95_64); in cudbg_collect_tcam_index()
2647 tcam->rplc[3] = ntohl(mps_rplc.rplc127_96); in cudbg_collect_tcam_index()
2649 tcam->rplc[4] = ntohl(mps_rplc.rplc159_128); in cudbg_collect_tcam_index()
2650 tcam->rplc[5] = ntohl(mps_rplc.rplc191_160); in cudbg_collect_tcam_index()
2651 tcam->rplc[6] = ntohl(mps_rplc.rplc223_192); in cudbg_collect_tcam_index()
2652 tcam->rplc[7] = ntohl(mps_rplc.rplc255_224); in cudbg_collect_tcam_index()
2655 cudbg_tcamxy2valmask(tcamx, tcamy, tcam->addr, &tcam->mask); in cudbg_collect_tcam_index()
2656 tcam->idx = idx; in cudbg_collect_tcam_index()
2657 tcam->rplc_size = padap->params.arch.mps_rplc_size; in cudbg_collect_tcam_index()
2668 struct cudbg_mps_tcam *tcam; in cudbg_collect_mps_tcam() local
2677 tcam = (struct cudbg_mps_tcam *)temp_buff.data; in cudbg_collect_mps_tcam()
2679 rc = cudbg_collect_tcam_index(pdbg_init, tcam, i); in cudbg_collect_mps_tcam()
2686 tcam++; in cudbg_collect_mps_tcam()