Lines Matching refs:bios
29 mxm_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr) in mxm_table() argument
31 struct nvkm_subdev *subdev = &bios->subdev; in mxm_table()
34 if (bit_entry(bios, 'x', &x)) { in mxm_table()
75 mxm_sor_map(struct nvkm_bios *bios, u8 conn) in mxm_sor_map() argument
77 struct nvkm_subdev *subdev = &bios->subdev; in mxm_sor_map()
79 u16 mxm = mxm_table(bios, &ver, &hdr); in mxm_sor_map()
81 u16 map = nvbios_rd16(bios, mxm + 4); in mxm_sor_map()
83 ver = nvbios_rd08(bios, map); in mxm_sor_map()
85 if (conn < nvbios_rd08(bios, map + 3)) { in mxm_sor_map()
86 map += nvbios_rd08(bios, map + 1); in mxm_sor_map()
88 return nvbios_rd08(bios, map); in mxm_sor_map()
98 if (bios->version.chip == 0x84 || bios->version.chip == 0x86) in mxm_sor_map()
100 if (bios->version.chip == 0x92) in mxm_sor_map()
102 if (bios->version.chip == 0x94 || bios->version.chip == 0x96) in mxm_sor_map()
104 if (bios->version.chip == 0x98) in mxm_sor_map()
112 mxm_ddc_map(struct nvkm_bios *bios, u8 port) in mxm_ddc_map() argument
114 struct nvkm_subdev *subdev = &bios->subdev; in mxm_ddc_map()
116 u16 mxm = mxm_table(bios, &ver, &hdr); in mxm_ddc_map()
118 u16 map = nvbios_rd16(bios, mxm + 6); in mxm_ddc_map()
120 ver = nvbios_rd08(bios, map); in mxm_ddc_map()
122 if (port < nvbios_rd08(bios, map + 3)) { in mxm_ddc_map()
123 map += nvbios_rd08(bios, map + 1); in mxm_ddc_map()
125 return nvbios_rd08(bios, map); in mxm_ddc_map()