Lines Matching refs:vbios
29 static u32 get_vbios_version(struct loongson_vbios *vbios)
33 minor = vbios->version_minor;
34 major = vbios->version_major;
323 node->data = ((u8 *)ldev->vbios + vb_desc->offset);
346 u8 *vbios = (u8 *)ldev->vbios;
348 WARN_ON(!vbios);
350 desc = (struct vbios_desc *)(vbios + VBIOS_DESC_OFFSET);
801 void *vbios = NULL;
814 vbios = kmalloc(VBIOS_SIZE, GFP_KERNEL);
815 if (!vbios)
819 memcpy(vbios, phys_to_virt(viat->vbios_addr), VBIOS_SIZE);
823 return vbios;
828 void *bios, *vbios = NULL;
837 vbios = kmalloc(VBIOS_SIZE, GFP_KERNEL);
838 if (!vbios)
841 memcpy(vbios, bios, VBIOS_SIZE);
845 if (memcmp(vbios, VBIOS_TITLE, strlen(VBIOS_TITLE))) {
846 kfree(vbios);
852 return vbios;
857 void *vbios = NULL;
860 vbios = get_vbios_from_vram(ldev);
861 if (vbios)
864 vbios = get_vbios_from_acpi(ldev);
865 if (vbios)
868 vbios = kzalloc(256 * 1024, GFP_KERNEL);
869 if (!vbios)
872 header = vbios;
876 header = ldev->vbios = vbios;
891 kfree(ldev->vbios);