Lines Matching full:units
63 unsigned int units, prev_offset; in __snd_util_mem_alloc() local
70 units = size; in __snd_util_mem_alloc()
71 if (units & 1) in __snd_util_mem_alloc()
72 units++; in __snd_util_mem_alloc()
73 if (units > hdr->size) in __snd_util_mem_alloc()
80 if (blk->offset - prev_offset >= units) in __snd_util_mem_alloc()
84 if (hdr->size - prev_offset < units) in __snd_util_mem_alloc()
88 return __snd_util_memblk_new(hdr, units, p->prev); in __snd_util_mem_alloc()
97 __snd_util_memblk_new(struct snd_util_memhdr *hdr, unsigned int units, in __snd_util_memblk_new() argument
113 blk->size = units; in __snd_util_memblk_new()
116 hdr->used += units; in __snd_util_memblk_new()