Lines Matching refs:occ

121 	u64 occ;  member
1101 u64 occ = 0; in nsim_nexthop_create() local
1116 occ = 1; in nsim_nexthop_create()
1120 occ += info->nh_grp->nh_entries[i].weight; in nsim_nexthop_create()
1123 occ = info->nh_res_table->num_nh_buckets; in nsim_nexthop_create()
1132 nexthop->occ = occ; in nsim_nexthop_create()
1141 static int nsim_nexthop_account(struct nsim_fib_data *data, u64 occ, in nsim_nexthop_account() argument
1147 for (i = 0; i < occ; i++) in nsim_nexthop_account()
1155 if (WARN_ON(occ > atomic64_read(&data->nexthops.num))) in nsim_nexthop_account()
1157 atomic64_sub(occ, &data->nexthops.num); in nsim_nexthop_account()
1179 for (i = 0; i < nexthop->occ; i++) in nsim_nexthop_hw_flags_set()
1190 err = nsim_nexthop_account(data, nexthop->occ, true, extack); in nsim_nexthop_add()
1206 nsim_nexthop_account(data, nexthop->occ, false, extack); in nsim_nexthop_add()
1218 err = nsim_nexthop_account(data, nexthop->occ, true, extack); in nsim_nexthop_replace()
1231 nsim_nexthop_account(data, nexthop_old->occ, false, extack); in nsim_nexthop_replace()
1237 nsim_nexthop_account(data, nexthop->occ, false, extack); in nsim_nexthop_replace()
1277 nsim_nexthop_account(data, nexthop->occ, false, info->extack); in nsim_nexthop_remove()
1345 nsim_nexthop_account(data, nexthop->occ, false, NULL); in nsim_nexthop_free()
1377 bucket_index >= nexthop->occ) { in nsim_nexthop_bucket_activity_write()
1382 activity = bitmap_zalloc(nexthop->occ, GFP_KERNEL); in nsim_nexthop_bucket_activity_write()
1389 nexthop_res_grp_activity_update(net, nhid, nexthop->occ, activity); in nsim_nexthop_bucket_activity_write()