Lines Matching refs:masks_and_count
1108 struct mask_count *masks_and_count; in ovs_flow_masks_rebalance() local
1114 masks_and_count = kmalloc_array(ma->max, sizeof(*masks_and_count), in ovs_flow_masks_rebalance()
1116 if (!masks_and_count) in ovs_flow_masks_rebalance()
1127 masks_and_count[i].index = i; in ovs_flow_masks_rebalance()
1128 masks_and_count[i].counter = 0; in ovs_flow_masks_rebalance()
1141 masks_and_count[i].counter += counter; in ovs_flow_masks_rebalance()
1145 masks_and_count[i].counter -= ma->masks_usage_zero_cntr[i]; in ovs_flow_masks_rebalance()
1150 ma->masks_usage_zero_cntr[i] += masks_and_count[i].counter; in ovs_flow_masks_rebalance()
1158 sort(masks_and_count, masks_entries, sizeof(*masks_and_count), in ovs_flow_masks_rebalance()
1163 if (i != masks_and_count[i].index) in ovs_flow_masks_rebalance()
1175 int index = masks_and_count[i].index; in ovs_flow_masks_rebalance()
1185 kfree(masks_and_count); in ovs_flow_masks_rebalance()