Lines Matching refs:bmap_entries
488 if (is_npc_intf_rx(intf) && actindex < mcam->bmap_entries) in npc_config_mcam_entry()
958 for (index = 0; index < mcam->bmap_entries; index++) { in npc_update_vf_flow_entry()
1884 mcam->bmap_entries = mcam->total_entries - rsvd; in npc_mcam_rsrcs_init()
1885 mcam->nixlf_offset = mcam->bmap_entries; in npc_mcam_rsrcs_init()
1889 mcam->bmap = bitmap_zalloc(mcam->bmap_entries, GFP_KERNEL); in npc_mcam_rsrcs_init()
1893 mcam->bmap_reverse = bitmap_zalloc(mcam->bmap_entries, GFP_KERNEL); in npc_mcam_rsrcs_init()
1897 mcam->bmap_fcnt = mcam->bmap_entries; in npc_mcam_rsrcs_init()
1900 mcam->entry2pfvf_map = kcalloc(mcam->bmap_entries, sizeof(u16), in npc_mcam_rsrcs_init()
1910 mcam->lprio_count = mcam->bmap_entries / 8; in npc_mcam_rsrcs_init()
1914 mcam->lprio_start = mcam->bmap_entries - mcam->lprio_count; in npc_mcam_rsrcs_init()
1933 mcam->entry2cntr_map = kcalloc(mcam->bmap_entries, sizeof(u16), in npc_mcam_rsrcs_init()
1949 for (index = 0; index < mcam->bmap_entries; index++) { in npc_mcam_rsrcs_init()
2201 for (entry = 0; entry < mcam->bmap_entries; entry++) { in rvu_npc_get_mcam_entry_alloc_info()
2238 if (entry >= mcam->bmap_entries) in npc_mcam_verify_entry()
2302 rentry = mcam->bmap_entries - index - 1; in npc_mcam_set_bit()
2318 rentry = mcam->bmap_entries - index - 1; in npc_mcam_clear_bit()
2331 for (index = 0; index < mcam->bmap_entries; index++) { in npc_mcam_free_all_entries()
2450 *end = mcam->bmap_entries; in npc_get_mcam_search_range_priority()
2456 mcam->hprio_end, mcam->bmap_entries); in npc_get_mcam_search_range_priority()
2547 mcam->bmap_entries); in npc_mcam_alloc_entries()
2560 end = mcam->bmap_entries - (mcam->lprio_count / 2); in npc_mcam_alloc_entries()
2569 end = mcam->bmap_entries; in npc_mcam_alloc_entries()
2587 start = mcam->bmap_entries - start; in npc_mcam_alloc_entries()
2588 end = mcam->bmap_entries - end; in npc_mcam_alloc_entries()
2602 rsp->entry = mcam->bmap_entries - index - max_contig; in npc_mcam_alloc_entries()
2620 index = mcam->bmap_entries - index - 1; in npc_mcam_alloc_entries()
2630 ((end - start) != mcam->bmap_entries)) { in npc_mcam_alloc_entries()
2633 end = mcam->bmap_entries; in npc_mcam_alloc_entries()
2644 end = mcam->bmap_entries; in npc_mcam_alloc_entries()
2712 if (req->ref_entry > mcam->bmap_entries) in rvu_mbox_handler_npc_mcam_alloc_entry()
2713 req->ref_entry = mcam->bmap_entries; in rvu_mbox_handler_npc_mcam_alloc_entry()
2719 ((req->ref_entry == mcam->bmap_entries) && in rvu_mbox_handler_npc_mcam_alloc_entry()
3065 while (entry < mcam->bmap_entries) { in rvu_mbox_handler_npc_mcam_free_counter()
3069 index = find_next_bit(mcam->bmap, mcam->bmap_entries, entry); in rvu_mbox_handler_npc_mcam_free_counter()
3070 if (index >= mcam->bmap_entries) in rvu_mbox_handler_npc_mcam_free_counter()
3111 while (entry < mcam->bmap_entries) { in rvu_mbox_handler_npc_mcam_unmap_counter()
3115 index = find_next_bit(mcam->bmap, mcam->bmap_entries, entry); in rvu_mbox_handler_npc_mcam_unmap_counter()
3116 if (index >= mcam->bmap_entries) in rvu_mbox_handler_npc_mcam_unmap_counter()
3421 for (index = 0; index < mcam->bmap_entries; index++) { in rvu_mbox_handler_npc_read_base_steer_rule()