Lines Matching defs:raw
163 .font_start_addr = (void *)STI_PTR(font->raw),
567 cooked_font->raw = nf;
586 unsigned char *p = (unsigned char *)font->raw;
591 font->raw->bytes_per_char);
593 for (n = 0; n < 256 * font->raw->bytes_per_char; n += 16, p += 16) {
609 if ((font->raw->width == width) &&
610 (font->raw->height == height))
645 struct sti_rom *rom = sti->rom->raw;
665 struct sti_rom_font *f = font_start->raw;
690 cooked_font->raw = raw_font;
701 cooked_font->raw = raw_font;
714 int size = f->raw->bytes_per_char * (f->raw->last_char + 1) + sizeof(struct sti_rom_font);
726 q = (unsigned char *) f->raw;
732 f->raw = (struct sti_rom_font *) (n + 3);
754 struct sti_rom *raw;
761 raw = kmalloc(size, STI_LOWMEM);
762 if (raw) {
763 sti_bmode_rom_copy(address, size, raw);
764 memmove (&raw->res004, &raw->type[0], 0x3c);
765 raw->type[3] = raw->res004;
767 BMODE_RELOCATE (raw->region_list);
768 BMODE_RELOCATE (raw->font_start);
770 BMODE_RELOCATE (raw->init_graph);
771 BMODE_RELOCATE (raw->state_mgmt);
772 BMODE_RELOCATE (raw->font_unpmv);
773 BMODE_RELOCATE (raw->block_move);
774 BMODE_RELOCATE (raw->inq_conf);
776 raw_font = ((void *)raw) + raw->font_start;
784 return raw;
789 struct sti_rom *raw;
795 raw = kmalloc(size, STI_LOWMEM);
796 if (raw)
797 sti_rom_copy(address, size, raw);
799 return raw;
806 struct sti_rom *raw = NULL;
814 raw = sti_get_wmode_rom (address);
816 raw = sti_get_bmode_rom (address);
818 if (!raw)
821 if (!sti_cook_fonts(cooked, raw)) {
826 if (raw->region_list)
827 memcpy(sti->regions, ((void *)raw)+raw->region_list, sizeof(sti->regions));
829 address = (unsigned long) STI_PTR(raw);
833 raw->alt_code_type == ALT_CODE_TYPE_PA_RISC_64
837 raw->alt_code_type == ALT_CODE_TYPE_PA_RISC_64) {
839 sti->font_unpmv = address + (raw->font_unp_addr & 0x03ffffff);
840 sti->block_move = address + (raw->block_move_addr & 0x03ffffff);
841 sti->init_graph = address + (raw->init_graph_addr & 0x03ffffff);
842 sti->inq_conf = address + (raw->inq_conf_addr & 0x03ffffff);
844 sti->font_unpmv = address + (raw->font_unpmv & 0x03ffffff);
845 sti->block_move = address + (raw->block_move & 0x03ffffff);
846 sti->init_graph = address + (raw->init_graph & 0x03ffffff);
847 sti->inq_conf = address + (raw->inq_conf & 0x03ffffff);
851 sti->rom->raw = raw;
856 sti->font->width = sti->font->raw->width;
857 sti->font->height = sti->font->raw->height;
864 sti->sti_mem_request = raw->sti_mem_req;
866 sti->sti_mem_request, raw->reentsize);
868 sti->graphics_id[0] = raw->graphics_id[0];
869 sti->graphics_id[1] = raw->graphics_id[1];
875 revno = (raw->revno[0] << 8) | raw->revno[1];
900 kfree(raw);