Lines Matching defs:bm
142 bmap_t *bm = v->bitmap;
157 VIDEO->vd_raml = (u_long)bm->hw_address & 0xff;
158 VIDEO->vd_ramm = ((u_long)bm->hw_address >> 8) & 0xff;
159 VIDEO->vd_ramh = ((u_long)bm->hw_address >> 16) & 0xff;
283 bmap_t *bm;
292 bm = alloc_bitmap(mode->size.width, mode->size.height, mode->depth);
293 if (bm) {
299 init_view(v, bm, mode, &box);
302 free_bitmap(bm);
310 init_view(view_t *v, bmap_t *bm, dmode_t *mode, box_t *dbox)
312 v->bitmap = bm;
325 bmap_t *bm;
342 if ((bm = (bmap_t*)alloc_stmem(total_size, &hw_address)) == NULL)
345 bm->plane = (u_char*)bm + sizeof(bmap_t);
346 bm->plane = (u_char*)m68k_round_page(bm->plane);
347 bm->hw_address = (u_char*)hw_address + sizeof(bmap_t);
348 bm->hw_address = (u_char*)m68k_round_page(bm->hw_address);
349 bm->bytes_per_row = (width * depth) / NBBY;
350 bm->rows = height;
351 bm->depth = depth;
352 bm->regs = NULL;
353 bm->hw_regs = NULL;
354 bm->reg_size = 0;
355 bm->phys_mappable = (depth * width * height) / NBBY;
356 bm->lin_base = 0;
357 bm->vga_address = NULL;
358 bm->vga_mappable = 0;
359 bm->vga_base = 0;
361 memset(bm->plane, 0, bm_size);
362 return (bm);
366 free_bitmap(bmap_t *bm)
368 if (bm)
369 free_stmem(bm);