Lines Matching refs:field_val
114 u32 reg_val, field_val; in imx_ddr_size() local
119 field_val = (reg_val & MSTR_DATA_BUS_WIDTH_MASK) >> MSTR_DATA_BUS_WIDTH_SHIFT; in imx_ddr_size()
120 bits += 2 - field_val; in imx_ddr_size()
122 field_val = (reg_val & MSTR_DATA_ACTIVE_RANKS_MASK) >> MSTR_DATA_ACTIVE_RANKS_SHIFT; in imx_ddr_size()
123 if (field_val > 1) in imx_ddr_size()
124 bits += field_val - 1; in imx_ddr_size()
128 field_val = (reg_val & ADDRMAP2_COL_B2_MASK) >> ADDRMAP2_COL_B2_SHIFT; in imx_ddr_size()
129 if (field_val <= 7) in imx_ddr_size()
131 field_val = (reg_val & ADDRMAP2_COL_B3_MASK) >> ADDRMAP2_COL_B3_SHIFT; in imx_ddr_size()
132 if (field_val <= 7) in imx_ddr_size()
134 field_val = (reg_val & ADDRMAP2_COL_B4_MASK) >> ADDRMAP2_COL_B4_SHIFT; in imx_ddr_size()
135 if (field_val <= 7) in imx_ddr_size()
137 field_val = (reg_val & ADDRMAP2_COL_B5_MASK) >> ADDRMAP2_COL_B5_SHIFT; in imx_ddr_size()
138 if (field_val <= 7) in imx_ddr_size()
141 field_val = (reg_val & ADDRMAP3_COL_B6_MASK) >> ADDRMAP3_COL_B6_SHIFT; in imx_ddr_size()
142 if (field_val <= 7) in imx_ddr_size()
144 field_val = (reg_val & ADDRMAP3_COL_B7_MASK) >> ADDRMAP3_COL_B7_SHIFT; in imx_ddr_size()
145 if (field_val <= 7) in imx_ddr_size()
147 field_val = (reg_val & ADDRMAP3_COL_B8_MASK) >> ADDRMAP3_COL_B8_SHIFT; in imx_ddr_size()
148 if (field_val <= 7) in imx_ddr_size()
150 field_val = (reg_val & ADDRMAP3_COL_B9_MASK) >> ADDRMAP3_COL_B9_SHIFT; in imx_ddr_size()
151 if (field_val <= 7) in imx_ddr_size()
154 field_val = (reg_val & ADDRMAP4_COL_B10_MASK) >> ADDRMAP4_COL_B10_SHIFT; in imx_ddr_size()
155 if (field_val <= 7) in imx_ddr_size()
157 field_val = (reg_val & ADDRMAP4_COL_B11_MASK) >> ADDRMAP4_COL_B11_SHIFT; in imx_ddr_size()
158 if (field_val <= 7) in imx_ddr_size()
162 field_val = (reg_val & ADDRMAP5_ROW_B0_MASK) >> ADDRMAP5_ROW_B0_SHIFT; in imx_ddr_size()
163 if (field_val <= 11) in imx_ddr_size()
165 field_val = (reg_val & ADDRMAP5_ROW_B1_MASK) >> ADDRMAP5_ROW_B1_SHIFT; in imx_ddr_size()
166 if (field_val <= 11) in imx_ddr_size()
168 field_val = (reg_val & ADDRMAP5_ROW_B2_10_MASK) >> ADDRMAP5_ROW_B2_10_SHIFT; in imx_ddr_size()
169 if (field_val <= 11) in imx_ddr_size()
171 field_val = (reg_val & ADDRMAP5_ROW_B11_MASK) >> ADDRMAP5_ROW_B11_SHIFT; in imx_ddr_size()
172 if (field_val <= 11) in imx_ddr_size()
175 field_val = (reg_val & ADDRMAP6_ROW_B12_MASK) >> ADDRMAP6_ROW_B12_SHIFT; in imx_ddr_size()
176 if (field_val <= 11) in imx_ddr_size()
178 field_val = (reg_val & ADDRMAP6_ROW_B13_MASK) >> ADDRMAP6_ROW_B13_SHIFT; in imx_ddr_size()
179 if (field_val <= 11) in imx_ddr_size()
181 field_val = (reg_val & ADDRMAP6_ROW_B14_MASK) >> ADDRMAP6_ROW_B14_SHIFT; in imx_ddr_size()
182 if (field_val <= 11) in imx_ddr_size()
184 field_val = (reg_val & ADDRMAP6_ROW_B15_MASK) >> ADDRMAP6_ROW_B15_SHIFT; in imx_ddr_size()
185 if (field_val <= 11) in imx_ddr_size()
189 field_val = (reg_val & ADDRMAP1_BANK_B0_MASK) >> ADDRMAP1_BANK_B0_SHIFT; in imx_ddr_size()
190 if (field_val <= 30) in imx_ddr_size()
192 field_val = (reg_val & ADDRMAP1_BANK_B1_MASK) >> ADDRMAP1_BANK_B1_SHIFT; in imx_ddr_size()
193 if (field_val <= 30) in imx_ddr_size()
195 field_val = (reg_val & ADDRMAP1_BANK_B2_MASK) >> ADDRMAP1_BANK_B2_SHIFT; in imx_ddr_size()
196 if (field_val <= 29) in imx_ddr_size()