Lines Matching refs:units
76 unsigned int units, prev_offset; in __snd_util_mem_alloc() local
83 units = size; in __snd_util_mem_alloc()
84 if (units & 1) in __snd_util_mem_alloc()
85 units++; in __snd_util_mem_alloc()
86 if (units > hdr->size) in __snd_util_mem_alloc()
93 if (blk->offset - prev_offset >= units) in __snd_util_mem_alloc()
97 if (hdr->size - prev_offset < units) in __snd_util_mem_alloc()
101 return __snd_util_memblk_new(hdr, units, p->prev); in __snd_util_mem_alloc()
110 __snd_util_memblk_new(struct snd_util_memhdr *hdr, unsigned int units, in __snd_util_memblk_new() argument
126 blk->size = units; in __snd_util_memblk_new()
129 hdr->used += units; in __snd_util_memblk_new()