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