Lines Matching refs:allocate
212 int bandwidth, bool allocate) in manage_bandwidth() argument
214 int try, new, old = allocate ? BANDWIDTH_AVAILABLE_INITIAL : 0; in manage_bandwidth()
223 new = allocate ? old - bandwidth : old + bandwidth; in manage_bandwidth()
235 return allocate ? -EAGAIN : bandwidth; in manage_bandwidth()
250 u32 channels_mask, u64 offset, bool allocate) in manage_channel() argument
256 old = all = allocate ? cpu_to_be32(~0) : 0; in manage_channel()
275 return allocate ? -EAGAIN : channel; in manage_channel()
347 bool allocate) in fw_iso_resource_manage() argument
360 allocate); in fw_iso_resource_manage()
364 allocate); in fw_iso_resource_manage()
370 if (allocate && channels_mask != 0 && c < 0) in fw_iso_resource_manage()
376 ret = manage_bandwidth(card, irm_id, generation, *bandwidth, allocate); in fw_iso_resource_manage()
380 if (allocate && ret < 0) { in fw_iso_resource_manage()