Lines Matching refs:bios
124 struct nvkm_bios *bios = init->subdev->device->bios; in init_conn() local
132 conn = nvbios_connEp(bios, conn, &ver, &hdr, &connE); in init_conn()
359 init_table(struct nvkm_bios *bios, u16 *len) in init_table() argument
363 if (!bit_entry(bios, 'I', &bit_I)) { in init_table()
368 if (bmp_version(bios) >= 0x0510) { in init_table()
370 return bios->bmp_offset + 75; in init_table()
379 struct nvkm_bios *bios = init->subdev->device->bios; in init_table_() local
380 u16 len, data = init_table(bios, &len); in init_table_()
383 data = nvbios_rd16(bios, data + offset); in init_table_()
409 init_script(struct nvkm_bios *bios, int index) in init_script() argument
411 struct nvbios_init init = { .subdev = &bios->subdev }; in init_script()
412 u16 bmp_ver = bmp_version(bios), data; in init_script()
418 data = bios->bmp_offset + (bmp_ver < 0x0200 ? 14 : 18); in init_script()
419 return nvbios_rd16(bios, data + (index * 2)); in init_script()
424 return nvbios_rd16(bios, data + (index * 2)); in init_script()
430 init_unknown_script(struct nvkm_bios *bios) in init_unknown_script() argument
432 u16 len, data = init_table(bios, &len); in init_unknown_script()
434 return nvbios_rd16(bios, data + 14); in init_unknown_script()
441 return nvbios_ramcfg_count(init->subdev->device->bios); in init_ram_restrict_group_count()
455 if (!init->ramcfg || init->subdev->device->bios->version.major < 0x70) in init_ram_restrict()
463 struct nvkm_bios *bios = init->subdev->device->bios; in init_xlat_() local
466 u16 data = nvbios_rd16(bios, table + (index * 2)); in init_xlat_()
468 return nvbios_rd08(bios, data + offset); in init_xlat_()
481 struct nvkm_bios *bios = init->subdev->device->bios; in init_condition_met() local
484 u32 reg = nvbios_rd32(bios, table + (cond * 12) + 0); in init_condition_met()
485 u32 msk = nvbios_rd32(bios, table + (cond * 12) + 4); in init_condition_met()
486 u32 val = nvbios_rd32(bios, table + (cond * 12) + 8); in init_condition_met()
497 struct nvkm_bios *bios = init->subdev->device->bios; in init_io_condition_met() local
500 u16 port = nvbios_rd16(bios, table + (cond * 5) + 0); in init_io_condition_met()
501 u8 index = nvbios_rd08(bios, table + (cond * 5) + 2); in init_io_condition_met()
502 u8 mask = nvbios_rd08(bios, table + (cond * 5) + 3); in init_io_condition_met()
503 u8 value = nvbios_rd08(bios, table + (cond * 5) + 4); in init_io_condition_met()
514 struct nvkm_bios *bios = init->subdev->device->bios; in init_io_flag_condition_met() local
517 u16 port = nvbios_rd16(bios, table + (cond * 9) + 0); in init_io_flag_condition_met()
518 u8 index = nvbios_rd08(bios, table + (cond * 9) + 2); in init_io_flag_condition_met()
519 u8 mask = nvbios_rd08(bios, table + (cond * 9) + 3); in init_io_flag_condition_met()
520 u8 shift = nvbios_rd08(bios, table + (cond * 9) + 4); in init_io_flag_condition_met()
521 u16 data = nvbios_rd16(bios, table + (cond * 9) + 5); in init_io_flag_condition_met()
522 u8 dmask = nvbios_rd08(bios, table + (cond * 9) + 7); in init_io_flag_condition_met()
523 u8 value = nvbios_rd08(bios, table + (cond * 9) + 8); in init_io_flag_condition_met()
525 return (nvbios_rd08(bios, data + ioval) & dmask) == value; in init_io_flag_condition_met()
585 struct nvkm_bios *bios = init->subdev->device->bios; in init_reserved() local
586 u8 opcode = nvbios_rd08(bios, init->offset); in init_reserved()
600 cont(" 0x%02x", nvbios_rd08(bios, init->offset + i)); in init_reserved()
623 struct nvkm_bios *bios = init->subdev->device->bios; in init_io_restrict_prog() local
624 u16 port = nvbios_rd16(bios, init->offset + 1); in init_io_restrict_prog()
625 u8 index = nvbios_rd08(bios, init->offset + 3); in init_io_restrict_prog()
626 u8 mask = nvbios_rd08(bios, init->offset + 4); in init_io_restrict_prog()
627 u8 shift = nvbios_rd08(bios, init->offset + 5); in init_io_restrict_prog()
628 u8 count = nvbios_rd08(bios, init->offset + 6); in init_io_restrict_prog()
629 u32 reg = nvbios_rd32(bios, init->offset + 7); in init_io_restrict_prog()
639 u32 data = nvbios_rd32(bios, init->offset); in init_io_restrict_prog()
660 struct nvkm_bios *bios = init->subdev->device->bios; in init_repeat() local
661 u8 count = nvbios_rd08(bios, init->offset + 1); in init_repeat()
686 struct nvkm_bios *bios = init->subdev->device->bios; in init_io_restrict_pll() local
687 u16 port = nvbios_rd16(bios, init->offset + 1); in init_io_restrict_pll()
688 u8 index = nvbios_rd08(bios, init->offset + 3); in init_io_restrict_pll()
689 u8 mask = nvbios_rd08(bios, init->offset + 4); in init_io_restrict_pll()
690 u8 shift = nvbios_rd08(bios, init->offset + 5); in init_io_restrict_pll()
691 s8 iofc = nvbios_rd08(bios, init->offset + 6); in init_io_restrict_pll()
692 u8 count = nvbios_rd08(bios, init->offset + 7); in init_io_restrict_pll()
693 u32 reg = nvbios_rd32(bios, init->offset + 8); in init_io_restrict_pll()
703 u32 freq = nvbios_rd16(bios, init->offset) * 10; in init_io_restrict_pll()
742 struct nvkm_bios *bios = init->subdev->device->bios; in init_copy() local
743 u32 reg = nvbios_rd32(bios, init->offset + 1); in init_copy()
744 u8 shift = nvbios_rd08(bios, init->offset + 5); in init_copy()
745 u8 smask = nvbios_rd08(bios, init->offset + 6); in init_copy()
746 u16 port = nvbios_rd16(bios, init->offset + 7); in init_copy()
747 u8 index = nvbios_rd08(bios, init->offset + 9); in init_copy()
748 u8 mask = nvbios_rd08(bios, init->offset + 10); in init_copy()
781 struct nvkm_bios *bios = init->subdev->device->bios; in init_io_flag_condition() local
782 u8 cond = nvbios_rd08(bios, init->offset + 1); in init_io_flag_condition()
798 struct nvkm_bios *bios = init->subdev->device->bios; in init_generic_condition() local
800 u8 cond = nvbios_rd08(bios, init->offset + 1); in init_generic_condition()
801 u8 size = nvbios_rd08(bios, init->offset + 2); in init_generic_condition()
816 (data = nvbios_dpout_match(bios, DCB_OUTPUT_DP, in init_generic_condition()
850 struct nvkm_bios *bios = init->subdev->device->bios; in init_io_mask_or() local
851 u8 index = nvbios_rd08(bios, init->offset + 1); in init_io_mask_or()
869 struct nvkm_bios *bios = init->subdev->device->bios; in init_io_or() local
870 u8 index = nvbios_rd08(bios, init->offset + 1); in init_io_or()
888 struct nvkm_bios *bios = init->subdev->device->bios; in init_andn_reg() local
889 u32 reg = nvbios_rd32(bios, init->offset + 1); in init_andn_reg()
890 u32 mask = nvbios_rd32(bios, init->offset + 5); in init_andn_reg()
905 struct nvkm_bios *bios = init->subdev->device->bios; in init_or_reg() local
906 u32 reg = nvbios_rd32(bios, init->offset + 1); in init_or_reg()
907 u32 mask = nvbios_rd32(bios, init->offset + 5); in init_or_reg()
922 struct nvkm_bios *bios = init->subdev->device->bios; in init_idx_addr_latched() local
923 u32 creg = nvbios_rd32(bios, init->offset + 1); in init_idx_addr_latched()
924 u32 dreg = nvbios_rd32(bios, init->offset + 5); in init_idx_addr_latched()
925 u32 mask = nvbios_rd32(bios, init->offset + 9); in init_idx_addr_latched()
926 u32 data = nvbios_rd32(bios, init->offset + 13); in init_idx_addr_latched()
927 u8 count = nvbios_rd08(bios, init->offset + 17); in init_idx_addr_latched()
934 u8 iaddr = nvbios_rd08(bios, init->offset + 0); in init_idx_addr_latched()
935 u8 idata = nvbios_rd08(bios, init->offset + 1); in init_idx_addr_latched()
952 struct nvkm_bios *bios = init->subdev->device->bios; in init_io_restrict_pll2() local
953 u16 port = nvbios_rd16(bios, init->offset + 1); in init_io_restrict_pll2()
954 u8 index = nvbios_rd08(bios, init->offset + 3); in init_io_restrict_pll2()
955 u8 mask = nvbios_rd08(bios, init->offset + 4); in init_io_restrict_pll2()
956 u8 shift = nvbios_rd08(bios, init->offset + 5); in init_io_restrict_pll2()
957 u8 count = nvbios_rd08(bios, init->offset + 6); in init_io_restrict_pll2()
958 u32 reg = nvbios_rd32(bios, init->offset + 7); in init_io_restrict_pll2()
968 u32 freq = nvbios_rd32(bios, init->offset); in init_io_restrict_pll2()
987 struct nvkm_bios *bios = init->subdev->device->bios; in init_pll2() local
988 u32 reg = nvbios_rd32(bios, init->offset + 1); in init_pll2()
989 u32 freq = nvbios_rd32(bios, init->offset + 5); in init_pll2()
1004 struct nvkm_bios *bios = init->subdev->device->bios; in init_i2c_byte() local
1005 u8 index = nvbios_rd08(bios, init->offset + 1); in init_i2c_byte()
1006 u8 addr = nvbios_rd08(bios, init->offset + 2) >> 1; in init_i2c_byte()
1007 u8 count = nvbios_rd08(bios, init->offset + 3); in init_i2c_byte()
1013 u8 reg = nvbios_rd08(bios, init->offset + 0); in init_i2c_byte()
1014 u8 mask = nvbios_rd08(bios, init->offset + 1); in init_i2c_byte()
1015 u8 data = nvbios_rd08(bios, init->offset + 2); in init_i2c_byte()
1035 struct nvkm_bios *bios = init->subdev->device->bios; in init_zm_i2c_byte() local
1036 u8 index = nvbios_rd08(bios, init->offset + 1); in init_zm_i2c_byte()
1037 u8 addr = nvbios_rd08(bios, init->offset + 2) >> 1; in init_zm_i2c_byte()
1038 u8 count = nvbios_rd08(bios, init->offset + 3); in init_zm_i2c_byte()
1044 u8 reg = nvbios_rd08(bios, init->offset + 0); in init_zm_i2c_byte()
1045 u8 data = nvbios_rd08(bios, init->offset + 1); in init_zm_i2c_byte()
1061 struct nvkm_bios *bios = init->subdev->device->bios; in init_zm_i2c() local
1062 u8 index = nvbios_rd08(bios, init->offset + 1); in init_zm_i2c()
1063 u8 addr = nvbios_rd08(bios, init->offset + 2) >> 1; in init_zm_i2c()
1064 u8 count = nvbios_rd08(bios, init->offset + 3); in init_zm_i2c()
1071 data[i] = nvbios_rd08(bios, init->offset); in init_zm_i2c()
1095 struct nvkm_bios *bios = init->subdev->device->bios; in init_tmds() local
1096 u8 tmds = nvbios_rd08(bios, init->offset + 1); in init_tmds()
1097 u8 addr = nvbios_rd08(bios, init->offset + 2); in init_tmds()
1098 u8 mask = nvbios_rd08(bios, init->offset + 3); in init_tmds()
1099 u8 data = nvbios_rd08(bios, init->offset + 4); in init_tmds()
1121 struct nvkm_bios *bios = init->subdev->device->bios; in init_zm_tmds_group() local
1122 u8 tmds = nvbios_rd08(bios, init->offset + 1); in init_zm_tmds_group()
1123 u8 count = nvbios_rd08(bios, init->offset + 2); in init_zm_tmds_group()
1130 u8 addr = nvbios_rd08(bios, init->offset + 0); in init_zm_tmds_group()
1131 u8 data = nvbios_rd08(bios, init->offset + 1); in init_zm_tmds_group()
1148 struct nvkm_bios *bios = init->subdev->device->bios; in init_cr_idx_adr_latch() local
1149 u8 addr0 = nvbios_rd08(bios, init->offset + 1); in init_cr_idx_adr_latch()
1150 u8 addr1 = nvbios_rd08(bios, init->offset + 2); in init_cr_idx_adr_latch()
1151 u8 base = nvbios_rd08(bios, init->offset + 3); in init_cr_idx_adr_latch()
1152 u8 count = nvbios_rd08(bios, init->offset + 4); in init_cr_idx_adr_latch()
1160 u8 data = nvbios_rd08(bios, init->offset); in init_cr_idx_adr_latch()
1178 struct nvkm_bios *bios = init->subdev->device->bios; in init_cr() local
1179 u8 addr = nvbios_rd08(bios, init->offset + 1); in init_cr()
1180 u8 mask = nvbios_rd08(bios, init->offset + 2); in init_cr()
1181 u8 data = nvbios_rd08(bios, init->offset + 3); in init_cr()
1198 struct nvkm_bios *bios = init->subdev->device->bios; in init_zm_cr() local
1199 u8 addr = nvbios_rd08(bios, init->offset + 1); in init_zm_cr()
1200 u8 data = nvbios_rd08(bios, init->offset + 2); in init_zm_cr()
1215 struct nvkm_bios *bios = init->subdev->device->bios; in init_zm_cr_group() local
1216 u8 count = nvbios_rd08(bios, init->offset + 1); in init_zm_cr_group()
1222 u8 addr = nvbios_rd08(bios, init->offset + 0); in init_zm_cr_group()
1223 u8 data = nvbios_rd08(bios, init->offset + 1); in init_zm_cr_group()
1239 struct nvkm_bios *bios = init->subdev->device->bios; in init_condition_time() local
1240 u8 cond = nvbios_rd08(bios, init->offset + 1); in init_condition_time()
1241 u8 retry = nvbios_rd08(bios, init->offset + 2); in init_condition_time()
1266 struct nvkm_bios *bios = init->subdev->device->bios; in init_ltime() local
1267 u16 msec = nvbios_rd16(bios, init->offset + 1); in init_ltime()
1283 struct nvkm_bios *bios = init->subdev->device->bios; in init_zm_reg_sequence() local
1284 u32 base = nvbios_rd32(bios, init->offset + 1); in init_zm_reg_sequence()
1285 u8 count = nvbios_rd08(bios, init->offset + 5); in init_zm_reg_sequence()
1291 u32 data = nvbios_rd32(bios, init->offset); in init_zm_reg_sequence()
1308 struct nvkm_bios *bios = init->subdev->device->bios; in init_pll_indirect() local
1309 u32 reg = nvbios_rd32(bios, init->offset + 1); in init_pll_indirect()
1310 u16 addr = nvbios_rd16(bios, init->offset + 5); in init_pll_indirect()
1311 u32 freq = (u32)nvbios_rd16(bios, addr) * 1000; in init_pll_indirect()
1327 struct nvkm_bios *bios = init->subdev->device->bios; in init_zm_reg_indirect() local
1328 u32 reg = nvbios_rd32(bios, init->offset + 1); in init_zm_reg_indirect()
1329 u16 addr = nvbios_rd16(bios, init->offset + 5); in init_zm_reg_indirect()
1330 u32 data = nvbios_rd32(bios, addr); in init_zm_reg_indirect()
1346 struct nvkm_bios *bios = init->subdev->device->bios; in init_sub_direct() local
1347 u16 addr = nvbios_rd16(bios, init->offset + 1); in init_sub_direct()
1372 struct nvkm_bios *bios = init->subdev->device->bios; in init_jump() local
1373 u16 offset = nvbios_rd16(bios, init->offset + 1); in init_jump()
1390 struct nvkm_bios *bios = init->subdev->device->bios; in init_i2c_if() local
1391 u8 index = nvbios_rd08(bios, init->offset + 1); in init_i2c_if()
1392 u8 addr = nvbios_rd08(bios, init->offset + 2); in init_i2c_if()
1393 u8 reg = nvbios_rd08(bios, init->offset + 3); in init_i2c_if()
1394 u8 mask = nvbios_rd08(bios, init->offset + 4); in init_i2c_if()
1395 u8 data = nvbios_rd08(bios, init->offset + 5); in init_i2c_if()
1417 struct nvkm_bios *bios = init->subdev->device->bios; in init_copy_nv_reg() local
1418 u32 sreg = nvbios_rd32(bios, init->offset + 1); in init_copy_nv_reg()
1419 u8 shift = nvbios_rd08(bios, init->offset + 5); in init_copy_nv_reg()
1420 u32 smask = nvbios_rd32(bios, init->offset + 6); in init_copy_nv_reg()
1421 u32 sxor = nvbios_rd32(bios, init->offset + 10); in init_copy_nv_reg()
1422 u32 dreg = nvbios_rd32(bios, init->offset + 14); in init_copy_nv_reg()
1423 u32 dmask = nvbios_rd32(bios, init->offset + 18); in init_copy_nv_reg()
1443 struct nvkm_bios *bios = init->subdev->device->bios; in init_zm_index_io() local
1444 u16 port = nvbios_rd16(bios, init->offset + 1); in init_zm_index_io()
1445 u8 index = nvbios_rd08(bios, init->offset + 3); in init_zm_index_io()
1446 u8 data = nvbios_rd08(bios, init->offset + 4); in init_zm_index_io()
1479 struct nvkm_bios *bios = init->subdev->device->bios; in init_reset() local
1480 u32 reg = nvbios_rd32(bios, init->offset + 1); in init_reset()
1481 u32 data1 = nvbios_rd32(bios, init->offset + 5); in init_reset()
1482 u32 data2 = nvbios_rd32(bios, init->offset + 9); in init_reset()
1506 u16 mdata = bmp_mem_init_table(init->subdev->device->bios); in init_configure_mem_clk()
1515 struct nvkm_bios *bios = init->subdev->device->bios; in init_configure_mem() local
1522 if (bios->version.major > 2) { in init_configure_mem()
1529 sdata = bmp_sdr_seq_table(bios); in init_configure_mem()
1530 if (nvbios_rd08(bios, mdata) & 0x01) in init_configure_mem()
1531 sdata = bmp_ddr_seq_table(bios); in init_configure_mem()
1537 for (; (addr = nvbios_rd32(bios, sdata)) != 0xffffffff; sdata += 4) { in init_configure_mem()
1545 data = nvbios_rd32(bios, mdata); in init_configure_mem()
1565 struct nvkm_bios *bios = init->subdev->device->bios; in init_configure_clk() local
1571 if (bios->version.major > 2) { in init_configure_clk()
1580 clock = nvbios_rd16(bios, mdata + 4) * 10; in init_configure_clk()
1584 clock = nvbios_rd16(bios, mdata + 2) * 10; in init_configure_clk()
1585 if (nvbios_rd08(bios, mdata) & 0x01) in init_configure_clk()
1599 struct nvkm_bios *bios = init->subdev->device->bios; in init_configure_preinit() local
1605 if (bios->version.major > 2) { in init_configure_preinit()
1625 struct nvkm_bios *bios = init->subdev->device->bios; in init_io() local
1626 u16 port = nvbios_rd16(bios, init->offset + 1); in init_io()
1627 u8 mask = nvbios_rd16(bios, init->offset + 3); in init_io()
1628 u8 data = nvbios_rd16(bios, init->offset + 4); in init_io()
1638 if (bios->subdev.device->card_type >= NV_50 && in init_io()
1665 struct nvkm_bios *bios = init->subdev->device->bios; in init_sub() local
1666 u8 index = nvbios_rd08(bios, init->offset + 1); in init_sub()
1671 addr = init_script(bios, index); in init_sub()
1692 struct nvkm_bios *bios = init->subdev->device->bios; in init_ram_condition() local
1693 u8 mask = nvbios_rd08(bios, init->offset + 1); in init_ram_condition()
1694 u8 value = nvbios_rd08(bios, init->offset + 2); in init_ram_condition()
1711 struct nvkm_bios *bios = init->subdev->device->bios; in init_nv_reg() local
1712 u32 reg = nvbios_rd32(bios, init->offset + 1); in init_nv_reg()
1713 u32 mask = nvbios_rd32(bios, init->offset + 5); in init_nv_reg()
1714 u32 data = nvbios_rd32(bios, init->offset + 9); in init_nv_reg()
1729 struct nvkm_bios *bios = init->subdev->device->bios; in init_macro() local
1730 u8 macro = nvbios_rd08(bios, init->offset + 1); in init_macro()
1737 u32 addr = nvbios_rd32(bios, table + (macro * 8) + 0); in init_macro()
1738 u32 data = nvbios_rd32(bios, table + (macro * 8) + 4); in init_macro()
1765 struct nvkm_bios *bios = init->subdev->device->bios; in init_strap_condition() local
1766 u32 mask = nvbios_rd32(bios, init->offset + 1); in init_strap_condition()
1767 u32 value = nvbios_rd32(bios, init->offset + 5); in init_strap_condition()
1783 struct nvkm_bios *bios = init->subdev->device->bios; in init_time() local
1784 u16 usec = nvbios_rd16(bios, init->offset + 1); in init_time()
1804 struct nvkm_bios *bios = init->subdev->device->bios; in init_condition() local
1805 u8 cond = nvbios_rd08(bios, init->offset + 1); in init_condition()
1821 struct nvkm_bios *bios = init->subdev->device->bios; in init_io_condition() local
1822 u8 cond = nvbios_rd08(bios, init->offset + 1); in init_io_condition()
1838 struct nvkm_bios *bios = init->subdev->device->bios; in init_zm_reg16() local
1839 u32 addr = nvbios_rd32(bios, init->offset + 1); in init_zm_reg16()
1840 u16 data = nvbios_rd16(bios, init->offset + 5); in init_zm_reg16()
1855 struct nvkm_bios *bios = init->subdev->device->bios; in init_index_io() local
1856 u16 port = nvbios_rd16(bios, init->offset + 1); in init_index_io()
1857 u8 index = nvbios_rd16(bios, init->offset + 3); in init_index_io()
1858 u8 mask = nvbios_rd08(bios, init->offset + 4); in init_index_io()
1859 u8 data = nvbios_rd08(bios, init->offset + 5); in init_index_io()
1877 struct nvkm_bios *bios = init->subdev->device->bios; in init_pll() local
1878 u32 reg = nvbios_rd32(bios, init->offset + 1); in init_pll()
1879 u32 freq = nvbios_rd16(bios, init->offset + 5) * 10; in init_pll()
1894 struct nvkm_bios *bios = init->subdev->device->bios; in init_zm_reg() local
1895 u32 addr = nvbios_rd32(bios, init->offset + 1); in init_zm_reg()
1896 u32 data = nvbios_rd32(bios, init->offset + 5); in init_zm_reg()
1914 struct nvkm_bios *bios = init->subdev->device->bios; in init_ram_restrict_pll() local
1915 u8 type = nvbios_rd08(bios, init->offset + 1); in init_ram_restrict_pll()
1924 u32 freq = nvbios_rd32(bios, init->offset); in init_ram_restrict_pll()
1982 struct nvkm_bios *bios = init->subdev->device->bios; in init_ram_restrict_zm_reg_group() local
1983 u32 addr = nvbios_rd32(bios, init->offset + 1); in init_ram_restrict_zm_reg_group()
1984 u8 incr = nvbios_rd08(bios, init->offset + 5); in init_ram_restrict_zm_reg_group()
1985 u8 num = nvbios_rd08(bios, init->offset + 6); in init_ram_restrict_zm_reg_group()
1997 u32 data = nvbios_rd32(bios, init->offset); in init_ram_restrict_zm_reg_group()
2020 struct nvkm_bios *bios = init->subdev->device->bios; in init_copy_zm_reg() local
2021 u32 sreg = nvbios_rd32(bios, init->offset + 1); in init_copy_zm_reg()
2022 u32 dreg = nvbios_rd32(bios, init->offset + 5); in init_copy_zm_reg()
2037 struct nvkm_bios *bios = init->subdev->device->bios; in init_zm_reg_group() local
2038 u32 addr = nvbios_rd32(bios, init->offset + 1); in init_zm_reg_group()
2039 u8 count = nvbios_rd08(bios, init->offset + 5); in init_zm_reg_group()
2045 u32 data = nvbios_rd32(bios, init->offset); in init_zm_reg_group()
2059 struct nvkm_bios *bios = init->subdev->device->bios; in init_xlat() local
2060 u32 saddr = nvbios_rd32(bios, init->offset + 1); in init_xlat()
2061 u8 sshift = nvbios_rd08(bios, init->offset + 5); in init_xlat()
2062 u8 smask = nvbios_rd08(bios, init->offset + 6); in init_xlat()
2063 u8 index = nvbios_rd08(bios, init->offset + 7); in init_xlat()
2064 u32 daddr = nvbios_rd32(bios, init->offset + 8); in init_xlat()
2065 u32 dmask = nvbios_rd32(bios, init->offset + 12); in init_xlat()
2066 u8 shift = nvbios_rd08(bios, init->offset + 16); in init_xlat()
2087 struct nvkm_bios *bios = init->subdev->device->bios; in init_zm_mask_add() local
2088 u32 addr = nvbios_rd32(bios, init->offset + 1); in init_zm_mask_add()
2089 u32 mask = nvbios_rd32(bios, init->offset + 5); in init_zm_mask_add()
2090 u32 add = nvbios_rd32(bios, init->offset + 9); in init_zm_mask_add()
2108 struct nvkm_bios *bios = init->subdev->device->bios; in init_auxch() local
2109 u32 addr = nvbios_rd32(bios, init->offset + 1); in init_auxch()
2110 u8 count = nvbios_rd08(bios, init->offset + 5); in init_auxch()
2116 u8 mask = nvbios_rd08(bios, init->offset + 0); in init_auxch()
2117 u8 data = nvbios_rd08(bios, init->offset + 1); in init_auxch()
2132 struct nvkm_bios *bios = init->subdev->device->bios; in init_zm_auxch() local
2133 u32 addr = nvbios_rd32(bios, init->offset + 1); in init_zm_auxch()
2134 u8 count = nvbios_rd08(bios, init->offset + 5); in init_zm_auxch()
2140 u8 data = nvbios_rd08(bios, init->offset + 0); in init_zm_auxch()
2154 struct nvkm_bios *bios = init->subdev->device->bios; in init_i2c_long_if() local
2155 u8 index = nvbios_rd08(bios, init->offset + 1); in init_i2c_long_if()
2156 u8 addr = nvbios_rd08(bios, init->offset + 2) >> 1; in init_i2c_long_if()
2157 u8 reglo = nvbios_rd08(bios, init->offset + 3); in init_i2c_long_if()
2158 u8 reghi = nvbios_rd08(bios, init->offset + 4); in init_i2c_long_if()
2159 u8 mask = nvbios_rd08(bios, init->offset + 5); in init_i2c_long_if()
2160 u8 data = nvbios_rd08(bios, init->offset + 6); in init_i2c_long_if()
2193 struct nvkm_bios *bios = init->subdev->device->bios; in init_gpio_ne() local
2194 struct nvkm_gpio *gpio = bios->subdev.device->gpio; in init_gpio_ne()
2196 u8 count = nvbios_rd08(bios, init->offset + 1); in init_gpio_ne()
2204 cont("0x%02x ", nvbios_rd08(bios, i)); in init_gpio_ne()
2207 while ((data = dcb_gpio_parse(bios, 0, idx++, &ver, &len, &func))) { in init_gpio_ne()
2210 if (func.func == nvbios_rd08(bios, i)) in init_gpio_ne()
2304 struct nvkm_bios *bios = init->subdev->device->bios; in nvbios_exec() local
2308 u8 opcode = nvbios_rd08(bios, init->offset); in nvbios_exec()
2324 struct nvkm_bios *bios = subdev->device->bios; in nvbios_post() local
2331 while (!ret && (data = (init_script(bios, ++i)))) { in nvbios_post()
2340 if (!ret && (data = init_unknown_script(bios))) { in nvbios_post()