Lines Matching refs:size
45 hdr->size = memsize; in snd_util_memhdr_new()
73 __snd_util_mem_alloc(struct snd_util_memhdr *hdr, int size) in __snd_util_mem_alloc() argument
79 if (snd_BUG_ON(!hdr || size <= 0)) in __snd_util_mem_alloc()
83 units = size; in __snd_util_mem_alloc()
86 if (units > hdr->size) in __snd_util_mem_alloc()
95 prev_offset = blk->offset + blk->size; in __snd_util_mem_alloc()
97 if (hdr->size - prev_offset < units) in __snd_util_mem_alloc()
124 blk->offset = p->offset + p->size; in __snd_util_memblk_new()
126 blk->size = units; in __snd_util_memblk_new()
138 snd_util_mem_alloc(struct snd_util_memhdr *hdr, int size) in snd_util_mem_alloc() argument
142 blk = __snd_util_mem_alloc(hdr, size); in snd_util_mem_alloc()
157 hdr->used -= blk->size; in __snd_util_mem_free()
180 unsigned int size; in snd_util_mem_avail() local
182 size = hdr->size - hdr->used; in snd_util_mem_avail()
184 return size; in snd_util_mem_avail()