Lines Matching refs:p
79 struct nvbios_ramcfg *p) in nvbios_rammapEp_from_perf() argument
81 memset(p, 0x00, sizeof(*p)); in nvbios_rammapEp_from_perf()
83 p->rammap_00_16_20 = (nvbios_rd08(bios, data + 0x16) & 0x20) >> 5; in nvbios_rammapEp_from_perf()
84 p->rammap_00_16_40 = (nvbios_rd08(bios, data + 0x16) & 0x40) >> 6; in nvbios_rammapEp_from_perf()
85 p->rammap_00_17_02 = (nvbios_rd08(bios, data + 0x17) & 0x02) >> 1; in nvbios_rammapEp_from_perf()
92 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *p) in nvbios_rammapEp() argument
95 memset(p, 0x00, sizeof(*p)); in nvbios_rammapEp()
96 p->rammap_ver = *ver; in nvbios_rammapEp()
97 p->rammap_hdr = *hdr; in nvbios_rammapEp()
100 p->rammap_min = nvbios_rd16(bios, data + 0x00); in nvbios_rammapEp()
101 p->rammap_max = nvbios_rd16(bios, data + 0x02); in nvbios_rammapEp()
102 p->rammap_10_04_02 = (nvbios_rd08(bios, data + 0x04) & 0x02) >> 1; in nvbios_rammapEp()
103 p->rammap_10_04_08 = (nvbios_rd08(bios, data + 0x04) & 0x08) >> 3; in nvbios_rammapEp()
106 p->rammap_min = nvbios_rd16(bios, data + 0x00); in nvbios_rammapEp()
107 p->rammap_max = nvbios_rd16(bios, data + 0x02); in nvbios_rammapEp()
108 p->rammap_11_08_01 = (nvbios_rd08(bios, data + 0x08) & 0x01) >> 0; in nvbios_rammapEp()
109 p->rammap_11_08_0c = (nvbios_rd08(bios, data + 0x08) & 0x0c) >> 2; in nvbios_rammapEp()
110 p->rammap_11_08_10 = (nvbios_rd08(bios, data + 0x08) & 0x10) >> 4; in nvbios_rammapEp()
112 p->rammap_11_09_01ff = (temp & 0x000001ff) >> 0; in nvbios_rammapEp()
113 p->rammap_11_0a_03fe = (temp & 0x0003fe00) >> 9; in nvbios_rammapEp()
114 p->rammap_11_0a_0400 = (temp & 0x00040000) >> 18; in nvbios_rammapEp()
115 p->rammap_11_0a_0800 = (temp & 0x00080000) >> 19; in nvbios_rammapEp()
116 p->rammap_11_0b_01f0 = (temp & 0x01f00000) >> 20; in nvbios_rammapEp()
117 p->rammap_11_0b_0200 = (temp & 0x02000000) >> 25; in nvbios_rammapEp()
118 p->rammap_11_0b_0400 = (temp & 0x04000000) >> 26; in nvbios_rammapEp()
119 p->rammap_11_0b_0800 = (temp & 0x08000000) >> 27; in nvbios_rammapEp()
120 p->rammap_11_0d = nvbios_rd08(bios, data + 0x0d); in nvbios_rammapEp()
121 p->rammap_11_0e = nvbios_rd08(bios, data + 0x0e); in nvbios_rammapEp()
122 p->rammap_11_0f = nvbios_rd08(bios, data + 0x0f); in nvbios_rammapEp()
123 p->rammap_11_11_0c = (nvbios_rd08(bios, data + 0x11) & 0x0c) >> 2; in nvbios_rammapEp()
160 struct nvbios_ramcfg *p) in nvbios_rammapSp_from_perf() argument
167 p->ramcfg_ver = 0; in nvbios_rammapSp_from_perf()
168 p->ramcfg_timing = nvbios_rd08(bios, data + 0x01); in nvbios_rammapSp_from_perf()
169 p->ramcfg_00_03_01 = (nvbios_rd08(bios, data + 0x03) & 0x01) >> 0; in nvbios_rammapSp_from_perf()
170 p->ramcfg_00_03_02 = (nvbios_rd08(bios, data + 0x03) & 0x02) >> 1; in nvbios_rammapSp_from_perf()
171 p->ramcfg_DLLoff = (nvbios_rd08(bios, data + 0x03) & 0x04) >> 2; in nvbios_rammapSp_from_perf()
172 p->ramcfg_00_03_08 = (nvbios_rd08(bios, data + 0x03) & 0x08) >> 3; in nvbios_rammapSp_from_perf()
173 p->ramcfg_RON = (nvbios_rd08(bios, data + 0x03) & 0x10) >> 3; in nvbios_rammapSp_from_perf()
174 p->ramcfg_FBVDDQ = (nvbios_rd08(bios, data + 0x03) & 0x80) >> 7; in nvbios_rammapSp_from_perf()
175 p->ramcfg_00_04_02 = (nvbios_rd08(bios, data + 0x04) & 0x02) >> 1; in nvbios_rammapSp_from_perf()
176 p->ramcfg_00_04_04 = (nvbios_rd08(bios, data + 0x04) & 0x04) >> 2; in nvbios_rammapSp_from_perf()
177 p->ramcfg_00_04_20 = (nvbios_rd08(bios, data + 0x04) & 0x20) >> 5; in nvbios_rammapSp_from_perf()
178 p->ramcfg_00_05 = (nvbios_rd08(bios, data + 0x05) & 0xff) >> 0; in nvbios_rammapSp_from_perf()
179 p->ramcfg_00_06 = (nvbios_rd08(bios, data + 0x06) & 0xff) >> 0; in nvbios_rammapSp_from_perf()
180 p->ramcfg_00_07 = (nvbios_rd08(bios, data + 0x07) & 0xff) >> 0; in nvbios_rammapSp_from_perf()
181 p->ramcfg_00_08 = (nvbios_rd08(bios, data + 0x08) & 0xff) >> 0; in nvbios_rammapSp_from_perf()
182 p->ramcfg_00_09 = (nvbios_rd08(bios, data + 0x09) & 0xff) >> 0; in nvbios_rammapSp_from_perf()
183 p->ramcfg_00_0a_0f = (nvbios_rd08(bios, data + 0x0a) & 0x0f) >> 0; in nvbios_rammapSp_from_perf()
184 p->ramcfg_00_0a_f0 = (nvbios_rd08(bios, data + 0x0a) & 0xf0) >> 4; in nvbios_rammapSp_from_perf()
192 u8 *ver, u8 *hdr, struct nvbios_ramcfg *p) in nvbios_rammapSp() argument
195 p->ramcfg_ver = *ver; in nvbios_rammapSp()
196 p->ramcfg_hdr = *hdr; in nvbios_rammapSp()
199 p->ramcfg_timing = nvbios_rd08(bios, data + 0x01); in nvbios_rammapSp()
200 p->ramcfg_10_02_01 = (nvbios_rd08(bios, data + 0x02) & 0x01) >> 0; in nvbios_rammapSp()
201 p->ramcfg_10_02_02 = (nvbios_rd08(bios, data + 0x02) & 0x02) >> 1; in nvbios_rammapSp()
202 p->ramcfg_10_02_04 = (nvbios_rd08(bios, data + 0x02) & 0x04) >> 2; in nvbios_rammapSp()
203 p->ramcfg_10_02_08 = (nvbios_rd08(bios, data + 0x02) & 0x08) >> 3; in nvbios_rammapSp()
204 p->ramcfg_10_02_10 = (nvbios_rd08(bios, data + 0x02) & 0x10) >> 4; in nvbios_rammapSp()
205 p->ramcfg_10_02_20 = (nvbios_rd08(bios, data + 0x02) & 0x20) >> 5; in nvbios_rammapSp()
206 p->ramcfg_DLLoff = (nvbios_rd08(bios, data + 0x02) & 0x40) >> 6; in nvbios_rammapSp()
207 p->ramcfg_10_03_0f = (nvbios_rd08(bios, data + 0x03) & 0x0f) >> 0; in nvbios_rammapSp()
208 p->ramcfg_10_04_01 = (nvbios_rd08(bios, data + 0x04) & 0x01) >> 0; in nvbios_rammapSp()
209 p->ramcfg_FBVDDQ = (nvbios_rd08(bios, data + 0x04) & 0x08) >> 3; in nvbios_rammapSp()
210 p->ramcfg_10_05 = (nvbios_rd08(bios, data + 0x05) & 0xff) >> 0; in nvbios_rammapSp()
211 p->ramcfg_10_06 = (nvbios_rd08(bios, data + 0x06) & 0xff) >> 0; in nvbios_rammapSp()
212 p->ramcfg_10_07 = (nvbios_rd08(bios, data + 0x07) & 0xff) >> 0; in nvbios_rammapSp()
213 p->ramcfg_10_08 = (nvbios_rd08(bios, data + 0x08) & 0xff) >> 0; in nvbios_rammapSp()
214 p->ramcfg_10_09_0f = (nvbios_rd08(bios, data + 0x09) & 0x0f) >> 0; in nvbios_rammapSp()
215 p->ramcfg_10_09_f0 = (nvbios_rd08(bios, data + 0x09) & 0xf0) >> 4; in nvbios_rammapSp()
218 p->ramcfg_timing = nvbios_rd08(bios, data + 0x00); in nvbios_rammapSp()
219 p->ramcfg_11_01_01 = (nvbios_rd08(bios, data + 0x01) & 0x01) >> 0; in nvbios_rammapSp()
220 p->ramcfg_11_01_02 = (nvbios_rd08(bios, data + 0x01) & 0x02) >> 1; in nvbios_rammapSp()
221 p->ramcfg_11_01_04 = (nvbios_rd08(bios, data + 0x01) & 0x04) >> 2; in nvbios_rammapSp()
222 p->ramcfg_11_01_08 = (nvbios_rd08(bios, data + 0x01) & 0x08) >> 3; in nvbios_rammapSp()
223 p->ramcfg_11_01_10 = (nvbios_rd08(bios, data + 0x01) & 0x10) >> 4; in nvbios_rammapSp()
224 p->ramcfg_DLLoff = (nvbios_rd08(bios, data + 0x01) & 0x20) >> 5; in nvbios_rammapSp()
225 p->ramcfg_11_01_40 = (nvbios_rd08(bios, data + 0x01) & 0x40) >> 6; in nvbios_rammapSp()
226 p->ramcfg_11_01_80 = (nvbios_rd08(bios, data + 0x01) & 0x80) >> 7; in nvbios_rammapSp()
227 p->ramcfg_11_02_03 = (nvbios_rd08(bios, data + 0x02) & 0x03) >> 0; in nvbios_rammapSp()
228 p->ramcfg_11_02_04 = (nvbios_rd08(bios, data + 0x02) & 0x04) >> 2; in nvbios_rammapSp()
229 p->ramcfg_11_02_08 = (nvbios_rd08(bios, data + 0x02) & 0x08) >> 3; in nvbios_rammapSp()
230 p->ramcfg_11_02_10 = (nvbios_rd08(bios, data + 0x02) & 0x10) >> 4; in nvbios_rammapSp()
231 p->ramcfg_11_02_40 = (nvbios_rd08(bios, data + 0x02) & 0x40) >> 6; in nvbios_rammapSp()
232 p->ramcfg_11_02_80 = (nvbios_rd08(bios, data + 0x02) & 0x80) >> 7; in nvbios_rammapSp()
233 p->ramcfg_11_03_0f = (nvbios_rd08(bios, data + 0x03) & 0x0f) >> 0; in nvbios_rammapSp()
234 p->ramcfg_11_03_30 = (nvbios_rd08(bios, data + 0x03) & 0x30) >> 4; in nvbios_rammapSp()
235 p->ramcfg_11_03_c0 = (nvbios_rd08(bios, data + 0x03) & 0xc0) >> 6; in nvbios_rammapSp()
236 p->ramcfg_11_03_f0 = (nvbios_rd08(bios, data + 0x03) & 0xf0) >> 4; in nvbios_rammapSp()
237 p->ramcfg_11_04 = (nvbios_rd08(bios, data + 0x04) & 0xff) >> 0; in nvbios_rammapSp()
238 p->ramcfg_11_06 = (nvbios_rd08(bios, data + 0x06) & 0xff) >> 0; in nvbios_rammapSp()
239 p->ramcfg_11_07_02 = (nvbios_rd08(bios, data + 0x07) & 0x02) >> 1; in nvbios_rammapSp()
240 p->ramcfg_11_07_04 = (nvbios_rd08(bios, data + 0x07) & 0x04) >> 2; in nvbios_rammapSp()
241 p->ramcfg_11_07_08 = (nvbios_rd08(bios, data + 0x07) & 0x08) >> 3; in nvbios_rammapSp()
242 p->ramcfg_11_07_10 = (nvbios_rd08(bios, data + 0x07) & 0x10) >> 4; in nvbios_rammapSp()
243 p->ramcfg_11_07_40 = (nvbios_rd08(bios, data + 0x07) & 0x40) >> 6; in nvbios_rammapSp()
244 p->ramcfg_11_07_80 = (nvbios_rd08(bios, data + 0x07) & 0x80) >> 7; in nvbios_rammapSp()
245 p->ramcfg_11_08_01 = (nvbios_rd08(bios, data + 0x08) & 0x01) >> 0; in nvbios_rammapSp()
246 p->ramcfg_11_08_02 = (nvbios_rd08(bios, data + 0x08) & 0x02) >> 1; in nvbios_rammapSp()
247 p->ramcfg_11_08_04 = (nvbios_rd08(bios, data + 0x08) & 0x04) >> 2; in nvbios_rammapSp()
248 p->ramcfg_11_08_08 = (nvbios_rd08(bios, data + 0x08) & 0x08) >> 3; in nvbios_rammapSp()
249 p->ramcfg_11_08_10 = (nvbios_rd08(bios, data + 0x08) & 0x10) >> 4; in nvbios_rammapSp()
250 p->ramcfg_11_08_20 = (nvbios_rd08(bios, data + 0x08) & 0x20) >> 5; in nvbios_rammapSp()
251 p->ramcfg_11_09 = (nvbios_rd08(bios, data + 0x09) & 0xff) >> 0; in nvbios_rammapSp()