Lines Matching refs:region
131 static void crisv32_arbiter_config(int arbiter, int region, int unused_slots) in crisv32_arbiter_config() argument
168 if (!arbiters[arbiter].requested_slots[region][client]) { in crisv32_arbiter_config()
174 if (!arbiters[arbiter].active_clients[region][client] || in crisv32_arbiter_config()
184 arbiters[arbiter].requested_slots[region][client]; in crisv32_arbiter_config()
207 while (!arbiters[arbiter].active_clients[region][client]) { in crisv32_arbiter_config()
217 if (region == EXT_REGION) in crisv32_arbiter_config()
220 else if (region == INT_REGION) in crisv32_arbiter_config()
285 int crisv32_arbiter_allocate_bandwidth(int client, int region, in crisv32_arbiter_allocate_bandwidth() argument
302 total_assigned += arbiters[arbiter].requested_slots[region][i]; in crisv32_arbiter_allocate_bandwidth()
303 total_clients += arbiters[arbiter].active_clients[region][i]; in crisv32_arbiter_allocate_bandwidth()
308 ? 0 : NBR_OF_SLOTS / (max_bandwidth[region] / bandwidth); in crisv32_arbiter_allocate_bandwidth()
321 arbiters[arbiter].active_clients[region][client] = 1; in crisv32_arbiter_allocate_bandwidth()
322 arbiters[arbiter].requested_slots[region][client] = req; in crisv32_arbiter_allocate_bandwidth()
323 crisv32_arbiter_config(arbiter, region, NBR_OF_SLOTS - total_assigned); in crisv32_arbiter_allocate_bandwidth()
344 void crisv32_arbiter_deallocate_bandwidth(int client, int region) in crisv32_arbiter_deallocate_bandwidth() argument
353 arbiters[arbiter].requested_slots[region][client] = 0; in crisv32_arbiter_deallocate_bandwidth()
354 arbiters[arbiter].active_clients[region][client] = 0; in crisv32_arbiter_deallocate_bandwidth()
357 total_assigned += arbiters[arbiter].requested_slots[region][i]; in crisv32_arbiter_deallocate_bandwidth()
359 crisv32_arbiter_config(arbiter, region, NBR_OF_SLOTS - total_assigned); in crisv32_arbiter_deallocate_bandwidth()