Lines Matching defs:bm
307 bmap_t *bm;
323 bm = v->bitmap;
324 VIDEO->vd_ramh = ((u_long)bm->hw_address >> 16) & 0xff;
325 VIDEO->vd_ramm = ((u_long)bm->hw_address >> 8) & 0xff;
326 VIDEO->vd_raml = (u_long)bm->hw_address & 0xff;
511 bmap_t *bm;
520 bm = alloc_bitmap(mode->size.width, mode->size.height, mode->depth);
521 if (bm) {
527 init_view(v, bm, mode, &box);
530 free_bitmap(bm);
538 init_view(view_t *v, bmap_t *bm, dmode_t *mode, box_t *dbox)
540 v->bitmap = bm;
553 bmap_t *bm;
570 if ((bm = (bmap_t*)alloc_stmem(total_size, &hw_address)) == NULL)
573 bm->plane = (u_char*)bm + sizeof(bmap_t);
574 bm->plane = (u_char*)m68k_round_page(bm->plane);
575 bm->hw_address = (u_char*)hw_address + sizeof(bmap_t);
576 bm->hw_address = (u_char*)m68k_round_page(bm->hw_address);
577 bm->bytes_per_row = (width * depth) / NBBY;
578 bm->rows = height;
579 bm->depth = depth;
580 bm->phys_mappable = (depth * width * height) / NBBY;
581 bm->regs = NULL;
582 bm->hw_regs = NULL;
583 bm->reg_size = 0;
584 bm->vga_address = NULL;
585 bm->vga_mappable = 0;
586 bm->lin_base = 0;
587 bm->vga_base = 0;
589 memset(bm->plane, 0, bm_size);
590 return (bm);
594 free_bitmap(bmap_t *bm)
596 if (bm)
597 free_stmem(bm);