Lines Matching full:allocate
277 int bandwidth, bool allocate) in manage_bandwidth() argument
279 int try, new, old = allocate ? BANDWIDTH_AVAILABLE_INITIAL : 0; in manage_bandwidth()
288 new = allocate ? old - bandwidth : old + bandwidth; in manage_bandwidth()
300 return allocate ? -EAGAIN : bandwidth; in manage_bandwidth()
315 u32 channels_mask, u64 offset, bool allocate) in manage_channel() argument
321 old = all = allocate ? cpu_to_be32(~0) : 0; in manage_channel()
340 return allocate ? -EAGAIN : channel; in manage_channel()
380 * fw_iso_resource_manage() - Allocate or deallocate a channel and/or bandwidth
386 * @allocate: whether to allocate (true) or deallocate (false)
388 * In parameters: card, generation, channels_mask, bandwidth, allocate
412 bool allocate) in fw_iso_resource_manage() argument
424 allocate); in fw_iso_resource_manage()
428 allocate); in fw_iso_resource_manage()
434 if (allocate && channels_mask != 0 && c < 0) in fw_iso_resource_manage()
440 ret = manage_bandwidth(card, irm_id, generation, *bandwidth, allocate); in fw_iso_resource_manage()
444 if (allocate && ret < 0) { in fw_iso_resource_manage()