Lines Matching full:allocate
286 int bandwidth, bool allocate) in manage_bandwidth() argument
288 int try, new, old = allocate ? BANDWIDTH_AVAILABLE_INITIAL : 0; in manage_bandwidth()
297 new = allocate ? old - bandwidth : old + bandwidth; in manage_bandwidth()
309 return allocate ? -EAGAIN : bandwidth; in manage_bandwidth()
324 u32 channels_mask, u64 offset, bool allocate) in manage_channel() argument
330 old = all = allocate ? cpu_to_be32(~0) : 0; in manage_channel()
349 return allocate ? -EAGAIN : channel; in manage_channel()
389 * fw_iso_resource_manage() - Allocate or deallocate a channel and/or bandwidth
395 * @allocate: whether to allocate (true) or deallocate (false)
397 * In parameters: card, generation, channels_mask, bandwidth, allocate
421 bool allocate) in fw_iso_resource_manage() argument
433 allocate); in fw_iso_resource_manage()
437 allocate); in fw_iso_resource_manage()
443 if (allocate && channels_mask != 0 && c < 0) in fw_iso_resource_manage()
449 ret = manage_bandwidth(card, irm_id, generation, *bandwidth, allocate); in fw_iso_resource_manage()
453 if (allocate && ret < 0) { in fw_iso_resource_manage()