Lines Matching refs:pblock
31 struct snd_gf1_mem_block *pblock, *nblock; in snd_gf1_mem_xalloc() local
43 pblock = alloc->first; in snd_gf1_mem_xalloc()
44 while (pblock) { in snd_gf1_mem_xalloc()
45 if (pblock->ptr > nblock->ptr) { in snd_gf1_mem_xalloc()
46 nblock->prev = pblock->prev; in snd_gf1_mem_xalloc()
47 nblock->next = pblock; in snd_gf1_mem_xalloc()
48 pblock->prev = nblock; in snd_gf1_mem_xalloc()
49 if (pblock == alloc->first) in snd_gf1_mem_xalloc()
56 pblock = pblock->next; in snd_gf1_mem_xalloc()
135 struct snd_gf1_mem_block *pblock; in snd_gf1_mem_find() local
147 for (pblock = alloc->first, idx = 0; pblock; pblock = pblock->next) { in snd_gf1_mem_find()
148 while (pblock->ptr >= (boundary = info[idx].address + info[idx].size)) in snd_gf1_mem_find()
150 while (pblock->ptr + pblock->size >= (boundary = info[idx].address + info[idx].size)) in snd_gf1_mem_find()
153 if (pblock->next) { in snd_gf1_mem_find()
154 if (pblock->ptr + pblock->size == pblock->next->ptr) in snd_gf1_mem_find()
156 if (pblock->next->ptr < boundary) in snd_gf1_mem_find()
157 ptr2 = pblock->next->ptr; in snd_gf1_mem_find()
159 ptr1 = ALIGN(pblock->ptr + pblock->size, align); in snd_gf1_mem_find()