Lines Matching refs:units
75 unsigned int units, prev_offset; in __snd_util_mem_alloc() local
82 units = size; in __snd_util_mem_alloc()
83 if (units & 1) in __snd_util_mem_alloc()
84 units++; in __snd_util_mem_alloc()
85 if (units > hdr->size) in __snd_util_mem_alloc()
92 if (blk->offset - prev_offset >= units) in __snd_util_mem_alloc()
96 if (hdr->size - prev_offset < units) in __snd_util_mem_alloc()
100 return __snd_util_memblk_new(hdr, units, p->prev); in __snd_util_mem_alloc()
109 __snd_util_memblk_new(struct snd_util_memhdr *hdr, unsigned int units, in __snd_util_memblk_new() argument
125 blk->size = units; in __snd_util_memblk_new()
128 hdr->used += units; in __snd_util_memblk_new()