Lines Matching full:occ

124 	u64 occ;  member
1116 u64 occ = 0; in nsim_nexthop_create() local
1131 occ = 1; in nsim_nexthop_create()
1135 occ += info->nh_grp->nh_entries[i].weight; in nsim_nexthop_create()
1138 occ = info->nh_res_table->num_nh_buckets; in nsim_nexthop_create()
1147 nexthop->occ = occ; in nsim_nexthop_create()
1156 static int nsim_nexthop_account(struct nsim_fib_data *data, u64 occ, in nsim_nexthop_account() argument
1162 for (i = 0; i < occ; i++) in nsim_nexthop_account()
1170 if (WARN_ON(occ > atomic64_read(&data->nexthops.num))) in nsim_nexthop_account()
1172 atomic64_sub(occ, &data->nexthops.num); in nsim_nexthop_account()
1194 for (i = 0; i < nexthop->occ; i++) in nsim_nexthop_hw_flags_set()
1205 err = nsim_nexthop_account(data, nexthop->occ, true, extack); in nsim_nexthop_add()
1221 nsim_nexthop_account(data, nexthop->occ, false, extack); in nsim_nexthop_add()
1233 err = nsim_nexthop_account(data, nexthop->occ, true, extack); in nsim_nexthop_replace()
1246 nsim_nexthop_account(data, nexthop_old->occ, false, extack); in nsim_nexthop_replace()
1252 nsim_nexthop_account(data, nexthop->occ, false, extack); in nsim_nexthop_replace()
1292 nsim_nexthop_account(data, nexthop->occ, false, info->extack); in nsim_nexthop_remove()
1360 nsim_nexthop_account(data, nexthop->occ, false, NULL); in nsim_nexthop_free()
1394 bucket_index >= nexthop->occ) { in nsim_nexthop_bucket_activity_write()
1399 activity = bitmap_zalloc(nexthop->occ, GFP_KERNEL); in nsim_nexthop_bucket_activity_write()
1406 nexthop_res_grp_activity_update(net, nhid, nexthop->occ, activity); in nsim_nexthop_bucket_activity_write()