Lines Matching refs:tcam_region
2378 static int cudbg_get_le_type(u32 tid, struct cudbg_tcam tcam_region) in cudbg_get_le_type() argument
2382 if (tid < tcam_region.server_start) in cudbg_get_le_type()
2384 else if (tid < tcam_region.filter_start) in cudbg_get_le_type()
2386 else if (tid < tcam_region.clip_start) in cudbg_get_le_type()
2388 else if (tid < tcam_region.routing_start) in cudbg_get_le_type()
2390 else if (tid < tcam_region.tid_hash_base) in cudbg_get_le_type()
2392 else if (tid < tcam_region.max_tid) in cudbg_get_le_type()
2401 struct cudbg_tcam tcam_region) in cudbg_is_ipv6_entry() argument
2406 le_type = cudbg_get_le_type(tid_data->tid, tcam_region); in cudbg_is_ipv6_entry()
2423 struct cudbg_tcam *tcam_region) in cudbg_fill_le_tcam_info() argument
2429 tcam_region->tid_hash_base = value; in cudbg_fill_le_tcam_info()
2433 tcam_region->routing_start = value; in cudbg_fill_le_tcam_info()
2440 tcam_region->clip_start = value; in cudbg_fill_le_tcam_info()
2444 tcam_region->filter_start = value; in cudbg_fill_le_tcam_info()
2448 tcam_region->server_start = value; in cudbg_fill_le_tcam_info()
2455 tcam_region->max_tid = (value & 0xFFFFF) + in cudbg_fill_le_tcam_info()
2456 tcam_region->tid_hash_base; in cudbg_fill_le_tcam_info()
2460 tcam_region->max_tid = value + in cudbg_fill_le_tcam_info()
2461 tcam_region->tid_hash_base; in cudbg_fill_le_tcam_info()
2465 tcam_region->max_tid = (value & ASLIPCOMPEN_F) ? in cudbg_fill_le_tcam_info()
2469 tcam_region->max_tid = CUDBG_MAX_TCAM_TID; in cudbg_fill_le_tcam_info()
2473 tcam_region->max_tid += CUDBG_T6_CLIP; in cudbg_fill_le_tcam_info()
2482 struct cudbg_tcam tcam_region = { 0 }; in cudbg_collect_le_tcam() local
2488 cudbg_fill_le_tcam_info(padap, &tcam_region); in cudbg_collect_le_tcam()
2490 size = sizeof(struct cudbg_tid_data) * tcam_region.max_tid; in cudbg_collect_le_tcam()
2496 memcpy(temp_buff.data, &tcam_region, sizeof(struct cudbg_tcam)); in cudbg_collect_le_tcam()
2500 for (i = 0; i < tcam_region.max_tid; ) { in cudbg_collect_le_tcam()
2505 tcam_region.max_tid = i; in cudbg_collect_le_tcam()
2506 memcpy(temp_buff.data, &tcam_region, in cudbg_collect_le_tcam()
2511 if (cudbg_is_ipv6_entry(tid_data, tcam_region)) { in cudbg_collect_le_tcam()
2514 i >= tcam_region.clip_start && in cudbg_collect_le_tcam()
2515 i < tcam_region.clip_start + CUDBG_T6_CLIP) in cudbg_collect_le_tcam()