Lines Matching refs:perf
35 u16 perf = 0x0000; in nvbios_perf_table() local
39 perf = nv_ro16(bios, bit_P.offset + 0); in nvbios_perf_table()
40 if (perf) { in nvbios_perf_table()
41 *ver = nv_ro08(bios, perf + 0); in nvbios_perf_table()
42 *hdr = nv_ro08(bios, perf + 1); in nvbios_perf_table()
44 *cnt = nv_ro08(bios, perf + 5); in nvbios_perf_table()
45 *len = nv_ro08(bios, perf + 2); in nvbios_perf_table()
46 *snr = nv_ro08(bios, perf + 4); in nvbios_perf_table()
47 *ssz = nv_ro08(bios, perf + 3); in nvbios_perf_table()
48 return perf; in nvbios_perf_table()
51 *cnt = nv_ro08(bios, perf + 2); in nvbios_perf_table()
52 *len = nv_ro08(bios, perf + 3); in nvbios_perf_table()
53 *snr = nv_ro08(bios, perf + 4); in nvbios_perf_table()
54 *ssz = nv_ro08(bios, perf + 5); in nvbios_perf_table()
55 return perf; in nvbios_perf_table()
63 perf = nv_ro16(bios, bios->bmp_offset + 0x94); in nvbios_perf_table()
64 if (perf) { in nvbios_perf_table()
65 *hdr = nv_ro08(bios, perf + 0); in nvbios_perf_table()
66 *ver = nv_ro08(bios, perf + 1); in nvbios_perf_table()
67 *cnt = nv_ro08(bios, perf + 2); in nvbios_perf_table()
68 *len = nv_ro08(bios, perf + 3); in nvbios_perf_table()
71 return perf; in nvbios_perf_table()
84 u16 perf = nvbios_perf_table(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_perf_entry() local
85 if (perf && idx < *cnt) { in nvbios_perf_entry()
86 perf = perf + *hdr + (idx * (*len + (snr * ssz))); in nvbios_perf_entry()
90 return perf; in nvbios_perf_entry()
99 u16 perf = nvbios_perf_entry(bios, idx, ver, hdr, cnt, len); in nvbios_perfEp() local
101 info->pstate = nv_ro08(bios, perf + 0x00); in nvbios_perfEp()
102 switch (!!perf * *ver) { in nvbios_perfEp()
106 info->core = nv_ro32(bios, perf + 0x01) * 10; in nvbios_perfEp()
107 info->memory = nv_ro32(bios, perf + 0x05) * 20; in nvbios_perfEp()
108 info->fanspeed = nv_ro08(bios, perf + 0x37); in nvbios_perfEp()
110 info->voltage = nv_ro08(bios, perf + 0x38); in nvbios_perfEp()
115 info->fanspeed = nv_ro08(bios, perf + 0x04); in nvbios_perfEp()
116 info->voltage = nv_ro08(bios, perf + 0x05); in nvbios_perfEp()
117 info->shader = nv_ro16(bios, perf + 0x06) * 1000; in nvbios_perfEp()
119 nv_ro08(bios, perf + 0x08) * 1000; in nvbios_perfEp()
123 info->memory = nv_ro16(bios, perf + 0x0b) * 1000; in nvbios_perfEp()
126 info->memory = nv_ro16(bios, perf + 0x0b) * 2000; in nvbios_perfEp()
131 info->fanspeed = nv_ro08(bios, perf + 0x04); in nvbios_perfEp()
132 info->voltage = nv_ro08(bios, perf + 0x05); in nvbios_perfEp()
133 info->core = nv_ro16(bios, perf + 0x06) * 1000; in nvbios_perfEp()
134 info->shader = nv_ro16(bios, perf + 0x0a) * 1000; in nvbios_perfEp()
135 info->memory = nv_ro16(bios, perf + 0x0c) * 1000; in nvbios_perfEp()
138 info->script = nv_ro16(bios, perf + 0x02); in nvbios_perfEp()
140 info->fanspeed = nv_ro08(bios, perf + 0x06); in nvbios_perfEp()
141 info->voltage = nv_ro08(bios, perf + 0x07); in nvbios_perfEp()
142 info->core = nv_ro16(bios, perf + 0x08) * 1000; in nvbios_perfEp()
143 info->shader = nv_ro16(bios, perf + 0x0a) * 1000; in nvbios_perfEp()
144 info->memory = nv_ro16(bios, perf + 0x0c) * 1000; in nvbios_perfEp()
145 info->vdec = nv_ro16(bios, perf + 0x10) * 1000; in nvbios_perfEp()
146 info->disp = nv_ro16(bios, perf + 0x14) * 1000; in nvbios_perfEp()
149 info->voltage = nv_ro08(bios, perf + 0x02); in nvbios_perfEp()
154 return perf; in nvbios_perfEp()
191 u16 perf = nvbios_perf_table(bios, &ver, &hdr, &cnt, &len, &snr, &ssz); in nvbios_perf_fan_parse() local
192 if (!perf) in nvbios_perf_fan_parse()
196 fan->pwm_divisor = nv_ro16(bios, perf + 6); in nvbios_perf_fan_parse()