Lines Matching +full:timing +full:- +full:0

26 #include <subdev/bios/timing.h>
33 u32 timing = 0; in nvbios_timingTe() local
37 timing = nvbios_rd32(bios, bit_P.offset + 4); in nvbios_timingTe()
40 timing = nvbios_rd32(bios, bit_P.offset + 8); in nvbios_timingTe()
42 if (timing) { in nvbios_timingTe()
43 *ver = nvbios_rd08(bios, timing + 0); in nvbios_timingTe()
45 case 0x10: in nvbios_timingTe()
46 *hdr = nvbios_rd08(bios, timing + 1); in nvbios_timingTe()
47 *cnt = nvbios_rd08(bios, timing + 2); in nvbios_timingTe()
48 *len = nvbios_rd08(bios, timing + 3); in nvbios_timingTe()
49 *snr = 0; in nvbios_timingTe()
50 *ssz = 0; in nvbios_timingTe()
51 return timing; in nvbios_timingTe()
52 case 0x20: in nvbios_timingTe()
53 *hdr = nvbios_rd08(bios, timing + 1); in nvbios_timingTe()
54 *cnt = nvbios_rd08(bios, timing + 5); in nvbios_timingTe()
55 *len = nvbios_rd08(bios, timing + 2); in nvbios_timingTe()
56 *snr = nvbios_rd08(bios, timing + 4); in nvbios_timingTe()
57 *ssz = nvbios_rd08(bios, timing + 3); in nvbios_timingTe()
58 return timing; in nvbios_timingTe()
65 return 0; in nvbios_timingTe()
73 u32 timing = nvbios_timingTe(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_timingEe() local
74 if (timing && idx < *cnt) { in nvbios_timingEe()
75 timing += *hdr + idx * (*len + (snr * ssz)); in nvbios_timingEe()
79 return timing; in nvbios_timingEe()
81 return 0; in nvbios_timingEe()
89 p->timing_ver = *ver; in nvbios_timingEp()
90 p->timing_hdr = *hdr; in nvbios_timingEp()
92 case 0x10: in nvbios_timingEp()
93 p->timing_10_WR = nvbios_rd08(bios, data + 0x00); in nvbios_timingEp()
94 p->timing_10_WTR = nvbios_rd08(bios, data + 0x01); in nvbios_timingEp()
95 p->timing_10_CL = nvbios_rd08(bios, data + 0x02); in nvbios_timingEp()
96 p->timing_10_RC = nvbios_rd08(bios, data + 0x03); in nvbios_timingEp()
97 p->timing_10_RFC = nvbios_rd08(bios, data + 0x05); in nvbios_timingEp()
98 p->timing_10_RAS = nvbios_rd08(bios, data + 0x07); in nvbios_timingEp()
99 p->timing_10_RP = nvbios_rd08(bios, data + 0x09); in nvbios_timingEp()
100 p->timing_10_RCDRD = nvbios_rd08(bios, data + 0x0a); in nvbios_timingEp()
101 p->timing_10_RCDWR = nvbios_rd08(bios, data + 0x0b); in nvbios_timingEp()
102 p->timing_10_RRD = nvbios_rd08(bios, data + 0x0c); in nvbios_timingEp()
103 p->timing_10_13 = nvbios_rd08(bios, data + 0x0d); in nvbios_timingEp()
104 p->timing_10_ODT = nvbios_rd08(bios, data + 0x0e) & 0x07; in nvbios_timingEp()
105 if (p->ramcfg_ver >= 0x10) in nvbios_timingEp()
106 p->ramcfg_RON = nvbios_rd08(bios, data + 0x0e) & 0x07; in nvbios_timingEp()
108 p->timing_10_24 = 0xff; in nvbios_timingEp()
109 p->timing_10_21 = 0; in nvbios_timingEp()
110 p->timing_10_20 = 0; in nvbios_timingEp()
111 p->timing_10_CWL = 0; in nvbios_timingEp()
112 p->timing_10_18 = 0; in nvbios_timingEp()
113 p->timing_10_16 = 0; in nvbios_timingEp()
117 p->timing_10_24 = nvbios_rd08(bios, data + 0x18); in nvbios_timingEp()
122 p->timing_10_21 = nvbios_rd08(bios, data + 0x15); in nvbios_timingEp()
125 p->timing_10_20 = nvbios_rd08(bios, data + 0x14); in nvbios_timingEp()
128 p->timing_10_CWL = nvbios_rd08(bios, data + 0x13); in nvbios_timingEp()
131 p->timing_10_18 = nvbios_rd08(bios, data + 0x12); in nvbios_timingEp()
135 p->timing_10_16 = nvbios_rd08(bios, data + 0x10); in nvbios_timingEp()
139 case 0x20: in nvbios_timingEp()
140 p->timing[0] = nvbios_rd32(bios, data + 0x00); in nvbios_timingEp()
141 p->timing[1] = nvbios_rd32(bios, data + 0x04); in nvbios_timingEp()
142 p->timing[2] = nvbios_rd32(bios, data + 0x08); in nvbios_timingEp()
143 p->timing[3] = nvbios_rd32(bios, data + 0x0c); in nvbios_timingEp()
144 p->timing[4] = nvbios_rd32(bios, data + 0x10); in nvbios_timingEp()
145 p->timing[5] = nvbios_rd32(bios, data + 0x14); in nvbios_timingEp()
146 p->timing[6] = nvbios_rd32(bios, data + 0x18); in nvbios_timingEp()
147 p->timing[7] = nvbios_rd32(bios, data + 0x1c); in nvbios_timingEp()
148 p->timing[8] = nvbios_rd32(bios, data + 0x20); in nvbios_timingEp()
149 p->timing[9] = nvbios_rd32(bios, data + 0x24); in nvbios_timingEp()
150 p->timing[10] = nvbios_rd32(bios, data + 0x28); in nvbios_timingEp()
151 p->timing_20_2e_03 = (nvbios_rd08(bios, data + 0x2e) & 0x03) >> 0; in nvbios_timingEp()
152 p->timing_20_2e_30 = (nvbios_rd08(bios, data + 0x2e) & 0x30) >> 4; in nvbios_timingEp()
153 p->timing_20_2e_c0 = (nvbios_rd08(bios, data + 0x2e) & 0xc0) >> 6; in nvbios_timingEp()
154 p->timing_20_2f_03 = (nvbios_rd08(bios, data + 0x2f) & 0x03) >> 0; in nvbios_timingEp()
155 temp = nvbios_rd16(bios, data + 0x2c); in nvbios_timingEp()
156 p->timing_20_2c_003f = (temp & 0x003f) >> 0; in nvbios_timingEp()
157 p->timing_20_2c_1fc0 = (temp & 0x1fc0) >> 6; in nvbios_timingEp()
158 p->timing_20_30_07 = (nvbios_rd08(bios, data + 0x30) & 0x07) >> 0; in nvbios_timingEp()
159 p->timing_20_30_f8 = (nvbios_rd08(bios, data + 0x30) & 0xf8) >> 3; in nvbios_timingEp()
160 temp = nvbios_rd16(bios, data + 0x31); in nvbios_timingEp()
161 p->timing_20_31_0007 = (temp & 0x0007) >> 0; in nvbios_timingEp()
162 p->timing_20_31_0078 = (temp & 0x0078) >> 3; in nvbios_timingEp()
163 p->timing_20_31_0780 = (temp & 0x0780) >> 7; in nvbios_timingEp()
164 p->timing_20_31_0800 = (temp & 0x0800) >> 11; in nvbios_timingEp()
165 p->timing_20_31_7000 = (temp & 0x7000) >> 12; in nvbios_timingEp()
166 p->timing_20_31_8000 = (temp & 0x8000) >> 15; in nvbios_timingEp()
169 data = 0; in nvbios_timingEp()