• Home
  • Raw
  • Download

Lines Matching refs:bios

29 nvbios_perf_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr,  in nvbios_perf_table()  argument
35 if (!bit_entry(bios, 'P', &bit_P)) { in nvbios_perf_table()
37 perf = nvbios_rd16(bios, bit_P.offset + 0); in nvbios_perf_table()
39 *ver = nvbios_rd08(bios, perf + 0); in nvbios_perf_table()
40 *hdr = nvbios_rd08(bios, perf + 1); in nvbios_perf_table()
42 *cnt = nvbios_rd08(bios, perf + 5); in nvbios_perf_table()
43 *len = nvbios_rd08(bios, perf + 2); in nvbios_perf_table()
44 *snr = nvbios_rd08(bios, perf + 4); in nvbios_perf_table()
45 *ssz = nvbios_rd08(bios, perf + 3); in nvbios_perf_table()
49 *cnt = nvbios_rd08(bios, perf + 2); in nvbios_perf_table()
50 *len = nvbios_rd08(bios, perf + 3); in nvbios_perf_table()
51 *snr = nvbios_rd08(bios, perf + 4); in nvbios_perf_table()
52 *ssz = nvbios_rd08(bios, perf + 5); in nvbios_perf_table()
59 if (bios->bmp_offset) { in nvbios_perf_table()
60 if (nvbios_rd08(bios, bios->bmp_offset + 6) >= 0x25) { in nvbios_perf_table()
61 perf = nvbios_rd16(bios, bios->bmp_offset + 0x94); in nvbios_perf_table()
63 *hdr = nvbios_rd08(bios, perf + 0); in nvbios_perf_table()
64 *ver = nvbios_rd08(bios, perf + 1); in nvbios_perf_table()
65 *cnt = nvbios_rd08(bios, perf + 2); in nvbios_perf_table()
66 *len = nvbios_rd08(bios, perf + 3); in nvbios_perf_table()
78 nvbios_perf_entry(struct nvkm_bios *bios, int idx, in nvbios_perf_entry() argument
82 u16 perf = nvbios_perf_table(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_perf_entry()
94 nvbios_perfEp(struct nvkm_bios *bios, int idx, in nvbios_perfEp() argument
97 u16 perf = nvbios_perf_entry(bios, idx, ver, hdr, cnt, len); in nvbios_perfEp()
99 info->pstate = nvbios_rd08(bios, perf + 0x00); in nvbios_perfEp()
104 info->core = nvbios_rd32(bios, perf + 0x01) * 10; in nvbios_perfEp()
105 info->memory = nvbios_rd32(bios, perf + 0x05) * 20; in nvbios_perfEp()
106 info->fanspeed = nvbios_rd08(bios, perf + 0x37); in nvbios_perfEp()
108 info->voltage = nvbios_rd08(bios, perf + 0x38); in nvbios_perfEp()
113 info->fanspeed = nvbios_rd08(bios, perf + 0x04); in nvbios_perfEp()
114 info->voltage = nvbios_rd08(bios, perf + 0x05); in nvbios_perfEp()
115 info->shader = nvbios_rd16(bios, perf + 0x06) * 1000; in nvbios_perfEp()
117 nvbios_rd08(bios, perf + 0x08) * 1000; in nvbios_perfEp()
118 switch (bios->subdev.device->chipset) { in nvbios_perfEp()
121 info->memory = nvbios_rd16(bios, perf + 0x0b) * 1000; in nvbios_perfEp()
124 info->memory = nvbios_rd16(bios, perf + 0x0b) * 2000; in nvbios_perfEp()
129 info->fanspeed = nvbios_rd08(bios, perf + 0x04); in nvbios_perfEp()
130 info->voltage = nvbios_rd08(bios, perf + 0x05); in nvbios_perfEp()
131 info->core = nvbios_rd16(bios, perf + 0x06) * 1000; in nvbios_perfEp()
132 info->shader = nvbios_rd16(bios, perf + 0x0a) * 1000; in nvbios_perfEp()
133 info->memory = nvbios_rd16(bios, perf + 0x0c) * 1000; in nvbios_perfEp()
136 info->script = nvbios_rd16(bios, perf + 0x02); in nvbios_perfEp()
138 info->fanspeed = nvbios_rd08(bios, perf + 0x06); in nvbios_perfEp()
139 info->voltage = nvbios_rd08(bios, perf + 0x07); in nvbios_perfEp()
140 info->core = nvbios_rd16(bios, perf + 0x08) * 1000; in nvbios_perfEp()
141 info->shader = nvbios_rd16(bios, perf + 0x0a) * 1000; in nvbios_perfEp()
142 info->memory = nvbios_rd16(bios, perf + 0x0c) * 1000; in nvbios_perfEp()
143 info->vdec = nvbios_rd16(bios, perf + 0x10) * 1000; in nvbios_perfEp()
144 info->disp = nvbios_rd16(bios, perf + 0x14) * 1000; in nvbios_perfEp()
147 info->voltage = nvbios_rd08(bios, perf + 0x02); in nvbios_perfEp()
156 nvbios_perfSe(struct nvkm_bios *bios, u32 perfE, int idx, in nvbios_perfSe() argument
168 nvbios_perfSp(struct nvkm_bios *bios, u32 perfE, int idx, in nvbios_perfSp() argument
172 u32 data = nvbios_perfSe(bios, perfE, idx, ver, hdr, cnt, len); in nvbios_perfSp()
176 info->v40.freq = (nvbios_rd16(bios, data + 0x00) & 0x3fff) * 1000; in nvbios_perfSp()
185 nvbios_perf_fan_parse(struct nvkm_bios *bios, in nvbios_perf_fan_parse() argument
189 u16 perf = nvbios_perf_table(bios, &ver, &hdr, &cnt, &len, &snr, &ssz); in nvbios_perf_fan_parse()
194 fan->pwm_divisor = nvbios_rd16(bios, perf + 6); in nvbios_perf_fan_parse()