Lines Matching refs:inf
170 static int sm501_alloc_mem(struct sm501fb_info *inf, struct sm501_mem *mem, in sm501_alloc_mem() argument
180 ptr = inf->fbmem_len - size; in sm501_alloc_mem()
181 inf->fbmem_len = ptr; /* adjust available memory. */ in sm501_alloc_mem()
185 if (size > inf->fbmem_len) in sm501_alloc_mem()
188 ptr = inf->fbmem_len - size; in sm501_alloc_mem()
189 fbi = inf->fb[HEAD_CRT]; in sm501_alloc_mem()
209 fbi = inf->fb[HEAD_PANEL]; in sm501_alloc_mem()
212 end = par->screen.k_addr ? par->screen.sm_addr : inf->fbmem_len; in sm501_alloc_mem()
214 end = inf->fbmem_len; in sm501_alloc_mem()
222 fbi = inf->fb[HEAD_CRT]; in sm501_alloc_mem()
225 fbi = inf->fb[HEAD_PANEL]; in sm501_alloc_mem()
230 end = inf->fbmem_len; in sm501_alloc_mem()
243 mem->k_addr = inf->fbmem + ptr; in sm501_alloc_mem()
245 dev_dbg(inf->dev, "%s: result %08lx, %p - %u, %zd\n", in sm501_alloc_mem()