Lines Matching full:allocate
205 int bandwidth, bool allocate) in manage_bandwidth() argument
207 int try, new, old = allocate ? BANDWIDTH_AVAILABLE_INITIAL : 0; in manage_bandwidth()
216 new = allocate ? old - bandwidth : old + bandwidth; in manage_bandwidth()
228 return allocate ? -EAGAIN : bandwidth; in manage_bandwidth()
243 u32 channels_mask, u64 offset, bool allocate) in manage_channel() argument
249 old = all = allocate ? cpu_to_be32(~0) : 0; in manage_channel()
268 return allocate ? -EAGAIN : channel; in manage_channel()
308 * fw_iso_resource_manage() - Allocate or deallocate a channel and/or bandwidth
314 * @allocate: whether to allocate (true) or deallocate (false)
316 * In parameters: card, generation, channels_mask, bandwidth, allocate
340 bool allocate) in fw_iso_resource_manage() argument
353 allocate); in fw_iso_resource_manage()
357 allocate); in fw_iso_resource_manage()
363 if (allocate && channels_mask != 0 && c < 0) in fw_iso_resource_manage()
369 ret = manage_bandwidth(card, irm_id, generation, *bandwidth, allocate); in fw_iso_resource_manage()
373 if (allocate && ret < 0) { in fw_iso_resource_manage()