Lines Matching full:perf

26 #include <subdev/bios/perf.h>
34 u32 perf = 0; in nvbios_perf_table() local
38 perf = nvbios_rd32(bios, bit_P.offset + 0); in nvbios_perf_table()
39 if (perf) { in nvbios_perf_table()
40 *ver = nvbios_rd08(bios, perf + 0); in nvbios_perf_table()
41 *hdr = nvbios_rd08(bios, perf + 1); in nvbios_perf_table()
43 *cnt = nvbios_rd08(bios, perf + 5); in nvbios_perf_table()
44 *len = nvbios_rd08(bios, perf + 2); in nvbios_perf_table()
45 *snr = nvbios_rd08(bios, perf + 4); in nvbios_perf_table()
46 *ssz = nvbios_rd08(bios, perf + 3); in nvbios_perf_table()
47 return perf; in nvbios_perf_table()
50 *cnt = nvbios_rd08(bios, perf + 2); in nvbios_perf_table()
51 *len = nvbios_rd08(bios, perf + 3); in nvbios_perf_table()
52 *snr = nvbios_rd08(bios, perf + 4); in nvbios_perf_table()
53 *ssz = nvbios_rd08(bios, perf + 5); in nvbios_perf_table()
54 return perf; in nvbios_perf_table()
62 perf = nvbios_rd16(bios, bios->bmp_offset + 0x94); in nvbios_perf_table()
63 if (perf) { in nvbios_perf_table()
64 *hdr = nvbios_rd08(bios, perf + 0); in nvbios_perf_table()
65 *ver = nvbios_rd08(bios, perf + 1); in nvbios_perf_table()
66 *cnt = nvbios_rd08(bios, perf + 2); in nvbios_perf_table()
67 *len = nvbios_rd08(bios, perf + 3); in nvbios_perf_table()
70 return perf; in nvbios_perf_table()
83 u32 perf = nvbios_perf_table(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_perf_entry() local
84 if (perf && idx < *cnt) { in nvbios_perf_entry()
85 perf = perf + *hdr + (idx * (*len + (snr * ssz))); in nvbios_perf_entry()
89 return perf; in nvbios_perf_entry()
98 u32 perf = nvbios_perf_entry(bios, idx, ver, hdr, cnt, len); in nvbios_perfEp() local
100 info->pstate = nvbios_rd08(bios, perf + 0x00); in nvbios_perfEp()
101 switch (!!perf * *ver) { in nvbios_perfEp()
105 info->core = nvbios_rd32(bios, perf + 0x01) * 10; in nvbios_perfEp()
106 info->memory = nvbios_rd32(bios, perf + 0x05) * 20; in nvbios_perfEp()
107 info->fanspeed = nvbios_rd08(bios, perf + 0x37); in nvbios_perfEp()
109 info->voltage = nvbios_rd08(bios, perf + 0x38); in nvbios_perfEp()
114 info->fanspeed = nvbios_rd08(bios, perf + 0x04); in nvbios_perfEp()
115 info->voltage = nvbios_rd08(bios, perf + 0x05); in nvbios_perfEp()
116 info->shader = nvbios_rd16(bios, perf + 0x06) * 1000; in nvbios_perfEp()
118 nvbios_rd08(bios, perf + 0x08) * 1000; in nvbios_perfEp()
122 info->memory = nvbios_rd16(bios, perf + 0x0b) * 1000; in nvbios_perfEp()
125 info->memory = nvbios_rd16(bios, perf + 0x0b) * 2000; in nvbios_perfEp()
130 info->fanspeed = nvbios_rd08(bios, perf + 0x04); in nvbios_perfEp()
131 info->voltage = nvbios_rd08(bios, perf + 0x05); in nvbios_perfEp()
132 info->core = nvbios_rd16(bios, perf + 0x06) * 1000; in nvbios_perfEp()
133 info->shader = nvbios_rd16(bios, perf + 0x0a) * 1000; in nvbios_perfEp()
134 info->memory = nvbios_rd16(bios, perf + 0x0c) * 1000; in nvbios_perfEp()
137 info->script = nvbios_rd16(bios, perf + 0x02); in nvbios_perfEp()
140 info->fanspeed = nvbios_rd08(bios, perf + 0x06); in nvbios_perfEp()
141 info->voltage = nvbios_rd08(bios, perf + 0x07); in nvbios_perfEp()
142 info->core = nvbios_rd16(bios, perf + 0x08) * 1000; in nvbios_perfEp()
143 info->shader = nvbios_rd16(bios, perf + 0x0a) * 1000; in nvbios_perfEp()
144 info->memory = nvbios_rd16(bios, perf + 0x0c) * 1000; in nvbios_perfEp()
145 info->vdec = nvbios_rd16(bios, perf + 0x10) * 1000; in nvbios_perfEp()
146 info->disp = nvbios_rd16(bios, perf + 0x14) * 1000; in nvbios_perfEp()
149 info->voltage = nvbios_rd08(bios, perf + 0x02); in nvbios_perfEp()
150 switch (nvbios_rd08(bios, perf + 0xb) & 0x3) { in nvbios_perfEp()
169 return perf; in nvbios_perfEp()
206 u32 perf = nvbios_perf_table(bios, &ver, &hdr, &cnt, &len, &snr, &ssz); in nvbios_perf_fan_parse() local
207 if (!perf) in nvbios_perf_fan_parse()
211 fan->pwm_divisor = nvbios_rd16(bios, perf + 6); in nvbios_perf_fan_parse()