Lines Matching refs:inf
168 static int sm501_alloc_mem(struct sm501fb_info *inf, struct sm501_mem *mem, in sm501_alloc_mem() argument
178 ptr = inf->fbmem_len - size; in sm501_alloc_mem()
179 inf->fbmem_len = ptr; /* adjust available memory. */ in sm501_alloc_mem()
183 if (size > inf->fbmem_len) in sm501_alloc_mem()
186 ptr = inf->fbmem_len - size; in sm501_alloc_mem()
187 fbi = inf->fb[HEAD_CRT]; in sm501_alloc_mem()
207 fbi = inf->fb[HEAD_PANEL]; in sm501_alloc_mem()
210 end = par->screen.k_addr ? par->screen.sm_addr : inf->fbmem_len; in sm501_alloc_mem()
212 end = inf->fbmem_len; in sm501_alloc_mem()
220 fbi = inf->fb[HEAD_CRT]; in sm501_alloc_mem()
223 fbi = inf->fb[HEAD_PANEL]; in sm501_alloc_mem()
228 end = inf->fbmem_len; in sm501_alloc_mem()
241 mem->k_addr = inf->fbmem + ptr; in sm501_alloc_mem()
243 dev_dbg(inf->dev, "%s: result %08lx, %p - %u, %zd\n", in sm501_alloc_mem()