bios 862 arch/x86/kernel/apm_32.c clock_slowed = (apm_info.bios.flags & APM_IDLE_SLOWS_CLOCK) != 0; bios 1005 arch/x86/kernel/apm_32.c if ((enable == 0) && (apm_info.bios.flags & APM_BIOS_DISENGAGED)) bios 1011 arch/x86/kernel/apm_32.c apm_info.bios.flags &= ~APM_BIOS_DISABLED; bios 1013 arch/x86/kernel/apm_32.c apm_info.bios.flags |= APM_BIOS_DISABLED; bios 1101 arch/x86/kernel/apm_32.c && (apm_info.bios.flags & APM_BIOS_DISABLED)) bios 1108 arch/x86/kernel/apm_32.c apm_info.bios.flags &= ~APM_BIOS_DISENGAGED; bios 1110 arch/x86/kernel/apm_32.c apm_info.bios.flags |= APM_BIOS_DISENGAGED; bios 1703 arch/x86/kernel/apm_32.c (apm_info.bios.version >> 8) & 0xff, bios 1704 arch/x86/kernel/apm_32.c apm_info.bios.version & 0xff, bios 1705 arch/x86/kernel/apm_32.c apm_info.bios.flags, bios 1735 arch/x86/kernel/apm_32.c apm_info.connection_version = apm_info.bios.version; bios 1757 arch/x86/kernel/apm_32.c if (apm_info.bios.flags & APM_BIOS_DISABLED) { bios 1771 arch/x86/kernel/apm_32.c if ((apm_info.bios.flags & APM_BIOS_DISENGAGED) bios 2259 arch/x86/kernel/apm_32.c if (apm_info.bios.version == 0 || machine_is_olpc()) { bios 2265 arch/x86/kernel/apm_32.c ((apm_info.bios.version >> 8) & 0xff), bios 2266 arch/x86/kernel/apm_32.c (apm_info.bios.version & 0xff), bios 2267 arch/x86/kernel/apm_32.c apm_info.bios.flags, bios 2269 arch/x86/kernel/apm_32.c if ((apm_info.bios.flags & APM_32_BIT_SUPPORT) == 0) { bios 2288 arch/x86/kernel/apm_32.c if (apm_info.bios.version == 0x001) bios 2289 arch/x86/kernel/apm_32.c apm_info.bios.version = 0x100; bios 2292 arch/x86/kernel/apm_32.c if (apm_info.bios.version < 0x102) bios 2293 arch/x86/kernel/apm_32.c apm_info.bios.cseg_16_len = 0; /* 64k */ bios 2297 arch/x86/kernel/apm_32.c apm_info.bios.cseg, apm_info.bios.offset, bios 2298 arch/x86/kernel/apm_32.c apm_info.bios.cseg_16, apm_info.bios.dseg); bios 2299 arch/x86/kernel/apm_32.c if (apm_info.bios.version > 0x100) bios 2301 arch/x86/kernel/apm_32.c apm_info.bios.cseg_len, bios 2302 arch/x86/kernel/apm_32.c apm_info.bios.dseg_len); bios 2303 arch/x86/kernel/apm_32.c if (apm_info.bios.version > 0x101) bios 2304 arch/x86/kernel/apm_32.c printk(" cseg16 len %x", apm_info.bios.cseg_16_len); bios 2327 arch/x86/kernel/apm_32.c apm_bios_entry.offset = apm_info.bios.offset; bios 2342 arch/x86/kernel/apm_32.c (unsigned long)__va((unsigned long)apm_info.bios.cseg << 4)); bios 2344 arch/x86/kernel/apm_32.c (unsigned long)__va((unsigned long)apm_info.bios.cseg_16 << 4)); bios 2346 arch/x86/kernel/apm_32.c (unsigned long)__va((unsigned long)apm_info.bios.dseg << 4)); bios 2393 arch/x86/kernel/apm_32.c if (((apm_info.bios.flags & APM_BIOS_DISENGAGED) == 0) bios 907 arch/x86/kernel/setup.c apm_info.bios = boot_params.apm_bios_info; bios 100 arch/x86/platform/geode/net5501.c unsigned char *rombase, *bios; bios 109 arch/x86/platform/geode/net5501.c bios = rombase + 0x20; /* null terminated */ bios 111 arch/x86/platform/geode/net5501.c if (memcmp(bios, "comBIOS", 7)) bios 94 arch/x86/platform/ts5500/ts5500.c void __iomem *bios; bios 97 arch/x86/platform/ts5500/ts5500.c bios = ioremap(0xf0000, 0x10000); bios 98 arch/x86/platform/ts5500/ts5500.c if (!bios) bios 102 arch/x86/platform/ts5500/ts5500.c if (check_signature(bios + ts5500_signatures[i].offset, bios 110 arch/x86/platform/ts5500/ts5500.c iounmap(bios); bios 124 block/blk-cgroup.c struct bio_list bios = BIO_EMPTY_LIST; bios 129 block/blk-cgroup.c bio_list_merge(&bios, &blkg->async_bios); bios 133 block/blk-cgroup.c while ((bio = bio_list_pop(&bios))) bios 69 block/blk-throttle.c struct bio_list bios; /* queued bios */ bios 392 block/blk-throttle.c bio_list_init(&qn->bios); bios 409 block/blk-throttle.c bio_list_add(&qn->bios, bio); bios 428 block/blk-throttle.c bio = bio_list_peek(&qn->bios); bios 456 block/blk-throttle.c bio = bio_list_pop(&qn->bios); bios 459 block/blk-throttle.c if (bio_list_empty(&qn->bios)) { bios 185 drivers/acpi/acpi_video.c u8 bios:1; bios 1193 drivers/acpi/acpi_video.c data->flags.bios = 1; bios 1641 drivers/block/drbd/drbd_receiver.c struct bio *bios = NULL; bios 1701 drivers/block/drbd/drbd_receiver.c bio->bi_next = bios; bios 1702 drivers/block/drbd/drbd_receiver.c bios = bio; bios 1721 drivers/block/drbd/drbd_receiver.c bio = bios; bios 1722 drivers/block/drbd/drbd_receiver.c bios = bios->bi_next; bios 1726 drivers/block/drbd/drbd_receiver.c } while (bios); bios 1730 drivers/block/drbd/drbd_receiver.c while (bios) { bios 1731 drivers/block/drbd/drbd_receiver.c bio = bios; bios 1732 drivers/block/drbd/drbd_receiver.c bios = bios->bi_next; bios 349 drivers/char/toshiba.c static int tosh_get_machine_id(void __iomem *bios) bios 356 drivers/char/toshiba.c id = (0x100*(int) readb(bios+0xfffe))+((int) readb(bios+0xfffa)); bios 383 drivers/char/toshiba.c cx = readw(bios + address); bios 385 drivers/char/toshiba.c cx = readw(bios + address); bios 387 drivers/char/toshiba.c cx = readw(bios + address); bios 410 drivers/char/toshiba.c void __iomem *bios = ioremap(0xf0000, 0x10000); bios 412 drivers/char/toshiba.c if (!bios) bios 419 drivers/char/toshiba.c if (readb(bios+0xe010+i)!=signature[i]) { bios 421 drivers/char/toshiba.c iounmap(bios); bios 437 drivers/char/toshiba.c iounmap(bios); bios 447 drivers/char/toshiba.c tosh_id = tosh_get_machine_id(bios); bios 451 drivers/char/toshiba.c major = readb(bios+0xe009)-'0'; bios 452 drivers/char/toshiba.c minor = ((readb(bios+0xe00b)-'0')*10)+(readb(bios+0xe00c)-'0'); bios 457 drivers/char/toshiba.c day = ((readb(bios+0xfff5)-'0')*10)+(readb(bios+0xfff6)-'0'); bios 458 drivers/char/toshiba.c month = ((readb(bios+0xfff8)-'0')*10)+(readb(bios+0xfff9)-'0'); bios 459 drivers/char/toshiba.c year = ((readb(bios+0xfffb)-'0')*10)+(readb(bios+0xfffc)-'0'); bios 476 drivers/char/toshiba.c iounmap(bios); bios 551 drivers/gpu/drm/amd/amdgpu/amdgpu.h u8 *bios, u32 length_bytes); bios 813 drivers/gpu/drm/amd/amdgpu/amdgpu.h uint8_t *bios; bios 1128 drivers/gpu/drm/amd/amdgpu/amdgpu.h #define RBIOS8(i) (adev->bios[i]) bios 781 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c if (!adev->bios || !handle) bios 104 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c i2c_info = (struct _ATOM_GPIO_I2C_INFO *)(ctx->bios + data_offset); bios 138 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c i2c_info = (struct _ATOM_GPIO_I2C_INFO *)(ctx->bios + data_offset); bios 175 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c gpio_info = (struct _ATOM_GPIO_PIN_LUT *)(ctx->bios + data_offset); bios 280 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c obj_header = (ATOM_OBJECT_HEADER *) (ctx->bios + data_offset); bios 282 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (ctx->bios + data_offset + bios 317 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c obj_header = (ATOM_OBJECT_HEADER *) (ctx->bios + data_offset); bios 319 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (ctx->bios + data_offset + bios 322 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (ctx->bios + data_offset + bios 325 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (ctx->bios + data_offset + bios 328 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (ctx->bios + data_offset + bios 377 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (ctx->bios + data_offset + bios 405 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (ctx->bios + data_offset + bios 413 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (ctx->bios + data_offset + bios 483 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (ctx->bios + data_offset + bios 573 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (union firmware_info *)(mode_info->atom_context->bios + bios 723 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (mode_info->atom_context->bios + data_offset); bios 763 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (mode_info->atom_context->bios + data_offset); bios 791 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (mode_info->atom_context->bios + data_offset); bios 906 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (union asic_ss_info *)(mode_info->atom_context->bios + data_offset); bios 1172 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (union firmware_info *)(mode_info->atom_context->bios + bios 1284 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (adev->mode_info.atom_context->bios + data_offset); bios 1295 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (adev->mode_info.atom_context->bios + data_offset + bios 1298 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (adev->mode_info.atom_context->bios + data_offset + bios 1301 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (adev->mode_info.atom_context->bios + data_offset + bios 1304 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (adev->mode_info.atom_context->bios + data_offset + bios 1307 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (adev->mode_info.atom_context->bios + data_offset + bios 1429 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (adev->mode_info.atom_context->bios + data_offset); bios 1472 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (adev->mode_info.atom_context->bios + data_offset); bios 1510 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (adev->mode_info.atom_context->bios + data_offset); bios 1582 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (adev->mode_info.atom_context->bios + data_offset); bios 1776 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c firmware_usage = (struct _ATOM_VRAM_USAGE_BY_FIRMWARE *)(ctx->bios + data_offset); bios 2015 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c adev->mode_info.atom_context = amdgpu_atom_parse(atom_card_info, adev->bios); bios 40 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c (struct atom_firmware_info_v3_1 *)(adev->mode_info.atom_context->bios + bios 59 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c (struct atom_firmware_info_v3_1 *)(adev->mode_info.atom_context->bios + bios 78 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c firmware_usage = (struct vram_usagebyfirmware_v2_1 *)(ctx->bios + data_offset); bios 150 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c (mode_info->atom_context->bios + data_offset); bios 161 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c (mode_info->atom_context->bios + data_offset); bios 247 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c (mode_info->atom_context->bios + data_offset); bios 257 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c (mode_info->atom_context->bios + data_offset); bios 295 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c (mode_info->atom_context->bios + data_offset); bios 329 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c (mode_info->atom_context->bios + data_offset); bios 357 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c (union firmware_info *)(mode_info->atom_context->bios + bios 380 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c (union smu_info *)(mode_info->atom_context->bios + bios 403 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c (union umc_info *)(mode_info->atom_context->bios + bios 440 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c (mode_info->atom_context->bios + data_offset); bios 49 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c static bool check_atom_bios(uint8_t *bios, size_t size) bios 53 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c if (!bios || size < 0x49) { bios 58 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c if (!AMD_IS_VALID_VBIOS(bios)) { bios 59 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c DRM_INFO("BIOS signature incorrect %x %x\n", bios[0], bios[1]); bios 63 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c bios_header_start = bios[0x48] | (bios[0x49] << 8); bios 75 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c if (!memcmp(bios + tmp, "ATOM", 4) || bios 76 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c !memcmp(bios + tmp, "MOTA", 4)) { bios 92 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c uint8_t __iomem *bios; bios 100 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c adev->bios = NULL; bios 102 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c bios = ioremap_wc(vram_base, size); bios 103 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c if (!bios) { bios 107 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c adev->bios = kmalloc(size, GFP_KERNEL); bios 108 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c if (!adev->bios) { bios 109 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c iounmap(bios); bios 113 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c memcpy_fromio(adev->bios, bios, size); bios 114 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c iounmap(bios); bios 116 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c if (!check_atom_bios(adev->bios, size)) { bios 117 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c kfree(adev->bios); bios 126 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c uint8_t __iomem *bios; bios 129 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c adev->bios = NULL; bios 131 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c bios = pci_map_rom(adev->pdev, &size); bios 132 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c if (!bios) { bios 136 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c adev->bios = kzalloc(size, GFP_KERNEL); bios 137 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c if (adev->bios == NULL) { bios 138 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c pci_unmap_rom(adev->pdev, bios); bios 142 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c memcpy_fromio(adev->bios, bios, size); bios 143 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c pci_unmap_rom(adev->pdev, bios); bios 145 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c if (!check_atom_bios(adev->bios, size)) { bios 146 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c kfree(adev->bios); bios 175 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c adev->bios = kmalloc(len, GFP_KERNEL); bios 176 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c if (!adev->bios) { bios 183 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c amdgpu_asic_read_bios_from_rom(adev, adev->bios, len); bios 185 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c if (!check_atom_bios(adev->bios, len)) { bios 186 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c kfree(adev->bios); bios 195 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c uint8_t __iomem *bios; bios 198 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c adev->bios = NULL; bios 200 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c bios = pci_platform_rom(adev->pdev, &size); bios 201 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c if (!bios) { bios 205 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c adev->bios = kzalloc(size, GFP_KERNEL); bios 206 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c if (adev->bios == NULL) bios 209 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c memcpy_fromio(adev->bios, bios, size); bios 211 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c if (!check_atom_bios(adev->bios, size)) { bios 212 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c kfree(adev->bios); bios 239 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c static int amdgpu_atrm_call(acpi_handle atrm_handle, uint8_t *bios, bios 263 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c memcpy(bios+offset, obj->buffer.pointer, obj->buffer.length); bios 312 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c adev->bios = kmalloc(size, GFP_KERNEL); bios 313 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c if (!adev->bios) { bios 320 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c adev->bios, bios 327 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c if (!check_atom_bios(adev->bios, size)) { bios 328 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c kfree(adev->bios); bios 390 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c adev->bios = kmemdup(&vbios->VbiosContent, bios 394 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c if (!check_atom_bios(adev->bios, vhdr->ImageLength)) { bios 395 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c kfree(adev->bios); bios 901 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c seq_write(m, adev->bios, adev->bios_size); bios 2767 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->bios) { bios 2971 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c kfree(adev->bios); bios 2972 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->bios = NULL; bios 262 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); bios 295 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); bios 301 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c fan_info = (union fan_info *)(mode_info->atom_context->bios + data_offset + bios 332 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 343 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 354 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 365 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 377 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 395 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 442 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 477 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 482 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 486 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 491 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 545 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 549 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 582 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 608 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 640 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 665 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c u8 rev = *(u8 *)(mode_info->atom_context->bios + data_offset + bios 676 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 683 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 704 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset + bios 775 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c (mode_info->atom_context->bios + data_offset); bios 790 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c uint8_t *bios; bios 796 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c bios = adev->bios + bios_offset; bios 797 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c return copy_to_user(out, bios, bios 1299 drivers/gpu/drm/amd/amdgpu/atom.c struct atom_context *amdgpu_atom_parse(struct card_info *card, void *bios) bios 1311 drivers/gpu/drm/amd/amdgpu/atom.c ctx->bios = bios; bios 1393 drivers/gpu/drm/amd/amdgpu/atom.c u16 *mdt = (u16 *)(ctx->bios + ctx->data_table + 4); bios 1413 drivers/gpu/drm/amd/amdgpu/atom.c u16 *mct = (u16 *)(ctx->bios + ctx->cmd_table + 4); bios 130 drivers/gpu/drm/amd/amdgpu/atom.h void *bios; bios 2014 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c (union lvds_info *)(mode_info->atom_context->bios + data_offset); bios 2079 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c record = (u8 *)(mode_info->atom_context->bios + bios 2083 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c record = (u8 *)(mode_info->atom_context->bios + bios 937 drivers/gpu/drm/amd/amdgpu/cik.c u8 *bios, u32 length_bytes) bios 943 drivers/gpu/drm/amd/amdgpu/cik.c if (bios == NULL) bios 951 drivers/gpu/drm/amd/amdgpu/cik.c dw_ptr = (u32 *)bios; bios 2570 drivers/gpu/drm/amd/amdgpu/kv_dpm.c igp_info = (union igp_info *)(mode_info->atom_context->bios + bios 2721 drivers/gpu/drm/amd/amdgpu/kv_dpm.c power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); bios 2726 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (mode_info->atom_context->bios + data_offset + bios 2729 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (mode_info->atom_context->bios + data_offset + bios 2732 drivers/gpu/drm/amd/amdgpu/kv_dpm.c (mode_info->atom_context->bios + data_offset + bios 155 drivers/gpu/drm/amd/amdgpu/nv.c u8 *bios, u32 length_bytes) bios 1160 drivers/gpu/drm/amd/amdgpu/si.c u8 *bios, u32 length_bytes) bios 1165 drivers/gpu/drm/amd/amdgpu/si.c if (bios == NULL) bios 1173 drivers/gpu/drm/amd/amdgpu/si.c dw_ptr = (u32 *)bios; bios 7233 drivers/gpu/drm/amd/amdgpu/si_dpm.c power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); bios 7238 drivers/gpu/drm/amd/amdgpu/si_dpm.c (mode_info->atom_context->bios + data_offset + bios 7241 drivers/gpu/drm/amd/amdgpu/si_dpm.c (mode_info->atom_context->bios + data_offset + bios 7244 drivers/gpu/drm/amd/amdgpu/si_dpm.c (mode_info->atom_context->bios + data_offset + bios 310 drivers/gpu/drm/amd/amdgpu/soc15.c u8 *bios, u32 length_bytes) bios 317 drivers/gpu/drm/amd/amdgpu/soc15.c if (bios == NULL) bios 325 drivers/gpu/drm/amd/amdgpu/soc15.c dw_ptr = (u32 *)bios; bios 421 drivers/gpu/drm/amd/amdgpu/vi.c u8 *bios, u32 length_bytes) bios 427 drivers/gpu/drm/amd/amdgpu/vi.c if (bios == NULL) bios 435 drivers/gpu/drm/amd/amdgpu/vi.c dw_ptr = (u32 *)bios; bios 671 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c adev->mode_info.atom_context->bios; bios 2857 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c if (!init->bios) bios 2861 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c bp->base.bios = init->bios; bios 2862 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c bp->base.bios_size = bp->base.bios[BIOS_IMAGE_SIZE_OFFSET] * BIOS_IMAGE_SIZE_UNIT; bios 1934 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c if (!init->bios) bios 1938 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c bp->base.bios = init->bios; bios 1939 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c bp->base.bios_size = bp->base.bios[OFFSET_TO_ATOM_ROM_IMAGE_SIZE] * BIOS_IMAGE_SIZE_UNIT; bios 40 drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c if (bp->bios && offset + size < bp->bios_size) bios 41 drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c return bp->bios + offset; bios 49 drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c bios->ctx bios 51 drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c (bios->regs->reg) bios 58 drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c struct dc_bios *bios) bios 67 drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c struct dc_bios *bios) bios 74 drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c struct dc_bios *bios, bios 82 drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c struct dc_bios *bios) bios 34 drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.h bool bios_is_accelerated_mode(struct dc_bios *bios); bios 35 drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.h void bios_set_scratch_acc_mode_change(struct dc_bios *bios); bios 36 drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.h void bios_set_scratch_critical_state(struct dc_bios *bios, bool state); bios 37 drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.h uint32_t bios_get_vga_enabled_displays(struct dc_bios *bios); bios 39 drivers/gpu/drm/amd/display/dc/bios/bios_parser_interface.c struct dc_bios *bios = NULL; bios 41 drivers/gpu/drm/amd/display/dc/bios/bios_parser_interface.c bios = firmware_parser_create(init, dce_version); bios 44 drivers/gpu/drm/amd/display/dc/bios/bios_parser_interface.c if (bios == NULL) bios 45 drivers/gpu/drm/amd/display/dc/bios/bios_parser_interface.c bios = bios_parser_create(init, dce_version); bios 47 drivers/gpu/drm/amd/display/dc/bios/bios_parser_interface.c return bios; bios 52 drivers/gpu/drm/amd/display/dc/bios/bios_parser_interface.c struct dc_bios *bios = *dcb; bios 54 drivers/gpu/drm/amd/display/dc/bios/bios_parser_interface.c bios->funcs->bios_parser_destroy(dcb); bios 152 drivers/gpu/drm/amd/display/dc/core/dc.c struct dc_bios *bios = dc->ctx->dc_bios; bios 156 drivers/gpu/drm/amd/display/dc/core/dc.c connectors_num = bios->funcs->get_connectors_number(bios); bios 660 drivers/gpu/drm/amd/display/dc/core/dc.c bp_init_data.bios = init_params->asic_id.atombios_base_address; bios 1217 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct dc_bios *bios = init_params->dc->ctx->dc_bios; bios 1218 drivers/gpu/drm/amd/display/dc/core/dc_link.c const struct dc_vbios_funcs *bp_funcs = bios->funcs; bios 1233 drivers/gpu/drm/amd/display/dc/core/dc_link.c link->link_id = bios->funcs->get_connector_id(bios, init_params->connector_index); bios 1351 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (bios->integrated_info) bios 1352 drivers/gpu/drm/amd/display/dc/core/dc_link.c info = *bios->integrated_info; bios 42 drivers/gpu/drm/amd/display/dc/dc_bios_types.h uint8_t (*get_connectors_number)(struct dc_bios *bios); bios 45 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 48 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 56 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 60 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 65 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 70 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 73 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 76 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 80 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 85 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios); bios 87 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 90 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 96 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 99 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 102 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 106 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 109 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 112 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 115 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 119 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 122 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 125 drivers/gpu/drm/amd/display/dc/dc_bios_types.h struct dc_bios *bios, bios 144 drivers/gpu/drm/amd/display/dc/dc_bios_types.h uint8_t *bios; bios 446 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c bp_result = clk_src->bios->funcs->adjust_pixel_clock( bios 447 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c clk_src->bios, &bp_adjust_pixel_clock_params); bios 638 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c result = clk_src->bios->funcs->enable_spread_spectrum_on_ppll( bios 639 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c clk_src->bios, bios 745 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c clk_src->bios->funcs-> bios 747 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c clk_src->bios, bios 874 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c if (clk_src->bios->funcs->set_pixel_clock( bios 875 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c clk_src->bios, &bp_pc_params) != BP_RESULT_OK) bios 948 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c if (clk_src->bios->funcs->set_pixel_clock( bios 949 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c clk_src->bios, &bp_pc_params) != BP_RESULT_OK) bios 978 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c bp_result = dce110_clk_src->bios->funcs->set_pixel_clock( bios 979 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c dce110_clk_src->bios, bios 1114 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c *ss_entries_num = clk_src->bios->funcs->get_ss_entry_number( bios 1115 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c clk_src->bios, bios 1138 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c bp_result = clk_src->bios->funcs->get_spread_spectrum_info( bios 1139 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c clk_src->bios, bios 1313 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c struct dc_bios *bios, bios 1323 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c clk_src->bios = bios; bios 1331 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c if (!clk_src->bios->fw_info_valid) { bios 1336 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c clk_src->ext_clk_khz = clk_src->bios->fw_info.external_clock_source_frequency_for_dp; bios 1339 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c calc_pll_cs_init_data.bp = bios; bios 1358 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c calc_pll_cs_init_data_hdmi.bp = bios; bios 1376 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c clk_src->ref_freq_khz = clk_src->bios->fw_info.pll_info.crystal_frequency; bios 1413 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c struct dc_bios *bios, bios 1420 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c clk_src->bios = bios; bios 1428 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c if (!clk_src->bios->fw_info_valid) { bios 1433 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c clk_src->ext_clk_khz = clk_src->bios->fw_info.external_clock_source_frequency_for_dp; bios 1442 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c struct dc_bios *bios, bios 1448 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c bool ret = dce112_clk_src_construct(clk_src, ctx, bios, id, regs, cs_shift, cs_mask); bios 168 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h struct dc_bios *bios; bios 189 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h struct dc_bios *bios, bios 198 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h struct dc_bios *bios, bios 208 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h struct dc_bios *bios, bios 654 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c struct dc_bios *bios, bios 665 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c if (dce110_clk_src_construct(clk_src, ctx, bios, id, bios 720 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct dc_bios *bios, bios 725 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c result = bios->funcs->transmitter_control(bios, cntl); bios 700 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c struct dc_bios *bios, bios 711 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c if (dce110_clk_src_construct(clk_src, ctx, bios, id, bios 673 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c struct dc_bios *bios, bios 684 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c if (dce112_clk_src_construct(clk_src, ctx, bios, id, bios 486 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c struct dc_bios *bios, bios 497 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c if (dce112_clk_src_construct(clk_src, ctx, bios, id, bios 687 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c struct dc_bios *bios, bios 698 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c if (dce110_clk_src_construct(clk_src, ctx, bios, id, bios 772 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c struct dc_bios *bios, bios 783 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c if (dce112_clk_src_construct(clk_src, ctx, bios, id, bios 1174 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c struct dc_bios *bios, bios 1185 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (dcn20_clk_src_construct(clk_src, ctx, bios, id, bios 1124 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c struct dc_bios *bios, bios 1135 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c if (dcn20_clk_src_construct(clk_src, ctx, bios, id, bios 35 drivers/gpu/drm/amd/display/include/bios_parser_interface.h uint8_t *bios; bios 28 drivers/gpu/drm/amd/include/atom-bits.h static inline uint8_t get_u8(void *bios, int ptr) bios 30 drivers/gpu/drm/amd/include/atom-bits.h return ((unsigned char *)bios)[ptr]; bios 32 drivers/gpu/drm/amd/include/atom-bits.h #define U8(ptr) get_u8(ctx->ctx->bios, (ptr)) bios 33 drivers/gpu/drm/amd/include/atom-bits.h #define CU8(ptr) get_u8(ctx->bios, (ptr)) bios 34 drivers/gpu/drm/amd/include/atom-bits.h static inline uint16_t get_u16(void *bios, int ptr) bios 36 drivers/gpu/drm/amd/include/atom-bits.h return get_u8(bios ,ptr)|(((uint16_t)get_u8(bios, ptr+1))<<8); bios 38 drivers/gpu/drm/amd/include/atom-bits.h #define U16(ptr) get_u16(ctx->ctx->bios, (ptr)) bios 39 drivers/gpu/drm/amd/include/atom-bits.h #define CU16(ptr) get_u16(ctx->bios, (ptr)) bios 40 drivers/gpu/drm/amd/include/atom-bits.h static inline uint32_t get_u32(void *bios, int ptr) bios 42 drivers/gpu/drm/amd/include/atom-bits.h return get_u16(bios, ptr)|(((uint32_t)get_u16(bios, ptr+2))<<16); bios 44 drivers/gpu/drm/amd/include/atom-bits.h #define U32(ptr) get_u32(ctx->ctx->bios, (ptr)) bios 45 drivers/gpu/drm/amd/include/atom-bits.h #define CU32(ptr) get_u32(ctx->bios, (ptr)) bios 46 drivers/gpu/drm/amd/include/atom-bits.h #define CSTR(ptr) (((char *)(ctx->bios))+(ptr)) bios 772 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c *addr = (uint8_t *)adev->mode_info.atom_context->bios + data_start; bios 672 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c return (uint8_t *)adev->mode_info.atom_context->bios + bios 522 drivers/gpu/drm/gma500/intel_bios.c u8 __iomem *bios = NULL; bios 541 drivers/gpu/drm/gma500/intel_bios.c bios = pci_map_rom(pdev, &size); bios 542 drivers/gpu/drm/gma500/intel_bios.c if (!bios) bios 547 drivers/gpu/drm/gma500/intel_bios.c if (!memcmp(bios + i, "$VBT", 4)) { bios 548 drivers/gpu/drm/gma500/intel_bios.c vbt = (struct vbt_header *)(bios + i); bios 555 drivers/gpu/drm/gma500/intel_bios.c pci_unmap_rom(pdev, bios); bios 558 drivers/gpu/drm/gma500/intel_bios.c bdb = (struct bdb_header *)(bios + i + vbt->bdb_offset); bios 571 drivers/gpu/drm/gma500/intel_bios.c if (bios) bios 572 drivers/gpu/drm/gma500/intel_bios.c pci_unmap_rom(pdev, bios); bios 1806 drivers/gpu/drm/i915/display/intel_bios.c static const struct vbt_header *find_vbt(void __iomem *bios, size_t size) bios 1814 drivers/gpu/drm/i915/display/intel_bios.c if (ioread32(bios + i) != *((const u32 *) "$VBT")) bios 1821 drivers/gpu/drm/i915/display/intel_bios.c vbt = (void __force *) bios + i; bios 1844 drivers/gpu/drm/i915/display/intel_bios.c u8 __iomem *bios = NULL; bios 1857 drivers/gpu/drm/i915/display/intel_bios.c bios = pci_map_rom(pdev, &size); bios 1858 drivers/gpu/drm/i915/display/intel_bios.c if (!bios) bios 1861 drivers/gpu/drm/i915/display/intel_bios.c vbt = find_vbt(bios, size); bios 1895 drivers/gpu/drm/i915/display/intel_bios.c if (bios) bios 1896 drivers/gpu/drm/i915/display/intel_bios.c pci_unmap_rom(pdev, bios); bios 339 drivers/gpu/drm/i915/display/intel_display_power.c ret = I915_READ(regs->bios) & req_mask ? 1 : 0; bios 633 drivers/gpu/drm/i915/display/intel_display_power.c val |= I915_READ(regs->bios); bios 900 drivers/gpu/drm/i915/display/intel_display_power.c u32 bios_req = I915_READ(regs->bios); bios 908 drivers/gpu/drm/i915/display/intel_display_power.c I915_WRITE(regs->bios, bios_req & ~mask); bios 2707 drivers/gpu/drm/i915/display/intel_display_power.c .bios = HSW_PWR_WELL_CTL1, bios 3344 drivers/gpu/drm/i915/display/intel_display_power.c .bios = ICL_PWR_WELL_CTL_AUX1, bios 3350 drivers/gpu/drm/i915/display/intel_display_power.c .bios = ICL_PWR_WELL_CTL_DDI1, bios 153 drivers/gpu/drm/i915/display/intel_display_power.h i915_reg_t bios; bios 116 drivers/gpu/drm/nouveau/dispnv04/crtc.c struct nvkm_bios *bios = nvxx_bios(&drm->client.device); bios 124 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (nvbios_pll_parse(bios, nv_crtc->index ? PLL_VPLL1 : PLL_VPLL0, bios 168 drivers/gpu/drm/nouveau/dispnv04/hw.c struct nvkm_bios *bios = nvxx_bios(&drm->client.device); bios 173 drivers/gpu/drm/nouveau/dispnv04/hw.c ret = nvbios_pll_parse(bios, plltype, &pll_lim); bios 261 drivers/gpu/drm/nouveau/dispnv04/hw.c struct nvkm_bios *bios = nvxx_bios(device); bios 266 drivers/gpu/drm/nouveau/dispnv04/hw.c if (nvbios_pll_parse(bios, pll, &pll_lim)) bios 1474 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nvbios *bios = &drm->vbios; bios 1505 drivers/gpu/drm/nouveau/dispnv50/disp.c if (bios->fp_no_ddc) { bios 1506 drivers/gpu/drm/nouveau/dispnv50/disp.c if (bios->fp.dual_link) bios 1508 drivers/gpu/drm/nouveau/dispnv50/disp.c if (bios->fp.if_is_24bit) bios 1515 drivers/gpu/drm/nouveau/dispnv50/disp.c if (mode->clock >= bios->fp.duallink_transition_clk) { bios 1520 drivers/gpu/drm/nouveau/dispnv50/disp.c if (bios->fp.strapless_is_24bit & 2) bios 1523 drivers/gpu/drm/nouveau/dispnv50/disp.c if (bios->fp.strapless_is_24bit & 1) bios 1577 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nvkm_bios *bios = nvxx_bios(&drm->client.device); bios 1627 drivers/gpu/drm/nouveau/dispnv50/disp.c (data = nvbios_dp_table(bios, &ver, &hdr, &cnt, &len)) && bios 1628 drivers/gpu/drm/nouveau/dispnv50/disp.c ver >= 0x40 && (nvbios_rd08(bios, data + 0x08) & 0x04)) { bios 66 drivers/gpu/drm/nouveau/include/nvif/device.h #define nvxx_bios(a) nvxx_device(a)->bios bios 133 drivers/gpu/drm/nouveau/include/nvkm/core/device.h struct nvkm_bios *bios; bios 206 drivers/gpu/drm/nouveau/include/nvkm/core/device.h int (*bios )(struct nvkm_device *, int idx, struct nvkm_bios **); bios 5 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/bmp.h bmp_version(struct nvkm_bios *bios) bios 7 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/bmp.h if (bios->bmp_offset) { bios 8 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/bmp.h return nvbios_rd08(bios, bios->bmp_offset + 5) << 8 | bios 9 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/bmp.h nvbios_rd08(bios, bios->bmp_offset + 6); bios 16 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/bmp.h bmp_mem_init_table(struct nvkm_bios *bios) bios 18 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/bmp.h if (bmp_version(bios) >= 0x0300) bios 19 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/bmp.h return nvbios_rd16(bios, bios->bmp_offset + 24); bios 24 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/bmp.h bmp_sdr_seq_table(struct nvkm_bios *bios) bios 26 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/bmp.h if (bmp_version(bios) >= 0x0300) bios 27 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/bmp.h return nvbios_rd16(bios, bios->bmp_offset + 26); bios 32 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/bmp.h bmp_ddr_seq_table(struct nvkm_bios *bios) bios 34 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/bmp.h if (bmp_version(bios) >= 0x0300) bios 35 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/bmp.h return nvbios_rd16(bios, bios->bmp_offset + 28); bios 30 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/conn.h u32 nvbios_connTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len); bios 31 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/conn.h u32 nvbios_connTp(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, bios 44 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/conn.h u32 nvbios_connEe(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *hdr); bios 45 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/conn.h u32 nvbios_connEp(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *hdr, bios 6 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/dp.h nvbios_dp_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len); bios 6 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/fan.h u32 nvbios_fan_parse(struct nvkm_bios *bios, struct nvbios_therm_fan *fan); bios 11 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/rammap.h u32 nvbios_rammapEp_from_perf(struct nvkm_bios *bios, u32 data, u8 size, bios 21 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/rammap.h u32 nvbios_rammapSp_from_perf(struct nvkm_bios *bios, u32 data, u8 size, int idx, bios 75 drivers/gpu/drm/nouveau/include/nvkm/subdev/clk.h u8 bios; /* 0xff for none */ bios 93 drivers/gpu/drm/nouveau/include/nvkm/subdev/fb.h struct nvbios_ramcfg bios; bios 389 drivers/gpu/drm/nouveau/nouveau_acpi.c static int nouveau_rom_call(acpi_handle rom_handle, uint8_t *bios, bios 414 drivers/gpu/drm/nouveau/nouveau_acpi.c memcpy(bios+offset, obj->buffer.pointer, len); bios 436 drivers/gpu/drm/nouveau/nouveau_acpi.c int nouveau_acpi_get_bios_chunk(uint8_t *bios, int offset, int len) bios 438 drivers/gpu/drm/nouveau/nouveau_acpi.c return nouveau_rom_call(nouveau_dsm_priv.rom_handle, bios, offset, len); bios 13 drivers/gpu/drm/nouveau/nouveau_acpi.h int nouveau_acpi_get_bios_chunk(uint8_t *bios, int offset, int len); bios 23 drivers/gpu/drm/nouveau/nouveau_acpi.h static inline int nouveau_acpi_get_bios_chunk(uint8_t *bios, int offset, int len) { return -EINVAL; } bios 66 drivers/gpu/drm/nouveau/nouveau_bios.c static uint16_t clkcmptable(struct nvbios *bios, uint16_t clktable, int pxclk) bios 71 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->major_version < 5) /* pre BIT */ bios 77 drivers/gpu/drm/nouveau/nouveau_bios.c compareclk = ROM16(bios->data[clktable + compare_record_len * i]); bios 79 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->major_version < 5) { bios 80 drivers/gpu/drm/nouveau/nouveau_bios.c uint8_t tmdssub = bios->data[clktable + 2 + compare_record_len * i]; bios 81 drivers/gpu/drm/nouveau/nouveau_bios.c scriptptr = ROM16(bios->data[bios->init_script_tbls_ptr + tmdssub * 2]); bios 83 drivers/gpu/drm/nouveau/nouveau_bios.c scriptptr = ROM16(bios->data[clktable + 2 + compare_record_len * i]); bios 110 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; bios 111 drivers/gpu/drm/nouveau/nouveau_bios.c uint8_t sub = bios->data[bios->fp.xlated_entry + script] + (bios->fp.link_c_increment && dcbent->or & DCB_OUTPUT_C ? 1 : 0); bios 112 drivers/gpu/drm/nouveau/nouveau_bios.c uint16_t scriptofs = ROM16(bios->data[bios->init_script_tbls_ptr + sub * 2]); bios 114 drivers/gpu/drm/nouveau/nouveau_bios.c if (!bios->fp.xlated_entry || !sub || !scriptofs) bios 117 drivers/gpu/drm/nouveau/nouveau_bios.c run_digital_op_script(dev, scriptofs, dcbent, head, bios->fp.dual_link); bios 121 drivers/gpu/drm/nouveau/nouveau_bios.c mdelay(ROM16(bios->data[bios->fp.xlated_entry + 7])); bios 147 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; bios 161 drivers/gpu/drm/nouveau/nouveau_bios.c scriptptr = ROM16(bios->data[bios->fp.lvdsmanufacturerpointer + 7 + outputset * 2]); bios 165 drivers/gpu/drm/nouveau/nouveau_bios.c scriptptr = ROM16(bios->data[bios->fp.lvdsmanufacturerpointer + 11 + outputset * 2]); bios 168 drivers/gpu/drm/nouveau/nouveau_bios.c clktable = bios->fp.lvdsmanufacturerpointer + 15; bios 173 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->fp.dual_link) bios 175 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->fp.if_is_24bit) bios 181 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->fp.dual_link) { bios 186 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->fp.strapless_is_24bit & cmpval_24bit) bios 190 drivers/gpu/drm/nouveau/nouveau_bios.c clktable = ROM16(bios->data[clktable]); bios 195 drivers/gpu/drm/nouveau/nouveau_bios.c scriptptr = clkcmptable(bios, clktable, pxclk); bios 202 drivers/gpu/drm/nouveau/nouveau_bios.c run_digital_op_script(dev, scriptptr, dcbent, head, bios->fp.dual_link); bios 217 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; bios 218 drivers/gpu/drm/nouveau/nouveau_bios.c uint8_t lvds_ver = bios->data[bios->fp.lvdsmanufacturerpointer]; bios 222 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->fp.last_script_invoc == (script << 1 | head) || !lvds_ver || bios 226 drivers/gpu/drm/nouveau/nouveau_bios.c if (!bios->fp.lvds_init_run) { bios 227 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.lvds_init_run = true; bios 231 drivers/gpu/drm/nouveau/nouveau_bios.c if (script == LVDS_PANEL_ON && bios->fp.reset_after_pclk_change) bios 233 drivers/gpu/drm/nouveau/nouveau_bios.c if (script == LVDS_RESET && bios->fp.power_off_for_reset) bios 246 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.last_script_invoc = (script << 1 | head); bios 260 drivers/gpu/drm/nouveau/nouveau_bios.c static int parse_lvds_manufacturer_table_header(struct drm_device *dev, struct nvbios *bios, struct lvdstableheader *lth) bios 274 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->fp.lvdsmanufacturerpointer == 0x0) { bios 279 drivers/gpu/drm/nouveau/nouveau_bios.c lvds_ver = bios->data[bios->fp.lvdsmanufacturerpointer]; bios 284 drivers/gpu/drm/nouveau/nouveau_bios.c recordlen = bios->data[bios->fp.lvdsmanufacturerpointer + 1]; bios 287 drivers/gpu/drm/nouveau/nouveau_bios.c headerlen = bios->data[bios->fp.lvdsmanufacturerpointer + 1]; bios 292 drivers/gpu/drm/nouveau/nouveau_bios.c recordlen = bios->data[bios->fp.lvdsmanufacturerpointer + 2]; bios 295 drivers/gpu/drm/nouveau/nouveau_bios.c headerlen = bios->data[bios->fp.lvdsmanufacturerpointer + 1]; bios 300 drivers/gpu/drm/nouveau/nouveau_bios.c recordlen = bios->data[bios->fp.lvdsmanufacturerpointer + 2]; bios 317 drivers/gpu/drm/nouveau/nouveau_bios.c get_fp_strap(struct drm_device *dev, struct nvbios *bios) bios 331 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->major_version < 5 && bios->data[0x48] & 0x4) bios 343 drivers/gpu/drm/nouveau/nouveau_bios.c static int parse_fp_mode_table(struct drm_device *dev, struct nvbios *bios) bios 351 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->fp.fptablepointer == 0x0) { bios 354 drivers/gpu/drm/nouveau/nouveau_bios.c bios->digital_min_front_porch = 0x4b; bios 358 drivers/gpu/drm/nouveau/nouveau_bios.c fptable = &bios->data[bios->fp.fptablepointer]; bios 387 drivers/gpu/drm/nouveau/nouveau_bios.c bios->digital_min_front_porch = fptable[4]; bios 397 drivers/gpu/drm/nouveau/nouveau_bios.c if (!bios->is_mobile) /* !mobile only needs digital_min_front_porch */ bios 400 drivers/gpu/drm/nouveau/nouveau_bios.c ret = parse_lvds_manufacturer_table_header(dev, bios, <h); bios 405 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.fpxlatetableptr = bios->fp.lvdsmanufacturerpointer + bios 407 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.xlatwidth = lth.recordlen; bios 409 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->fp.fpxlatetableptr == 0x0) { bios 414 drivers/gpu/drm/nouveau/nouveau_bios.c fpstrapping = get_fp_strap(dev, bios); bios 416 drivers/gpu/drm/nouveau/nouveau_bios.c fpindex = bios->data[bios->fp.fpxlatetableptr + bios 417 drivers/gpu/drm/nouveau/nouveau_bios.c fpstrapping * bios->fp.xlatwidth]; bios 426 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp_no_ddc = fpstrapping != 0xf || fpindex != 0xf; bios 436 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.mode_ptr = bios->fp.fptablepointer + headerlen + bios 440 drivers/gpu/drm/nouveau/nouveau_bios.c ROM16(bios->data[bios->fp.mode_ptr + 11]) + 1, bios 441 drivers/gpu/drm/nouveau/nouveau_bios.c ROM16(bios->data[bios->fp.mode_ptr + 25]) + 1, bios 442 drivers/gpu/drm/nouveau/nouveau_bios.c ROM16(bios->data[bios->fp.mode_ptr + 7]) * 10); bios 450 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; bios 451 drivers/gpu/drm/nouveau/nouveau_bios.c uint8_t *mode_entry = &bios->data[bios->fp.mode_ptr]; bios 454 drivers/gpu/drm/nouveau/nouveau_bios.c return bios->fp.mode_ptr; bios 490 drivers/gpu/drm/nouveau/nouveau_bios.c return bios->fp.mode_ptr; bios 521 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; bios 522 drivers/gpu/drm/nouveau/nouveau_bios.c int fpstrapping = get_fp_strap(dev, bios), lvdsmanufacturerindex = 0; bios 525 drivers/gpu/drm/nouveau/nouveau_bios.c int ret, chip_version = bios->chip_version; bios 527 drivers/gpu/drm/nouveau/nouveau_bios.c ret = parse_lvds_manufacturer_table_header(dev, bios, <h); bios 533 drivers/gpu/drm/nouveau/nouveau_bios.c lvdsmanufacturerindex = bios->data[ bios 534 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.fpxlatemanufacturertableptr + bios 548 drivers/gpu/drm/nouveau/nouveau_bios.c (bios->legacy.lvds_single_a_script_ptr & 1) ? bios 550 drivers/gpu/drm/nouveau/nouveau_bios.c if (pxclk >= bios->fp.duallink_transition_clk) bios 566 drivers/gpu/drm/nouveau/nouveau_bios.c if (pxclk >= bios->fp.duallink_transition_clk) bios 586 drivers/gpu/drm/nouveau/nouveau_bios.c lvdsofs = bios->fp.xlated_entry = bios->fp.lvdsmanufacturerpointer + lth.headerlen + lth.recordlen * lvdsmanufacturerindex; bios 589 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.power_off_for_reset = bios->data[lvdsofs] & 1; bios 590 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.reset_after_pclk_change = bios->data[lvdsofs] & 2; bios 591 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.dual_link = bios->data[lvdsofs] & 4; bios 592 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.link_c_increment = bios->data[lvdsofs] & 8; bios 593 drivers/gpu/drm/nouveau/nouveau_bios.c *if_is_24bit = bios->data[lvdsofs] & 16; bios 601 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.power_off_for_reset = true; bios 602 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.reset_after_pclk_change = true; bios 608 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.dual_link = bios->data[lvdsofs] & 1; bios 609 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.if_is_24bit = bios->data[lvdsofs] & 2; bios 610 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.strapless_is_24bit = bios->data[bios->fp.lvdsmanufacturerpointer + 4]; bios 611 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.duallink_transition_clk = ROM16(bios->data[bios->fp.lvdsmanufacturerpointer + 5]) * 10; bios 617 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.dual_link = (pxclk >= bios->fp.duallink_transition_clk); bios 619 drivers/gpu/drm/nouveau/nouveau_bios.c *dl = bios->fp.dual_link; bios 637 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; bios 638 drivers/gpu/drm/nouveau/nouveau_bios.c int cv = bios->chip_version; bios 649 drivers/gpu/drm/nouveau/nouveau_bios.c clktable = bios->tmds.output0_script_ptr; bios 653 drivers/gpu/drm/nouveau/nouveau_bios.c clktable = bios->tmds.output1_script_ptr; bios 662 drivers/gpu/drm/nouveau/nouveau_bios.c scriptptr = clkcmptable(bios, clktable, pxclk); bios 678 drivers/gpu/drm/nouveau/nouveau_bios.c static void parse_script_table_pointers(struct nvbios *bios, uint16_t offset) bios 692 drivers/gpu/drm/nouveau/nouveau_bios.c bios->init_script_tbls_ptr = ROM16(bios->data[offset]); bios 695 drivers/gpu/drm/nouveau/nouveau_bios.c static int parse_bit_A_tbl_entry(struct drm_device *dev, struct nvbios *bios, struct bit_entry *bitentry) bios 712 drivers/gpu/drm/nouveau/nouveau_bios.c load_table_ptr = ROM16(bios->data[bitentry->offset]); bios 719 drivers/gpu/drm/nouveau/nouveau_bios.c version = bios->data[load_table_ptr]; bios 727 drivers/gpu/drm/nouveau/nouveau_bios.c headerlen = bios->data[load_table_ptr + 1]; bios 728 drivers/gpu/drm/nouveau/nouveau_bios.c entrylen = bios->data[load_table_ptr + 2]; bios 729 drivers/gpu/drm/nouveau/nouveau_bios.c num_entries = bios->data[load_table_ptr + 3]; bios 737 drivers/gpu/drm/nouveau/nouveau_bios.c bios->dactestval = ROM32(bios->data[load_table_ptr + headerlen]) & 0x3ff; bios 742 drivers/gpu/drm/nouveau/nouveau_bios.c static int parse_bit_display_tbl_entry(struct drm_device *dev, struct nvbios *bios, struct bit_entry *bitentry) bios 759 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.fptablepointer = ROM16(bios->data[bitentry->offset + 2]); bios 764 drivers/gpu/drm/nouveau/nouveau_bios.c static int parse_bit_init_tbl_entry(struct drm_device *dev, struct nvbios *bios, struct bit_entry *bitentry) bios 778 drivers/gpu/drm/nouveau/nouveau_bios.c parse_script_table_pointers(bios, bitentry->offset); bios 782 drivers/gpu/drm/nouveau/nouveau_bios.c static int parse_bit_i_tbl_entry(struct drm_device *dev, struct nvbios *bios, struct bit_entry *bitentry) bios 808 drivers/gpu/drm/nouveau/nouveau_bios.c bios->feature_byte = bios->data[bitentry->offset + 5]; bios 809 drivers/gpu/drm/nouveau/nouveau_bios.c bios->is_mobile = bios->feature_byte & FEATURE_MOBILE; bios 817 drivers/gpu/drm/nouveau/nouveau_bios.c daccmpoffset = ROM16(bios->data[bitentry->offset + 13]); bios 829 drivers/gpu/drm/nouveau/nouveau_bios.c dacver = bios->data[daccmpoffset]; bios 830 drivers/gpu/drm/nouveau/nouveau_bios.c dacheaderlen = bios->data[daccmpoffset + 1]; bios 838 drivers/gpu/drm/nouveau/nouveau_bios.c bios->dactestval = ROM32(bios->data[daccmpoffset + dacheaderlen]); bios 839 drivers/gpu/drm/nouveau/nouveau_bios.c bios->tvdactestval = ROM32(bios->data[daccmpoffset + dacheaderlen + 4]); bios 844 drivers/gpu/drm/nouveau/nouveau_bios.c static int parse_bit_lvds_tbl_entry(struct drm_device *dev, struct nvbios *bios, struct bit_entry *bitentry) bios 864 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.lvdsmanufacturerpointer = ROM16(bios->data[bitentry->offset]); bios 870 drivers/gpu/drm/nouveau/nouveau_bios.c parse_bit_M_tbl_entry(struct drm_device *dev, struct nvbios *bios, bios 891 drivers/gpu/drm/nouveau/nouveau_bios.c bios->ram_restrict_group_count = bios->data[bitentry->offset + 2]; bios 892 drivers/gpu/drm/nouveau/nouveau_bios.c bios->ram_restrict_tbl_ptr = ROM16(bios->data[bitentry->offset + 3]); bios 894 drivers/gpu/drm/nouveau/nouveau_bios.c bios->ram_restrict_group_count = bios->data[bitentry->offset + 0]; bios 895 drivers/gpu/drm/nouveau/nouveau_bios.c bios->ram_restrict_tbl_ptr = ROM16(bios->data[bitentry->offset + 1]); bios 901 drivers/gpu/drm/nouveau/nouveau_bios.c static int parse_bit_tmds_tbl_entry(struct drm_device *dev, struct nvbios *bios, struct bit_entry *bitentry) bios 934 drivers/gpu/drm/nouveau/nouveau_bios.c tmdstableptr = ROM16(bios->data[bitentry->offset]); bios 941 drivers/gpu/drm/nouveau/nouveau_bios.c bios->data[tmdstableptr] >> 4, bios->data[tmdstableptr] & 0xf); bios 944 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->data[tmdstableptr] != 0x11) bios 951 drivers/gpu/drm/nouveau/nouveau_bios.c script1 = ROM16(bios->data[tmdstableptr + 7]); bios 952 drivers/gpu/drm/nouveau/nouveau_bios.c script2 = ROM16(bios->data[tmdstableptr + 9]); bios 953 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->data[script1] != 'q' || bios->data[script2] != 'q') bios 956 drivers/gpu/drm/nouveau/nouveau_bios.c bios->tmds.output0_script_ptr = ROM16(bios->data[tmdstableptr + 11]); bios 957 drivers/gpu/drm/nouveau/nouveau_bios.c bios->tmds.output1_script_ptr = ROM16(bios->data[tmdstableptr + 13]); bios 973 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; bios 976 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->type != NVBIOS_BIT) bios 979 drivers/gpu/drm/nouveau/nouveau_bios.c entries = bios->data[bios->offset + 10]; bios 980 drivers/gpu/drm/nouveau/nouveau_bios.c entry = &bios->data[bios->offset + 12]; bios 991 drivers/gpu/drm/nouveau/nouveau_bios.c entry += bios->data[bios->offset + 9]; bios 998 drivers/gpu/drm/nouveau/nouveau_bios.c parse_bit_table(struct nvbios *bios, const uint16_t bitoffset, bios 1001 drivers/gpu/drm/nouveau/nouveau_bios.c struct drm_device *dev = bios->dev; bios 1006 drivers/gpu/drm/nouveau/nouveau_bios.c return table->parse_fn(dev, bios, &bitentry); bios 1013 drivers/gpu/drm/nouveau/nouveau_bios.c parse_bit_structure(struct nvbios *bios, const uint16_t bitoffset) bios 1023 drivers/gpu/drm/nouveau/nouveau_bios.c ret = parse_bit_table(bios, bitoffset, &BIT_TABLE('i', i)); bios 1026 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->major_version >= 0x60) /* g80+ */ bios 1027 drivers/gpu/drm/nouveau/nouveau_bios.c parse_bit_table(bios, bitoffset, &BIT_TABLE('A', A)); bios 1028 drivers/gpu/drm/nouveau/nouveau_bios.c parse_bit_table(bios, bitoffset, &BIT_TABLE('D', display)); bios 1029 drivers/gpu/drm/nouveau/nouveau_bios.c ret = parse_bit_table(bios, bitoffset, &BIT_TABLE('I', init)); bios 1032 drivers/gpu/drm/nouveau/nouveau_bios.c parse_bit_table(bios, bitoffset, &BIT_TABLE('M', M)); /* memory? */ bios 1033 drivers/gpu/drm/nouveau/nouveau_bios.c parse_bit_table(bios, bitoffset, &BIT_TABLE('L', lvds)); bios 1034 drivers/gpu/drm/nouveau/nouveau_bios.c parse_bit_table(bios, bitoffset, &BIT_TABLE('T', tmds)); bios 1039 drivers/gpu/drm/nouveau/nouveau_bios.c static int parse_bmp_structure(struct drm_device *dev, struct nvbios *bios, unsigned int offset) bios 1085 drivers/gpu/drm/nouveau/nouveau_bios.c uint8_t *bmp = &bios->data[offset], bmp_version_major, bmp_version_minor; bios 1090 drivers/gpu/drm/nouveau/nouveau_bios.c bios->digital_min_front_porch = 0x4b; bios 1091 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fmaxvco = 256000; bios 1092 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fminvco = 128000; bios 1093 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.duallink_transition_clk = 90000; bios 1106 drivers/gpu/drm/nouveau/nouveau_bios.c *(uint16_t *)&bios->data[0x36] = 0; bios 1173 drivers/gpu/drm/nouveau/nouveau_bios.c bios->feature_byte = bmp[9]; bios 1176 drivers/gpu/drm/nouveau/nouveau_bios.c bios->old_style_init = true; bios 1180 drivers/gpu/drm/nouveau/nouveau_bios.c bios->init_script_tbls_ptr = ROM16(bmp[legacy_scripts_offset]); bios 1181 drivers/gpu/drm/nouveau/nouveau_bios.c bios->extra_init_script_tbl_ptr = ROM16(bmp[legacy_scripts_offset + 2]); bios 1184 drivers/gpu/drm/nouveau/nouveau_bios.c bios->legacy.mem_init_tbl_ptr = ROM16(bmp[24]); bios 1185 drivers/gpu/drm/nouveau/nouveau_bios.c bios->legacy.sdr_seq_tbl_ptr = ROM16(bmp[26]); bios 1186 drivers/gpu/drm/nouveau/nouveau_bios.c bios->legacy.ddr_seq_tbl_ptr = ROM16(bmp[28]); bios 1192 drivers/gpu/drm/nouveau/nouveau_bios.c bios->legacy.i2c_indices.crt = bios->data[legacy_i2c_offset]; bios 1193 drivers/gpu/drm/nouveau/nouveau_bios.c bios->legacy.i2c_indices.tv = bios->data[legacy_i2c_offset + 1]; bios 1194 drivers/gpu/drm/nouveau/nouveau_bios.c bios->legacy.i2c_indices.panel = bios->data[legacy_i2c_offset + 2]; bios 1197 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fmaxvco = ROM32(bmp[67]); bios 1198 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fminvco = ROM32(bmp[71]); bios 1201 drivers/gpu/drm/nouveau/nouveau_bios.c parse_script_table_pointers(bios, offset + 75); bios 1203 drivers/gpu/drm/nouveau/nouveau_bios.c bios->tmds.output0_script_ptr = ROM16(bmp[89]); bios 1204 drivers/gpu/drm/nouveau/nouveau_bios.c bios->tmds.output1_script_ptr = ROM16(bmp[91]); bios 1210 drivers/gpu/drm/nouveau/nouveau_bios.c bios->legacy.lvds_single_a_script_ptr = ROM16(bmp[95]); bios 1213 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.fptablepointer = ROM16(bmp[105]); bios 1214 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.fpxlatetableptr = ROM16(bmp[107]); bios 1215 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.xlatwidth = 1; bios 1218 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.lvdsmanufacturerpointer = ROM16(bmp[117]); bios 1219 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.fpxlatemanufacturertableptr = ROM16(bmp[119]); bios 1223 drivers/gpu/drm/nouveau/nouveau_bios.c bios->pll_limit_tbl_ptr = ROM16(bmp[142]); bios 1227 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.duallink_transition_clk = ROM16(bmp[156]) * 10; bios 1753 drivers/gpu/drm/nouveau/nouveau_bios.c fabricate_dcb_encoder_table(struct drm_device *dev, struct nvbios *bios) bios 1755 drivers/gpu/drm/nouveau/nouveau_bios.c struct dcb_table *dcb = &bios->dcb; bios 1769 drivers/gpu/drm/nouveau/nouveau_bios.c bios->legacy.i2c_indices.crt, 1, 1); bios 1771 drivers/gpu/drm/nouveau/nouveau_bios.c if (nv04_tv_identify(dev, bios->legacy.i2c_indices.tv) >= 0) bios 1773 drivers/gpu/drm/nouveau/nouveau_bios.c bios->legacy.i2c_indices.tv, bios 1776 drivers/gpu/drm/nouveau/nouveau_bios.c else if (bios->tmds.output0_script_ptr || bios 1777 drivers/gpu/drm/nouveau/nouveau_bios.c bios->tmds.output1_script_ptr) bios 1779 drivers/gpu/drm/nouveau/nouveau_bios.c bios->legacy.i2c_indices.panel, bios 1817 drivers/gpu/drm/nouveau/nouveau_bios.c dcb_fake_connectors(struct nvbios *bios) bios 1819 drivers/gpu/drm/nouveau/nouveau_bios.c struct dcb_table *dcbt = &bios->dcb; bios 1828 drivers/gpu/drm/nouveau/nouveau_bios.c if (!nv_match_device(bios->dev, 0x0392, 0x107d, 0x20a2)) { bios 1856 drivers/gpu/drm/nouveau/nouveau_bios.c u8 *conntab = olddcb_conntab(bios->dev); bios 1863 drivers/gpu/drm/nouveau/nouveau_bios.c parse_dcb_table(struct drm_device *dev, struct nvbios *bios) bios 1866 drivers/gpu/drm/nouveau/nouveau_bios.c struct dcb_table *dcb = &bios->dcb; bios 1873 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->type == NVBIOS_BMP) { bios 1874 drivers/gpu/drm/nouveau/nouveau_bios.c fabricate_dcb_encoder_table(dev, bios); bios 1905 drivers/gpu/drm/nouveau/nouveau_bios.c dcb_fake_connectors(bios); bios 1909 drivers/gpu/drm/nouveau/nouveau_bios.c static int load_nv17_hwsq_ucode_entry(struct drm_device *dev, struct nvbios *bios, uint16_t hwsq_offset, int entry) bios 1926 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->data[hwsq_offset] <= entry) { bios 1932 drivers/gpu/drm/nouveau/nouveau_bios.c bytes_to_write = bios->data[hwsq_offset + 1]; bios 1944 drivers/gpu/drm/nouveau/nouveau_bios.c nvif_wr32(device, 0x00001304, ROM32(bios->data[hwsq_entry_offset])); bios 1949 drivers/gpu/drm/nouveau/nouveau_bios.c nvif_wr32(device, 0x00001400 + i, ROM32(bios->data[hwsq_entry_offset + i + 4])); bios 1958 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios) bios 1973 drivers/gpu/drm/nouveau/nouveau_bios.c hwsq_offset = findstr(bios->data, bios->length, hwsq_signature, sz); bios 1978 drivers/gpu/drm/nouveau/nouveau_bios.c return load_nv17_hwsq_ucode_entry(dev, bios, hwsq_offset + sz, 0); bios 1984 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; bios 1991 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->fp.edid) bios 1992 drivers/gpu/drm/nouveau/nouveau_bios.c return bios->fp.edid; bios 1995 drivers/gpu/drm/nouveau/nouveau_bios.c newoffset = findstr(&bios->data[offset], searchlen, bios 2000 drivers/gpu/drm/nouveau/nouveau_bios.c if (!nv_cksum(&bios->data[offset], EDID1_LEN)) bios 2009 drivers/gpu/drm/nouveau/nouveau_bios.c return bios->fp.edid = &bios->data[offset]; bios 2015 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvkm_bios *bios = nvxx_bios(&drm->client.device); bios 2022 drivers/gpu/drm/nouveau/nouveau_bios.c legacy->data = bios->data; bios 2023 drivers/gpu/drm/nouveau/nouveau_bios.c legacy->length = bios->size; bios 2024 drivers/gpu/drm/nouveau/nouveau_bios.c legacy->major_version = bios->version.major; bios 2025 drivers/gpu/drm/nouveau/nouveau_bios.c legacy->chip_version = bios->version.chip; bios 2026 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->bit_offset) { bios 2028 drivers/gpu/drm/nouveau/nouveau_bios.c legacy->offset = bios->bit_offset; bios 2031 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->bmp_offset) { bios 2033 drivers/gpu/drm/nouveau/nouveau_bios.c legacy->offset = bios->bmp_offset; bios 2044 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; bios 2048 drivers/gpu/drm/nouveau/nouveau_bios.c bios->state.crtchead = 0; bios 2050 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->major_version < 5) /* BMP only */ bios 2051 drivers/gpu/drm/nouveau/nouveau_bios.c load_nv17_hw_sequencer_ucode(dev, bios); bios 2053 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->execute) { bios 2054 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.last_script_invoc = 0; bios 2055 drivers/gpu/drm/nouveau/nouveau_bios.c bios->fp.lvds_init_run = false; bios 2082 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; bios 2092 drivers/gpu/drm/nouveau/nouveau_bios.c ret = parse_dcb_table(dev, bios); bios 2096 drivers/gpu/drm/nouveau/nouveau_bios.c if (!bios->major_version) /* we don't run version 0 bios */ bios 2100 drivers/gpu/drm/nouveau/nouveau_bios.c bios->execute = false; bios 2106 drivers/gpu/drm/nouveau/nouveau_bios.c bios->execute = true; bios 2114 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->major_version < 5) bios 2115 drivers/gpu/drm/nouveau/nouveau_bios.c bios->is_mobile = NVReadVgaCrtc(dev, 0, NV_CIO_CRE_4B) & 0x40; bios 2118 drivers/gpu/drm/nouveau/nouveau_bios.c if (bios->is_mobile || bios->major_version >= 5) bios 2119 drivers/gpu/drm/nouveau/nouveau_bios.c ret = parse_fp_mode_table(dev, bios); bios 2122 drivers/gpu/drm/nouveau/nouveau_bios.c bios->execute = true; bios 860 drivers/gpu/drm/nouveau/nouveau_connector.c struct nvbios *bios = &drm->vbios; bios 883 drivers/gpu/drm/nouveau/nouveau_connector.c if (bios->fp_no_ddc) { bios 884 drivers/gpu/drm/nouveau/nouveau_connector.c if (bios->fp.if_is_24bit) bios 896 drivers/gpu/drm/nouveau/nouveau_connector.c duallink = mode->clock >= bios->fp.duallink_transition_clk; bios 898 drivers/gpu/drm/nouveau/nouveau_connector.c if ((!duallink && (bios->fp.strapless_is_24bit & 1)) || bios 899 drivers/gpu/drm/nouveau/nouveau_connector.c ( duallink && (bios->fp.strapless_is_24bit & 2))) bios 74 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 80 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 101 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 122 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 142 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 164 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 186 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 208 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 230 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 252 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 274 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 296 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 318 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 340 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 362 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 384 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 407 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 430 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 452 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 475 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 501 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 527 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 553 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 579 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 605 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 631 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 657 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 683 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 709 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 735 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 761 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 787 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 814 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 842 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 868 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 894 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 921 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 953 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 985 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1017 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1049 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1081 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1113 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1145 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1179 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1212 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1245 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1277 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1309 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1342 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1379 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1415 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1451 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1488 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1525 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1562 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1598 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1633 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1669 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1708 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1747 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1811 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1849 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1887 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1925 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1963 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 1997 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 2031 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 2066 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 2101 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 2161 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 2197 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 2233 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 2269 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 2305 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 2341 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 2401 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 2442 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 2477 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 2512 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 2547 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 2582 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bios = nvkm_bios_new, bios 2642 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c _(VBIOS , device->bios , &device->bios->subdev); bios 3148 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c _(NVKM_SUBDEV_VBIOS , bios); bios 274 drivers/gpu/drm/nouveau/nvkm/engine/disp/base.c struct nvkm_bios *bios = subdev->device->bios; bios 287 drivers/gpu/drm/nouveau/nvkm/engine/disp/base.c while ((data = dcb_outp_parse(bios, ++i, &ver, &hdr, &dcbE))) { bios 336 drivers/gpu/drm/nouveau/nvkm/engine/disp/base.c data = nvbios_connEp(bios, outp->info.connector, &ver, &hdr, bios 78 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c struct nvkm_bios *bios = ior->disp->engine.subdev.device->bios; bios 110 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c data = nvbios_dpout_match(bios, dp->outp.info.hasht, bios 116 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c data = nvbios_dpcfg_match(bios, data, lpc2 & 3, lvsw & 3, bios 225 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c struct nvkm_bios *bios = subdev->device->bios; bios 244 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c while ((ior->dp.bw * 2700) < nvbios_rd16(bios, lnkcmp)) bios 246 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c lnkcmp = nvbios_rd16(bios, lnkcmp + 2); bios 248 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c while (ior->dp.bw < nvbios_rd08(bios, lnkcmp)) bios 250 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c lnkcmp = nvbios_rd16(bios, lnkcmp + 1); bios 631 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c struct nvkm_bios *bios = device->bios; bios 648 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c data = nvbios_dpout_match(bios, dp->outp.info.hasht, bios 186 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c struct nvkm_bios *bios = head->disp->engine.subdev.device->bios; bios 190 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c u32 data = nvbios_outp_match(bios, t, m, ver, hdr, cnt, len, iedt); bios 201 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c struct nvkm_bios *bios = subdev->device->bios; bios 228 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c data = nvbios_ocfg_match(bios, data, ior->asy.proto_evo, flags, bios 237 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c data = nvbios_oclk_match(bios, iedtrs.clkcmp[id], khz); bios 313 drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c struct nvkm_bios *bios = device->bios; bios 315 drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c if (!bit_entry(bios, 'P', &bit_P) && bios 317 drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c u32 data = nvbios_rd32(bios, bit_P.offset + 0x28); bios 319 drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c u8 ver = nvbios_rd08(bios, data + 0x00); bios 320 drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c u8 hdr = nvbios_rd08(bios, data + 0x01); bios 322 drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c data = nvbios_rd32(bios, data + 0x04); bios 347 drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c struct nvkm_bios *bios = device->bios; bios 353 drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c while (nvbios_P0260Ep(bios, ++E, &ver, &hdr, &infoE)) { bios 356 drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c while (nvbios_P0260Xp(bios, ++X, &ver, &hdr, &infoX)) bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c nvbios_M0203Te(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) bios 34 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c if (!bit_entry(bios, 'M', &bit_M)) { bios 36 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c data = nvbios_rd16(bios, bit_M.offset + 0x03); bios 38 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c *ver = nvbios_rd08(bios, data + 0x00); bios 41 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c *hdr = nvbios_rd08(bios, data + 0x01); bios 42 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c *len = nvbios_rd08(bios, data + 0x02); bios 43 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c *cnt = nvbios_rd08(bios, data + 0x03); bios 55 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c nvbios_M0203Tp(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, bios 58 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c u32 data = nvbios_M0203Te(bios, ver, hdr, cnt, len); bios 62 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c info->type = nvbios_rd08(bios, data + 0x04); bios 63 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c info->pointer = nvbios_rd16(bios, data + 0x05); bios 72 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c nvbios_M0203Ee(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr) bios 75 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c u32 data = nvbios_M0203Te(bios, ver, hdr, &cnt, &len); bios 85 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c nvbios_M0203Ep(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, bios 88 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c u32 data = nvbios_M0203Ee(bios, idx, ver, hdr); bios 92 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c info->type = (nvbios_rd08(bios, data + 0x00) & 0x0f) >> 0; bios 93 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c info->strap = (nvbios_rd08(bios, data + 0x00) & 0xf0) >> 4; bios 94 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c info->group = (nvbios_rd08(bios, data + 0x01) & 0x0f) >> 0; bios 103 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c nvbios_M0203Em(struct nvkm_bios *bios, u8 ramcfg, u8 *ver, u8 *hdr, bios 106 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c struct nvkm_subdev *subdev = &bios->subdev; bios 111 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c if (!nvbios_M0203Tp(bios, ver, hdr, &cnt, &len, &M0203T)) { bios 116 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c while ((data = nvbios_M0203Ep(bios, ++idx, ver, hdr, info))) { bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c nvbios_M0205Te(struct nvkm_bios *bios, bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c if (!bit_entry(bios, 'M', &bit_M)) { bios 37 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c data = nvbios_rd32(bios, bit_M.offset + 0x05); bios 39 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c *ver = nvbios_rd08(bios, data + 0x00); bios 42 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c *hdr = nvbios_rd08(bios, data + 0x01); bios 43 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c *len = nvbios_rd08(bios, data + 0x02); bios 44 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c *ssz = nvbios_rd08(bios, data + 0x03); bios 45 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c *snr = nvbios_rd08(bios, data + 0x04); bios 46 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c *cnt = nvbios_rd08(bios, data + 0x05); bios 58 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c nvbios_M0205Tp(struct nvkm_bios *bios, bios 62 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c u32 data = nvbios_M0205Te(bios, ver, hdr, cnt, len, snr, ssz); bios 66 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c info->freq = nvbios_rd16(bios, data + 0x06); bios 75 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c nvbios_M0205Ee(struct nvkm_bios *bios, int idx, bios 79 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c u32 data = nvbios_M0205Te(bios, ver, hdr, cnt, len, &snr, &ssz); bios 91 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c nvbios_M0205Ep(struct nvkm_bios *bios, int idx, bios 95 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c u32 data = nvbios_M0205Ee(bios, idx, ver, hdr, cnt, len); bios 99 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c info->type = nvbios_rd08(bios, data + 0x00) & 0x0f; bios 108 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c nvbios_M0205Se(struct nvkm_bios *bios, int ent, int idx, u8 *ver, u8 *hdr) bios 112 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c u32 data = nvbios_M0205Ee(bios, ent, ver, hdr, &cnt, &len); bios 122 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c nvbios_M0205Sp(struct nvkm_bios *bios, int ent, int idx, u8 *ver, u8 *hdr, bios 125 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c u32 data = nvbios_M0205Se(bios, ent, idx, ver, hdr); bios 129 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c info->data = nvbios_rd08(bios, data + 0x00); bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c nvbios_M0209Te(struct nvkm_bios *bios, bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c if (!bit_entry(bios, 'M', &bit_M)) { bios 37 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c data = nvbios_rd32(bios, bit_M.offset + 0x09); bios 39 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c *ver = nvbios_rd08(bios, data + 0x00); bios 42 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c *hdr = nvbios_rd08(bios, data + 0x01); bios 43 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c *len = nvbios_rd08(bios, data + 0x02); bios 44 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c *ssz = nvbios_rd08(bios, data + 0x03); bios 46 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c *cnt = nvbios_rd08(bios, data + 0x04); bios 58 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c nvbios_M0209Ee(struct nvkm_bios *bios, int idx, bios 62 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c u32 data = nvbios_M0209Te(bios, ver, hdr, cnt, len, &snr, &ssz); bios 74 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c nvbios_M0209Ep(struct nvkm_bios *bios, int idx, bios 77 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c u32 data = nvbios_M0209Ee(bios, idx, ver, hdr, cnt, len); bios 81 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c info->v00_40 = (nvbios_rd08(bios, data + 0x00) & 0x40) >> 6; bios 82 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c info->bits = nvbios_rd08(bios, data + 0x00) & 0x3f; bios 83 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c info->modulo = nvbios_rd08(bios, data + 0x01); bios 84 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c info->v02_40 = (nvbios_rd08(bios, data + 0x02) & 0x40) >> 6; bios 85 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c info->v02_07 = nvbios_rd08(bios, data + 0x02) & 0x07; bios 86 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c info->v03 = nvbios_rd08(bios, data + 0x03); bios 95 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c nvbios_M0209Se(struct nvkm_bios *bios, int ent, int idx, u8 *ver, u8 *hdr) bios 99 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c u32 data = nvbios_M0209Ee(bios, ent, ver, hdr, &cnt, &len); bios 109 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c nvbios_M0209Sp(struct nvkm_bios *bios, int ent, int idx, u8 *ver, u8 *hdr, bios 114 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c u32 data = nvbios_M0209Ep(bios, ent, ver, hdr, &cnt, &len, &M0209E); bios 116 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c u32 i, data = nvbios_M0209Se(bios, ent, idx, ver, hdr); bios 125 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c info->data[i] = nvbios_rd32(bios, data + off); bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c nvbios_P0260Te(struct nvkm_bios *bios, bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c if (!bit_entry(bios, 'P', &bit_P)) { bios 37 drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c data = nvbios_rd32(bios, bit_P.offset + 0x60); bios 39 drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c *ver = nvbios_rd08(bios, data + 0); bios 42 drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c *hdr = nvbios_rd08(bios, data + 1); bios 43 drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c *cnt = nvbios_rd08(bios, data + 2); bios 45 drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c *xnr = nvbios_rd08(bios, data + 3); bios 58 drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c nvbios_P0260Ee(struct nvkm_bios *bios, int idx, u8 *ver, u8 *len) bios 61 drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c u32 data = nvbios_P0260Te(bios, ver, &hdr, &cnt, len, &xnr, &xsz); bios 68 drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c nvbios_P0260Ep(struct nvkm_bios *bios, int idx, u8 *ver, u8 *len, bios 71 drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c u32 data = nvbios_P0260Ee(bios, idx, ver, len); bios 75 drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c info->data = nvbios_rd32(bios, data); bios 84 drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c nvbios_P0260Xe(struct nvkm_bios *bios, int idx, u8 *ver, u8 *xsz) bios 87 drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c u32 data = nvbios_P0260Te(bios, ver, &hdr, &cnt, &len, &xnr, xsz); bios 94 drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c nvbios_P0260Xp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, bios 97 drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c u32 data = nvbios_P0260Xe(bios, idx, ver, hdr); bios 101 drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c info->data = nvbios_rd32(bios, data); bios 32 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c nvbios_addr(struct nvkm_bios *bios, u32 *addr, u8 size) bios 36 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c if (*addr > bios->image0_size && bios->imaged_addr) { bios 37 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c *addr -= bios->image0_size; bios 38 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c *addr += bios->imaged_addr; bios 41 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c if (unlikely(*addr + size >= bios->size)) { bios 42 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c nvkm_error(&bios->subdev, "OOB %d %08x %08x\n", size, p, *addr); bios 50 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c nvbios_rd08(struct nvkm_bios *bios, u32 addr) bios 52 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c if (likely(nvbios_addr(bios, &addr, 1))) bios 53 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c return bios->data[addr]; bios 58 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c nvbios_rd16(struct nvkm_bios *bios, u32 addr) bios 60 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c if (likely(nvbios_addr(bios, &addr, 2))) bios 61 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c return get_unaligned_le16(&bios->data[addr]); bios 66 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c nvbios_rd32(struct nvkm_bios *bios, u32 addr) bios 68 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c if (likely(nvbios_addr(bios, &addr, 4))) bios 69 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c return get_unaligned_le32(&bios->data[addr]); bios 99 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c nvbios_memcmp(struct nvkm_bios *bios, u32 addr, const char *str, u32 len) bios 104 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c c1 = nvbios_rd08(bios, addr++); bios 113 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c nvbios_extend(struct nvkm_bios *bios, u32 length) bios 115 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c if (bios->size < length) { bios 116 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c u8 *prev = bios->data; bios 117 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c if (!(bios->data = kmalloc(length, GFP_KERNEL))) { bios 118 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->data = prev; bios 121 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c memcpy(bios->data, prev, bios->size); bios 122 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->size = length; bios 132 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c struct nvkm_bios *bios = nvkm_bios(subdev); bios 133 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c kfree(bios->data); bios 134 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c return bios; bios 145 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c struct nvkm_bios *bios; bios 150 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c if (!(bios = *pbios = kzalloc(sizeof(*bios), GFP_KERNEL))) bios 152 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c nvkm_subdev_ctor(&nvkm_bios, device, index, &bios->subdev); bios 154 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c ret = nvbios_shadow(bios); bios 161 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c if (nvbios_image(bios, idx++, &image)) { bios 162 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->image0_size = image.size; bios 163 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c while (nvbios_image(bios, idx++, &image)) { bios 165 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->imaged_addr = image.base; bios 172 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->bmp_offset = nvbios_findstr(bios->data, bios->size, bios 174 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c if (bios->bmp_offset) { bios 175 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c nvkm_debug(&bios->subdev, "BMP version %x.%x\n", bios 176 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bmp_version(bios) >> 8, bios 177 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bmp_version(bios) & 0xff); bios 180 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->bit_offset = nvbios_findstr(bios->data, bios->size, bios 182 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c if (bios->bit_offset) bios 183 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c nvkm_debug(&bios->subdev, "BIT signature found\n"); bios 186 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c if (!bit_entry(bios, 'i', &bit_i) && bit_i.length >= 4) { bios 187 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->version.major = nvbios_rd08(bios, bit_i.offset + 3); bios 188 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->version.chip = nvbios_rd08(bios, bit_i.offset + 2); bios 189 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->version.minor = nvbios_rd08(bios, bit_i.offset + 1); bios 190 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->version.micro = nvbios_rd08(bios, bit_i.offset + 0); bios 191 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->version.patch = nvbios_rd08(bios, bit_i.offset + 4); bios 193 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c if (bmp_version(bios)) { bios 194 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->version.major = nvbios_rd08(bios, bios->bmp_offset + 13); bios 195 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->version.chip = nvbios_rd08(bios, bios->bmp_offset + 12); bios 196 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->version.minor = nvbios_rd08(bios, bios->bmp_offset + 11); bios 197 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->version.micro = nvbios_rd08(bios, bios->bmp_offset + 10); bios 200 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c nvkm_info(&bios->subdev, "version %02x.%02x.%02x.%02x.%02x\n", bios 201 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->version.major, bios->version.chip, bios 202 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->version.minor, bios->version.micro, bios->version.patch); bios 28 drivers/gpu/drm/nouveau/nvkm/subdev/bios/bit.c bit_entry(struct nvkm_bios *bios, u8 id, struct bit_entry *bit) bios 30 drivers/gpu/drm/nouveau/nvkm/subdev/bios/bit.c if (likely(bios->bit_offset)) { bios 31 drivers/gpu/drm/nouveau/nvkm/subdev/bios/bit.c u8 entries = nvbios_rd08(bios, bios->bit_offset + 10); bios 32 drivers/gpu/drm/nouveau/nvkm/subdev/bios/bit.c u32 entry = bios->bit_offset + 12; bios 34 drivers/gpu/drm/nouveau/nvkm/subdev/bios/bit.c if (nvbios_rd08(bios, entry + 0) == id) { bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/bit.c bit->id = nvbios_rd08(bios, entry + 0); bios 36 drivers/gpu/drm/nouveau/nvkm/subdev/bios/bit.c bit->version = nvbios_rd08(bios, entry + 1); bios 37 drivers/gpu/drm/nouveau/nvkm/subdev/bios/bit.c bit->length = nvbios_rd16(bios, entry + 2); bios 38 drivers/gpu/drm/nouveau/nvkm/subdev/bios/bit.c bit->offset = nvbios_rd16(bios, entry + 4); bios 42 drivers/gpu/drm/nouveau/nvkm/subdev/bios/bit.c entry += nvbios_rd08(bios, bios->bit_offset + 9); bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c nvbios_boostTe(struct nvkm_bios *bios, bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c if (!bit_entry(bios, 'P', &bit_P)) { bios 37 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c boost = nvbios_rd32(bios, bit_P.offset + 0x30); bios 40 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c *ver = nvbios_rd08(bios, boost + 0); bios 43 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c *hdr = nvbios_rd08(bios, boost + 1); bios 44 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c *cnt = nvbios_rd08(bios, boost + 5); bios 45 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c *len = nvbios_rd08(bios, boost + 2); bios 46 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c *snr = nvbios_rd08(bios, boost + 4); bios 47 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c *ssz = nvbios_rd08(bios, boost + 3); bios 59 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c nvbios_boostEe(struct nvkm_bios *bios, int idx, bios 63 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c u32 data = nvbios_boostTe(bios, ver, hdr, cnt, len, &snr, &ssz); bios 75 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c nvbios_boostEp(struct nvkm_bios *bios, int idx, bios 78 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c u32 data = nvbios_boostEe(bios, idx, ver, hdr, cnt, len); bios 81 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c info->pstate = (nvbios_rd16(bios, data + 0x00) & 0x01e0) >> 5; bios 82 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c info->min = nvbios_rd16(bios, data + 0x02) * 1000; bios 83 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c info->max = nvbios_rd16(bios, data + 0x04) * 1000; bios 89 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c nvbios_boostEm(struct nvkm_bios *bios, u8 pstate, bios 93 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c while ((data = nvbios_boostEp(bios, idx++, ver, hdr, cnt, len, info))) { bios 101 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c nvbios_boostSe(struct nvkm_bios *bios, int idx, bios 113 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c nvbios_boostSp(struct nvkm_bios *bios, int idx, bios 117 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c data = nvbios_boostSe(bios, idx, data, ver, hdr, cnt, len); bios 120 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c info->domain = nvbios_rd08(bios, data + 0x00); bios 121 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c info->percent = nvbios_rd08(bios, data + 0x01); bios 122 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c info->min = nvbios_rd16(bios, data + 0x02) * 1000; bios 123 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c info->max = nvbios_rd16(bios, data + 0x04) * 1000; bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c nvbios_connTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) bios 31 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c u32 dcb = dcb_table(bios, ver, hdr, cnt, len); bios 33 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c u32 data = nvbios_rd16(bios, dcb + 0x14); bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c *ver = nvbios_rd08(bios, data + 0); bios 36 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c *hdr = nvbios_rd08(bios, data + 1); bios 37 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c *cnt = nvbios_rd08(bios, data + 2); bios 38 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c *len = nvbios_rd08(bios, data + 3); bios 46 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c nvbios_connTp(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, bios 49 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c u32 data = nvbios_connTe(bios, ver, hdr, cnt, len); bios 62 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c nvbios_connEe(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *len) bios 65 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c u32 data = nvbios_connTe(bios, ver, &hdr, &cnt, len); bios 72 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c nvbios_connEp(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *len, bios 75 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c u32 data = nvbios_connEe(bios, idx, ver, len); bios 80 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c info->type = nvbios_rd08(bios, data + 0x00); bios 81 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c info->location = nvbios_rd08(bios, data + 0x01) & 0x0f; bios 82 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c info->hpd = (nvbios_rd08(bios, data + 0x01) & 0x30) >> 4; bios 83 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c info->dp = (nvbios_rd08(bios, data + 0x01) & 0xc0) >> 6; bios 86 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c info->hpd |= (nvbios_rd08(bios, data + 0x02) & 0x03) << 2; bios 87 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c info->dp |= nvbios_rd08(bios, data + 0x02) & 0x0c; bios 88 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c info->di = (nvbios_rd08(bios, data + 0x02) & 0xf0) >> 4; bios 89 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c info->hpd |= (nvbios_rd08(bios, data + 0x03) & 0x07) << 4; bios 90 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c info->sr = (nvbios_rd08(bios, data + 0x03) & 0x08) >> 3; bios 91 drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c info->lcdid = (nvbios_rd08(bios, data + 0x03) & 0x70) >> 4; bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c nvbios_cstepTe(struct nvkm_bios *bios, bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c if (!bit_entry(bios, 'P', &bit_P)) { bios 37 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c cstep = nvbios_rd32(bios, bit_P.offset + 0x34); bios 40 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c *ver = nvbios_rd08(bios, cstep + 0); bios 43 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c *hdr = nvbios_rd08(bios, cstep + 1); bios 44 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c *cnt = nvbios_rd08(bios, cstep + 3); bios 45 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c *len = nvbios_rd08(bios, cstep + 2); bios 46 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c *xnr = nvbios_rd08(bios, cstep + 5); bios 47 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c *xsz = nvbios_rd08(bios, cstep + 4); bios 59 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c nvbios_cstepEe(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr) bios 62 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c u32 data = nvbios_cstepTe(bios, ver, hdr, &cnt, &len, &xnr, &xsz); bios 72 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c nvbios_cstepEp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, bios 75 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c u32 data = nvbios_cstepEe(bios, idx, ver, hdr); bios 78 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c info->pstate = (nvbios_rd16(bios, data + 0x00) & 0x01e0) >> 5; bios 79 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c info->index = nvbios_rd08(bios, data + 0x03); bios 85 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c nvbios_cstepEm(struct nvkm_bios *bios, u8 pstate, u8 *ver, u8 *hdr, bios 89 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c while ((data = nvbios_cstepEp(bios, idx++, ver, hdr, info))) { bios 97 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c nvbios_cstepXe(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr) bios 100 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c u32 data = nvbios_cstepTe(bios, ver, hdr, &cnt, &len, &xnr, &xsz); bios 110 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c nvbios_cstepXp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, bios 113 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c u32 data = nvbios_cstepXe(bios, idx, ver, hdr); bios 116 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c info->freq = nvbios_rd16(bios, data + 0x00) * 1000; bios 117 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c info->unkn[0] = nvbios_rd08(bios, data + 0x02); bios 118 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c info->unkn[1] = nvbios_rd08(bios, data + 0x03); bios 119 drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c info->voltage = nvbios_rd08(bios, data + 0x04); bios 28 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c dcb_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) bios 30 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c struct nvkm_subdev *subdev = &bios->subdev; bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c dcb = nvbios_rd16(bios, 0x36); bios 41 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c *ver = nvbios_rd08(bios, dcb); bios 48 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c if (nvbios_rd32(bios, dcb + 6) == 0x4edcbdcb) { bios 49 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c *hdr = nvbios_rd08(bios, dcb + 1); bios 50 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c *cnt = nvbios_rd08(bios, dcb + 2); bios 51 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c *len = nvbios_rd08(bios, dcb + 3); bios 56 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c if (nvbios_rd32(bios, dcb + 4) == 0x4edcbdcb) { bios 57 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c u16 i2c = nvbios_rd16(bios, dcb + 2); bios 65 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c if (!nvbios_memcmp(bios, dcb - 7, "DEV_REC", 7)) { bios 66 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c u16 i2c = nvbios_rd16(bios, dcb + 2); bios 99 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c dcb_outp(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *len) bios 102 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c u16 dcb = dcb_table(bios, ver, &hdr, &cnt, len); bios 121 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c dcb_outp_parse(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *len, bios 124 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c u16 dcb = dcb_outp(bios, idx, ver, len); bios 128 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c u32 conn = nvbios_rd32(bios, dcb + 0x00); bios 142 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c u32 conf = nvbios_rd32(bios, dcb + 0x04); bios 197 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c dcb_outp_match(struct nvkm_bios *bios, u16 type, u16 mask, bios 201 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c while ((dcb = dcb_outp_parse(bios, idx++, ver, len, outp))) { bios 211 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c dcb_outp_foreach(struct nvkm_bios *bios, void *data, bios 218 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c while ((outp = dcb_outp(bios, ++idx, &ver, &len))) { bios 219 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c if (nvbios_rd32(bios, outp) == 0x00000000) bios 221 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c if (nvbios_rd32(bios, outp) == 0xffffffff) bios 224 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c if (nvbios_rd08(bios, outp) == DCB_OUTPUT_UNUSED) bios 226 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c if (nvbios_rd08(bios, outp) == DCB_OUTPUT_EOL) bios 229 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c ret = exec(bios, data, idx, outp); bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c nvbios_disp_table(struct nvkm_bios *bios, bios 34 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c if (!bit_entry(bios, 'U', &U)) { bios 36 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c u16 data = nvbios_rd16(bios, U.offset); bios 38 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c *ver = nvbios_rd08(bios, data + 0x00); bios 43 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c *hdr = nvbios_rd08(bios, data + 0x01); bios 44 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c *len = nvbios_rd08(bios, data + 0x02); bios 45 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c *cnt = nvbios_rd08(bios, data + 0x03); bios 46 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c *sub = nvbios_rd08(bios, data + 0x04); bios 59 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c nvbios_disp_entry(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *len, u8 *sub) bios 62 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c u16 data = nvbios_disp_table(bios, ver, &hdr, &cnt, len, sub); bios 70 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c nvbios_disp_parse(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *len, u8 *sub, bios 73 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c u16 data = nvbios_disp_entry(bios, idx, ver, len, sub); bios 75 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c info->data = nvbios_rd16(bios, data + 0); bios 82 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c nvbios_outp_entry(struct nvkm_bios *bios, u8 idx, bios 86 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c u16 data = nvbios_disp_parse(bios, idx, ver, len, hdr, &info); bios 88 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c *cnt = nvbios_rd08(bios, info.data + 0x05); bios 96 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c nvbios_outp_parse(struct nvkm_bios *bios, u8 idx, bios 99 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c u16 data = nvbios_outp_entry(bios, idx, ver, hdr, cnt, len); bios 101 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c info->type = nvbios_rd16(bios, data + 0x00); bios 102 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c info->mask = nvbios_rd32(bios, data + 0x02); bios 105 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c info->script[0] = nvbios_rd16(bios, data + 0x06); bios 106 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c info->script[1] = nvbios_rd16(bios, data + 0x08); bios 109 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c info->script[2] = nvbios_rd16(bios, data + 0x0a); bios 116 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c nvbios_outp_match(struct nvkm_bios *bios, u16 type, u16 mask, bios 120 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c while ((data = nvbios_outp_parse(bios, idx++, ver, hdr, cnt, len, info)) || *ver) { bios 130 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c nvbios_ocfg_entry(struct nvkm_bios *bios, u16 outp, u8 idx, bios 139 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c nvbios_ocfg_parse(struct nvkm_bios *bios, u16 outp, u8 idx, bios 142 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c u16 data = nvbios_ocfg_entry(bios, outp, idx, ver, hdr, cnt, len); bios 144 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c info->proto = nvbios_rd08(bios, data + 0x00); bios 145 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c info->flags = nvbios_rd16(bios, data + 0x01); bios 146 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c info->clkcmp[0] = nvbios_rd16(bios, data + 0x02); bios 147 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c info->clkcmp[1] = nvbios_rd16(bios, data + 0x04); bios 153 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c nvbios_ocfg_match(struct nvkm_bios *bios, u16 outp, u8 proto, u8 flags, bios 157 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c while ((data = nvbios_ocfg_parse(bios, outp, idx++, ver, hdr, cnt, len, info))) { bios 166 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c nvbios_oclk_match(struct nvkm_bios *bios, u16 cmp, u32 khz) bios 169 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c if (khz / 10 >= nvbios_rd16(bios, cmp + 0x00)) bios 170 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c return nvbios_rd16(bios, cmp + 0x02); bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c nvbios_dp_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) bios 33 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c if (!bit_entry(bios, 'd', &d)) { bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c u16 data = nvbios_rd16(bios, d.offset); bios 37 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c *ver = nvbios_rd08(bios, data + 0x00); bios 45 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c *hdr = nvbios_rd08(bios, data + 0x01); bios 46 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c *len = nvbios_rd08(bios, data + 0x02); bios 47 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c *cnt = nvbios_rd08(bios, data + 0x03); bios 60 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c nvbios_dpout_entry(struct nvkm_bios *bios, u8 idx, bios 63 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c u16 data = nvbios_dp_table(bios, ver, hdr, cnt, len); bios 65 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c u16 outp = nvbios_rd16(bios, data + *hdr + idx * *len); bios 70 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c *hdr = nvbios_rd08(bios, data + 0x04); bios 71 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c *len = nvbios_rd08(bios, data + 0x05); bios 72 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c *cnt = nvbios_rd08(bios, outp + 0x04); bios 77 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c *hdr = nvbios_rd08(bios, data + 0x04); bios 91 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c nvbios_dpout_parse(struct nvkm_bios *bios, u8 idx, bios 95 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c u16 data = nvbios_dpout_entry(bios, idx, ver, hdr, cnt, len); bios 98 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->type = nvbios_rd16(bios, data + 0x00); bios 99 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->mask = nvbios_rd16(bios, data + 0x02); bios 106 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->flags = nvbios_rd08(bios, data + 0x05); bios 107 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->script[0] = nvbios_rd16(bios, data + 0x06); bios 108 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->script[1] = nvbios_rd16(bios, data + 0x08); bios 110 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->lnkcmp = nvbios_rd16(bios, data + 0x0a); bios 112 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->script[2] = nvbios_rd16(bios, data + 0x0c); bios 113 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->script[3] = nvbios_rd16(bios, data + 0x0e); bios 116 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->script[4] = nvbios_rd16(bios, data + 0x10); bios 121 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->flags = nvbios_rd08(bios, data + 0x04); bios 122 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->script[0] = nvbios_rd16(bios, data + 0x05); bios 123 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->script[1] = nvbios_rd16(bios, data + 0x07); bios 124 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->lnkcmp = nvbios_rd16(bios, data + 0x09); bios 125 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->script[2] = nvbios_rd16(bios, data + 0x0b); bios 126 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->script[3] = nvbios_rd16(bios, data + 0x0d); bios 127 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->script[4] = nvbios_rd16(bios, data + 0x0f); bios 138 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c nvbios_dpout_match(struct nvkm_bios *bios, u16 type, u16 mask, bios 143 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c while ((data = nvbios_dpout_parse(bios, idx++, ver, hdr, cnt, len, info)) || *ver) { bios 153 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c nvbios_dpcfg_entry(struct nvkm_bios *bios, u16 outp, u8 idx, bios 157 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c outp = nvbios_dp_table(bios, ver, hdr, cnt, len); bios 159 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c *len = nvbios_rd08(bios, outp + 0x06); bios 160 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c *cnt = nvbios_rd08(bios, outp + 0x07) * bios 161 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c nvbios_rd08(bios, outp + 0x05); bios 171 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c nvbios_dpcfg_parse(struct nvkm_bios *bios, u16 outp, u8 idx, bios 175 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c u16 data = nvbios_dpcfg_entry(bios, outp, idx, ver, hdr, cnt, len); bios 181 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->dc = nvbios_rd08(bios, data + 0x02); bios 182 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->pe = nvbios_rd08(bios, data + 0x03); bios 183 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->tx_pu = nvbios_rd08(bios, data + 0x04); bios 188 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->pc = nvbios_rd08(bios, data + 0x00); bios 189 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->dc = nvbios_rd08(bios, data + 0x01); bios 190 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->pe = nvbios_rd08(bios, data + 0x02); bios 191 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->tx_pu = nvbios_rd08(bios, data + 0x03); bios 194 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->dc = nvbios_rd08(bios, data + 0x00); bios 195 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->pe = nvbios_rd08(bios, data + 0x01); bios 196 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->tx_pu = nvbios_rd08(bios, data + 0x02); bios 207 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c nvbios_dpcfg_match(struct nvkm_bios *bios, u16 outp, u8 pc, u8 vs, u8 pe, bios 218 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c idx += nvbios_rd08(bios, outp + 0x11) * 40; bios 221 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c idx += nvbios_rd08(bios, outp + 0x11) * 10; bios 223 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c while ((data = nvbios_dpcfg_entry(bios, outp, ++idx, bios 225 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c if (nvbios_rd08(bios, data + 0x00) == vs && bios 226 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c nvbios_rd08(bios, data + 0x01) == pe) bios 231 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c return nvbios_dpcfg_parse(bios, outp, idx, ver, hdr, cnt, len, info); bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c extdev_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *len, u8 *cnt) bios 34 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c dcb = dcb_table(bios, &dcb_ver, &dcb_hdr, &dcb_cnt, &dcb_len); bios 38 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c extdev = nvbios_rd16(bios, dcb + 18); bios 42 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c *ver = nvbios_rd08(bios, extdev + 0); bios 43 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c *hdr = nvbios_rd08(bios, extdev + 1); bios 44 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c *cnt = nvbios_rd08(bios, extdev + 2); bios 45 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c *len = nvbios_rd08(bios, extdev + 3); bios 50 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c nvbios_extdev_skip_probe(struct nvkm_bios *bios) bios 53 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c u16 data = extdev_table(bios, &ver, &hdr, &len, &cnt); bios 55 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c u8 flags = nvbios_rd08(bios, data - hdr + 4); bios 63 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c nvbios_extdev_entry(struct nvkm_bios *bios, int idx, u8 *ver, u8 *len) bios 66 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c u16 extdev = extdev_table(bios, ver, &hdr, len, &cnt); bios 73 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c extdev_parse_entry(struct nvkm_bios *bios, u16 offset, bios 76 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c entry->type = nvbios_rd08(bios, offset + 0); bios 77 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c entry->addr = nvbios_rd08(bios, offset + 1); bios 78 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c entry->bus = (nvbios_rd08(bios, offset + 2) >> 4) & 1; bios 82 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c nvbios_extdev_parse(struct nvkm_bios *bios, int idx, bios 88 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c if (!(entry = nvbios_extdev_entry(bios, idx, &ver, &len))) bios 91 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c extdev_parse_entry(bios, entry, func); bios 96 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c nvbios_extdev_find(struct nvkm_bios *bios, enum nvbios_extdev_type type, bios 103 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c while ((entry = nvbios_extdev_entry(bios, i++, &ver, &len))) { bios 104 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c extdev_parse_entry(bios, entry, func); bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c nvbios_fan_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) bios 34 drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c if (!bit_entry(bios, 'P', &bit_P)) { bios 36 drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c fan = nvbios_rd32(bios, bit_P.offset + 0x58); bios 39 drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c *ver = nvbios_rd08(bios, fan + 0); bios 42 drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c *hdr = nvbios_rd08(bios, fan + 1); bios 43 drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c *len = nvbios_rd08(bios, fan + 2); bios 44 drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c *cnt = nvbios_rd08(bios, fan + 3); bios 56 drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c nvbios_fan_entry(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, bios 59 drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c u32 data = nvbios_fan_table(bios, ver, hdr, cnt, len); bios 66 drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c nvbios_fan_parse(struct nvkm_bios *bios, struct nvbios_therm_fan *fan) bios 70 drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c u32 data = nvbios_fan_entry(bios, 0, &ver, &hdr, &cnt, &len); bios 72 drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c u8 type = nvbios_rd08(bios, data + 0x00); bios 87 drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c fan->min_duty = nvbios_rd08(bios, data + 0x02); bios 88 drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c fan->max_duty = nvbios_rd08(bios, data + 0x03); bios 90 drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c fan->pwm_freq = nvbios_rd32(bios, data + 0x0b) & 0xffffff; bios 30 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c dcb_gpio_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) bios 33 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c u16 dcb = dcb_table(bios, ver, hdr, cnt, len); bios 36 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c data = nvbios_rd16(bios, dcb + 0x0a); bios 38 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c if (*ver >= 0x22 && nvbios_rd08(bios, dcb - 1) >= 0x13) bios 39 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c data = nvbios_rd16(bios, dcb - 0x0f); bios 42 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c *ver = nvbios_rd08(bios, data + 0x00); bios 45 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c *cnt = nvbios_rd08(bios, data + 0x02); bios 46 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c *len = nvbios_rd08(bios, data + 0x01); bios 49 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c *hdr = nvbios_rd08(bios, data + 0x01); bios 50 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c *cnt = nvbios_rd08(bios, data + 0x02); bios 51 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c *len = nvbios_rd08(bios, data + 0x03); bios 61 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c dcb_gpio_entry(struct nvkm_bios *bios, int idx, int ent, u8 *ver, u8 *len) bios 67 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c gpio = dcb_gpio_table(bios, ver, &hdr, &cnt, len); bios 69 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c gpio = dcb_xpio_table(bios, idx, &xver, &hdr, &cnt, len); bios 78 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c dcb_gpio_parse(struct nvkm_bios *bios, int idx, int ent, u8 *ver, u8 *len, bios 81 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c u16 data = dcb_gpio_entry(bios, idx, ent, ver, len); bios 84 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c u16 info = nvbios_rd16(bios, data); bios 94 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c u32 info = nvbios_rd32(bios, data); bios 103 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c u32 info = nvbios_rd32(bios, data + 0); bios 104 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c u8 info1 = nvbios_rd32(bios, data + 4); bios 119 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c dcb_gpio_match(struct nvkm_bios *bios, int idx, u8 func, u8 line, bios 125 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c while ((data = dcb_gpio_parse(bios, idx, i++, ver, len, gpio))) { bios 132 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c if ((data = dcb_table(bios, ver, &hdr, &cnt, len))) { bios 134 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c u8 conf = nvbios_rd08(bios, data - 5); bios 135 drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c u8 addr = nvbios_rd08(bios, data - 4); bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c dcb_i2c_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) bios 32 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c u16 dcb = dcb_table(bios, ver, hdr, cnt, len); bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c i2c = nvbios_rd16(bios, dcb + 2); bios 37 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c i2c = nvbios_rd16(bios, dcb + 4); bios 41 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c nvkm_warn(&bios->subdev, "ccb %02x not supported\n", *ver); bios 46 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c *ver = nvbios_rd08(bios, i2c + 0); bios 47 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c *hdr = nvbios_rd08(bios, i2c + 1); bios 48 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c *cnt = nvbios_rd08(bios, i2c + 2); bios 49 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c *len = nvbios_rd08(bios, i2c + 3); bios 61 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c dcb_i2c_entry(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *len) bios 64 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c u16 i2c = dcb_i2c_table(bios, ver, &hdr, &cnt, len); bios 71 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c dcb_i2c_parse(struct nvkm_bios *bios, u8 idx, struct dcb_i2c_entry *info) bios 73 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c struct nvkm_subdev *subdev = &bios->subdev; bios 75 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c u16 ent = dcb_i2c_entry(bios, idx, &ver, &len); bios 78 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c u32 ent_value = nvbios_rd32(bios, ent); bios 88 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c info->type = nvbios_rd08(bios, ent + 0x03); bios 90 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c info->type = nvbios_rd08(bios, ent + 0x03) & 0x07; bios 102 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c info->drive = nvbios_rd08(bios, ent + 0); bios 103 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c info->sense = nvbios_rd08(bios, ent + 1); bios 106 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c info->drive = nvbios_rd08(bios, ent + 1); bios 109 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c info->drive = nvbios_rd08(bios, ent + 0) & 0x0f; bios 110 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c if (nvbios_rd08(bios, ent + 1) & 0x01) bios 111 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c info->share = nvbios_rd08(bios, ent + 1) >> 1; bios 114 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c info->auxch = nvbios_rd08(bios, ent + 0) & 0x0f; bios 115 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c if (nvbios_rd08(bios, ent + 1) & 0x01) bios 119 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c info->drive = (nvbios_rd16(bios, ent + 0) & 0x01f) >> 0; bios 122 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c info->auxch = (nvbios_rd16(bios, ent + 0) & 0x3e0) >> 5; bios 136 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c if (bios->bmp_offset && idx < 2) { bios 140 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c if (nvbios_rd08(bios, bios->bmp_offset + 5) < 4) bios 143 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c ent = 0x0036 + bios->bmp_offset; bios 146 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c info->drive = nvbios_rd08(bios, ent + 4); bios 148 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c info->sense = nvbios_rd08(bios, ent + 5); bios 152 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c info->drive = nvbios_rd08(bios, ent + 6); bios 154 drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c info->sense = nvbios_rd08(bios, ent + 7); bios 30 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c nvbios_iccsense_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, bios 36 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c if (bit_entry(bios, 'P', &bit_P) || bit_P.version != 2 || bios 40 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c iccsense = nvbios_rd32(bios, bit_P.offset + 0x28); bios 44 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c *ver = nvbios_rd08(bios, iccsense + 0); bios 48 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c *hdr = nvbios_rd08(bios, iccsense + 1); bios 49 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c *len = nvbios_rd08(bios, iccsense + 2); bios 50 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c *cnt = nvbios_rd08(bios, iccsense + 3); bios 60 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c nvbios_iccsense_parse(struct nvkm_bios *bios, struct nvbios_iccsense *iccsense) bios 62 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c struct nvkm_subdev *subdev = &bios->subdev; bios 66 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c table = nvbios_iccsense_table(bios, &ver, &hdr, &cnt, &len); bios 91 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c if ((nvbios_rd08(bios, entry + 0x1) & 0xf8) == 0xf8) bios 95 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->extdev_id = nvbios_rd08(bios, entry + 0x2); bios 99 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->mode = nvbios_rd08(bios, entry); bios 100 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->extdev_id = nvbios_rd08(bios, entry + 0x1); bios 105 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c if (nvbios_extdev_parse(bios, rail->extdev_id, &extdev)) bios 122 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->resistors[r].mohm = nvbios_rd08(bios, entry + res_start + r * 2); bios 123 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->resistors[r].enabled = !(nvbios_rd08(bios, entry + res_start + r * 2 + 1) & 0x40); bios 125 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->config = nvbios_rd16(bios, entry + res_start + rail->resistor_count * 2); bios 30 drivers/gpu/drm/nouveau/nvkm/subdev/bios/image.c nvbios_imagen(struct nvkm_bios *bios, struct nvbios_image *image) bios 32 drivers/gpu/drm/nouveau/nvkm/subdev/bios/image.c struct nvkm_subdev *subdev = &bios->subdev; bios 39 drivers/gpu/drm/nouveau/nvkm/subdev/bios/image.c switch ((data = nvbios_rd16(bios, image->base + 0x00))) { bios 50 drivers/gpu/drm/nouveau/nvkm/subdev/bios/image.c if (!(data = nvbios_pcirTp(bios, image->base, &ver, &hdr, &pcir))) bios 57 drivers/gpu/drm/nouveau/nvkm/subdev/bios/image.c if (!(data = nvbios_npdeTp(bios, image->base, &npde))) bios 69 drivers/gpu/drm/nouveau/nvkm/subdev/bios/image.c nvbios_image(struct nvkm_bios *bios, int idx, struct nvbios_image *image) bios 71 drivers/gpu/drm/nouveau/nvkm/subdev/bios/image.c u32 imaged_addr = bios->imaged_addr; bios 73 drivers/gpu/drm/nouveau/nvkm/subdev/bios/image.c bios->imaged_addr = 0; bios 76 drivers/gpu/drm/nouveau/nvkm/subdev/bios/image.c if (image->last || !nvbios_imagen(bios, image)) { bios 77 drivers/gpu/drm/nouveau/nvkm/subdev/bios/image.c bios->imaged_addr = imaged_addr; bios 81 drivers/gpu/drm/nouveau/nvkm/subdev/bios/image.c bios->imaged_addr = imaged_addr; bios 124 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 132 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c conn = nvbios_connEp(bios, conn, &ver, &hdr, &connE); bios 359 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c init_table(struct nvkm_bios *bios, u16 *len) bios 363 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c if (!bit_entry(bios, 'I', &bit_I)) { bios 368 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c if (bmp_version(bios) >= 0x0510) { bios 370 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c return bios->bmp_offset + 75; bios 379 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 380 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 len, data = init_table(bios, &len); bios 383 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c data = nvbios_rd16(bios, data + offset); bios 409 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c init_script(struct nvkm_bios *bios, int index) bios 411 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvbios_init init = { .subdev = &bios->subdev }; bios 412 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 bmp_ver = bmp_version(bios), data; bios 418 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c data = bios->bmp_offset + (bmp_ver < 0x0200 ? 14 : 18); bios 419 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c return nvbios_rd16(bios, data + (index * 2)); bios 424 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c return nvbios_rd16(bios, data + (index * 2)); bios 430 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c init_unknown_script(struct nvkm_bios *bios) bios 432 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 len, data = init_table(bios, &len); bios 434 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c return nvbios_rd16(bios, data + 14); bios 441 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c return nvbios_ramcfg_count(init->subdev->device->bios); bios 455 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c if (!init->ramcfg || init->subdev->device->bios->version.major < 0x70) bios 463 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 466 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 data = nvbios_rd16(bios, table + (index * 2)); bios 468 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c return nvbios_rd08(bios, data + offset); bios 481 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 484 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 reg = nvbios_rd32(bios, table + (cond * 12) + 0); bios 485 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 msk = nvbios_rd32(bios, table + (cond * 12) + 4); bios 486 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 val = nvbios_rd32(bios, table + (cond * 12) + 8); bios 497 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 500 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 port = nvbios_rd16(bios, table + (cond * 5) + 0); bios 501 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 index = nvbios_rd08(bios, table + (cond * 5) + 2); bios 502 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 mask = nvbios_rd08(bios, table + (cond * 5) + 3); bios 503 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 value = nvbios_rd08(bios, table + (cond * 5) + 4); bios 514 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 517 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 port = nvbios_rd16(bios, table + (cond * 9) + 0); bios 518 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 index = nvbios_rd08(bios, table + (cond * 9) + 2); bios 519 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 mask = nvbios_rd08(bios, table + (cond * 9) + 3); bios 520 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 shift = nvbios_rd08(bios, table + (cond * 9) + 4); bios 521 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 data = nvbios_rd16(bios, table + (cond * 9) + 5); bios 522 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 dmask = nvbios_rd08(bios, table + (cond * 9) + 7); bios 523 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 value = nvbios_rd08(bios, table + (cond * 9) + 8); bios 525 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c return (nvbios_rd08(bios, data + ioval) & dmask) == value; bios 585 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 586 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 opcode = nvbios_rd08(bios, init->offset); bios 600 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c cont(" 0x%02x", nvbios_rd08(bios, init->offset + i)); bios 623 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 624 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 port = nvbios_rd16(bios, init->offset + 1); bios 625 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 index = nvbios_rd08(bios, init->offset + 3); bios 626 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 mask = nvbios_rd08(bios, init->offset + 4); bios 627 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 shift = nvbios_rd08(bios, init->offset + 5); bios 628 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 count = nvbios_rd08(bios, init->offset + 6); bios 629 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 reg = nvbios_rd32(bios, init->offset + 7); bios 639 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 data = nvbios_rd32(bios, init->offset); bios 660 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 661 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 count = nvbios_rd08(bios, init->offset + 1); bios 686 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 687 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 port = nvbios_rd16(bios, init->offset + 1); bios 688 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 index = nvbios_rd08(bios, init->offset + 3); bios 689 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 mask = nvbios_rd08(bios, init->offset + 4); bios 690 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 shift = nvbios_rd08(bios, init->offset + 5); bios 691 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c s8 iofc = nvbios_rd08(bios, init->offset + 6); bios 692 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 count = nvbios_rd08(bios, init->offset + 7); bios 693 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 reg = nvbios_rd32(bios, init->offset + 8); bios 703 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 freq = nvbios_rd16(bios, init->offset) * 10; bios 742 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 743 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 reg = nvbios_rd32(bios, init->offset + 1); bios 744 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 shift = nvbios_rd08(bios, init->offset + 5); bios 745 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 smask = nvbios_rd08(bios, init->offset + 6); bios 746 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 port = nvbios_rd16(bios, init->offset + 7); bios 747 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 index = nvbios_rd08(bios, init->offset + 9); bios 748 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 mask = nvbios_rd08(bios, init->offset + 10); bios 781 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 782 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 cond = nvbios_rd08(bios, init->offset + 1); bios 798 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 800 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 cond = nvbios_rd08(bios, init->offset + 1); bios 801 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 size = nvbios_rd08(bios, init->offset + 2); bios 816 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c (data = nvbios_dpout_match(bios, DCB_OUTPUT_DP, bios 850 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 851 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 index = nvbios_rd08(bios, init->offset + 1); bios 869 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 870 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 index = nvbios_rd08(bios, init->offset + 1); bios 888 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 889 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 reg = nvbios_rd32(bios, init->offset + 1); bios 890 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 mask = nvbios_rd32(bios, init->offset + 5); bios 905 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 906 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 reg = nvbios_rd32(bios, init->offset + 1); bios 907 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 mask = nvbios_rd32(bios, init->offset + 5); bios 922 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 923 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 creg = nvbios_rd32(bios, init->offset + 1); bios 924 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 dreg = nvbios_rd32(bios, init->offset + 5); bios 925 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 mask = nvbios_rd32(bios, init->offset + 9); bios 926 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 data = nvbios_rd32(bios, init->offset + 13); bios 927 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 count = nvbios_rd08(bios, init->offset + 17); bios 934 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 iaddr = nvbios_rd08(bios, init->offset + 0); bios 935 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 idata = nvbios_rd08(bios, init->offset + 1); bios 952 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 953 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 port = nvbios_rd16(bios, init->offset + 1); bios 954 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 index = nvbios_rd08(bios, init->offset + 3); bios 955 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 mask = nvbios_rd08(bios, init->offset + 4); bios 956 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 shift = nvbios_rd08(bios, init->offset + 5); bios 957 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 count = nvbios_rd08(bios, init->offset + 6); bios 958 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 reg = nvbios_rd32(bios, init->offset + 7); bios 968 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 freq = nvbios_rd32(bios, init->offset); bios 987 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 988 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 reg = nvbios_rd32(bios, init->offset + 1); bios 989 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 freq = nvbios_rd32(bios, init->offset + 5); bios 1004 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1005 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 index = nvbios_rd08(bios, init->offset + 1); bios 1006 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 addr = nvbios_rd08(bios, init->offset + 2) >> 1; bios 1007 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 count = nvbios_rd08(bios, init->offset + 3); bios 1013 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 reg = nvbios_rd08(bios, init->offset + 0); bios 1014 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 mask = nvbios_rd08(bios, init->offset + 1); bios 1015 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 data = nvbios_rd08(bios, init->offset + 2); bios 1035 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1036 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 index = nvbios_rd08(bios, init->offset + 1); bios 1037 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 addr = nvbios_rd08(bios, init->offset + 2) >> 1; bios 1038 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 count = nvbios_rd08(bios, init->offset + 3); bios 1044 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 reg = nvbios_rd08(bios, init->offset + 0); bios 1045 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 data = nvbios_rd08(bios, init->offset + 1); bios 1061 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1062 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 index = nvbios_rd08(bios, init->offset + 1); bios 1063 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 addr = nvbios_rd08(bios, init->offset + 2) >> 1; bios 1064 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 count = nvbios_rd08(bios, init->offset + 3); bios 1071 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c data[i] = nvbios_rd08(bios, init->offset); bios 1095 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1096 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 tmds = nvbios_rd08(bios, init->offset + 1); bios 1097 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 addr = nvbios_rd08(bios, init->offset + 2); bios 1098 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 mask = nvbios_rd08(bios, init->offset + 3); bios 1099 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 data = nvbios_rd08(bios, init->offset + 4); bios 1121 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1122 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 tmds = nvbios_rd08(bios, init->offset + 1); bios 1123 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 count = nvbios_rd08(bios, init->offset + 2); bios 1130 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 addr = nvbios_rd08(bios, init->offset + 0); bios 1131 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 data = nvbios_rd08(bios, init->offset + 1); bios 1148 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1149 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 addr0 = nvbios_rd08(bios, init->offset + 1); bios 1150 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 addr1 = nvbios_rd08(bios, init->offset + 2); bios 1151 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 base = nvbios_rd08(bios, init->offset + 3); bios 1152 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 count = nvbios_rd08(bios, init->offset + 4); bios 1160 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 data = nvbios_rd08(bios, init->offset); bios 1178 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1179 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 addr = nvbios_rd08(bios, init->offset + 1); bios 1180 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 mask = nvbios_rd08(bios, init->offset + 2); bios 1181 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 data = nvbios_rd08(bios, init->offset + 3); bios 1198 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1199 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 addr = nvbios_rd08(bios, init->offset + 1); bios 1200 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 data = nvbios_rd08(bios, init->offset + 2); bios 1215 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1216 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 count = nvbios_rd08(bios, init->offset + 1); bios 1222 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 addr = nvbios_rd08(bios, init->offset + 0); bios 1223 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 data = nvbios_rd08(bios, init->offset + 1); bios 1239 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1240 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 cond = nvbios_rd08(bios, init->offset + 1); bios 1241 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 retry = nvbios_rd08(bios, init->offset + 2); bios 1266 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1267 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 msec = nvbios_rd16(bios, init->offset + 1); bios 1283 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1284 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 base = nvbios_rd32(bios, init->offset + 1); bios 1285 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 count = nvbios_rd08(bios, init->offset + 5); bios 1291 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 data = nvbios_rd32(bios, init->offset); bios 1308 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1309 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 reg = nvbios_rd32(bios, init->offset + 1); bios 1310 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 addr = nvbios_rd16(bios, init->offset + 5); bios 1311 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 freq = (u32)nvbios_rd16(bios, addr) * 1000; bios 1327 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1328 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 reg = nvbios_rd32(bios, init->offset + 1); bios 1329 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 addr = nvbios_rd16(bios, init->offset + 5); bios 1330 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 data = nvbios_rd32(bios, addr); bios 1346 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1347 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 addr = nvbios_rd16(bios, init->offset + 1); bios 1372 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1373 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 offset = nvbios_rd16(bios, init->offset + 1); bios 1390 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1391 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 index = nvbios_rd08(bios, init->offset + 1); bios 1392 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 addr = nvbios_rd08(bios, init->offset + 2); bios 1393 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 reg = nvbios_rd08(bios, init->offset + 3); bios 1394 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 mask = nvbios_rd08(bios, init->offset + 4); bios 1395 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 data = nvbios_rd08(bios, init->offset + 5); bios 1417 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1418 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 sreg = nvbios_rd32(bios, init->offset + 1); bios 1419 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 shift = nvbios_rd08(bios, init->offset + 5); bios 1420 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 smask = nvbios_rd32(bios, init->offset + 6); bios 1421 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 sxor = nvbios_rd32(bios, init->offset + 10); bios 1422 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 dreg = nvbios_rd32(bios, init->offset + 14); bios 1423 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 dmask = nvbios_rd32(bios, init->offset + 18); bios 1443 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1444 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 port = nvbios_rd16(bios, init->offset + 1); bios 1445 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 index = nvbios_rd08(bios, init->offset + 3); bios 1446 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 data = nvbios_rd08(bios, init->offset + 4); bios 1479 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1480 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 reg = nvbios_rd32(bios, init->offset + 1); bios 1481 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 data1 = nvbios_rd32(bios, init->offset + 5); bios 1482 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 data2 = nvbios_rd32(bios, init->offset + 9); bios 1506 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 mdata = bmp_mem_init_table(init->subdev->device->bios); bios 1515 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1522 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c if (bios->version.major > 2) { bios 1529 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c sdata = bmp_sdr_seq_table(bios); bios 1530 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c if (nvbios_rd08(bios, mdata) & 0x01) bios 1531 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c sdata = bmp_ddr_seq_table(bios); bios 1537 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c for (; (addr = nvbios_rd32(bios, sdata)) != 0xffffffff; sdata += 4) { bios 1545 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c data = nvbios_rd32(bios, mdata); bios 1565 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1571 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c if (bios->version.major > 2) { bios 1580 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c clock = nvbios_rd16(bios, mdata + 4) * 10; bios 1584 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c clock = nvbios_rd16(bios, mdata + 2) * 10; bios 1585 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c if (nvbios_rd08(bios, mdata) & 0x01) bios 1599 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1605 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c if (bios->version.major > 2) { bios 1625 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1626 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 port = nvbios_rd16(bios, init->offset + 1); bios 1627 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 mask = nvbios_rd16(bios, init->offset + 3); bios 1628 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 data = nvbios_rd16(bios, init->offset + 4); bios 1638 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c if (bios->subdev.device->card_type >= NV_50 && bios 1665 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1666 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 index = nvbios_rd08(bios, init->offset + 1); bios 1671 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c addr = init_script(bios, index); bios 1692 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1693 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 mask = nvbios_rd08(bios, init->offset + 1); bios 1694 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 value = nvbios_rd08(bios, init->offset + 2); bios 1711 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1712 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 reg = nvbios_rd32(bios, init->offset + 1); bios 1713 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 mask = nvbios_rd32(bios, init->offset + 5); bios 1714 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 data = nvbios_rd32(bios, init->offset + 9); bios 1729 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1730 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 macro = nvbios_rd08(bios, init->offset + 1); bios 1737 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 addr = nvbios_rd32(bios, table + (macro * 8) + 0); bios 1738 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 data = nvbios_rd32(bios, table + (macro * 8) + 4); bios 1765 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1766 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 mask = nvbios_rd32(bios, init->offset + 1); bios 1767 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 value = nvbios_rd32(bios, init->offset + 5); bios 1783 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1784 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 usec = nvbios_rd16(bios, init->offset + 1); bios 1804 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1805 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 cond = nvbios_rd08(bios, init->offset + 1); bios 1821 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1822 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 cond = nvbios_rd08(bios, init->offset + 1); bios 1838 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1839 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 addr = nvbios_rd32(bios, init->offset + 1); bios 1840 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 data = nvbios_rd16(bios, init->offset + 5); bios 1855 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1856 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u16 port = nvbios_rd16(bios, init->offset + 1); bios 1857 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 index = nvbios_rd16(bios, init->offset + 3); bios 1858 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 mask = nvbios_rd08(bios, init->offset + 4); bios 1859 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 data = nvbios_rd08(bios, init->offset + 5); bios 1877 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1878 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 reg = nvbios_rd32(bios, init->offset + 1); bios 1879 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 freq = nvbios_rd16(bios, init->offset + 5) * 10; bios 1894 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1895 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 addr = nvbios_rd32(bios, init->offset + 1); bios 1896 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 data = nvbios_rd32(bios, init->offset + 5); bios 1914 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1915 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 type = nvbios_rd08(bios, init->offset + 1); bios 1924 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 freq = nvbios_rd32(bios, init->offset); bios 1982 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 1983 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 addr = nvbios_rd32(bios, init->offset + 1); bios 1984 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 incr = nvbios_rd08(bios, init->offset + 5); bios 1985 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 num = nvbios_rd08(bios, init->offset + 6); bios 1997 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 data = nvbios_rd32(bios, init->offset); bios 2020 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 2021 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 sreg = nvbios_rd32(bios, init->offset + 1); bios 2022 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 dreg = nvbios_rd32(bios, init->offset + 5); bios 2037 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 2038 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 addr = nvbios_rd32(bios, init->offset + 1); bios 2039 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 count = nvbios_rd08(bios, init->offset + 5); bios 2045 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 data = nvbios_rd32(bios, init->offset); bios 2059 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 2060 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 saddr = nvbios_rd32(bios, init->offset + 1); bios 2061 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 sshift = nvbios_rd08(bios, init->offset + 5); bios 2062 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 smask = nvbios_rd08(bios, init->offset + 6); bios 2063 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 index = nvbios_rd08(bios, init->offset + 7); bios 2064 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 daddr = nvbios_rd32(bios, init->offset + 8); bios 2065 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 dmask = nvbios_rd32(bios, init->offset + 12); bios 2066 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 shift = nvbios_rd08(bios, init->offset + 16); bios 2087 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 2088 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 addr = nvbios_rd32(bios, init->offset + 1); bios 2089 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 mask = nvbios_rd32(bios, init->offset + 5); bios 2090 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 add = nvbios_rd32(bios, init->offset + 9); bios 2108 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 2109 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 addr = nvbios_rd32(bios, init->offset + 1); bios 2110 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 count = nvbios_rd08(bios, init->offset + 5); bios 2116 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 mask = nvbios_rd08(bios, init->offset + 0); bios 2117 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 data = nvbios_rd08(bios, init->offset + 1); bios 2132 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 2133 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u32 addr = nvbios_rd32(bios, init->offset + 1); bios 2134 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 count = nvbios_rd08(bios, init->offset + 5); bios 2140 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 data = nvbios_rd08(bios, init->offset + 0); bios 2154 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 2155 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 index = nvbios_rd08(bios, init->offset + 1); bios 2156 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 addr = nvbios_rd08(bios, init->offset + 2) >> 1; bios 2157 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 reglo = nvbios_rd08(bios, init->offset + 3); bios 2158 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 reghi = nvbios_rd08(bios, init->offset + 4); bios 2159 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 mask = nvbios_rd08(bios, init->offset + 5); bios 2160 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 data = nvbios_rd08(bios, init->offset + 6); bios 2193 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 2194 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_gpio *gpio = bios->subdev.device->gpio; bios 2196 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 count = nvbios_rd08(bios, init->offset + 1); bios 2204 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c cont("0x%02x ", nvbios_rd08(bios, i)); bios 2207 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c while ((data = dcb_gpio_parse(bios, 0, idx++, &ver, &len, &func))) { bios 2210 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c if (func.func == nvbios_rd08(bios, i)) bios 2304 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = init->subdev->device->bios; bios 2308 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 opcode = nvbios_rd08(bios, init->offset); bios 2324 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_bios *bios = subdev->device->bios; bios 2331 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c while (!ret && (data = (init_script(bios, ++i)))) { bios 2340 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c if (!ret && (data = init_unknown_script(bios))) { bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c mxm_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr) bios 31 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c struct nvkm_subdev *subdev = &bios->subdev; bios 34 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c if (bit_entry(bios, 'x', &x)) { bios 75 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c mxm_sor_map(struct nvkm_bios *bios, u8 conn) bios 77 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c struct nvkm_subdev *subdev = &bios->subdev; bios 79 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c u16 mxm = mxm_table(bios, &ver, &hdr); bios 81 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c u16 map = nvbios_rd16(bios, mxm + 4); bios 83 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c ver = nvbios_rd08(bios, map); bios 85 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c if (conn < nvbios_rd08(bios, map + 3)) { bios 86 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c map += nvbios_rd08(bios, map + 1); bios 88 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c return nvbios_rd08(bios, map); bios 98 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c if (bios->version.chip == 0x84 || bios->version.chip == 0x86) bios 100 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c if (bios->version.chip == 0x92) bios 102 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c if (bios->version.chip == 0x94 || bios->version.chip == 0x96) bios 104 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c if (bios->version.chip == 0x98) bios 112 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c mxm_ddc_map(struct nvkm_bios *bios, u8 port) bios 114 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c struct nvkm_subdev *subdev = &bios->subdev; bios 116 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c u16 mxm = mxm_table(bios, &ver, &hdr); bios 118 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c u16 map = nvbios_rd16(bios, mxm + 6); bios 120 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c ver = nvbios_rd08(bios, map); bios 122 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c if (port < nvbios_rd08(bios, map + 3)) { bios 123 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c map += nvbios_rd08(bios, map + 1); bios 125 drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c return nvbios_rd08(bios, map); bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/npde.c nvbios_npdeTe(struct nvkm_bios *bios, u32 base) bios 33 drivers/gpu/drm/nouveau/nvkm/subdev/bios/npde.c u32 data = nvbios_pcirTp(bios, base, &ver, &hdr, &pcir); bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/npde.c switch (nvbios_rd32(bios, data + 0x00)) { bios 39 drivers/gpu/drm/nouveau/nvkm/subdev/bios/npde.c nvkm_debug(&bios->subdev, bios 41 drivers/gpu/drm/nouveau/nvkm/subdev/bios/npde.c data, nvbios_rd32(bios, data + 0x00)); bios 50 drivers/gpu/drm/nouveau/nvkm/subdev/bios/npde.c nvbios_npdeTp(struct nvkm_bios *bios, u32 base, struct nvbios_npdeT *info) bios 52 drivers/gpu/drm/nouveau/nvkm/subdev/bios/npde.c u32 data = nvbios_npdeTe(bios, base); bios 55 drivers/gpu/drm/nouveau/nvkm/subdev/bios/npde.c info->image_size = nvbios_rd16(bios, data + 0x08) * 512; bios 56 drivers/gpu/drm/nouveau/nvkm/subdev/bios/npde.c info->last = nvbios_rd08(bios, data + 0x0a) & 0x80; bios 28 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c nvbios_pcirTe(struct nvkm_bios *bios, u32 base, u8 *ver, u16 *hdr) bios 30 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c u32 data = nvbios_rd16(bios, base + 0x18); bios 33 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c switch (nvbios_rd32(bios, data + 0x00)) { bios 37 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c *hdr = nvbios_rd16(bios, data + 0x0a); bios 38 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c *ver = nvbios_rd08(bios, data + 0x0c); bios 41 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c nvkm_debug(&bios->subdev, bios 43 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c data, nvbios_rd32(bios, data + 0x00)); bios 52 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c nvbios_pcirTp(struct nvkm_bios *bios, u32 base, u8 *ver, u16 *hdr, bios 55 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c u32 data = nvbios_pcirTe(bios, base, ver, hdr); bios 58 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c info->vendor_id = nvbios_rd16(bios, data + 0x04); bios 59 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c info->device_id = nvbios_rd16(bios, data + 0x06); bios 60 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c info->class_code[0] = nvbios_rd08(bios, data + 0x0d); bios 61 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c info->class_code[1] = nvbios_rd08(bios, data + 0x0e); bios 62 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c info->class_code[2] = nvbios_rd08(bios, data + 0x0f); bios 63 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c info->image_size = nvbios_rd16(bios, data + 0x10) * 512; bios 64 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c info->image_rev = nvbios_rd16(bios, data + 0x12); bios 65 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c info->image_type = nvbios_rd08(bios, data + 0x14); bios 66 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c info->last = nvbios_rd08(bios, data + 0x15) & 0x80; bios 30 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c nvbios_perf_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, bios 36 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c if (!bit_entry(bios, 'P', &bit_P)) { bios 38 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c perf = nvbios_rd32(bios, bit_P.offset + 0); bios 40 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c *ver = nvbios_rd08(bios, perf + 0); bios 41 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c *hdr = nvbios_rd08(bios, perf + 1); bios 43 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c *cnt = nvbios_rd08(bios, perf + 5); bios 44 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c *len = nvbios_rd08(bios, perf + 2); bios 45 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c *snr = nvbios_rd08(bios, perf + 4); bios 46 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c *ssz = nvbios_rd08(bios, perf + 3); bios 50 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c *cnt = nvbios_rd08(bios, perf + 2); bios 51 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c *len = nvbios_rd08(bios, perf + 3); bios 52 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c *snr = nvbios_rd08(bios, perf + 4); bios 53 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c *ssz = nvbios_rd08(bios, perf + 5); bios 60 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c if (bios->bmp_offset) { bios 61 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c if (nvbios_rd08(bios, bios->bmp_offset + 6) >= 0x25) { bios 62 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c perf = nvbios_rd16(bios, bios->bmp_offset + 0x94); bios 64 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c *hdr = nvbios_rd08(bios, perf + 0); bios 65 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c *ver = nvbios_rd08(bios, perf + 1); bios 66 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c *cnt = nvbios_rd08(bios, perf + 2); bios 67 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c *len = nvbios_rd08(bios, perf + 3); bios 79 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c nvbios_perf_entry(struct nvkm_bios *bios, int idx, bios 83 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c u32 perf = nvbios_perf_table(bios, ver, hdr, cnt, len, &snr, &ssz); bios 95 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c nvbios_perfEp(struct nvkm_bios *bios, int idx, bios 98 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c u32 perf = nvbios_perf_entry(bios, idx, ver, hdr, cnt, len); bios 100 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->pstate = nvbios_rd08(bios, perf + 0x00); bios 105 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->core = nvbios_rd32(bios, perf + 0x01) * 10; bios 106 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->memory = nvbios_rd32(bios, perf + 0x05) * 20; bios 107 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->fanspeed = nvbios_rd08(bios, perf + 0x37); bios 109 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->voltage = nvbios_rd08(bios, perf + 0x38); bios 114 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->fanspeed = nvbios_rd08(bios, perf + 0x04); bios 115 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->voltage = nvbios_rd08(bios, perf + 0x05); bios 116 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->shader = nvbios_rd16(bios, perf + 0x06) * 1000; bios 118 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c nvbios_rd08(bios, perf + 0x08) * 1000; bios 119 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c switch (bios->subdev.device->chipset) { bios 122 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->memory = nvbios_rd16(bios, perf + 0x0b) * 1000; bios 125 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->memory = nvbios_rd16(bios, perf + 0x0b) * 2000; bios 130 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->fanspeed = nvbios_rd08(bios, perf + 0x04); bios 131 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->voltage = nvbios_rd08(bios, perf + 0x05); bios 132 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->core = nvbios_rd16(bios, perf + 0x06) * 1000; bios 133 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->shader = nvbios_rd16(bios, perf + 0x0a) * 1000; bios 134 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->memory = nvbios_rd16(bios, perf + 0x0c) * 1000; bios 137 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->script = nvbios_rd16(bios, perf + 0x02); bios 140 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->fanspeed = nvbios_rd08(bios, perf + 0x06); bios 141 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->voltage = nvbios_rd08(bios, perf + 0x07); bios 142 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->core = nvbios_rd16(bios, perf + 0x08) * 1000; bios 143 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->shader = nvbios_rd16(bios, perf + 0x0a) * 1000; bios 144 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->memory = nvbios_rd16(bios, perf + 0x0c) * 1000; bios 145 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->vdec = nvbios_rd16(bios, perf + 0x10) * 1000; bios 146 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->disp = nvbios_rd16(bios, perf + 0x14) * 1000; bios 149 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->voltage = nvbios_rd08(bios, perf + 0x02); bios 150 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c switch (nvbios_rd08(bios, perf + 0xb) & 0x3) { bios 173 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c nvbios_perfSe(struct nvkm_bios *bios, u32 perfE, int idx, bios 185 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c nvbios_perfSp(struct nvkm_bios *bios, u32 perfE, int idx, bios 189 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c u32 data = nvbios_perfSe(bios, perfE, idx, ver, hdr, cnt, len); bios 193 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c info->v40.freq = (nvbios_rd16(bios, data + 0x00) & 0x3fff) * 1000; bios 202 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c nvbios_perf_fan_parse(struct nvkm_bios *bios, bios 206 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c u32 perf = nvbios_perf_table(bios, &ver, &hdr, &cnt, &len, &snr, &ssz); bios 211 drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c fan->pwm_divisor = nvbios_rd16(bios, perf + 6); bios 81 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c pll_limits_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) bios 86 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c if (!bit_entry(bios, 'C', &bit_C)) { bios 88 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c data = nvbios_rd16(bios, bit_C.offset + 8); bios 90 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c data = nvbios_rd32(bios, bit_C.offset + 0); bios 92 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c *ver = nvbios_rd08(bios, data + 0); bios 93 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c *hdr = nvbios_rd08(bios, data + 1); bios 94 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c *len = nvbios_rd08(bios, data + 2); bios 95 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c *cnt = nvbios_rd08(bios, data + 3); bios 100 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c if (bmp_version(bios) >= 0x0524) { bios 101 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c data = nvbios_rd16(bios, bios->bmp_offset + 142); bios 103 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c *ver = nvbios_rd08(bios, data + 0); bios 116 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c pll_map(struct nvkm_bios *bios) bios 118 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c struct nvkm_device *device = bios->subdev.device; bios 144 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c pll_map_reg(struct nvkm_bios *bios, u32 reg, u32 *type, u8 *ver, u8 *len) bios 150 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c data = pll_limits_table(bios, ver, &hdr, &cnt, len); bios 154 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c if (nvbios_rd32(bios, data + 3) == reg) { bios 155 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c *type = nvbios_rd08(bios, data + 0); bios 163 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c map = pll_map(bios); bios 169 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c if (nvbios_rd32(bios, data) == map->reg) bios 186 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c pll_map_type(struct nvkm_bios *bios, u8 type, u32 *reg, u8 *ver, u8 *len) bios 192 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c data = pll_limits_table(bios, ver, &hdr, &cnt, len); bios 196 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c if (nvbios_rd08(bios, data + 0) == type) { bios 198 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c *reg = nvbios_rd32(bios, data + 3); bios 208 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c map = pll_map(bios); bios 214 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c if (nvbios_rd32(bios, data) == map->reg) bios 231 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c nvbios_pll_parse(struct nvkm_bios *bios, u32 type, struct nvbios_pll *info) bios 233 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c struct nvkm_subdev *subdev = &bios->subdev; bios 241 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c data = pll_map_reg(bios, reg, &type, &ver, &len); bios 243 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c data = pll_map_type(bios, type, ®, &ver, &len); bios 258 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_freq = nvbios_rd32(bios, data + 0); bios 259 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.max_freq = nvbios_rd32(bios, data + 4); bios 260 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.min_freq = nvbios_rd32(bios, data + 8); bios 261 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.max_freq = nvbios_rd32(bios, data + 12); bios 262 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_inputfreq = nvbios_rd32(bios, data + 16); bios 263 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.min_inputfreq = nvbios_rd32(bios, data + 20); bios 271 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c switch (bios->version.chip) { bios 290 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c switch (bios->version.chip) { bios 304 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_freq = nvbios_rd16(bios, data + 4) * 1000; bios 305 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.max_freq = nvbios_rd16(bios, data + 6) * 1000; bios 306 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.min_freq = nvbios_rd16(bios, data + 8) * 1000; bios 307 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.max_freq = nvbios_rd16(bios, data + 10) * 1000; bios 308 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_inputfreq = nvbios_rd16(bios, data + 12) * 1000; bios 309 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.min_inputfreq = nvbios_rd16(bios, data + 14) * 1000; bios 310 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.max_inputfreq = nvbios_rd16(bios, data + 16) * 1000; bios 311 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.max_inputfreq = nvbios_rd16(bios, data + 18) * 1000; bios 312 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_n = nvbios_rd08(bios, data + 20); bios 313 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.max_n = nvbios_rd08(bios, data + 21); bios 314 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_m = nvbios_rd08(bios, data + 22); bios 315 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.max_m = nvbios_rd08(bios, data + 23); bios 316 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.min_n = nvbios_rd08(bios, data + 24); bios 317 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.max_n = nvbios_rd08(bios, data + 25); bios 318 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.min_m = nvbios_rd08(bios, data + 26); bios 319 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.max_m = nvbios_rd08(bios, data + 27); bios 321 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->max_p = nvbios_rd08(bios, data + 29); bios 323 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c if (bios->version.chip < 0x60) bios 325 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->bias_p = nvbios_rd08(bios, data + 30); bios 328 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->refclk = nvbios_rd32(bios, data + 31); bios 331 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c data = nvbios_rd16(bios, data + 1); bios 333 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_freq = nvbios_rd16(bios, data + 0) * 1000; bios 334 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.max_freq = nvbios_rd16(bios, data + 2) * 1000; bios 335 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.min_freq = nvbios_rd16(bios, data + 4) * 1000; bios 336 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.max_freq = nvbios_rd16(bios, data + 6) * 1000; bios 337 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_inputfreq = nvbios_rd16(bios, data + 8) * 1000; bios 338 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.min_inputfreq = nvbios_rd16(bios, data + 10) * 1000; bios 339 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.max_inputfreq = nvbios_rd16(bios, data + 12) * 1000; bios 340 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.max_inputfreq = nvbios_rd16(bios, data + 14) * 1000; bios 341 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_n = nvbios_rd08(bios, data + 16); bios 342 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.max_n = nvbios_rd08(bios, data + 17); bios 343 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_m = nvbios_rd08(bios, data + 18); bios 344 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.max_m = nvbios_rd08(bios, data + 19); bios 345 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.min_n = nvbios_rd08(bios, data + 20); bios 346 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.max_n = nvbios_rd08(bios, data + 21); bios 347 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.min_m = nvbios_rd08(bios, data + 22); bios 348 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco2.max_m = nvbios_rd08(bios, data + 23); bios 349 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->max_p_usable = info->max_p = nvbios_rd08(bios, data + 25); bios 350 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->bias_p = nvbios_rd08(bios, data + 27); bios 351 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->refclk = nvbios_rd32(bios, data + 28); bios 354 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->refclk = nvbios_rd16(bios, data + 9) * 1000; bios 355 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c data = nvbios_rd16(bios, data + 1); bios 357 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_freq = nvbios_rd16(bios, data + 0) * 1000; bios 358 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.max_freq = nvbios_rd16(bios, data + 2) * 1000; bios 359 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_inputfreq = nvbios_rd16(bios, data + 4) * 1000; bios 360 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.max_inputfreq = nvbios_rd16(bios, data + 6) * 1000; bios 361 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_m = nvbios_rd08(bios, data + 8); bios 362 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.max_m = nvbios_rd08(bios, data + 9); bios 363 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_n = nvbios_rd08(bios, data + 10); bios 364 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.max_n = nvbios_rd08(bios, data + 11); bios 365 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->min_p = nvbios_rd08(bios, data + 12); bios 366 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->max_p = nvbios_rd08(bios, data + 13); bios 369 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->refclk = nvbios_rd16(bios, data + 1) * 1000; bios 371 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_freq = nvbios_rd16(bios, data + 5) * 1000; bios 372 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.max_freq = nvbios_rd16(bios, data + 7) * 1000; bios 373 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_inputfreq = nvbios_rd16(bios, data + 9) * 1000; bios 374 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.max_inputfreq = nvbios_rd16(bios, data + 11) * 1000; bios 375 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_m = nvbios_rd08(bios, data + 13); bios 376 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.max_m = nvbios_rd08(bios, data + 14); bios 377 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_n = nvbios_rd08(bios, data + 15); bios 378 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.max_n = nvbios_rd08(bios, data + 16); bios 379 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->min_p = nvbios_rd08(bios, data + 17); bios 380 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->max_p = nvbios_rd08(bios, data + 18); bios 389 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c if (bios->version.chip == 0x51) { bios 407 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.max_freq = nvbios_rd32(bios, bios->bmp_offset + 67); bios 408 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c info->vco1.min_freq = nvbios_rd32(bios, bios->bmp_offset + 71); bios 409 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c if (bmp_version(bios) < 0x0506) { bios 422 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c if (bios->version.chip < 0x11) bios 426 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c if (bios->version.chip < 0x11) bios 431 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c if (bios->version.chip < 0x17 || bios 432 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c bios->version.chip == 0x1a || bios 433 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c bios->version.chip == 0x20) bios 30 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c nvbios_pmuTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c if (!bit_entry(bios, 'p', &bit_p)) { bios 37 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c data = nvbios_rd32(bios, bit_p.offset + 0x00); bios 39 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c *ver = nvbios_rd08(bios, data + 0x00); /* maybe? */ bios 40 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c *hdr = nvbios_rd08(bios, data + 0x01); bios 41 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c *len = nvbios_rd08(bios, data + 0x02); bios 42 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c *cnt = nvbios_rd08(bios, data + 0x03); bios 50 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c nvbios_pmuEe(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr) bios 53 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c u32 data = nvbios_pmuTe(bios, ver, hdr, &cnt, &len); bios 63 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c nvbios_pmuEp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, bios 66 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c u32 data = nvbios_pmuEe(bios, idx, ver, hdr); bios 70 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c info->type = nvbios_rd08(bios, data + 0x00); bios 71 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c info->data = nvbios_rd32(bios, data + 0x02); bios 78 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c nvbios_pmuRm(struct nvkm_bios *bios, u8 type, struct nvbios_pmuR *info) bios 84 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c while ((data = nvbios_pmuEp(bios, idx++, &ver, &hdr, &pmuE))) { bios 86 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c info->init_addr_pmu = nvbios_rd32(bios, data + 0x08); bios 87 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c info->args_addr_pmu = nvbios_rd32(bios, data + 0x0c); bios 89 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c info->boot_addr_pmu = nvbios_rd32(bios, data + 0x10) + bios 90 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c nvbios_rd32(bios, data + 0x18); bios 91 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c info->boot_size = nvbios_rd32(bios, data + 0x1c) - bios 92 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c nvbios_rd32(bios, data + 0x18); bios 96 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c info->code_size = nvbios_rd32(bios, data + 0x20); bios 98 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c nvbios_rd32(bios, data + 0x24); bios 99 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c info->data_addr_pmu = nvbios_rd32(bios, data + 0x28); bios 100 drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c info->data_size = nvbios_rd32(bios, data + 0x2c); bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c nvbios_power_budget_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c if (bit_entry(bios, 'P', &bit_P) || bit_P.version != 2 || bios 39 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c power_budget = nvbios_rd32(bios, bit_P.offset + 0x2c); bios 43 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c *ver = nvbios_rd08(bios, power_budget); bios 47 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c *hdr = nvbios_rd08(bios, power_budget + 0x1); bios 48 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c *len = nvbios_rd08(bios, power_budget + 0x2); bios 49 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c *cnt = nvbios_rd08(bios, power_budget + 0x3); bios 59 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c nvbios_power_budget_header(struct nvkm_bios *bios, bios 62 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c struct nvkm_subdev *subdev = &bios->subdev; bios 66 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c if (!bios || !budget) bios 69 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c header = nvbios_power_budget_table(bios, &ver, &hdr, &cnt, &len); bios 75 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c cap_entry = nvbios_rd08(bios, header + 0x9); bios 78 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c cap_entry = nvbios_rd08(bios, header + 0xa); bios 103 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c nvbios_power_budget_entry(struct nvkm_bios *bios, bios 109 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c if (!bios || !budget || !budget->offset || idx >= budget->ecount bios 116 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c entry->min_w = nvbios_rd32(bios, entry_offset + 0x2); bios 117 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c entry->avg_w = nvbios_rd32(bios, entry_offset + 0x6); bios 118 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c entry->max_w = nvbios_rd32(bios, entry_offset + 0xa); bios 121 drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c entry->max_w = nvbios_rd32(bios, entry_offset + 0x2); bios 36 drivers/gpu/drm/nouveau/nvkm/subdev/bios/ramcfg.c nvbios_ramcfg_count(struct nvkm_bios *bios) bios 40 drivers/gpu/drm/nouveau/nvkm/subdev/bios/ramcfg.c if (!bit_entry(bios, 'M', &bit_M)) { bios 42 drivers/gpu/drm/nouveau/nvkm/subdev/bios/ramcfg.c return nvbios_rd08(bios, bit_M.offset + 2); bios 44 drivers/gpu/drm/nouveau/nvkm/subdev/bios/ramcfg.c return nvbios_rd08(bios, bit_M.offset + 0); bios 53 drivers/gpu/drm/nouveau/nvkm/subdev/bios/ramcfg.c struct nvkm_bios *bios = subdev->device->bios; bios 60 drivers/gpu/drm/nouveau/nvkm/subdev/bios/ramcfg.c if (!bit_entry(bios, 'M', &bit_M)) { bios 62 drivers/gpu/drm/nouveau/nvkm/subdev/bios/ramcfg.c xlat = nvbios_rd16(bios, bit_M.offset + 3); bios 69 drivers/gpu/drm/nouveau/nvkm/subdev/bios/ramcfg.c nvbios_M0203Em(bios, strap, &ver, &hdr, &M0203E)) bios 71 drivers/gpu/drm/nouveau/nvkm/subdev/bios/ramcfg.c xlat = nvbios_rd16(bios, bit_M.offset + 1); bios 76 drivers/gpu/drm/nouveau/nvkm/subdev/bios/ramcfg.c strap = nvbios_rd08(bios, xlat + strap); bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c nvbios_rammapTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c if (!bit_entry(bios, 'P', &bit_P)) { bios 37 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c rammap = nvbios_rd32(bios, bit_P.offset + 4); bios 40 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c *ver = nvbios_rd08(bios, rammap + 0); bios 44 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c *hdr = nvbios_rd08(bios, rammap + 1); bios 45 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c *cnt = nvbios_rd08(bios, rammap + 5); bios 46 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c *len = nvbios_rd08(bios, rammap + 2); bios 47 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c *snr = nvbios_rd08(bios, rammap + 4); bios 48 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c *ssz = nvbios_rd08(bios, rammap + 3); bios 60 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c nvbios_rammapEe(struct nvkm_bios *bios, int idx, bios 64 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c u32 rammap = nvbios_rammapTe(bios, ver, hdr, cnt, len, &snr, &ssz); bios 78 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c nvbios_rammapEp_from_perf(struct nvkm_bios *bios, u32 data, u8 size, bios 83 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->rammap_00_16_20 = (nvbios_rd08(bios, data + 0x16) & 0x20) >> 5; bios 84 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->rammap_00_16_40 = (nvbios_rd08(bios, data + 0x16) & 0x40) >> 6; bios 85 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->rammap_00_17_02 = (nvbios_rd08(bios, data + 0x17) & 0x02) >> 1; bios 91 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c nvbios_rammapEp(struct nvkm_bios *bios, int idx, bios 94 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c u32 data = nvbios_rammapEe(bios, idx, ver, hdr, cnt, len), temp; bios 100 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->rammap_min = nvbios_rd16(bios, data + 0x00); bios 101 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->rammap_max = nvbios_rd16(bios, data + 0x02); bios 102 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->rammap_10_04_02 = (nvbios_rd08(bios, data + 0x04) & 0x02) >> 1; bios 103 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->rammap_10_04_08 = (nvbios_rd08(bios, data + 0x04) & 0x08) >> 3; bios 106 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->rammap_min = nvbios_rd16(bios, data + 0x00); bios 107 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->rammap_max = nvbios_rd16(bios, data + 0x02); bios 108 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->rammap_11_08_01 = (nvbios_rd08(bios, data + 0x08) & 0x01) >> 0; bios 109 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->rammap_11_08_0c = (nvbios_rd08(bios, data + 0x08) & 0x0c) >> 2; bios 110 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->rammap_11_08_10 = (nvbios_rd08(bios, data + 0x08) & 0x10) >> 4; bios 111 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c temp = nvbios_rd32(bios, data + 0x09); bios 120 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->rammap_11_0d = nvbios_rd08(bios, data + 0x0d); bios 121 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->rammap_11_0e = nvbios_rd08(bios, data + 0x0e); bios 122 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->rammap_11_0f = nvbios_rd08(bios, data + 0x0f); bios 123 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->rammap_11_11_0c = (nvbios_rd08(bios, data + 0x11) & 0x0c) >> 2; bios 133 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c nvbios_rammapEm(struct nvkm_bios *bios, u16 mhz, bios 138 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c while ((data = nvbios_rammapEp(bios, idx++, ver, hdr, cnt, len, info))) { bios 146 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c nvbios_rammapSe(struct nvkm_bios *bios, u32 data, bios 159 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c nvbios_rammapSp_from_perf(struct nvkm_bios *bios, u32 data, u8 size, int idx, bios 168 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_timing = nvbios_rd08(bios, data + 0x01); bios 169 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_00_03_01 = (nvbios_rd08(bios, data + 0x03) & 0x01) >> 0; bios 170 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_00_03_02 = (nvbios_rd08(bios, data + 0x03) & 0x02) >> 1; bios 171 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_DLLoff = (nvbios_rd08(bios, data + 0x03) & 0x04) >> 2; bios 172 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_00_03_08 = (nvbios_rd08(bios, data + 0x03) & 0x08) >> 3; bios 173 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_RON = (nvbios_rd08(bios, data + 0x03) & 0x10) >> 3; bios 174 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_FBVDDQ = (nvbios_rd08(bios, data + 0x03) & 0x80) >> 7; bios 175 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_00_04_02 = (nvbios_rd08(bios, data + 0x04) & 0x02) >> 1; bios 176 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_00_04_04 = (nvbios_rd08(bios, data + 0x04) & 0x04) >> 2; bios 177 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_00_04_20 = (nvbios_rd08(bios, data + 0x04) & 0x20) >> 5; bios 178 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_00_05 = (nvbios_rd08(bios, data + 0x05) & 0xff) >> 0; bios 179 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_00_06 = (nvbios_rd08(bios, data + 0x06) & 0xff) >> 0; bios 180 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_00_07 = (nvbios_rd08(bios, data + 0x07) & 0xff) >> 0; bios 181 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_00_08 = (nvbios_rd08(bios, data + 0x08) & 0xff) >> 0; bios 182 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_00_09 = (nvbios_rd08(bios, data + 0x09) & 0xff) >> 0; bios 183 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_00_0a_0f = (nvbios_rd08(bios, data + 0x0a) & 0x0f) >> 0; bios 184 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_00_0a_f0 = (nvbios_rd08(bios, data + 0x0a) & 0xf0) >> 4; bios 190 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c nvbios_rammapSp(struct nvkm_bios *bios, u32 data, bios 194 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c data = nvbios_rammapSe(bios, data, ever, ehdr, ecnt, elen, idx, ver, hdr); bios 199 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_timing = nvbios_rd08(bios, data + 0x01); bios 200 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_10_02_01 = (nvbios_rd08(bios, data + 0x02) & 0x01) >> 0; bios 201 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_10_02_02 = (nvbios_rd08(bios, data + 0x02) & 0x02) >> 1; bios 202 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_10_02_04 = (nvbios_rd08(bios, data + 0x02) & 0x04) >> 2; bios 203 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_10_02_08 = (nvbios_rd08(bios, data + 0x02) & 0x08) >> 3; bios 204 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_10_02_10 = (nvbios_rd08(bios, data + 0x02) & 0x10) >> 4; bios 205 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_10_02_20 = (nvbios_rd08(bios, data + 0x02) & 0x20) >> 5; bios 206 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_DLLoff = (nvbios_rd08(bios, data + 0x02) & 0x40) >> 6; bios 207 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_10_03_0f = (nvbios_rd08(bios, data + 0x03) & 0x0f) >> 0; bios 208 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_10_04_01 = (nvbios_rd08(bios, data + 0x04) & 0x01) >> 0; bios 209 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_FBVDDQ = (nvbios_rd08(bios, data + 0x04) & 0x08) >> 3; bios 210 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_10_05 = (nvbios_rd08(bios, data + 0x05) & 0xff) >> 0; bios 211 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_10_06 = (nvbios_rd08(bios, data + 0x06) & 0xff) >> 0; bios 212 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_10_07 = (nvbios_rd08(bios, data + 0x07) & 0xff) >> 0; bios 213 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_10_08 = (nvbios_rd08(bios, data + 0x08) & 0xff) >> 0; bios 214 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_10_09_0f = (nvbios_rd08(bios, data + 0x09) & 0x0f) >> 0; bios 215 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_10_09_f0 = (nvbios_rd08(bios, data + 0x09) & 0xf0) >> 4; bios 218 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_timing = nvbios_rd08(bios, data + 0x00); bios 219 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_01_01 = (nvbios_rd08(bios, data + 0x01) & 0x01) >> 0; bios 220 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_01_02 = (nvbios_rd08(bios, data + 0x01) & 0x02) >> 1; bios 221 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_01_04 = (nvbios_rd08(bios, data + 0x01) & 0x04) >> 2; bios 222 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_01_08 = (nvbios_rd08(bios, data + 0x01) & 0x08) >> 3; bios 223 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_01_10 = (nvbios_rd08(bios, data + 0x01) & 0x10) >> 4; bios 224 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_DLLoff = (nvbios_rd08(bios, data + 0x01) & 0x20) >> 5; bios 225 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_01_40 = (nvbios_rd08(bios, data + 0x01) & 0x40) >> 6; bios 226 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_01_80 = (nvbios_rd08(bios, data + 0x01) & 0x80) >> 7; bios 227 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_02_03 = (nvbios_rd08(bios, data + 0x02) & 0x03) >> 0; bios 228 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_02_04 = (nvbios_rd08(bios, data + 0x02) & 0x04) >> 2; bios 229 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_02_08 = (nvbios_rd08(bios, data + 0x02) & 0x08) >> 3; bios 230 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_02_10 = (nvbios_rd08(bios, data + 0x02) & 0x10) >> 4; bios 231 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_02_40 = (nvbios_rd08(bios, data + 0x02) & 0x40) >> 6; bios 232 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_02_80 = (nvbios_rd08(bios, data + 0x02) & 0x80) >> 7; bios 233 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_03_0f = (nvbios_rd08(bios, data + 0x03) & 0x0f) >> 0; bios 234 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_03_30 = (nvbios_rd08(bios, data + 0x03) & 0x30) >> 4; bios 235 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_03_c0 = (nvbios_rd08(bios, data + 0x03) & 0xc0) >> 6; bios 236 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_03_f0 = (nvbios_rd08(bios, data + 0x03) & 0xf0) >> 4; bios 237 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_04 = (nvbios_rd08(bios, data + 0x04) & 0xff) >> 0; bios 238 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_06 = (nvbios_rd08(bios, data + 0x06) & 0xff) >> 0; bios 239 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_07_02 = (nvbios_rd08(bios, data + 0x07) & 0x02) >> 1; bios 240 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_07_04 = (nvbios_rd08(bios, data + 0x07) & 0x04) >> 2; bios 241 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_07_08 = (nvbios_rd08(bios, data + 0x07) & 0x08) >> 3; bios 242 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_07_10 = (nvbios_rd08(bios, data + 0x07) & 0x10) >> 4; bios 243 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_07_40 = (nvbios_rd08(bios, data + 0x07) & 0x40) >> 6; bios 244 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_07_80 = (nvbios_rd08(bios, data + 0x07) & 0x80) >> 7; bios 245 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_08_01 = (nvbios_rd08(bios, data + 0x08) & 0x01) >> 0; bios 246 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_08_02 = (nvbios_rd08(bios, data + 0x08) & 0x02) >> 1; bios 247 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_08_04 = (nvbios_rd08(bios, data + 0x08) & 0x04) >> 2; bios 248 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_08_08 = (nvbios_rd08(bios, data + 0x08) & 0x08) >> 3; bios 249 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_08_10 = (nvbios_rd08(bios, data + 0x08) & 0x10) >> 4; bios 250 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_08_20 = (nvbios_rd08(bios, data + 0x08) & 0x20) >> 5; bios 251 drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c p->ramcfg_11_09 = (nvbios_rd08(bios, data + 0x09) & 0xff) >> 0; bios 39 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c shadow_fetch(struct nvkm_bios *bios, struct shadow *mthd, u32 upto) bios 42 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c const u32 start = bios->size; bios 44 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c if (nvbios_extend(bios, limit) > 0) { bios 45 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c u32 read = mthd->func->read(data, start, limit - start, bios); bios 46 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c bios->size = start + read; bios 48 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c return bios->size >= upto; bios 52 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c shadow_image(struct nvkm_bios *bios, int idx, u32 offset, struct shadow *mthd) bios 54 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c struct nvkm_subdev *subdev = &bios->subdev; bios 64 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c if (!shadow_fetch(bios, mthd, offset + 0x1000)) { bios 70 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c if (!nvbios_image(bios, idx, &image)) { bios 78 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c if (!shadow_fetch(bios, mthd, image.size)) { bios 86 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c nvbios_checksum(&bios->data[image.base], image.size)) { bios 105 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c score += shadow_image(bios, idx + 1, offset + image.size, mthd); bios 110 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c shadow_method(struct nvkm_bios *bios, struct shadow *mthd, const char *name) bios 113 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c struct nvkm_subdev *subdev = &bios->subdev; bios 117 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c mthd->data = func->init(bios, name); bios 123 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c mthd->score = shadow_image(bios, 0, 0, mthd); bios 127 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c mthd->data = bios->data; bios 128 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c mthd->size = bios->size; bios 129 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c bios->data = NULL; bios 130 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c bios->size = 0; bios 136 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c shadow_fw_read(void *data, u32 offset, u32 length, struct nvkm_bios *bios) bios 140 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c memcpy(bios->data + offset, fw->data + offset, length); bios 147 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c shadow_fw_init(struct nvkm_bios *bios, const char *name) bios 149 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c struct device *dev = bios->subdev.device->dev; bios 167 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c nvbios_shadow(struct nvkm_bios *bios) bios 169 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c struct nvkm_subdev *subdev = &bios->subdev; bios 194 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c if (shadow_method(bios, mthd, NULL)) bios 202 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c shadow_method(bios, mthd, source); bios 217 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c if (shadow_method(bios, mthd, NULL)) { bios 238 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c bios->data = best->data; bios 239 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c bios->size = best->size; bios 26 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowacpi.c int nouveau_acpi_get_bios_chunk(uint8_t *bios, int offset, int len); bios 36 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowacpi.c nouveau_acpi_get_bios_chunk(uint8_t *bios, int offset, int len) bios 47 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowacpi.c acpi_read_fast(void *data, u32 offset, u32 length, struct nvkm_bios *bios) bios 53 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowacpi.c if (nvbios_extend(bios, limit) >= 0) { bios 54 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowacpi.c int ret = nouveau_acpi_get_bios_chunk(bios->data, start, fetch); bios 68 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowacpi.c acpi_read_slow(void *data, u32 offset, u32 length, struct nvkm_bios *bios) bios 74 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowacpi.c if (nvbios_extend(bios, limit) >= 0) { bios 76 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowacpi.c int ret = nouveau_acpi_get_bios_chunk(bios->data, bios 89 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowacpi.c acpi_init(struct nvkm_bios *bios, const char *name) bios 91 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowacpi.c if (!nouveau_acpi_rom_supported(bios->subdev.device->dev)) bios 34 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c of_read(void *data, u32 offset, u32 length, struct nvkm_bios *bios) bios 39 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c memcpy_fromio(bios->data + offset, priv->data + offset, length); bios 53 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c of_init(struct nvkm_bios *bios, const char *name) bios 55 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c struct nvkm_device *device = bios->subdev.device; bios 34 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowpci.c pcirom_read(void *data, u32 offset, u32 length, struct nvkm_bios *bios) bios 38 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowpci.c memcpy_fromio(bios->data + offset, priv->rom + offset, length); bios 54 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowpci.c pcirom_init(struct nvkm_bios *bios, const char *name) bios 56 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowpci.c struct nvkm_device *device = bios->subdev.device; bios 92 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowpci.c platform_init(struct nvkm_bios *bios, const char *name) bios 94 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowpci.c struct nvkm_device *device = bios->subdev.device; bios 26 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c struct nvkm_bios *bios; bios 31 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c pramin_read(void *data, u32 offset, u32 length, struct nvkm_bios *bios) bios 33 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c struct nvkm_device *device = bios->subdev.device; bios 37 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c *(u32 *)&bios->data[i] = nvkm_rd32(device, 0x700000 + i); bios 48 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c struct nvkm_device *device = priv->bios->subdev.device; bios 55 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c pramin_init(struct nvkm_bios *bios, const char *name) bios 57 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c struct nvkm_subdev *subdev = &bios->subdev; bios 107 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c priv->bios = bios; bios 28 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowrom.c prom_read(void *data, u32 offset, u32 length, struct nvkm_bios *bios) bios 34 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowrom.c *(u32 *)&bios->data[i] = nvkm_rd32(device, 0x300000 + i); bios 48 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowrom.c prom_init(struct nvkm_bios *bios, const char *name) bios 50 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowrom.c struct nvkm_device *device = bios->subdev.device; bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c therm_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *len, u8 *cnt) bios 34 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c if (!bit_entry(bios, 'P', &bit_P)) { bios 36 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c therm = nvbios_rd32(bios, bit_P.offset + 12); bios 38 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c therm = nvbios_rd32(bios, bit_P.offset + 16); bios 40 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c nvkm_error(&bios->subdev, bios 49 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c *ver = nvbios_rd08(bios, therm + 0); bios 50 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c *hdr = nvbios_rd08(bios, therm + 1); bios 51 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c *len = nvbios_rd08(bios, therm + 2); bios 52 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c *cnt = nvbios_rd08(bios, therm + 3); bios 53 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c return therm + nvbios_rd08(bios, therm + 1); bios 57 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c nvbios_therm_entry(struct nvkm_bios *bios, int idx, u8 *ver, u8 *len) bios 60 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c u32 therm = therm_table(bios, ver, &hdr, len, &cnt); bios 67 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c nvbios_therm_sensor_parse(struct nvkm_bios *bios, bios 83 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c while ((entry = nvbios_therm_entry(bios, i++, &ver, &len))) { bios 84 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c s16 value = nvbios_rd16(bios, entry + 1); bios 86 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c switch (nvbios_rd08(bios, entry + 0)) { bios 95 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c offset = ((s8) nvbios_rd08(bios, entry + 2)) / 2; bios 153 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c nvbios_therm_fan_parse(struct nvkm_bios *bios, struct nvbios_therm_fan *fan) bios 165 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c while ((entry = nvbios_therm_entry(bios, i++, &ver, &len))) { bios 166 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c s16 value = nvbios_rd16(bios, entry + 1); bios 168 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c switch (nvbios_rd08(bios, entry + 0)) { bios 199 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c fan->linear_min_temp = nvbios_rd08(bios, entry + 1); bios 200 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c fan->linear_max_temp = nvbios_rd08(bios, entry + 2); bios 206 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c if (bios->subdev.device->card_type >= NV_C0 && bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c nvbios_timingTe(struct nvkm_bios *bios, bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c if (!bit_entry(bios, 'P', &bit_P)) { bios 37 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c timing = nvbios_rd32(bios, bit_P.offset + 4); bios 40 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c timing = nvbios_rd32(bios, bit_P.offset + 8); bios 43 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c *ver = nvbios_rd08(bios, timing + 0); bios 46 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c *hdr = nvbios_rd08(bios, timing + 1); bios 47 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c *cnt = nvbios_rd08(bios, timing + 2); bios 48 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c *len = nvbios_rd08(bios, timing + 3); bios 53 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c *hdr = nvbios_rd08(bios, timing + 1); bios 54 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c *cnt = nvbios_rd08(bios, timing + 5); bios 55 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c *len = nvbios_rd08(bios, timing + 2); bios 56 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c *snr = nvbios_rd08(bios, timing + 4); bios 57 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c *ssz = nvbios_rd08(bios, timing + 3); bios 69 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c nvbios_timingEe(struct nvkm_bios *bios, int idx, bios 73 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c u32 timing = nvbios_timingTe(bios, ver, hdr, cnt, len, &snr, &ssz); bios 85 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c nvbios_timingEp(struct nvkm_bios *bios, int idx, bios 88 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c u32 data = nvbios_timingEe(bios, idx, ver, hdr, cnt, len), temp; bios 93 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_10_WR = nvbios_rd08(bios, data + 0x00); bios 94 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_10_WTR = nvbios_rd08(bios, data + 0x01); bios 95 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_10_CL = nvbios_rd08(bios, data + 0x02); bios 96 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_10_RC = nvbios_rd08(bios, data + 0x03); bios 97 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_10_RFC = nvbios_rd08(bios, data + 0x05); bios 98 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_10_RAS = nvbios_rd08(bios, data + 0x07); bios 99 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_10_RP = nvbios_rd08(bios, data + 0x09); bios 100 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_10_RCDRD = nvbios_rd08(bios, data + 0x0a); bios 101 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_10_RCDWR = nvbios_rd08(bios, data + 0x0b); bios 102 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_10_RRD = nvbios_rd08(bios, data + 0x0c); bios 103 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_10_13 = nvbios_rd08(bios, data + 0x0d); bios 104 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_10_ODT = nvbios_rd08(bios, data + 0x0e) & 0x07; bios 106 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->ramcfg_RON = nvbios_rd08(bios, data + 0x0e) & 0x07; bios 117 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_10_24 = nvbios_rd08(bios, data + 0x18); bios 122 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_10_21 = nvbios_rd08(bios, data + 0x15); bios 125 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_10_20 = nvbios_rd08(bios, data + 0x14); bios 128 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_10_CWL = nvbios_rd08(bios, data + 0x13); bios 131 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_10_18 = nvbios_rd08(bios, data + 0x12); bios 135 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_10_16 = nvbios_rd08(bios, data + 0x10); bios 140 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing[0] = nvbios_rd32(bios, data + 0x00); bios 141 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing[1] = nvbios_rd32(bios, data + 0x04); bios 142 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing[2] = nvbios_rd32(bios, data + 0x08); bios 143 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing[3] = nvbios_rd32(bios, data + 0x0c); bios 144 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing[4] = nvbios_rd32(bios, data + 0x10); bios 145 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing[5] = nvbios_rd32(bios, data + 0x14); bios 146 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing[6] = nvbios_rd32(bios, data + 0x18); bios 147 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing[7] = nvbios_rd32(bios, data + 0x1c); bios 148 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing[8] = nvbios_rd32(bios, data + 0x20); bios 149 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing[9] = nvbios_rd32(bios, data + 0x24); bios 150 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing[10] = nvbios_rd32(bios, data + 0x28); bios 151 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_20_2e_03 = (nvbios_rd08(bios, data + 0x2e) & 0x03) >> 0; bios 152 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_20_2e_30 = (nvbios_rd08(bios, data + 0x2e) & 0x30) >> 4; bios 153 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_20_2e_c0 = (nvbios_rd08(bios, data + 0x2e) & 0xc0) >> 6; bios 154 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_20_2f_03 = (nvbios_rd08(bios, data + 0x2f) & 0x03) >> 0; bios 155 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c temp = nvbios_rd16(bios, data + 0x2c); bios 158 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_20_30_07 = (nvbios_rd08(bios, data + 0x30) & 0x07) >> 0; bios 159 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c p->timing_20_30_f8 = (nvbios_rd08(bios, data + 0x30) & 0xf8) >> 3; bios 160 drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c temp = nvbios_rd16(bios, data + 0x31); bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c nvbios_vmap_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) bios 34 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c if (!bit_entry(bios, 'P', &bit_P)) { bios 36 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c vmap = nvbios_rd32(bios, bit_P.offset + 0x20); bios 38 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c *ver = nvbios_rd08(bios, vmap + 0); bios 42 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c *hdr = nvbios_rd08(bios, vmap + 1); bios 43 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c *cnt = nvbios_rd08(bios, vmap + 3); bios 44 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c *len = nvbios_rd08(bios, vmap + 2); bios 57 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c nvbios_vmap_parse(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, bios 60 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c u32 vmap = nvbios_vmap_table(bios, ver, hdr, cnt, len); bios 69 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->max0 = nvbios_rd08(bios, vmap + 0x7); bios 70 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->max1 = nvbios_rd08(bios, vmap + 0x8); bios 72 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->max2 = nvbios_rd08(bios, vmap + 0xc); bios 81 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c nvbios_vmap_entry(struct nvkm_bios *bios, int idx, u8 *ver, u8 *len) bios 84 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c u32 vmap = nvbios_vmap_table(bios, ver, &hdr, &cnt, len); bios 93 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c nvbios_vmap_entry_parse(struct nvkm_bios *bios, int idx, u8 *ver, u8 *len, bios 96 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c u32 vmap = nvbios_vmap_entry(bios, idx, ver, len); bios 101 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->min = nvbios_rd32(bios, vmap + 0x00); bios 102 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->max = nvbios_rd32(bios, vmap + 0x04); bios 103 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->arg[0] = nvbios_rd32(bios, vmap + 0x08); bios 104 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->arg[1] = nvbios_rd32(bios, vmap + 0x0c); bios 105 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->arg[2] = nvbios_rd32(bios, vmap + 0x10); bios 108 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->mode = nvbios_rd08(bios, vmap + 0x00); bios 109 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->link = nvbios_rd08(bios, vmap + 0x01); bios 110 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->min = nvbios_rd32(bios, vmap + 0x02); bios 111 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->max = nvbios_rd32(bios, vmap + 0x06); bios 112 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->arg[0] = nvbios_rd32(bios, vmap + 0x0a); bios 113 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->arg[1] = nvbios_rd32(bios, vmap + 0x0e); bios 114 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->arg[2] = nvbios_rd32(bios, vmap + 0x12); bios 115 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->arg[3] = nvbios_rd32(bios, vmap + 0x16); bios 116 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->arg[4] = nvbios_rd32(bios, vmap + 0x1a); bios 117 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->arg[5] = nvbios_rd32(bios, vmap + 0x1e); bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c nvbios_volt_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) bios 34 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c if (!bit_entry(bios, 'P', &bit_P)) { bios 36 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c volt = nvbios_rd32(bios, bit_P.offset + 0x0c); bios 39 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c volt = nvbios_rd32(bios, bit_P.offset + 0x10); bios 42 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c *ver = nvbios_rd08(bios, volt + 0); bios 46 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c *cnt = nvbios_rd08(bios, volt + 2); bios 47 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c *len = nvbios_rd08(bios, volt + 1); bios 50 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c *hdr = nvbios_rd08(bios, volt + 1); bios 51 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c *cnt = nvbios_rd08(bios, volt + 2); bios 52 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c *len = nvbios_rd08(bios, volt + 3); bios 57 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c *hdr = nvbios_rd08(bios, volt + 1); bios 58 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c *cnt = nvbios_rd08(bios, volt + 3); bios 59 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c *len = nvbios_rd08(bios, volt + 2); bios 69 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c nvbios_volt_parse(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, bios 72 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c u32 volt = nvbios_volt_table(bios, ver, hdr, cnt, len); bios 77 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->vidmask = nvbios_rd08(bios, volt + 0x04); bios 82 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->vidmask = nvbios_rd08(bios, volt + 0x05); bios 87 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->vidmask = nvbios_rd08(bios, volt + 0x04); bios 92 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->base = nvbios_rd32(bios, volt + 0x04); bios 93 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->step = nvbios_rd16(bios, volt + 0x08); bios 94 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->vidmask = nvbios_rd08(bios, volt + 0x0b); bios 98 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->max = nvbios_rd32(bios, volt + 0x0e); bios 103 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->min = nvbios_rd32(bios, volt + 0x0a); bios 104 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->max = nvbios_rd32(bios, volt + 0x0e); bios 105 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->base = nvbios_rd32(bios, volt + 0x12) & 0x00ffffff; bios 108 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c if (nvbios_rd32(bios, volt + 0x4) & 1) { bios 110 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->pwm_freq = nvbios_rd32(bios, volt + 0x5) / 1000; bios 111 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->pwm_range = nvbios_rd32(bios, volt + 0x16); bios 114 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->vidmask = nvbios_rd08(bios, volt + 0x06); bios 115 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->step = nvbios_rd16(bios, volt + 0x16); bios 117 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c !!(nvbios_rd08(bios, volt + 0x4) & 0x2); bios 125 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c nvbios_volt_entry(struct nvkm_bios *bios, int idx, u8 *ver, u8 *len) bios 128 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c u32 volt = nvbios_volt_table(bios, ver, &hdr, &cnt, len); bios 137 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c nvbios_volt_entry_parse(struct nvkm_bios *bios, int idx, u8 *ver, u8 *len, bios 140 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c u32 volt = nvbios_volt_entry(bios, idx, ver, len); bios 145 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->voltage = nvbios_rd08(bios, volt + 0x00) * 10000; bios 146 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->vid = nvbios_rd08(bios, volt + 0x01); bios 149 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->voltage = nvbios_rd08(bios, volt + 0x00) * 10000; bios 150 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->vid = nvbios_rd08(bios, volt + 0x01) >> 2; bios 155 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->voltage = nvbios_rd32(bios, volt) & 0x001fffff; bios 156 drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c info->vid = (nvbios_rd32(bios, volt) >> 23) & 0xff; bios 29 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c dcb_xpiod_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) bios 31 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c u16 data = dcb_gpio_table(bios, ver, hdr, cnt, len); bios 33 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c u16 xpio = nvbios_rd16(bios, data + 0x04); bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c *ver = nvbios_rd08(bios, data + 0x00); bios 36 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c *hdr = nvbios_rd08(bios, data + 0x01); bios 37 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c *cnt = nvbios_rd08(bios, data + 0x02); bios 38 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c *len = nvbios_rd08(bios, data + 0x03); bios 46 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c dcb_xpio_table(struct nvkm_bios *bios, u8 idx, bios 49 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c u16 data = dcb_xpiod_table(bios, ver, hdr, cnt, len); bios 51 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c u16 xpio = nvbios_rd16(bios, data + *hdr + (idx * *len)); bios 53 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c *ver = nvbios_rd08(bios, data + 0x00); bios 54 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c *hdr = nvbios_rd08(bios, data + 0x01); bios 55 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c *cnt = nvbios_rd08(bios, data + 0x02); bios 56 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c *len = nvbios_rd08(bios, data + 0x03); bios 64 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c dcb_xpio_parse(struct nvkm_bios *bios, u8 idx, bios 67 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c u16 data = dcb_xpio_table(bios, idx, ver, hdr, cnt, len); bios 69 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c info->type = nvbios_rd08(bios, data + 0x04); bios 70 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c info->addr = nvbios_rd08(bios, data + 0x05); bios 71 drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c info->flags = nvbios_rd08(bios, data + 0x06); bios 44 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c struct nvkm_bios *bios = clk->subdev.device->bios; bios 49 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c data = nvbios_boostEm(bios, pstate, &ver, &hdr, &cnt, &len, &boostE); bios 60 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c subd = nvbios_boostSp(bios, idx++, data, &sver, &shdr, bios 225 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c struct nvkm_bios *bios = clk->subdev.device->bios; bios 233 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c data = nvbios_cstepXp(bios, idx, &ver, &hdr, &cstepX); bios 251 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c domain->bios, cstepX.freq); bios 403 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c struct nvkm_bios *bios = clk->subdev.device->bios; bios 412 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c data = nvbios_perfEp(bios, idx, &ver, &hdr, &cnt, &len, &perfE); bios 439 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c u32 perfSe = nvbios_perfSp(bios, data, domain->bios, bios 447 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c domain->bios, bios 454 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c data = nvbios_cstepEm(bios, pstate->pstate, &ver, &hdr, &cstepE); bios 655 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c struct nvkm_bios *bios = device->bios; bios 662 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (bios && !nvbios_vpstate_parse(bios, &h)) { bios 664 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (!nvbios_vpstate_entry(bios, &h, h.boost_id, &boost)) bios 666 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (!nvbios_vpstate_entry(bios, &h, h.base_id, &base)) bios 253 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gf100.c struct nvkm_bios *bios = subdev->device->bios; bios 257 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gf100.c ret = nvbios_pll_parse(bios, 0x137000 + (idx * 0x20), &limits); bios 266 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk104.c struct nvkm_bios *bios = subdev->device->bios; bios 270 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk104.c ret = nvbios_pll_parse(bios, 0x137000 + (idx * 0x20), &limits); bios 255 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c ret = nvbios_pll_parse(subdev->device->bios, pll, &limits); bios 172 drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c ret = nvbios_pll_parse(subdev->device->bios, reg, &pll); bios 53 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv04.c int cv = device->bios->version.chip; bios 131 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c ret = nvbios_pll_parse(subdev->device->bios, reg, &pll); bios 331 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv50.c ret = nvbios_pll_parse(subdev->device->bios, reg, &pll); bios 40 drivers/gpu/drm/nouveau/nvkm/subdev/clk/pllnv04.c struct nvkm_bios *bios = subdev->device->bios; bios 56 drivers/gpu/drm/nouveau/nvkm/subdev/clk/pllnv04.c if (bios->version.major < 0x60) { bios 57 drivers/gpu/drm/nouveau/nvkm/subdev/clk/pllnv04.c int cv = bios->version.chip; bios 139 drivers/gpu/drm/nouveau/nvkm/subdev/clk/pllnv04.c int chip_version = subdev->device->bios->version.chip; bios 40 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gf100.c ret = nvbios_pll_parse(device->bios, type, &info); bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c struct nvkm_bios *bios = device->bios; bios 42 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c nvkm_wr32(device, 0x10a184, nvbios_rd32(bios, img + i)); bios 55 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c struct nvkm_bios *bios = device->bios; bios 60 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c nvkm_wr32(device, 0x10a1c4, nvbios_rd32(bios, img + i)); bios 86 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c struct nvkm_bios *bios = subdev->device->bios; bios 89 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c if (!nvbios_pmuRm(bios, type, &pmu)) bios 123 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c struct nvkm_bios *bios = device->bios; bios 128 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c if (bit_entry(bios, 'I', &bit_I) || bit_I.version != 1 || bios 144 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c u32 img = nvbios_rd16(bios, bit_I.offset + 0x14); bios 145 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c u32 len = nvbios_rd16(bios, bit_I.offset + 0x16); bios 152 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c u32 img = nvbios_rd16(bios, bit_I.offset + 0x18); bios 153 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c u32 len = nvbios_rd16(bios, bit_I.offset + 0x1a); bios 40 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gt215.c ret = nvbios_pll_parse(device->bios, type, &info); bios 38 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gv100.c ret = nvbios_pll_parse(device->bios, type, &info); bios 147 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c int chip_version = device->bios->version.chip; bios 202 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c int chip_version = device->bios->version.chip; bios 310 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c if (nvbios_pll_parse(device->bios, Preg, &info)) bios 359 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c struct nvkm_bios *bios = subdev->device->bios; bios 362 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c int cv = bios->version.chip; bios 366 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c ret = nvbios_pll_parse(bios, type > 0x405c ? type : type - 4, &info); bios 49 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv05.c struct nvkm_bios *bios = device->bios; bios 64 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv05.c if ((data = bmp_mem_init_table(bios))) { bios 65 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv05.c ramcfg[0] = nvbios_rd08(bios, data + 2 * strap + 0); bios 66 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv05.c ramcfg[1] = nvbios_rd08(bios, data + 2 * strap + 1); bios 83 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv05.c u32 scramble = nvbios_rd32(bios, data); bios 39 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv50.c struct nvkm_bios *bios = device->bios; bios 44 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv50.c ret = nvbios_pll_parse(bios, type, &info); bios 127 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv50.c struct nvkm_bios *bios = device->bios; bios 137 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv50.c while (init->base.post && dcb_outp_parse(bios, i, &ver, &hdr, &outp)) { bios 138 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv50.c if (nvbios_outp_match(bios, outp.hasht, outp.hashm, bios 38 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/tu102.c ret = nvbios_pll_parse(device->bios, type, &info); bios 61 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c nvkm_fb_bios_memtype(struct nvkm_bios *bios) bios 63 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c struct nvkm_subdev *subdev = &bios->subdev; bios 69 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c if (nvbios_M0203Em(bios, ramcfg, &ver, &hdr, &M0203E)) { bios 75 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c switch (ram->next->bios.timing_ver) { bios 77 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c CWL = ram->next->bios.timing_10_CWL; bios 78 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c CL = ram->next->bios.timing_10_CL; bios 79 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c WR = ram->next->bios.timing_10_WR; bios 80 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c DLL = !ram->next->bios.ramcfg_DLLoff; bios 81 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c ODT = ram->next->bios.timing_10_ODT; bios 82 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c RON = ram->next->bios.ramcfg_RON; bios 85 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c CWL = (ram->next->bios.timing[1] & 0x00000f80) >> 7; bios 86 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c CL = (ram->next->bios.timing[1] & 0x0000001f) >> 0; bios 87 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c WR = (ram->next->bios.timing[2] & 0x007f0000) >> 16; bios 96 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c if (ram->next->bios.timing_ver == 0x20 || bios 97 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c ram->next->bios.ramcfg_timing == 0xff) { bios 41 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c xd = !ram->next->bios.ramcfg_DLLoff; bios 43 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c switch (ram->next->bios.ramcfg_ver) { bios 45 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c pd = ram->next->bios.ramcfg_11_01_80; bios 46 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c lf = ram->next->bios.ramcfg_11_01_40; bios 47 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c vh = ram->next->bios.ramcfg_11_02_10; bios 48 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c vr = ram->next->bios.ramcfg_11_02_04; bios 49 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c vo = ram->next->bios.ramcfg_11_06; bios 50 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c l3 = !ram->next->bios.ramcfg_11_07_02; bios 56 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c switch (ram->next->bios.timing_ver) { bios 58 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c WL = (ram->next->bios.timing[1] & 0x00000f80) >> 7; bios 59 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c CL = (ram->next->bios.timing[1] & 0x0000001f); bios 60 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c WR = (ram->next->bios.timing[2] & 0x007f0000) >> 16; bios 61 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c at[0] = ram->next->bios.timing_20_2e_c0; bios 62 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c at[1] = ram->next->bios.timing_20_2e_30; bios 63 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c dt = ram->next->bios.timing_20_2e_03; bios 64 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ds = ram->next->bios.timing_20_2f_03; bios 134 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct nvkm_bios *bios = device->bios; bios 147 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c rammap.data = nvbios_rammapEm(bios, freq / 1000, &ver, &rammap.size, bios 168 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c strap = nvbios_rd08(bios, ramcfg.data + 0x01); bios 170 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c timing.data = nvbios_timingEe(bios, strap, &ver, &timing.size, bios 496 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct nvkm_bios *bios = device->bios; bios 499 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c enum nvkm_ram_type type = nvkm_fb_bios_memtype(bios); bios 571 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct nvkm_bios *bios = subdev->device->bios; bios 583 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ret = nvbios_pll_parse(bios, 0x0c, &ram->refpll); bios 589 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ret = nvbios_pll_parse(bios, 0x04, &ram->mempll); bios 211 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c u8 v0 = next->bios.ramcfg_11_03_c0; bios 212 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c u8 v1 = next->bios.ramcfg_11_03_30; bios 256 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c int vc = !next->bios.ramcfg_11_02_08; bios 257 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c int mv = !next->bios.ramcfg_11_02_04; bios 311 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c switch (next->bios.ramcfg_11_03_c0) { bios 318 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c switch (next->bios.ramcfg_11_03_30) { bios 326 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_02_80) bios 328 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_02_40) bios 330 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_07_10) bios 332 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_07_08) bios 367 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_02_40 || bios 368 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c next->bios.ramcfg_11_07_10) { bios 391 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_07_40) bios 395 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f65c, 0x00000011 * next->bios.rammap_11_11_0c); bios 396 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f6b8, 0x01010101 * next->bios.ramcfg_11_09); bios 397 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f6bc, 0x01010101 * next->bios.ramcfg_11_09); bios 399 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_07_08 && !next->bios.ramcfg_11_07_04) { bios 400 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f698, 0x01010101 * next->bios.ramcfg_11_04); bios 401 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f69c, 0x01010101 * next->bios.ramcfg_11_04); bios 403 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_07_08) { bios 409 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c u32 data = 0x01000100 * next->bios.ramcfg_11_04; bios 414 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode == 2 && next->bios.ramcfg_11_08_10) bios 422 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_02_80) bios 424 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_02_40) bios 426 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_07_10) bios 428 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_07_08) bios 434 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_01_08) bios 445 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_08_01) bios 452 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_08_08) bios 454 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_08_04) bios 456 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_08_02) bios 461 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f248, 0xffffffff, next->bios.timing[10]); bios 462 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f290, 0xffffffff, next->bios.timing[0]); bios 463 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f294, 0xffffffff, next->bios.timing[1]); bios 464 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f298, 0xffffffff, next->bios.timing[2]); bios 465 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f29c, 0xffffffff, next->bios.timing[3]); bios 466 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2a0, 0xffffffff, next->bios.timing[4]); bios 467 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2a4, 0xffffffff, next->bios.timing[5]); bios 468 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2a8, 0xffffffff, next->bios.timing[6]); bios 469 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2ac, 0xffffffff, next->bios.timing[7]); bios 470 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2cc, 0xffffffff, next->bios.timing[8]); bios 471 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2e8, 0xffffffff, next->bios.timing[9]); bios 475 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_08_20) bios 483 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data |= next->bios.ramcfg_11_02_03 << 8; bios 487 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_01_10) bios 495 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data |= next->bios.timing_20_30_07 << 28; bios 499 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_01_01) bios 507 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data |= next->bios.timing_20_30_07 << 28; bios 511 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_01_02) bios 519 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_01_04) bios 521 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_07_80) bios 526 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_03_f0) { bios 527 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.rammap_11_08_0c) { bios 528 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_07_80) bios 541 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f870, 0x11111111 * next->bios.ramcfg_11_03_0f); bios 545 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data |= next->bios.ramcfg_11_02_03; bios 549 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_01_10) bios 560 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data = next->bios.timing_20_30_07 << 8; bios 561 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_01_01) bios 565 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f250, 0x000003f0, next->bios.timing_20_2c_003f << 4); bios 566 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data = (next->bios.timing[10] & 0x7f000000) >> 24; bios 567 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (data < next->bios.timing_20_2c_1fc0) bios 568 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data = next->bios.timing_20_2c_1fc0; bios 570 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f224, 0x001f0000, next->bios.timing_20_30_f8 << 16); bios 572 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10fec4, 0x041e0f07, next->bios.timing_20_31_0800 << 26 | bios 573 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c next->bios.timing_20_31_0780 << 17 | bios 574 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c next->bios.timing_20_31_0078 << 8 | bios 575 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c next->bios.timing_20_31_0007); bios 576 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10fec8, 0x00000027, next->bios.timing_20_31_8000 << 5 | bios 577 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c next->bios.timing_20_31_7000); bios 585 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_08_10 && (ram->mode == 2) /*XXX*/) { bios 618 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_07_08) { bios 619 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_07_04) bios 633 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_07_08) { bios 635 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if ( next->bios.ramcfg_11_07_04) bios 637 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.rammap_11_08_10) bios 659 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_07_02) bios 667 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.rammap_11_08_01) bios 707 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c int vc = !next->bios.ramcfg_11_02_08; bios 708 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c int mv = !next->bios.ramcfg_11_02_04; bios 726 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_03_f0) bios 731 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_DLLoff) bios 755 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c switch (next->bios.ramcfg_11_03_c0) { bios 762 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c switch (next->bios.ramcfg_11_03_30) { bios 770 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_02_80) bios 772 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_02_40) bios 774 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_07_10) bios 776 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_07_08) bios 786 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data |= next->bios.ramcfg_11_03_30 << 16; bios 818 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_02_40 || bios 819 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c next->bios.ramcfg_11_07_10) { bios 825 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_07_40) bios 829 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f65c, 0x00000011 * next->bios.rammap_11_11_0c); bios 830 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f6b8, 0x01010101 * next->bios.ramcfg_11_09); bios 831 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f6bc, 0x01010101 * next->bios.ramcfg_11_09); bios 835 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_02_80) bios 837 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_02_40) bios 839 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_07_10) bios 841 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_07_08) bios 848 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_08_01) bios 855 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f248, 0xffffffff, next->bios.timing[10]); bios 856 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f290, 0xffffffff, next->bios.timing[0]); bios 857 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f294, 0xffffffff, next->bios.timing[1]); bios 858 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f298, 0xffffffff, next->bios.timing[2]); bios 859 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f29c, 0xffffffff, next->bios.timing[3]); bios 860 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2a0, 0xffffffff, next->bios.timing[4]); bios 861 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2a4, 0xffffffff, next->bios.timing[5]); bios 862 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2a8, 0xffffffff, next->bios.timing[6]); bios 863 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2ac, 0xffffffff, next->bios.timing[7]); bios 864 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2cc, 0xffffffff, next->bios.timing[8]); bios 865 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f2e8, 0xffffffff, next->bios.timing[9]); bios 869 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_01_04) bios 871 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_07_80) bios 876 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_03_f0) { bios 877 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.rammap_11_08_0c) { bios 878 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_11_07_80) bios 892 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, 0x10f870, 0x11111111 * next->bios.ramcfg_11_03_0f); bios 894 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f250, 0x000003f0, next->bios.timing_20_2c_003f << 4); bios 896 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data = (next->bios.timing[10] & 0x7f000000) >> 24; bios 897 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (data < next->bios.timing_20_2c_1fc0) bios 898 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data = next->bios.timing_20_2c_1fc0; bios 901 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x10f224, 0x001f0000, next->bios.timing_20_30_f8 << 16); bios 911 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_DLLoff) { bios 921 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!next->bios.ramcfg_DLLoff) { bios 949 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.rammap_11_08_01) bios 969 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (mhz >= cfg->bios.rammap_min && bios 970 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c mhz <= cfg->bios.rammap_max) { bios 1139 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c xits->bios.ramcfg_11_02_04 = copy->bios.ramcfg_11_02_04; bios 1140 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c xits->bios.ramcfg_11_02_03 = copy->bios.ramcfg_11_02_03; bios 1141 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c xits->bios.timing_20_30_07 = copy->bios.timing_20_30_07; bios 1144 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (memcmp(xits, &ram->base.former, sizeof(xits->bios))) bios 1163 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (mhz >= cfg->bios.rammap_min && bios 1164 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c mhz <= cfg->bios.rammap_max) bios 1172 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data |= cfg->bios.rammap_11_0a_03fe << 12; bios 1176 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data |= cfg->bios.rammap_11_09_01ff; bios 1182 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data |= cfg->bios.rammap_11_0a_0400; bios 1188 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data |= cfg->bios.rammap_11_0a_0800; bios 1194 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data |= cfg->bios.rammap_11_0b_01f0; bios 1200 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data |= cfg->bios.rammap_11_0b_0200 << 9; bios 1206 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data |= cfg->bios.rammap_11_0d << 16; bios 1210 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data |= cfg->bios.rammap_11_0f << 8; bios 1216 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data |= cfg->bios.rammap_11_0e << 8; bios 1220 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data |= cfg->bios.rammap_11_0b_0800 << 7; bios 1224 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data |= cfg->bios.rammap_11_0b_0400 << 5; bios 1274 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_bios *bios = ram->fb->subdev.device->bios; bios 1284 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!(data = nvbios_M0205Ep(bios, i, &ver, &hdr, &cnt, &len, &M0205E))) bios 1300 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!(data = nvbios_M0205Sp(bios, i, ramcfg, &ver, &hdr, &M0205S))) bios 1305 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!(data = nvbios_M0209Ep(bios, i, &ver, &hdr, &cnt, &len, &M0209E))) bios 1309 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!(data = nvbios_M0209Sp(bios, i, 0, &ver, &hdr, value))) bios 1317 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!(data = nvbios_M0209Sp(bios, M0209E.v03, 0, &ver, &hdr, bios 1401 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_bios *bios = device->bios; bios 1417 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data = nvbios_rammapTe(bios, &ver, &hdr, &cnt, &len, &snr, &ssz); bios 1421 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c cnt = nvbios_rd08(bios, data + 0x14); /* guess at count */ bios 1422 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data = nvbios_rd32(bios, data + 0x10); /* guess u32... */ bios 1427 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c nvbios_init(subdev, nvbios_rd32(bios, data)); bios 1441 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_bios *bios = ram->base.fb->subdev.device->bios; bios 1451 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c p = &list_last_entry(&ram->cfg, typeof(*cfg), head)->bios; bios 1452 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c n = &cfg->bios; bios 1455 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data = nvbios_rammapEp(bios, i, &ver, &hdr, &cnt, &len, &cfg->bios); bios 1462 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data = nvbios_rammapSp(bios, data, ver, hdr, cnt, len, ramcfg, bios 1463 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c &ver, &hdr, &cfg->bios); bios 1470 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (cfg->bios.ramcfg_timing != 0xff) { bios 1471 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data = nvbios_timingEp(bios, cfg->bios.ramcfg_timing, bios 1473 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c &cfg->bios); bios 1526 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_bios *bios = device->bios; bios 1582 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = nvbios_pll_parse(bios, 0x0c, &ram->fuc.refpll); bios 1588 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = nvbios_pll_parse(bios, 0x04, &ram->fuc.mempll); bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c struct nvkm_bios *bios = device->bios; bios 51 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c data = nvbios_rammapTe(bios, &ver, &hdr, &cnt, &len, &snr, &ssz); bios 55 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c cnt = nvbios_rd08(bios, data + 0x14); /* guess at count */ bios 56 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c data = nvbios_rd32(bios, data + 0x10); /* guess u32... */ bios 62 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c nvbios_init(subdev, nvbios_rd32(bios, data)); bios 160 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct nvkm_bios *bios = device->bios; bios 181 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c nvbios_M0205Tp(bios, &ver, &hdr, &cnt, &len, &snr, &ssz, &M0205T); bios 282 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct nvkm_bios *bios = device->bios; bios 293 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (!nvbios_M0205Ep(bios, i, &ver, &hdr, &cnt, &len, &M0205E)) bios 350 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct nvbios_ramcfg *cfg = &ram->base.target.bios; bios 499 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct nvkm_bios *bios = device->bios; bios 519 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c data = nvbios_rammapEm(bios, freq / 1000, &ver, &hdr, &cnt, &len, bios 520 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c &next->bios); bios 533 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c data = nvbios_rammapSp(bios, data, ver, hdr, cnt, len, strap, bios 534 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c &ver, &hdr, &next->bios); bios 541 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (next->bios.ramcfg_timing != 0xff) { bios 542 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c data = nvbios_timingEp(bios, next->bios.ramcfg_timing, bios 544 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c &next->bios); bios 597 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (!next->bios.ramcfg_DLLoff) bios 605 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (next->bios.ramcfg_10_02_10) { bios 629 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (!next->bios.ramcfg_10_02_10) { bios 637 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c switch (next->bios.ramcfg_DLLoff * ram->base.type) { bios 646 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (next->bios.timing_10_ODT) bios 663 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c next->bios.ramcfg_FBVDDQ) { bios 671 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_ram_gpio(fuc, 0x18, !next->bios.ramcfg_FBVDDQ); bios 707 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (next->bios.rammap_10_04_08) { bios 708 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x1005a0, next->bios.ramcfg_10_06 << 16 | bios 709 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c next->bios.ramcfg_10_05 << 8 | bios 710 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c next->bios.ramcfg_10_05); bios 711 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x1005a4, next->bios.ramcfg_10_08 << 8 | bios 712 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c next->bios.ramcfg_10_07); bios 713 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, 0x10f804, next->bios.ramcfg_10_09_f0 << 20 | bios 714 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c next->bios.ramcfg_10_03_0f << 16 | bios 715 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c next->bios.ramcfg_10_09_0f | bios 766 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_mask(fuc, 0x100200, 0x00001000, !next->bios.ramcfg_10_02_08 << 12); bios 777 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (!next->bios.ramcfg_10_02_04) bios 780 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (next->bios.ramcfg_10_02_04) { bios 785 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (next->bios.ramcfg_10_02_10) bios 800 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (next->bios.ramcfg_10_02_10) bios 814 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c unk714 |= (next->bios.ramcfg_10_04_01) << 8; bios 816 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (next->bios.ramcfg_10_02_20) bios 818 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (next->bios.ramcfg_10_02_02) bios 820 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (next->bios.ramcfg_10_02_01) bios 822 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (next->bios.timing_10_24 != 0xff) { bios 824 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c unk718 |= next->bios.timing_10_24 << 28; bios 826 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (next->bios.ramcfg_10_02_10) bios 834 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (!next->bios.timing_10_ODT) bios 838 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (!next->bios.ramcfg_DLLoff) bios 861 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (next->bios.rammap_10_04_02) bios 863 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (next->bios.ramcfg_10_02_10) { bios 38 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c struct nvkm_bios *bios = subdev->device->bios; bios 43 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c ret = nvbios_pll_parse(bios, 0x04, &pll); bios 72 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c struct nvkm_bios *bios = device->bios; bios 155 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c if (!bit_entry(bios, 'M', &M)) bios 156 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c nvbios_init(subdev, nvbios_rd16(bios, M.offset + 0x00)); bios 75 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvbios_ramcfg *cfg = &ram->base.target.bios; bios 97 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c unkt3b = 0x19 + ram->base.next->bios.rammap_00_16_40; bios 99 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->base.next->bios.rammap_00_16_40) << 16 | bios 154 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvbios_ramcfg *cfg = &ram->base.target.bios; bios 224 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvkm_bios *bios = subdev->device->bios; bios 242 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c data = nvbios_perfEp(bios, i++, &ver, &hdr, &cnt, bios 251 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c nvbios_rammapEp_from_perf(bios, data, hdr, &next->bios); bios 260 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c data = nvbios_rammapSp_from_perf(bios, data + hdr, size, strap, bios 261 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c &next->bios); bios 268 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (next->bios.ramcfg_timing != 0xff) { bios 269 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c data = nvbios_timingEp(bios, next->bios.ramcfg_timing, bios 270 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c &ver, &hdr, &cnt, &len, &next->bios); bios 305 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (subdev->device->chipset <= 0x96 && !next->bios.ramcfg_00_03_02) bios 319 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (next->bios.timing_10_ODT) bios 328 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ret = nvbios_pll_parse(bios, 0x004008, &mpll); bios 355 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c next->bios.rammap_00_16_40 << 14); bios 363 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c nv50_ram_gpio(hwsq, 0x18, !next->bios.ramcfg_FBVDDQ); bios 400 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (!next->bios.ramcfg_00_03_02) bios 402 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram_mask(hwsq, 0x100200, 0x00001000, !next->bios.ramcfg_00_04_02 << 12); bios 413 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (!next->bios.ramcfg_00_03_08) bios 415 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (!next->bios.ramcfg_FBVDDQ) bios 417 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if ( next->bios.ramcfg_00_04_04) bios 422 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (!next->bios.ramcfg_00_03_08) bios 426 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if ( next->bios.ramcfg_00_03_01) bios 428 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if ( next->bios.ramcfg_00_03_02) bios 430 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (!next->bios.ramcfg_00_03_08) bios 432 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if ( next->bios.ramcfg_00_04_04) bios 434 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if ( next->bios.ramcfg_00_04_20) bios 444 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (next->bios.rammap_00_16_20) { bios 445 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram_wr32(hwsq, 0x1005a0, next->bios.ramcfg_00_07 << 16 | bios 446 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c next->bios.ramcfg_00_06 << 8 | bios 447 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c next->bios.ramcfg_00_05); bios 448 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram_wr32(hwsq, 0x1005a4, next->bios.ramcfg_00_09 << 8 | bios 449 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c next->bios.ramcfg_00_08); bios 456 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (!next->bios.timing_10_ODT) bios 460 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (!next->bios.ramcfg_DLLoff) bios 468 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (next->bios.rammap_00_17_02) bios 470 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (!next->bios.rammap_00_16_40) bios 472 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (next->bios.ramcfg_00_03_02) bios 474 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (subdev->device->chipset <= 0x96 && next->bios.ramcfg_00_03_02) bios 546 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvkm_bios *bios = device->bios; bios 556 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (nvkm_fb_bios_memtype(bios) == NVKM_RAM_TYPE_DDR3) bios 65 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c switch (ram->next->bios.timing_ver) { bios 67 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c CL = ram->next->bios.timing_10_CL; bios 68 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c WR = ram->next->bios.timing_10_WR; bios 69 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c DLL = !ram->next->bios.ramcfg_DLLoff; bios 70 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c ODT = ram->next->bios.timing_10_ODT & 3; bios 73 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c CL = (ram->next->bios.timing[1] & 0x0000001f); bios 74 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c WR = (ram->next->bios.timing[2] & 0x007f0000) >> 16; bios 80 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c if (ram->next->bios.timing_ver == 0x20 || bios 81 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c ram->next->bios.ramcfg_timing == 0xff) { bios 74 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c DLL = !ram->next->bios.ramcfg_DLLoff; bios 76 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c switch (ram->next->bios.timing_ver) { bios 78 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c if (ram->next->bios.timing_hdr < 0x17) { bios 82 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c CWL = ram->next->bios.timing_10_CWL; bios 83 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c CL = ram->next->bios.timing_10_CL; bios 84 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c WR = ram->next->bios.timing_10_WR; bios 85 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c ODT = ram->next->bios.timing_10_ODT; bios 88 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c CWL = (ram->next->bios.timing[1] & 0x00000f80) >> 7; bios 89 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c CL = (ram->next->bios.timing[1] & 0x0000001f) >> 0; bios 90 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c WR = (ram->next->bios.timing[2] & 0x007f0000) >> 16; bios 53 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/base.c struct nvkm_bios *bios = device->bios; bios 60 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/base.c data = dcb_gpio_match(bios, idx, tag, line, &ver, &len, func); bios 30 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/gf119.c struct nvkm_bios *bios = device->bios; bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/gf119.c while ((entry = dcb_gpio_entry(bios, 0, ++ent, &ver, &len))) { bios 36 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/gf119.c u32 data = nvbios_rd32(bios, entry); bios 30 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/nv50.c struct nvkm_bios *bios = device->bios; bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/nv50.c while ((entry = dcb_gpio_entry(bios, 0, ++ent, &ver, &len))) { bios 37 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/nv50.c u32 data = nvbios_rd32(bios, entry); bios 51 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c struct nvkm_bios *bios = i2c->subdev.device->bios; bios 56 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c u16 i2c = dcb_i2c_table(bios, &ver, &hdr, &cnt, &len); bios 58 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c u8 auxidx = nvbios_rd08(bios, i2c + 4); bios 267 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c u8 bios; bios 282 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c struct nvkm_bios *bios = device->bios; bios 299 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c while (!dcb_i2c_parse(bios, ++i, &ccbE)) { bios 365 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c while (dcb_outp_parse(bios, ++i, &ver, &hdr, &dcbE)) { bios 383 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c if (drv->bios == dcbE.extdev) bios 153 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c struct nvkm_bios *bios = subdev->device->bios; bios 160 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c if (!i2c || !bios || nvbios_extdev_parse(bios, id, &extdev)) bios 219 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c struct nvkm_bios *bios = subdev->device->bios; bios 224 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c if (!bios) bios 227 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c ret = nvbios_power_budget_header(bios, &budget); bios 230 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c ret = nvbios_power_budget_entry(bios, &budget, bios 238 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c if (nvbios_iccsense_parse(bios, &stbl) || !stbl.nr_entry) bios 47 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c struct nvkm_bios *bios = device->bios; bios 52 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c i2cidx = mxm_ddc_map(bios, 1 /* LVDS_DDC */) & 0x0f; bios 235 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c struct nvkm_bios *bios = device->bios; bios 245 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c data = mxm_table(bios, &ver, &len); bios 246 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c if (!data || !(ver = nvbios_rd08(bios, data))) { bios 253 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c nvbios_rd08(bios, data + 0x01)); bios 255 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c nvbios_rd08(bios, data + 0x02)); bios 52 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c struct nvkm_bios *bios = mxm->subdev.device->bios; bios 68 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c u8 link = mxm_sor_map(bios, ctx->desc.dig_conn); bios 95 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c mxm_dcb_sanitise_entry(struct nvkm_bios *bios, void *data, int idx, u16 pdcb) bios 98 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c struct context ctx = { .outp = (u32 *)(bios->data + pdcb) }; bios 116 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c i2cidx = mxm_ddc_map(bios, ctx.desc.ddc_port); bios 133 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c link = mxm_sor_map(bios, ctx.desc.dig_conn) & 0x30; bios 146 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c conn = bios->data; bios 147 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c conn += nvbios_connEe(bios, (ctx.outp[0] & 0x0000f000) >> 12, &ver, &len); bios 191 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c struct nvkm_bios *bios = subdev->device->bios; bios 193 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c u16 dcb = dcb_table(bios, &ver, &hdr, &cnt, &len); bios 199 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c dcb_outp_foreach(bios, mxm, mxm_dcb_sanitise_entry); bios 40 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c struct nvbios_therm_trip_point *trip = therm->fan->bios.trip, bios 48 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c for (i = 0; i < therm->fan->bios.nr_fan_trip; i++) { bios 78 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c return therm->fan->bios.min_duty; bios 80 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c return therm->fan->bios.max_duty; bios 84 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c duty *= (therm->fan->bios.max_duty - therm->fan->bios.min_duty); bios 86 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c duty += therm->fan->bios.min_duty; bios 93 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c u8 min = therm->fan->bios.linear_min_temp; bios 94 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c u8 max = therm->fan->bios.linear_max_temp; bios 129 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c switch(therm->fan->bios.fan_mode) { bios 219 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c return therm->fan->bios.min_duty; bios 221 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c return therm->fan->bios.max_duty; bios 253 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c if (value > therm->fan->bios.max_duty) bios 254 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c value = therm->fan->bios.max_duty; bios 255 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c therm->fan->bios.min_duty = value; bios 260 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c if (value < therm->fan->bios.min_duty) bios 261 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c value = therm->fan->bios.min_duty; bios 262 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c therm->fan->bios.max_duty = value; bios 45 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c target = max_t(u8, target, fan->bios.min_duty); bios 46 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c target = min_t(u8, target, fan->bios.max_duty); bios 87 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c u16 bump_period = fan->bios.bump_period; bios 88 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c u16 slow_down_period = fan->bios.slow_down_period; bios 186 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c therm->fan->bios.pwm_freq = 0; bios 187 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c therm->fan->bios.min_duty = 0; bios 188 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c therm->fan->bios.max_duty = 100; bios 189 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c therm->fan->bios.bump_period = 500; bios 190 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c therm->fan->bios.slow_down_period = 2000; bios 191 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c therm->fan->bios.linear_min_temp = 40; bios 192 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c therm->fan->bios.linear_max_temp = 85; bios 198 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c if (therm->fan->bios.min_duty > 100) bios 199 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c therm->fan->bios.min_duty = 100; bios 200 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c if (therm->fan->bios.max_duty > 100) bios 201 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c therm->fan->bios.max_duty = 100; bios 203 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c if (therm->fan->bios.min_duty > therm->fan->bios.max_duty) bios 204 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c therm->fan->bios.min_duty = therm->fan->bios.max_duty; bios 228 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c struct nvkm_bios *bios = device->bios; bios 271 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c nvbios_perf_fan_parse(bios, &therm->fan->perf); bios 272 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c if (!nvbios_fan_parse(bios, &therm->fan->bios)) { bios 274 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c if (nvbios_therm_fan_parse(bios, &therm->fan->bios)) bios 67 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c if (fan->base.bios.pwm_freq) { bios 71 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c divs /= fan->base.bios.pwm_freq; bios 88 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c struct nvkm_bios *bios = device->bios; bios 93 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c nvbios_fan_parse(bios, &info); bios 86 drivers/gpu/drm/nouveau/nvkm/subdev/therm/ic.c struct nvkm_bios *bios = device->bios; bios 95 drivers/gpu/drm/nouveau/nvkm/subdev/therm/ic.c if (!nvbios_extdev_find(bios, NVBIOS_EXTDEV_LM89, &extdev_entry)) { bios 107 drivers/gpu/drm/nouveau/nvkm/subdev/therm/ic.c if (!nvbios_extdev_find(bios, NVBIOS_EXTDEV_ADT7473, &extdev_entry)) { bios 119 drivers/gpu/drm/nouveau/nvkm/subdev/therm/ic.c if (nvbios_extdev_skip_probe(bios)) bios 42 drivers/gpu/drm/nouveau/nvkm/subdev/therm/priv.h struct nvbios_therm_fan bios; bios 242 drivers/gpu/drm/nouveau/nvkm/subdev/therm/temp.c struct nvkm_bios *bios = subdev->device->bios; bios 247 drivers/gpu/drm/nouveau/nvkm/subdev/therm/temp.c if (nvbios_therm_sensor_parse(bios, NVBIOS_THERM_DOMAIN_CORE, bios 84 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c struct nvkm_bios *bios = volt->subdev.device->bios; bios 89 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c vmap = nvbios_vmap_entry_parse(bios, id, &ver, &len, &info); bios 106 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c struct nvkm_bios *bios = volt->subdev.device->bios; bios 111 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c vmap = nvbios_vmap_entry_parse(bios, id, &ver, &len, &info); bios 186 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c nvkm_volt_parse_bios(struct nvkm_bios *bios, struct nvkm_volt *volt) bios 188 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c struct nvkm_subdev *subdev = &bios->subdev; bios 195 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c data = nvbios_volt_parse(bios, &ver, &hdr, &cnt, &len, &info); bios 215 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c data = nvbios_volt_entry_parse(bios, i, &ver, &hdr, bios 286 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c struct nvkm_bios *bios = device->bios; bios 293 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c if (bios) { bios 297 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c nvkm_volt_parse_bios(bios, volt); bios 301 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c if (nvbios_vmap_parse(bios, &ver, &hdr, &cnt, &len, &vmap)) { bios 35 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c struct nvbios_volt bios; bios 41 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c struct nvbios_volt *bios = &gk104_volt(base)->bios; bios 48 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c return bios->base + bios->pwm_range * duty / div; bios 54 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c struct nvbios_volt *bios = &gk104_volt(base)->bios; bios 59 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c div = 27648000 / bios->pwm_freq; bios 60 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c duty = DIV_ROUND_UP((uv - bios->base) * div, bios->pwm_range); bios 102 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c struct nvbios_volt bios; bios 107 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c if (!nvbios_volt_parse(device->bios, &ver, &hdr, &cnt, &len, &bios)) bios 111 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c bios.type == NVBIOS_VOLT_PWM) { bios 119 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c volt->bios = bios; bios 125 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c if (bios.type == NVBIOS_VOLT_PWM && volt_func != &gk104_volt_pwm) { bios 28 drivers/gpu/drm/radeon/atom-bits.h static inline uint8_t get_u8(void *bios, int ptr) bios 30 drivers/gpu/drm/radeon/atom-bits.h return ((unsigned char *)bios)[ptr]; bios 32 drivers/gpu/drm/radeon/atom-bits.h #define U8(ptr) get_u8(ctx->ctx->bios, (ptr)) bios 33 drivers/gpu/drm/radeon/atom-bits.h #define CU8(ptr) get_u8(ctx->bios, (ptr)) bios 34 drivers/gpu/drm/radeon/atom-bits.h static inline uint16_t get_u16(void *bios, int ptr) bios 36 drivers/gpu/drm/radeon/atom-bits.h return get_u8(bios ,ptr)|(((uint16_t)get_u8(bios, ptr+1))<<8); bios 38 drivers/gpu/drm/radeon/atom-bits.h #define U16(ptr) get_u16(ctx->ctx->bios, (ptr)) bios 39 drivers/gpu/drm/radeon/atom-bits.h #define CU16(ptr) get_u16(ctx->bios, (ptr)) bios 40 drivers/gpu/drm/radeon/atom-bits.h static inline uint32_t get_u32(void *bios, int ptr) bios 42 drivers/gpu/drm/radeon/atom-bits.h return get_u16(bios, ptr)|(((uint32_t)get_u16(bios, ptr+2))<<16); bios 44 drivers/gpu/drm/radeon/atom-bits.h #define U32(ptr) get_u32(ctx->ctx->bios, (ptr)) bios 45 drivers/gpu/drm/radeon/atom-bits.h #define CU32(ptr) get_u32(ctx->bios, (ptr)) bios 46 drivers/gpu/drm/radeon/atom-bits.h #define CSTR(ptr) (((char *)(ctx->bios))+(ptr)) bios 1265 drivers/gpu/drm/radeon/atom.c struct atom_context *atom_parse(struct card_info *card, void *bios) bios 1278 drivers/gpu/drm/radeon/atom.c ctx->bios = bios; bios 1367 drivers/gpu/drm/radeon/atom.c u16 *mdt = (u16 *)(ctx->bios + ctx->data_table + 4); bios 1387 drivers/gpu/drm/radeon/atom.c u16 *mct = (u16 *)(ctx->bios + ctx->cmd_table + 4); bios 1407 drivers/gpu/drm/radeon/atom.c firmware_usage = (struct _ATOM_VRAM_USAGE_BY_FIRMWARE *)(ctx->bios + data_offset); bios 128 drivers/gpu/drm/radeon/atom.h void *bios; bios 5563 drivers/gpu/drm/radeon/ci_dpm.c power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); bios 5566 drivers/gpu/drm/radeon/ci_dpm.c (mode_info->atom_context->bios + data_offset + bios 5569 drivers/gpu/drm/radeon/ci_dpm.c (mode_info->atom_context->bios + data_offset + bios 5572 drivers/gpu/drm/radeon/ci_dpm.c (mode_info->atom_context->bios + data_offset + bios 5647 drivers/gpu/drm/radeon/ci_dpm.c (ATOM_FIRMWARE_INFO_V2_2 *)(mode_info->atom_context->bios + bios 8589 drivers/gpu/drm/radeon/cik.c if (!rdev->bios) { bios 8740 drivers/gpu/drm/radeon/cik.c kfree(rdev->bios); bios 8741 drivers/gpu/drm/radeon/cik.c rdev->bios = NULL; bios 5200 drivers/gpu/drm/radeon/evergreen.c if (!rdev->bios) { bios 5321 drivers/gpu/drm/radeon/evergreen.c kfree(rdev->bios); bios 5322 drivers/gpu/drm/radeon/evergreen.c rdev->bios = NULL; bios 2502 drivers/gpu/drm/radeon/kv_dpm.c igp_info = (union igp_info *)(mode_info->atom_context->bios + bios 2653 drivers/gpu/drm/radeon/kv_dpm.c power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); bios 2656 drivers/gpu/drm/radeon/kv_dpm.c (mode_info->atom_context->bios + data_offset + bios 2659 drivers/gpu/drm/radeon/kv_dpm.c (mode_info->atom_context->bios + data_offset + bios 2662 drivers/gpu/drm/radeon/kv_dpm.c (mode_info->atom_context->bios + data_offset + bios 2375 drivers/gpu/drm/radeon/ni.c if (!rdev->bios) { bios 2499 drivers/gpu/drm/radeon/ni.c kfree(rdev->bios); bios 2500 drivers/gpu/drm/radeon/ni.c rdev->bios = NULL; bios 4001 drivers/gpu/drm/radeon/ni_dpm.c power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); bios 4011 drivers/gpu/drm/radeon/ni_dpm.c (mode_info->atom_context->bios + data_offset + bios 4015 drivers/gpu/drm/radeon/ni_dpm.c (mode_info->atom_context->bios + data_offset + bios 4033 drivers/gpu/drm/radeon/ni_dpm.c (mode_info->atom_context->bios + data_offset + bios 4000 drivers/gpu/drm/radeon/r100.c kfree(rdev->bios); bios 4001 drivers/gpu/drm/radeon/r100.c rdev->bios = NULL; bios 1506 drivers/gpu/drm/radeon/r300.c kfree(rdev->bios); bios 1507 drivers/gpu/drm/radeon/r300.c rdev->bios = NULL; bios 378 drivers/gpu/drm/radeon/r420.c kfree(rdev->bios); bios 379 drivers/gpu/drm/radeon/r420.c rdev->bios = NULL; bios 285 drivers/gpu/drm/radeon/r520.c if (!radeon_card_posted(rdev) && rdev->bios) { bios 3272 drivers/gpu/drm/radeon/r600.c if (!rdev->bios) { bios 3361 drivers/gpu/drm/radeon/r600.c kfree(rdev->bios); bios 3362 drivers/gpu/drm/radeon/r600.c rdev->bios = NULL; bios 856 drivers/gpu/drm/radeon/r600_dpm.c power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); bios 887 drivers/gpu/drm/radeon/r600_dpm.c power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); bios 893 drivers/gpu/drm/radeon/r600_dpm.c fan_info = (union fan_info *)(mode_info->atom_context->bios + data_offset + bios 924 drivers/gpu/drm/radeon/r600_dpm.c (mode_info->atom_context->bios + data_offset + bios 933 drivers/gpu/drm/radeon/r600_dpm.c (mode_info->atom_context->bios + data_offset + bios 944 drivers/gpu/drm/radeon/r600_dpm.c (mode_info->atom_context->bios + data_offset + bios 956 drivers/gpu/drm/radeon/r600_dpm.c (mode_info->atom_context->bios + data_offset + bios 970 drivers/gpu/drm/radeon/r600_dpm.c (mode_info->atom_context->bios + data_offset + bios 988 drivers/gpu/drm/radeon/r600_dpm.c (mode_info->atom_context->bios + data_offset + bios 1035 drivers/gpu/drm/radeon/r600_dpm.c (mode_info->atom_context->bios + data_offset + bios 1070 drivers/gpu/drm/radeon/r600_dpm.c (mode_info->atom_context->bios + data_offset + bios 1075 drivers/gpu/drm/radeon/r600_dpm.c (mode_info->atom_context->bios + data_offset + bios 1079 drivers/gpu/drm/radeon/r600_dpm.c (mode_info->atom_context->bios + data_offset + bios 1084 drivers/gpu/drm/radeon/r600_dpm.c (mode_info->atom_context->bios + data_offset + bios 1137 drivers/gpu/drm/radeon/r600_dpm.c (mode_info->atom_context->bios + data_offset + bios 1141 drivers/gpu/drm/radeon/r600_dpm.c (mode_info->atom_context->bios + data_offset + bios 1174 drivers/gpu/drm/radeon/r600_dpm.c (mode_info->atom_context->bios + data_offset + bios 1200 drivers/gpu/drm/radeon/r600_dpm.c (mode_info->atom_context->bios + data_offset + bios 1232 drivers/gpu/drm/radeon/r600_dpm.c (mode_info->atom_context->bios + data_offset + bios 1257 drivers/gpu/drm/radeon/r600_dpm.c u8 rev = *(u8 *)(mode_info->atom_context->bios + data_offset + bios 1268 drivers/gpu/drm/radeon/r600_dpm.c (mode_info->atom_context->bios + data_offset + bios 1275 drivers/gpu/drm/radeon/r600_dpm.c (mode_info->atom_context->bios + data_offset + bios 2323 drivers/gpu/drm/radeon/radeon.h uint8_t *bios; bios 2663 drivers/gpu/drm/radeon/radeon.h #define RBIOS8(i) (rdev->bios[i]) bios 721 drivers/gpu/drm/radeon/radeon_acpi.c if (!ASIC_IS_AVIVO(rdev) || !rdev->bios || !handle) bios 2359 drivers/gpu/drm/radeon/radeon_asic.c if (rdev->bios == NULL) { bios 148 drivers/gpu/drm/radeon/radeon_atombios.c i2c_info = (struct _ATOM_GPIO_I2C_INFO *)(ctx->bios + data_offset); bios 182 drivers/gpu/drm/radeon/radeon_atombios.c i2c_info = (struct _ATOM_GPIO_I2C_INFO *)(ctx->bios + data_offset); bios 218 drivers/gpu/drm/radeon/radeon_atombios.c gpio_info = (struct _ATOM_GPIO_PIN_LUT *)(ctx->bios + data_offset); bios 548 drivers/gpu/drm/radeon/radeon_atombios.c obj_header = (ATOM_OBJECT_HEADER *) (ctx->bios + data_offset); bios 550 drivers/gpu/drm/radeon/radeon_atombios.c (ctx->bios + data_offset + bios 553 drivers/gpu/drm/radeon/radeon_atombios.c (ctx->bios + data_offset + bios 556 drivers/gpu/drm/radeon/radeon_atombios.c (ctx->bios + data_offset + bios 559 drivers/gpu/drm/radeon/radeon_atombios.c (ctx->bios + data_offset + bios 606 drivers/gpu/drm/radeon/radeon_atombios.c *) (ctx->bios + igp_offset); bios 667 drivers/gpu/drm/radeon/radeon_atombios.c (ctx->bios + data_offset + bios 698 drivers/gpu/drm/radeon/radeon_atombios.c (ctx->bios + data_offset + bios 706 drivers/gpu/drm/radeon/radeon_atombios.c (ctx->bios + data_offset + bios 776 drivers/gpu/drm/radeon/radeon_atombios.c (ctx->bios + data_offset + bios 870 drivers/gpu/drm/radeon/radeon_atombios.c xtmds = (ATOM_XTMDS_INFO *)(ctx->bios + data_offset); bios 933 drivers/gpu/drm/radeon/radeon_atombios.c (union atom_supported_devices *)(ctx->bios + data_offset); bios 1131 drivers/gpu/drm/radeon/radeon_atombios.c igp_info = (union igp_info *)(mode_info->atom_context->bios + bios 1155 drivers/gpu/drm/radeon/radeon_atombios.c (union firmware_info *)(mode_info->atom_context->bios + bios 1322 drivers/gpu/drm/radeon/radeon_atombios.c igp_info = (union igp_info *)(mode_info->atom_context->bios + bios 1357 drivers/gpu/drm/radeon/radeon_atombios.c (struct _ATOM_TMDS_INFO *)(mode_info->atom_context->bios + bios 1406 drivers/gpu/drm/radeon/radeon_atombios.c (struct _ATOM_SPREAD_SPECTRUM_INFO *)(mode_info->atom_context->bios + data_offset); bios 1445 drivers/gpu/drm/radeon/radeon_atombios.c (mode_info->atom_context->bios + data_offset); bios 1544 drivers/gpu/drm/radeon/radeon_atombios.c (union asic_ss_info *)(mode_info->atom_context->bios + data_offset); bios 1646 drivers/gpu/drm/radeon/radeon_atombios.c (union lvds_info *)(mode_info->atom_context->bios + data_offset); bios 1711 drivers/gpu/drm/radeon/radeon_atombios.c record = (u8 *)(mode_info->atom_context->bios + bios 1715 drivers/gpu/drm/radeon/radeon_atombios.c record = (u8 *)(mode_info->atom_context->bios + bios 1786 drivers/gpu/drm/radeon/radeon_atombios.c (mode_info->atom_context->bios + data_offset); bios 1818 drivers/gpu/drm/radeon/radeon_atombios.c tv_info = (ATOM_ANALOG_TV_INFO *)(mode_info->atom_context->bios + data_offset); bios 1857 drivers/gpu/drm/radeon/radeon_atombios.c tv_info_v1_2 = (ATOM_ANALOG_TV_INFO_V1_2 *)(mode_info->atom_context->bios + data_offset); bios 1912 drivers/gpu/drm/radeon/radeon_atombios.c (mode_info->atom_context->bios + data_offset); bios 1973 drivers/gpu/drm/radeon/radeon_atombios.c (mode_info->atom_context->bios + data_offset); bios 2108 drivers/gpu/drm/radeon/radeon_atombios.c power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); bios 2392 drivers/gpu/drm/radeon/radeon_atombios.c (union firmware_info *)(mode_info->atom_context->bios + bios 2591 drivers/gpu/drm/radeon/radeon_atombios.c power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); bios 2605 drivers/gpu/drm/radeon/radeon_atombios.c (mode_info->atom_context->bios + data_offset + bios 2609 drivers/gpu/drm/radeon/radeon_atombios.c (mode_info->atom_context->bios + data_offset + bios 2623 drivers/gpu/drm/radeon/radeon_atombios.c (mode_info->atom_context->bios + data_offset + bios 2685 drivers/gpu/drm/radeon/radeon_atombios.c power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); bios 2689 drivers/gpu/drm/radeon/radeon_atombios.c (mode_info->atom_context->bios + data_offset + bios 2692 drivers/gpu/drm/radeon/radeon_atombios.c (mode_info->atom_context->bios + data_offset + bios 2695 drivers/gpu/drm/radeon/radeon_atombios.c (mode_info->atom_context->bios + data_offset + bios 3239 drivers/gpu/drm/radeon/radeon_atombios.c (rdev->mode_info.atom_context->bios + data_offset); bios 3250 drivers/gpu/drm/radeon/radeon_atombios.c (rdev->mode_info.atom_context->bios + data_offset + bios 3253 drivers/gpu/drm/radeon/radeon_atombios.c (rdev->mode_info.atom_context->bios + data_offset + bios 3256 drivers/gpu/drm/radeon/radeon_atombios.c (rdev->mode_info.atom_context->bios + data_offset + bios 3259 drivers/gpu/drm/radeon/radeon_atombios.c (rdev->mode_info.atom_context->bios + data_offset + bios 3262 drivers/gpu/drm/radeon/radeon_atombios.c (rdev->mode_info.atom_context->bios + data_offset + bios 3456 drivers/gpu/drm/radeon/radeon_atombios.c (rdev->mode_info.atom_context->bios + data_offset); bios 3515 drivers/gpu/drm/radeon/radeon_atombios.c (rdev->mode_info.atom_context->bios + data_offset); bios 3558 drivers/gpu/drm/radeon/radeon_atombios.c (rdev->mode_info.atom_context->bios + data_offset); bios 3617 drivers/gpu/drm/radeon/radeon_atombios.c (rdev->mode_info.atom_context->bios + data_offset); bios 3667 drivers/gpu/drm/radeon/radeon_atombios.c (rdev->mode_info.atom_context->bios + data_offset); bios 3736 drivers/gpu/drm/radeon/radeon_atombios.c (rdev->mode_info.atom_context->bios + data_offset); bios 3836 drivers/gpu/drm/radeon/radeon_atombios.c (rdev->mode_info.atom_context->bios + data_offset); bios 3928 drivers/gpu/drm/radeon/radeon_atombios.c (rdev->mode_info.atom_context->bios + data_offset); bios 4000 drivers/gpu/drm/radeon/radeon_atombios.c (rdev->mode_info.atom_context->bios + data_offset); bios 51 drivers/gpu/drm/radeon/radeon_bios.c uint8_t __iomem *bios; bios 59 drivers/gpu/drm/radeon/radeon_bios.c rdev->bios = NULL; bios 61 drivers/gpu/drm/radeon/radeon_bios.c bios = ioremap(vram_base, size); bios 62 drivers/gpu/drm/radeon/radeon_bios.c if (!bios) { bios 66 drivers/gpu/drm/radeon/radeon_bios.c if (size == 0 || bios[0] != 0x55 || bios[1] != 0xaa) { bios 67 drivers/gpu/drm/radeon/radeon_bios.c iounmap(bios); bios 70 drivers/gpu/drm/radeon/radeon_bios.c rdev->bios = kmalloc(size, GFP_KERNEL); bios 71 drivers/gpu/drm/radeon/radeon_bios.c if (rdev->bios == NULL) { bios 72 drivers/gpu/drm/radeon/radeon_bios.c iounmap(bios); bios 75 drivers/gpu/drm/radeon/radeon_bios.c memcpy_fromio(rdev->bios, bios, size); bios 76 drivers/gpu/drm/radeon/radeon_bios.c iounmap(bios); bios 82 drivers/gpu/drm/radeon/radeon_bios.c uint8_t __iomem *bios, val1, val2; bios 85 drivers/gpu/drm/radeon/radeon_bios.c rdev->bios = NULL; bios 87 drivers/gpu/drm/radeon/radeon_bios.c bios = pci_map_rom(rdev->pdev, &size); bios 88 drivers/gpu/drm/radeon/radeon_bios.c if (!bios) { bios 92 drivers/gpu/drm/radeon/radeon_bios.c val1 = readb(&bios[0]); bios 93 drivers/gpu/drm/radeon/radeon_bios.c val2 = readb(&bios[1]); bios 96 drivers/gpu/drm/radeon/radeon_bios.c pci_unmap_rom(rdev->pdev, bios); bios 99 drivers/gpu/drm/radeon/radeon_bios.c rdev->bios = kzalloc(size, GFP_KERNEL); bios 100 drivers/gpu/drm/radeon/radeon_bios.c if (rdev->bios == NULL) { bios 101 drivers/gpu/drm/radeon/radeon_bios.c pci_unmap_rom(rdev->pdev, bios); bios 104 drivers/gpu/drm/radeon/radeon_bios.c memcpy_fromio(rdev->bios, bios, size); bios 105 drivers/gpu/drm/radeon/radeon_bios.c pci_unmap_rom(rdev->pdev, bios); bios 111 drivers/gpu/drm/radeon/radeon_bios.c uint8_t __iomem *bios; bios 114 drivers/gpu/drm/radeon/radeon_bios.c rdev->bios = NULL; bios 116 drivers/gpu/drm/radeon/radeon_bios.c bios = pci_platform_rom(rdev->pdev, &size); bios 117 drivers/gpu/drm/radeon/radeon_bios.c if (!bios) { bios 121 drivers/gpu/drm/radeon/radeon_bios.c if (size == 0 || bios[0] != 0x55 || bios[1] != 0xaa) { bios 124 drivers/gpu/drm/radeon/radeon_bios.c rdev->bios = kmemdup(bios, size, GFP_KERNEL); bios 125 drivers/gpu/drm/radeon/radeon_bios.c if (rdev->bios == NULL) { bios 150 drivers/gpu/drm/radeon/radeon_bios.c static int radeon_atrm_call(acpi_handle atrm_handle, uint8_t *bios, bios 174 drivers/gpu/drm/radeon/radeon_bios.c memcpy(bios+offset, obj->buffer.pointer, obj->buffer.length); bios 223 drivers/gpu/drm/radeon/radeon_bios.c rdev->bios = kmalloc(size, GFP_KERNEL); bios 224 drivers/gpu/drm/radeon/radeon_bios.c if (!rdev->bios) { bios 231 drivers/gpu/drm/radeon/radeon_bios.c rdev->bios, bios 238 drivers/gpu/drm/radeon/radeon_bios.c if (i == 0 || rdev->bios[0] != 0x55 || rdev->bios[1] != 0xaa) { bios 239 drivers/gpu/drm/radeon/radeon_bios.c kfree(rdev->bios); bios 641 drivers/gpu/drm/radeon/radeon_bios.c rdev->bios = kmemdup(&vbios->VbiosContent, bios 645 drivers/gpu/drm/radeon/radeon_bios.c if (!rdev->bios) bios 677 drivers/gpu/drm/radeon/radeon_bios.c if (r == false || rdev->bios == NULL) { bios 679 drivers/gpu/drm/radeon/radeon_bios.c rdev->bios = NULL; bios 682 drivers/gpu/drm/radeon/radeon_bios.c if (rdev->bios[0] != 0x55 || rdev->bios[1] != 0xaa) { bios 683 drivers/gpu/drm/radeon/radeon_bios.c printk("BIOS signature incorrect %x %x\n", rdev->bios[0], rdev->bios[1]); bios 698 drivers/gpu/drm/radeon/radeon_bios.c if (!memcmp(rdev->bios + tmp, "ATOM", 4) || bios 699 drivers/gpu/drm/radeon/radeon_bios.c !memcmp(rdev->bios + tmp, "MOTA", 4)) { bios 708 drivers/gpu/drm/radeon/radeon_bios.c kfree(rdev->bios); bios 709 drivers/gpu/drm/radeon/radeon_bios.c rdev->bios = NULL; bios 139 drivers/gpu/drm/radeon/radeon_combios.c if (!rdev->bios) bios 381 drivers/gpu/drm/radeon/radeon_combios.c raw = rdev->bios + edid_info; bios 3331 drivers/gpu/drm/radeon/radeon_combios.c if (rdev->bios == NULL) bios 757 drivers/gpu/drm/radeon/radeon_device.c if (rdev->bios) { bios 999 drivers/gpu/drm/radeon/radeon_device.c rdev->mode_info.atom_context = atom_parse(atom_card_info, rdev->bios); bios 849 drivers/gpu/drm/radeon/radeon_display.c if (rdev->bios) { bios 1315 drivers/gpu/drm/radeon/radeon_pm.c if (rdev->bios) { bios 1381 drivers/gpu/drm/radeon/radeon_pm.c if (rdev->bios && rdev->is_atom_bios) bios 517 drivers/gpu/drm/radeon/rs400.c kfree(rdev->bios); bios 518 drivers/gpu/drm/radeon/rs400.c rdev->bios = NULL; bios 1095 drivers/gpu/drm/radeon/rs600.c kfree(rdev->bios); bios 1096 drivers/gpu/drm/radeon/rs600.c rdev->bios = NULL; bios 76 drivers/gpu/drm/radeon/rs690.c info = (union igp_info *)(rdev->mode_info.atom_context->bios + data_offset); bios 806 drivers/gpu/drm/radeon/rs690.c kfree(rdev->bios); bios 807 drivers/gpu/drm/radeon/rs690.c rdev->bios = NULL; bios 807 drivers/gpu/drm/radeon/rs780_dpm.c power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); bios 817 drivers/gpu/drm/radeon/rs780_dpm.c (mode_info->atom_context->bios + data_offset + bios 821 drivers/gpu/drm/radeon/rs780_dpm.c (mode_info->atom_context->bios + data_offset + bios 827 drivers/gpu/drm/radeon/rs780_dpm.c (mode_info->atom_context->bios + data_offset + bios 876 drivers/gpu/drm/radeon/rs780_dpm.c info = (union igp_info *)(rdev->mode_info.atom_context->bios + data_offset); bios 630 drivers/gpu/drm/radeon/rv515.c kfree(rdev->bios); bios 631 drivers/gpu/drm/radeon/rv515.c rdev->bios = NULL; bios 1888 drivers/gpu/drm/radeon/rv6xx_dpm.c power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); bios 1898 drivers/gpu/drm/radeon/rv6xx_dpm.c (mode_info->atom_context->bios + data_offset + bios 1902 drivers/gpu/drm/radeon/rv6xx_dpm.c (mode_info->atom_context->bios + data_offset + bios 1919 drivers/gpu/drm/radeon/rv6xx_dpm.c (mode_info->atom_context->bios + data_offset + bios 1927 drivers/gpu/drm/radeon/rv770.c if (!rdev->bios) { bios 2021 drivers/gpu/drm/radeon/rv770.c kfree(rdev->bios); bios 2022 drivers/gpu/drm/radeon/rv770.c rdev->bios = NULL; bios 2282 drivers/gpu/drm/radeon/rv770_dpm.c power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); bios 2292 drivers/gpu/drm/radeon/rv770_dpm.c (mode_info->atom_context->bios + data_offset + bios 2296 drivers/gpu/drm/radeon/rv770_dpm.c (mode_info->atom_context->bios + data_offset + bios 2314 drivers/gpu/drm/radeon/rv770_dpm.c (mode_info->atom_context->bios + data_offset + bios 6848 drivers/gpu/drm/radeon/si.c if (!rdev->bios) { bios 6973 drivers/gpu/drm/radeon/si.c kfree(rdev->bios); bios 6974 drivers/gpu/drm/radeon/si.c rdev->bios = NULL; bios 6828 drivers/gpu/drm/radeon/si_dpm.c power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); bios 6831 drivers/gpu/drm/radeon/si_dpm.c (mode_info->atom_context->bios + data_offset + bios 6834 drivers/gpu/drm/radeon/si_dpm.c (mode_info->atom_context->bios + data_offset + bios 6837 drivers/gpu/drm/radeon/si_dpm.c (mode_info->atom_context->bios + data_offset + bios 1472 drivers/gpu/drm/radeon/sumo_dpm.c power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); bios 1475 drivers/gpu/drm/radeon/sumo_dpm.c (mode_info->atom_context->bios + data_offset + bios 1478 drivers/gpu/drm/radeon/sumo_dpm.c (mode_info->atom_context->bios + data_offset + bios 1481 drivers/gpu/drm/radeon/sumo_dpm.c (mode_info->atom_context->bios + data_offset + bios 1667 drivers/gpu/drm/radeon/sumo_dpm.c igp_info = (union igp_info *)(mode_info->atom_context->bios + bios 1750 drivers/gpu/drm/radeon/trinity_dpm.c power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); bios 1753 drivers/gpu/drm/radeon/trinity_dpm.c (mode_info->atom_context->bios + data_offset + bios 1756 drivers/gpu/drm/radeon/trinity_dpm.c (mode_info->atom_context->bios + data_offset + bios 1759 drivers/gpu/drm/radeon/trinity_dpm.c (mode_info->atom_context->bios + data_offset + bios 1859 drivers/gpu/drm/radeon/trinity_dpm.c igp_info = (union igp_info *)(mode_info->atom_context->bios + bios 1078 drivers/i2c/busses/i2c-i801.c static __init const void __iomem *bios_signature(const void __iomem *bios) bios 1084 drivers/i2c/busses/i2c-i801.c if (check_signature(bios + offset, signature, bios 1086 drivers/i2c/busses/i2c-i801.c return bios + offset; bios 1093 drivers/i2c/busses/i2c-i801.c void __iomem *bios; bios 1096 drivers/i2c/busses/i2c-i801.c bios = ioremap(0xF0000, 0x10000); /* Can't fail */ bios 1097 drivers/i2c/busses/i2c-i801.c p = bios_signature(bios); bios 1102 drivers/i2c/busses/i2c-i801.c iounmap(bios); bios 236 drivers/input/misc/apanel.c static __init const void __iomem *bios_signature(const void __iomem *bios) bios 242 drivers/input/misc/apanel.c if (check_signature(bios + offset, signature, bios 244 drivers/input/misc/apanel.c return bios + offset; bios 253 drivers/input/misc/apanel.c void __iomem *bios; bios 259 drivers/input/misc/apanel.c bios = ioremap(0xF0000, 0x10000); /* Can't fail */ bios 261 drivers/input/misc/apanel.c p = bios_signature(bios); bios 263 drivers/input/misc/apanel.c iounmap(bios); bios 308 drivers/input/misc/apanel.c iounmap(bios); bios 149 drivers/lightnvm/pblk-rb.c bio_list_init(&entry->w_ctx.bios); bios 411 drivers/lightnvm/pblk-rb.c bio_list_add(&entry->w_ctx.bios, bio); bios 48 drivers/lightnvm/pblk-write.c while ((original_bio = bio_list_pop(&w_ctx->bios))) bios 140 drivers/lightnvm/pblk.h struct bio_list bios; /* Original bios - used for completion bios 82 drivers/md/dm-bio-prison-v1.c bio_list_init(&cell->bios); bios 131 drivers/md/dm-bio-prison-v1.c bio_list_add(&cell->bios, inmate); bios 193 drivers/md/dm-bio-prison-v1.c bio_list_merge(inmates, &cell->bios); bios 199 drivers/md/dm-bio-prison-v1.c struct bio_list *bios) bios 204 drivers/md/dm-bio-prison-v1.c __cell_release(prison, cell, bios); bios 217 drivers/md/dm-bio-prison-v1.c bio_list_merge(inmates, &cell->bios); bios 235 drivers/md/dm-bio-prison-v1.c struct bio_list bios; bios 238 drivers/md/dm-bio-prison-v1.c bio_list_init(&bios); bios 239 drivers/md/dm-bio-prison-v1.c dm_cell_release(prison, cell, &bios); bios 241 drivers/md/dm-bio-prison-v1.c while ((bio = bio_list_pop(&bios))) { bios 265 drivers/md/dm-bio-prison-v1.c if (bio_list_empty(&cell->bios)) { bios 270 drivers/md/dm-bio-prison-v1.c cell->holder = bio_list_pop(&cell->bios); bios 46 drivers/md/dm-bio-prison-v1.h struct bio_list bios; bios 89 drivers/md/dm-bio-prison-v1.h struct bio_list *bios); bios 84 drivers/md/dm-bio-prison-v2.c bio_list_init(&cell->bios); bios 159 drivers/md/dm-bio-prison-v2.c bio_list_add(&(*cell)->bios, inmate); bios 324 drivers/md/dm-bio-prison-v2.c struct bio_list *bios) bios 328 drivers/md/dm-bio-prison-v2.c bio_list_merge(bios, &cell->bios); bios 329 drivers/md/dm-bio-prison-v2.c bio_list_init(&cell->bios); bios 342 drivers/md/dm-bio-prison-v2.c struct bio_list *bios) bios 348 drivers/md/dm-bio-prison-v2.c r = __unlock(prison, cell, bios); bios 53 drivers/md/dm-bio-prison-v2.h struct bio_list bios; bios 148 drivers/md/dm-bio-prison-v2.h struct bio_list *bios); bios 165 drivers/md/dm-cache-target.c struct bio_list bios; bios 180 drivers/md/dm-cache-target.c struct bio_list bios; bios 183 drivers/md/dm-cache-target.c bio_list_init(&bios); bios 191 drivers/md/dm-cache-target.c bio_list_merge(&bios, &b->bios); bios 192 drivers/md/dm-cache-target.c bio_list_init(&b->bios); bios 205 drivers/md/dm-cache-target.c while ((bio = bio_list_pop(&bios))) { bios 229 drivers/md/dm-cache-target.c bio_list_init(&b->bios); bios 263 drivers/md/dm-cache-target.c bio_list_add(&b->bios, bio); bios 279 drivers/md/dm-cache-target.c immediate = !list_empty(&b->work_items) || !bio_list_empty(&b->bios); bios 642 drivers/md/dm-cache-target.c static void defer_bios(struct cache *cache, struct bio_list *bios) bios 647 drivers/md/dm-cache-target.c bio_list_merge(&cache->deferred_bios, bios); bios 648 drivers/md/dm-cache-target.c bio_list_init(bios); bios 1262 drivers/md/dm-cache-target.c struct bio_list bios; bios 1308 drivers/md/dm-cache-target.c bio_list_init(&bios); bios 1310 drivers/md/dm-cache-target.c if (dm_cell_unlock_v2(cache->prison, mg->cell, &bios)) bios 1315 drivers/md/dm-cache-target.c defer_bios(cache, &bios); bios 1543 drivers/md/dm-cache-target.c struct bio_list bios; bios 1546 drivers/md/dm-cache-target.c bio_list_init(&bios); bios 1547 drivers/md/dm-cache-target.c if (dm_cell_unlock_v2(cache->prison, mg->cell, &bios)) bios 1554 drivers/md/dm-cache-target.c defer_bios(cache, &bios); bios 1894 drivers/md/dm-cache-target.c struct bio_list bios; bios 1897 drivers/md/dm-cache-target.c bio_list_init(&bios); bios 1900 drivers/md/dm-cache-target.c bio_list_merge(&bios, &cache->deferred_bios); bios 1904 drivers/md/dm-cache-target.c while ((bio = bio_list_pop(&bios))) { bios 1926 drivers/md/dm-cache-target.c struct bio_list bios; bios 1928 drivers/md/dm-cache-target.c bio_list_init(&bios); bios 1929 drivers/md/dm-cache-target.c bio_list_merge(&bios, &cache->deferred_bios); bios 1932 drivers/md/dm-cache-target.c while ((bio = bio_list_pop(&bios))) { bios 315 drivers/md/dm-clone-target.c static void fail_bios(struct bio_list *bios, blk_status_t status) bios 319 drivers/md/dm-clone-target.c while ((bio = bio_list_pop(bios))) { bios 325 drivers/md/dm-clone-target.c static void submit_bios(struct bio_list *bios) bios 332 drivers/md/dm-clone-target.c while ((bio = bio_list_pop(bios))) bios 392 drivers/md/dm-clone-target.c static void issue_deferred_bios(struct clone *clone, struct bio_list *bios) bios 399 drivers/md/dm-clone-target.c if (bio_list_empty(bios)) bios 402 drivers/md/dm-clone-target.c while ((bio = bio_list_pop(bios))) { bios 1222 drivers/md/dm-clone-target.c struct bio_list bios = BIO_EMPTY_LIST; bios 1225 drivers/md/dm-clone-target.c bio_list_merge(&bios, &clone->deferred_bios); bios 1229 drivers/md/dm-clone-target.c if (bio_list_empty(&bios)) bios 1232 drivers/md/dm-clone-target.c submit_bios(&bios); bios 1239 drivers/md/dm-clone-target.c struct bio_list bios = BIO_EMPTY_LIST; bios 1247 drivers/md/dm-clone-target.c bio_list_merge(&bios, &clone->deferred_flush_bios); bios 1254 drivers/md/dm-clone-target.c if (bio_list_empty(&bios) && bio_list_empty(&bio_completions) && bios 1259 drivers/md/dm-clone-target.c bio_list_merge(&bios, &bio_completions); bios 1261 drivers/md/dm-clone-target.c while ((bio = bio_list_pop(&bios))) bios 1272 drivers/md/dm-clone-target.c while ((bio = bio_list_pop(&bios))) { bios 26 drivers/md/dm-io.c struct bio_set bios; bios 62 drivers/md/dm-io.c ret = bioset_init(&client->bios, min_ios, 0, BIOSET_NEED_BVECS); bios 78 drivers/md/dm-io.c bioset_exit(&client->bios); bios 348 drivers/md/dm-io.c bio = bio_alloc_bioset(GFP_NOIO, num_bvecs, &io->client->bios); bios 654 drivers/md/dm-mpath.c struct bio_list bios; bios 659 drivers/md/dm-mpath.c bio_list_init(&bios); bios 668 drivers/md/dm-mpath.c bio_list_merge(&bios, &m->queued_bios); bios 674 drivers/md/dm-mpath.c while ((bio = bio_list_pop(&bios))) { bios 93 drivers/md/dm-region-hash.c void (*dispatch_bios)(void *context, struct bio_list *bios); bios 163 drivers/md/dm-region-hash.c struct bio_list *bios), bios 526 drivers/md/dm-region-hash.c void dm_rh_inc_pending(struct dm_region_hash *rh, struct bio_list *bios) bios 530 drivers/md/dm-region-hash.c for (bio = bios->head; bio; bio = bio->bi_next) { bios 468 drivers/md/dm-thin.c struct bio_list *bios) bios 470 drivers/md/dm-thin.c dm_cell_release(pool->prison, cell, bios); bios 485 drivers/md/dm-thin.c struct bio_list *bios) bios 487 drivers/md/dm-thin.c dm_cell_release_no_holder(pool->prison, cell, bios); bios 594 drivers/md/dm-thin.c static void __merge_bio_list(struct bio_list *bios, struct bio_list *master) bios 596 drivers/md/dm-thin.c bio_list_merge(bios, master); bios 600 drivers/md/dm-thin.c static void error_bio_list(struct bio_list *bios, blk_status_t error) bios 604 drivers/md/dm-thin.c while ((bio = bio_list_pop(bios))) { bios 613 drivers/md/dm-thin.c struct bio_list bios; bios 616 drivers/md/dm-thin.c bio_list_init(&bios); bios 619 drivers/md/dm-thin.c __merge_bio_list(&bios, master); bios 622 drivers/md/dm-thin.c error_bio_list(&bios, error); bios 644 drivers/md/dm-thin.c struct bio_list bios; bios 647 drivers/md/dm-thin.c bio_list_init(&bios); bios 650 drivers/md/dm-thin.c __merge_bio_list(&bios, &tc->deferred_bio_list); bios 651 drivers/md/dm-thin.c __merge_bio_list(&bios, &tc->retry_on_resume_list); bios 654 drivers/md/dm-thin.c error_bio_list(&bios, BLK_STS_DM_REQUEUE); bios 913 drivers/md/dm-thin.c while ((bio = bio_list_pop(&cell->bios))) { bios 1643 drivers/md/dm-thin.c struct bio_list bios; bios 1652 drivers/md/dm-thin.c bio_list_init(&bios); bios 1653 drivers/md/dm-thin.c cell_release(pool, cell, &bios); bios 1655 drivers/md/dm-thin.c while ((bio = bio_list_pop(&bios))) bios 1826 drivers/md/dm-thin.c while ((bio = bio_list_pop(&cell->bios))) { bios 2154 drivers/md/dm-thin.c struct bio_list bios; bios 2156 drivers/md/dm-thin.c bio_list_init(&bios); bios 2157 drivers/md/dm-thin.c bio_list_merge(&bios, &tc->deferred_bio_list); bios 2161 drivers/md/dm-thin.c while ((bio = bio_list_pop(&bios))) bios 2177 drivers/md/dm-thin.c struct bio_list bios; bios 2187 drivers/md/dm-thin.c bio_list_init(&bios); bios 2198 drivers/md/dm-thin.c bio_list_merge(&bios, &tc->deferred_bio_list); bios 2204 drivers/md/dm-thin.c while ((bio = bio_list_pop(&bios))) { bios 2213 drivers/md/dm-thin.c bio_list_merge(&tc->deferred_bio_list, &bios); bios 2356 drivers/md/dm-thin.c struct bio_list bios, bio_completions; bios 2370 drivers/md/dm-thin.c bio_list_init(&bios); bios 2374 drivers/md/dm-thin.c bio_list_merge(&bios, &pool->deferred_flush_bios); bios 2381 drivers/md/dm-thin.c if (bio_list_empty(&bios) && bio_list_empty(&bio_completions) && bios 2386 drivers/md/dm-thin.c bio_list_merge(&bios, &bio_completions); bios 2388 drivers/md/dm-thin.c while ((bio = bio_list_pop(&bios))) bios 2397 drivers/md/dm-thin.c while ((bio = bio_list_pop(&bios))) { bios 116 drivers/md/raid1.c int size = offsetof(struct r1bio, bios[pi->raid_disks]); bios 154 drivers/md/raid1.c r1_bio->bios[j] = bio; bios 169 drivers/md/raid1.c bio = r1_bio->bios[j]; bios 193 drivers/md/raid1.c bio_put(r1_bio->bios[j]); bios 209 drivers/md/raid1.c rp = get_resync_pages(r1bio->bios[i]); bios 211 drivers/md/raid1.c bio_put(r1bio->bios[i]); bios 225 drivers/md/raid1.c struct bio **bio = r1_bio->bios + i; bios 247 drivers/md/raid1.c struct bio *bio = r1_bio->bios[i]; bios 332 drivers/md/raid1.c if (r1_bio->bios[mirror] == bio) bios 462 drivers/md/raid1.c r1_bio->bios[mirror] = NULL; bios 479 drivers/md/raid1.c r1_bio->bios[mirror] = NULL; bios 496 drivers/md/raid1.c r1_bio->bios[mirror] = IO_MADE_GOOD; bios 531 drivers/md/raid1.c if (r1_bio->bios[mirror] == NULL) bios 625 drivers/md/raid1.c if (r1_bio->bios[disk] == IO_BLOCKED bios 1207 drivers/md/raid1.c memset(r1_bio->bios, 0, conf->raid_disks * sizeof(r1_bio->bios[0])); bios 1307 drivers/md/raid1.c r1_bio->bios[rdisk] = read_bio; bios 1396 drivers/md/raid1.c r1_bio->bios[i] = NULL; bios 1445 drivers/md/raid1.c r1_bio->bios[i] = bio; bios 1454 drivers/md/raid1.c if (r1_bio->bios[j]) bios 1481 drivers/md/raid1.c if (!r1_bio->bios[i]) bios 1521 drivers/md/raid1.c r1_bio->bios[i] = mbio; bios 1987 drivers/md/raid1.c struct bio *bio = r1_bio->bios[r1_bio->read_disk]; bios 2015 drivers/md/raid1.c if (r1_bio->bios[d]->bi_end_io == end_sync_read) { bios 2072 drivers/md/raid1.c if (r1_bio->bios[d]->bi_end_io != end_sync_read) bios 2078 drivers/md/raid1.c r1_bio->bios[d]->bi_end_io = NULL; bios 2087 drivers/md/raid1.c if (r1_bio->bios[d]->bi_end_io != end_sync_read) bios 2123 drivers/md/raid1.c struct bio *b = r1_bio->bios[i]; bios 2142 drivers/md/raid1.c if (r1_bio->bios[primary]->bi_end_io == end_sync_read && bios 2143 drivers/md/raid1.c !r1_bio->bios[primary]->bi_status) { bios 2144 drivers/md/raid1.c r1_bio->bios[primary]->bi_end_io = NULL; bios 2151 drivers/md/raid1.c struct bio *pbio = r1_bio->bios[primary]; bios 2152 drivers/md/raid1.c struct bio *sbio = r1_bio->bios[i]; bios 2211 drivers/md/raid1.c wbio = r1_bio->bios[i]; bios 2416 drivers/md/raid1.c struct bio *bio = r1_bio->bios[m]; bios 2439 drivers/md/raid1.c if (r1_bio->bios[m] == IO_MADE_GOOD) { bios 2445 drivers/md/raid1.c } else if (r1_bio->bios[m] != NULL) { bios 2495 drivers/md/raid1.c bio = r1_bio->bios[r1_bio->read_disk]; bios 2497 drivers/md/raid1.c r1_bio->bios[r1_bio->read_disk] = NULL; bios 2509 drivers/md/raid1.c r1_bio->bios[r1_bio->read_disk] = IO_BLOCKED; bios 2612 drivers/md/raid1.c bio = r1bio->bios[i]; bios 2732 drivers/md/raid1.c bio = r1_bio->bios[i]; bios 2803 drivers/md/raid1.c if (r1_bio->bios[i]->bi_end_io == end_sync_write) { bios 2875 drivers/md/raid1.c bio = r1_bio->bios[i]; bios 2910 drivers/md/raid1.c bio = r1_bio->bios[i]; bios 2921 drivers/md/raid1.c bio = r1_bio->bios[r1_bio->read_disk]; bios 183 drivers/md/raid1.h struct bio *bios[0]; bios 918 drivers/md/raid5.c bio_list_merge(list, &data->bios); bios 953 drivers/md/raid5.c struct bio_list *bios) bios 963 drivers/md/raid5.c bio_list_init(&ent->bios); bios 964 drivers/md/raid5.c bio_list_merge(&ent->bios, bios); bios 563 drivers/md/raid5.h struct bio_list bios; bios 480 drivers/net/ethernet/amd/lance.c void __iomem *bios; bios 487 drivers/net/ethernet/amd/lance.c bios = ioremap(0xf00f0, 0x14); bios 488 drivers/net/ethernet/amd/lance.c if (!bios) bios 490 drivers/net/ethernet/amd/lance.c if (readw(bios + 0x12) == 0x5048) { bios 492 drivers/net/ethernet/amd/lance.c int hp_port = (readl(bios + 1) & 1) ? 0x499 : 0x99; bios 498 drivers/net/ethernet/amd/lance.c iounmap(bios); bios 1076 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c u32 file_fw_ver, min_ver, bios; bios 1112 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (netxen_rom_fast_read(adapter, NX_BIOS_VERSION_OFFSET, (int *)&bios)) bios 1114 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if ((__force u32)val != bios) { bios 1208 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c u32 ver, bios, min_size; bios 1240 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c qlcnic_rom_fast_read(adapter, QLCNIC_BIOS_VERSION_OFFSET, (int *)&bios); bios 1241 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c if (val != bios) { bios 449 drivers/platform/x86/thinkpad_acpi.c .bios = TPID(__id1, __id2), \ bios 455 drivers/platform/x86/thinkpad_acpi.c .bios = TPID(__id1, __id2), \ bios 461 drivers/platform/x86/thinkpad_acpi.c .bios = TPID3(__id1, __id2, __id3), \ bios 467 drivers/platform/x86/thinkpad_acpi.c .bios = TPACPI_MATCH_ANY, \ bios 473 drivers/platform/x86/thinkpad_acpi.c .bios = TPACPI_MATCH_ANY, \ bios 479 drivers/platform/x86/thinkpad_acpi.c u32 bios; bios 504 drivers/platform/x86/thinkpad_acpi.c (qlist->bios == thinkpad_id.bios_model || bios 505 drivers/platform/x86/thinkpad_acpi.c qlist->bios == TPACPI_MATCH_ANY) && bios 1648 drivers/platform/x86/thinkpad_acpi.c .bios = TPID(__id1, __id2), \ bios 1656 drivers/platform/x86/thinkpad_acpi.c .bios = TPID(__bid1, __bid2), \ bios 3462 drivers/platform/x86/thinkpad_acpi.c .bios = TPACPI_MATCH_ANY, .ec = TPACPI_MATCH_ANY, bios 3467 drivers/platform/x86/thinkpad_acpi.c .bios = TPACPI_MATCH_ANY, .ec = TPACPI_MATCH_ANY, bios 6016 drivers/platform/x86/thinkpad_acpi.c .bios = TPACPI_MATCH_ANY, .ec = TPACPI_MATCH_ANY, bios 6021 drivers/platform/x86/thinkpad_acpi.c .bios = TPACPI_MATCH_ANY, .ec = TPACPI_MATCH_UNKNOWN, bios 6026 drivers/platform/x86/thinkpad_acpi.c .bios = TPACPI_MATCH_ANY, .ec = TPACPI_MATCH_ANY, bios 7690 drivers/platform/x86/thinkpad_acpi.c .bios = TPACPI_MATCH_ANY, bios 7705 drivers/platform/x86/thinkpad_acpi.c .bios = TPACPI_MATCH_ANY, bios 1088 drivers/scsi/a100u2w.c unsigned long port, bios; bios 1111 drivers/scsi/a100u2w.c bios = inw(port + 0x50); bios 1121 drivers/scsi/a100u2w.c host->BIOScfg = bios; bios 86 drivers/scsi/aic94xx/aic94xx_hwi.h struct bios_struct bios; bios 271 drivers/scsi/aic94xx/aic94xx_init.c return snprintf(buf, PAGE_SIZE, "%d\n", asd_ha->hw_prof.bios.bld); bios 780 drivers/scsi/aic94xx/aic94xx_init.c asd_ha->hw_prof.bios.present ? "build " : "not present", bios 781 drivers/scsi/aic94xx/aic94xx_init.c asd_ha->hw_prof.bios.bld); bios 236 drivers/scsi/aic94xx/aic94xx_sds.c asd_ha->hw_prof.bios.present = 1; bios 237 drivers/scsi/aic94xx/aic94xx_sds.c asd_ha->hw_prof.bios.maj = bc_struct->bios_major; bios 238 drivers/scsi/aic94xx/aic94xx_sds.c asd_ha->hw_prof.bios.min = bc_struct->bios_minor; bios 239 drivers/scsi/aic94xx/aic94xx_sds.c asd_ha->hw_prof.bios.bld = le32_to_cpu(bc_struct->bios_build); bios 241 drivers/scsi/aic94xx/aic94xx_sds.c asd_ha->hw_prof.bios.maj, bios 242 drivers/scsi/aic94xx/aic94xx_sds.c asd_ha->hw_prof.bios.min, bios 243 drivers/scsi/aic94xx/aic94xx_sds.c asd_ha->hw_prof.bios.bld); bios 503 drivers/video/fbdev/aty/aty128fb.c #define BIOS_IN8(v) (readb(bios + (v))) bios 504 drivers/video/fbdev/aty/aty128fb.c #define BIOS_IN16(v) (readb(bios + (v)) | \ bios 505 drivers/video/fbdev/aty/aty128fb.c (readb(bios + (v) + 1) << 8)) bios 506 drivers/video/fbdev/aty/aty128fb.c #define BIOS_IN32(v) (readb(bios + (v)) | \ bios 507 drivers/video/fbdev/aty/aty128fb.c (readb(bios + (v) + 1) << 8) | \ bios 508 drivers/video/fbdev/aty/aty128fb.c (readb(bios + (v) + 2) << 16) | \ bios 509 drivers/video/fbdev/aty/aty128fb.c (readb(bios + (v) + 3) << 24)) bios 822 drivers/video/fbdev/aty/aty128fb.c void __iomem *bios; bios 833 drivers/video/fbdev/aty/aty128fb.c bios = pci_map_rom(dev, &rom_size); bios 835 drivers/video/fbdev/aty/aty128fb.c if (!bios) { bios 897 drivers/video/fbdev/aty/aty128fb.c return bios; bios 900 drivers/video/fbdev/aty/aty128fb.c pci_unmap_rom(dev, bios); bios 905 drivers/video/fbdev/aty/aty128fb.c unsigned char __iomem *bios) bios 2061 drivers/video/fbdev/aty/aty128fb.c void __iomem *bios = NULL; bios 2123 drivers/video/fbdev/aty/aty128fb.c bios = aty128_map_ROM(par, pdev); bios 2125 drivers/video/fbdev/aty/aty128fb.c if (bios == NULL) bios 2126 drivers/video/fbdev/aty/aty128fb.c bios = aty128_find_mem_vbios(par); bios 2128 drivers/video/fbdev/aty/aty128fb.c if (bios == NULL) bios 2132 drivers/video/fbdev/aty/aty128fb.c aty128_get_pllinfo(par, bios); bios 2133 drivers/video/fbdev/aty/aty128fb.c pci_unmap_rom(pdev, bios); bios 462 drivers/video/fbdev/matrox/matroxfb_base.h struct matrox_bios bios; bios 771 drivers/video/fbdev/matrox/matroxfb_misc.c memset(&minfo->bios, 0, sizeof(minfo->bios)); bios 777 drivers/video/fbdev/matrox/matroxfb_misc.c parse_bios(vaddr_va(minfo->video.vbase), &minfo->bios); bios 781 drivers/video/fbdev/matrox/matroxfb_misc.c if (!minfo->bios.bios_valid) { bios 795 drivers/video/fbdev/matrox/matroxfb_misc.c parse_bios(b, &minfo->bios); bios 801 drivers/video/fbdev/matrox/matroxfb_misc.c matroxfb_set_limits(minfo, &minfo->bios); bios 4350 drivers/video/fbdev/sis/sis_main.c unsigned char *bios = ivideo->SiS_Pr.VirtualRomBase; bios 4356 drivers/video/fbdev/sis/sis_main.c bios = NULL; bios 4360 drivers/video/fbdev/sis/sis_main.c if(bios) { bios 4361 drivers/video/fbdev/sis/sis_main.c if(bios[0x52] & 0x80) { bios 4362 drivers/video/fbdev/sis/sis_main.c memtype = bios[0x52]; bios 4376 drivers/video/fbdev/sis/sis_main.c if(bios) { bios 4379 drivers/video/fbdev/sis/sis_main.c v1 = bios[rindex++]; bios 4380 drivers/video/fbdev/sis/sis_main.c v2 = bios[rindex++]; bios 4381 drivers/video/fbdev/sis/sis_main.c v3 = bios[rindex++]; bios 4383 drivers/video/fbdev/sis/sis_main.c v4 = bios[rindex++]; bios 4384 drivers/video/fbdev/sis/sis_main.c v5 = bios[rindex++]; bios 4385 drivers/video/fbdev/sis/sis_main.c v6 = bios[rindex++]; bios 4396 drivers/video/fbdev/sis/sis_main.c if(bios) bios 4397 drivers/video/fbdev/sis/sis_main.c v1 = bios[0xa4]; bios 4404 drivers/video/fbdev/sis/sis_main.c if(bios) { bios 4406 drivers/video/fbdev/sis/sis_main.c v1 = bios[memtype]; bios 4407 drivers/video/fbdev/sis/sis_main.c v2 = bios[memtype + 8]; bios 4408 drivers/video/fbdev/sis/sis_main.c v3 = bios[memtype + 16]; bios 4409 drivers/video/fbdev/sis/sis_main.c v4 = bios[memtype + 24]; bios 4410 drivers/video/fbdev/sis/sis_main.c v5 = bios[memtype + 32]; bios 4411 drivers/video/fbdev/sis/sis_main.c v6 = bios[memtype + 40]; bios 4412 drivers/video/fbdev/sis/sis_main.c v7 = bios[memtype + 48]; bios 4413 drivers/video/fbdev/sis/sis_main.c v8 = bios[memtype + 56]; bios 4427 drivers/video/fbdev/sis/sis_main.c if(bios) { bios 4428 drivers/video/fbdev/sis/sis_main.c if(bios[0x53] & 0x02) { bios 4438 drivers/video/fbdev/sis/sis_main.c if(bios) { bios 4439 drivers/video/fbdev/sis/sis_main.c v1 = bios[0xe8]; bios 4440 drivers/video/fbdev/sis/sis_main.c v2 = bios[0xe9]; bios 4441 drivers/video/fbdev/sis/sis_main.c v3 = bios[0xea]; bios 4452 drivers/video/fbdev/sis/sis_main.c if(bios) { bios 4453 drivers/video/fbdev/sis/sis_main.c v1 = bios[0xec]; bios 4454 drivers/video/fbdev/sis/sis_main.c v2 = bios[0xeb]; bios 4467 drivers/video/fbdev/sis/sis_main.c v4 = bios[0xf5]; bios 4468 drivers/video/fbdev/sis/sis_main.c v5 = bios[0xf6]; bios 4469 drivers/video/fbdev/sis/sis_main.c v6 = bios[0xf7]; bios 4516 drivers/video/fbdev/sis/sis_main.c if(bios) { bios 4517 drivers/video/fbdev/sis/sis_main.c v1 = bios[0xe6]; bios 4518 drivers/video/fbdev/sis/sis_main.c v2 = bios[0xe7]; bios 4941 drivers/video/fbdev/sis/sis_main.c unsigned char *bios = ivideo->bios_abase; bios 4970 drivers/video/fbdev/sis/sis_main.c v1 = bios[0xf0]; bios 5022 drivers/video/fbdev/sis/sis_main.c unsigned char *bios = ivideo->bios_abase; bios 5045 drivers/video/fbdev/sis/sis_main.c v1 = bios[regb + 0x168]; bios 5046 drivers/video/fbdev/sis/sis_main.c v2 = bios[regb + 0x160]; bios 5047 drivers/video/fbdev/sis/sis_main.c v3 = bios[regb + 0x158]; bios 5067 drivers/video/fbdev/sis/sis_main.c unsigned char *bios = ivideo->bios_abase; bios 5074 drivers/video/fbdev/sis/sis_main.c ramtype = bios[0x62]; bios 5075 drivers/video/fbdev/sis/sis_main.c v1 = bios[0x1d2]; bios 5107 drivers/video/fbdev/sis/sis_main.c unsigned char *bios = ivideo->bios_abase; bios 5197 drivers/video/fbdev/sis/sis_main.c ptr = (const u8 *)&bios[0x78]; bios 5205 drivers/video/fbdev/sis/sis_main.c ptr = (const u8 *)&bios[0x76]; bios 5213 drivers/video/fbdev/sis/sis_main.c v1 = bios[0x74]; bios 5214 drivers/video/fbdev/sis/sis_main.c v2 = bios[0x75]; bios 5225 drivers/video/fbdev/sis/sis_main.c ptr = (const u8 *)&bios[0x7b]; bios 5262 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISPART1, 0x02, bios[0x7e]); bios 5270 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISPART4, 0x0d, bios[0x7f]); bios 5271 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISPART4, 0x0e, bios[0x80]); bios 5272 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISPART4, 0x10, bios[0x81]); bios 5285 drivers/video/fbdev/sis/sis_main.c v1 = bios[0x77]; bios 5332 drivers/video/fbdev/sis/sis_main.c regd = bios[0x90 + 3] | (bios[0x90 + 4] << 8); bios 5353 drivers/video/fbdev/sis/sis_main.c if(bios[0x64] & 0x01) { bios 5354 drivers/video/fbdev/sis/sis_main.c SiS_SetRegANDOR(SISCR, 0x5f, 0xf0, bios[0x64]); bios 5357 drivers/video/fbdev/sis/sis_main.c v1 = bios[0x4f7]; bios 5366 drivers/video/fbdev/sis/sis_main.c SiS_SetRegANDOR(SISCR, 0x47, 0x04, bios[0x4f6] & 0xfb); bios 5367 drivers/video/fbdev/sis/sis_main.c SiS_SetRegANDOR(SISCR, 0x49, 0xf0, bios[0x4f8] & 0x0f); bios 5368 drivers/video/fbdev/sis/sis_main.c SiS_SetRegANDOR(SISCR, 0x4a, 0x60, bios[0x4f9] & 0x9f); bios 5369 drivers/video/fbdev/sis/sis_main.c SiS_SetRegANDOR(SISCR, 0x4b, 0x08, bios[0x4fa] & 0xf7); bios 5370 drivers/video/fbdev/sis/sis_main.c SiS_SetRegANDOR(SISCR, 0x4c, 0x80, bios[0x4fb] & 0x7f); bios 5371 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISCR, 0x70, bios[0x4fc]); bios 5372 drivers/video/fbdev/sis/sis_main.c SiS_SetRegANDOR(SISCR, 0x71, 0xf0, bios[0x4fd] & 0x0f); bios 5374 drivers/video/fbdev/sis/sis_main.c SiS_SetRegANDOR(SISCR, 0x74, 0xcf, bios[0x4fe] & 0x30); bios 5375 drivers/video/fbdev/sis/sis_main.c SiS_SetRegANDOR(SISCR, 0x75, 0xe0, bios[0x4ff] & 0x1f); bios 5376 drivers/video/fbdev/sis/sis_main.c SiS_SetRegANDOR(SISCR, 0x76, 0xe0, bios[0x500] & 0x1f); bios 5377 drivers/video/fbdev/sis/sis_main.c v1 = bios[0x501]; bios 5405 drivers/video/fbdev/sis/sis_main.c v1 = bios[0x140 + regb]; bios 5411 drivers/video/fbdev/sis/sis_main.c ptr = (const u8 *)&bios[0x128]; bios 5421 drivers/video/fbdev/sis/sis_main.c ptr = (const u8 *)&bios[index]; bios 5422 drivers/video/fbdev/sis/sis_main.c ptr2 = (const u8 *)&bios[index + 0x20]; bios 5450 drivers/video/fbdev/sis/sis_main.c ptr = (const u8 *)&bios[index]; bios 5477 drivers/video/fbdev/sis/sis_main.c ptr = (const u8 *)&bios[0x148]; bios 5488 drivers/video/fbdev/sis/sis_main.c ptr = (const u8 *)&bios[index]; bios 5505 drivers/video/fbdev/sis/sis_main.c v1 = bios[0x118 + regb]; bios 5506 drivers/video/fbdev/sis/sis_main.c v2 = bios[0xf8 + regb]; bios 5507 drivers/video/fbdev/sis/sis_main.c v3 = bios[0x120 + regb]; bios 5508 drivers/video/fbdev/sis/sis_main.c v4 = bios[0x1ca]; bios 5517 drivers/video/fbdev/sis/sis_main.c ptr = (const u8 *)&bios[0x170]; bios 5527 drivers/video/fbdev/sis/sis_main.c ptr = (const u8 *)&bios[0x1a8]; bios 5535 drivers/video/fbdev/sis/sis_main.c ptr = (const u8 *)&bios[0x100]; bios 5572 drivers/video/fbdev/sis/sis_main.c v1 = bios[regb + 0x158]; bios 5573 drivers/video/fbdev/sis/sis_main.c v2 = bios[regb + 0x160]; bios 5574 drivers/video/fbdev/sis/sis_main.c v3 = bios[regb + 0x168]; bios 5585 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISCR, 0x86, bios[regb + 0x168]); bios 5591 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISCR, 0x85, bios[regb + 0x160]); bios 5592 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISCR, 0x82, bios[regb + 0x158]); bios 5609 drivers/video/fbdev/sis/sis_main.c if((ivideo->chip == XGI_20) || (bios[0x1cb] != 0x0c)) { bios 5620 drivers/video/fbdev/sis/sis_main.c } else if((ivideo->chip == XGI_40) && (bios[0x1cb] == 0x0c)) { bios 5628 drivers/video/fbdev/sis/sis_main.c v1 = bios[0xf0]; bios 5630 drivers/video/fbdev/sis/sis_main.c v2 = bios[index]; bios 5631 drivers/video/fbdev/sis/sis_main.c v3 = bios[index + 1]; bios 5632 drivers/video/fbdev/sis/sis_main.c v4 = bios[index + 2]; bios 5633 drivers/video/fbdev/sis/sis_main.c v5 = bios[index + 3]; bios 5656 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISCR, 0x82, bios[regb + 0x158]); bios 5657 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISCR, 0x85, bios[regb + 0x160]); bios 5658 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISCR, 0x86, bios[regb + 0x168]); bios 5671 drivers/video/fbdev/sis/sis_main.c v1 = bios[regb + 0x160]; bios 5672 drivers/video/fbdev/sis/sis_main.c v2 = bios[regb + 0x158]; bios 5695 drivers/video/fbdev/sis/sis_main.c if((ivideo->chip == XGI_40) && (bios[0x1cb] != 0x0c)) { bios 5707 drivers/video/fbdev/sis/sis_main.c v1 = bios[0xf0]; bios 5712 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISSR, 0x16, bios[0x53e]); bios 5713 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISSR, 0x16, bios[0x53f]); bios 5728 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISSR, 0x16, bios[0x540]); bios 5729 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISSR, 0x16, bios[0x541]); bios 5740 drivers/video/fbdev/sis/sis_main.c v1 = bios[0x110 + regb]; bios 5747 drivers/video/fbdev/sis/sis_main.c v1 = bios[0x62]; bios 5748 drivers/video/fbdev/sis/sis_main.c v2 = bios[0x63]; bios 5754 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISSR, 0x13, bios[regb + 0xe0]); bios 5755 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISSR, 0x14, bios[regb + 0xe0 + 8]); bios 155 fs/btrfs/scrub.c struct scrub_bio *bios[SCRUB_BIOS_PER_SCTX]; bios 547 fs/btrfs/scrub.c struct scrub_bio *sbio = sctx->bios[sctx->curr]; bios 557 fs/btrfs/scrub.c struct scrub_bio *sbio = sctx->bios[i]; bios 596 fs/btrfs/scrub.c sctx->bios[i] = sbio; bios 605 fs/btrfs/scrub.c sctx->bios[i]->next_free = i + 1; bios 607 fs/btrfs/scrub.c sctx->bios[i]->next_free = -1; bios 2027 fs/btrfs/scrub.c sbio = sctx->bios[sctx->curr]; bios 2048 fs/btrfs/scrub.c sctx->first_free = sctx->bios[sctx->curr]->next_free; bios 2049 fs/btrfs/scrub.c sctx->bios[sctx->curr]->next_free = -1; bios 2050 fs/btrfs/scrub.c sctx->bios[sctx->curr]->page_count = 0; bios 2057 fs/btrfs/scrub.c sbio = sctx->bios[sctx->curr]; bios 701 fs/erofs/zdata.c static void z_erofs_vle_unzip_kickoff(void *ptr, int bios) bios 711 fs/erofs/zdata.c if (!atomic_add_return(bios, &io->pending_bios)) bios 717 fs/erofs/zdata.c if (!atomic_add_return(bios, &io->pending_bios)) bios 27 include/linux/apm_bios.h struct apm_bios_info bios; bios 37 include/linux/dm-region-hash.h struct bio_list *bios), bios 75 include/linux/dm-region-hash.h void dm_rh_inc_pending(struct dm_region_hash *rh, struct bio_list *bios); bios 251 samples/mei/mei-amt-version.c uint8_t bios[AMT_BIOS_VERSION_LEN]; bios 321 samples/mei/mei-amt-version.c sizeof(code_ver->bios) -