Lines Matching refs:addrmap
1141 static void setup_row_address_map(struct synps_edac_priv *priv, u32 *addrmap) in setup_row_address_map() argument
1146 priv->row_shift[0] = (addrmap[5] & ROW_MAX_VAL_MASK) + ROW_B0_BASE; in setup_row_address_map()
1147 priv->row_shift[1] = ((addrmap[5] >> 8) & in setup_row_address_map()
1150 addrmap_row_b2_10 = (addrmap[5] >> 16) & ROW_MAX_VAL_MASK; in setup_row_address_map()
1157 priv->row_shift[2] = (addrmap[9] & in setup_row_address_map()
1159 priv->row_shift[3] = ((addrmap[9] >> 8) & in setup_row_address_map()
1161 priv->row_shift[4] = ((addrmap[9] >> 16) & in setup_row_address_map()
1163 priv->row_shift[5] = ((addrmap[9] >> 24) & in setup_row_address_map()
1165 priv->row_shift[6] = (addrmap[10] & in setup_row_address_map()
1167 priv->row_shift[7] = ((addrmap[10] >> 8) & in setup_row_address_map()
1169 priv->row_shift[8] = ((addrmap[10] >> 16) & in setup_row_address_map()
1171 priv->row_shift[9] = ((addrmap[10] >> 24) & in setup_row_address_map()
1173 priv->row_shift[10] = (addrmap[11] & in setup_row_address_map()
1177 priv->row_shift[11] = (((addrmap[5] >> 24) & ROW_MAX_VAL_MASK) == in setup_row_address_map()
1178 ROW_MAX_VAL_MASK) ? 0 : (((addrmap[5] >> 24) & in setup_row_address_map()
1180 priv->row_shift[12] = ((addrmap[6] & ROW_MAX_VAL_MASK) == in setup_row_address_map()
1181 ROW_MAX_VAL_MASK) ? 0 : ((addrmap[6] & in setup_row_address_map()
1183 priv->row_shift[13] = (((addrmap[6] >> 8) & ROW_MAX_VAL_MASK) == in setup_row_address_map()
1184 ROW_MAX_VAL_MASK) ? 0 : (((addrmap[6] >> 8) & in setup_row_address_map()
1186 priv->row_shift[14] = (((addrmap[6] >> 16) & ROW_MAX_VAL_MASK) == in setup_row_address_map()
1187 ROW_MAX_VAL_MASK) ? 0 : (((addrmap[6] >> 16) & in setup_row_address_map()
1189 priv->row_shift[15] = (((addrmap[6] >> 24) & ROW_MAX_VAL_MASK) == in setup_row_address_map()
1190 ROW_MAX_VAL_MASK) ? 0 : (((addrmap[6] >> 24) & in setup_row_address_map()
1192 priv->row_shift[16] = ((addrmap[7] & ROW_MAX_VAL_MASK) == in setup_row_address_map()
1193 ROW_MAX_VAL_MASK) ? 0 : ((addrmap[7] & in setup_row_address_map()
1195 priv->row_shift[17] = (((addrmap[7] >> 8) & ROW_MAX_VAL_MASK) == in setup_row_address_map()
1196 ROW_MAX_VAL_MASK) ? 0 : (((addrmap[7] >> 8) & in setup_row_address_map()
1200 static void setup_column_address_map(struct synps_edac_priv *priv, u32 *addrmap) in setup_column_address_map() argument
1210 priv->col_shift[2] = (addrmap[2] & COL_MAX_VAL_MASK) + COL_B2_BASE; in setup_column_address_map()
1211 priv->col_shift[3] = ((addrmap[2] >> 8) & in setup_column_address_map()
1213 priv->col_shift[4] = (((addrmap[2] >> 16) & COL_MAX_VAL_MASK) == in setup_column_address_map()
1214 COL_MAX_VAL_MASK) ? 0 : (((addrmap[2] >> 16) & in setup_column_address_map()
1216 priv->col_shift[5] = (((addrmap[2] >> 24) & COL_MAX_VAL_MASK) == in setup_column_address_map()
1217 COL_MAX_VAL_MASK) ? 0 : (((addrmap[2] >> 24) & in setup_column_address_map()
1219 priv->col_shift[6] = ((addrmap[3] & COL_MAX_VAL_MASK) == in setup_column_address_map()
1220 COL_MAX_VAL_MASK) ? 0 : ((addrmap[3] & in setup_column_address_map()
1222 priv->col_shift[7] = (((addrmap[3] >> 8) & COL_MAX_VAL_MASK) == in setup_column_address_map()
1223 COL_MAX_VAL_MASK) ? 0 : (((addrmap[3] >> 8) & in setup_column_address_map()
1225 priv->col_shift[8] = (((addrmap[3] >> 16) & COL_MAX_VAL_MASK) == in setup_column_address_map()
1226 COL_MAX_VAL_MASK) ? 0 : (((addrmap[3] >> 16) & in setup_column_address_map()
1228 priv->col_shift[9] = (((addrmap[3] >> 24) & COL_MAX_VAL_MASK) == in setup_column_address_map()
1229 COL_MAX_VAL_MASK) ? 0 : (((addrmap[3] >> 24) & in setup_column_address_map()
1233 priv->col_shift[10] = ((addrmap[4] & in setup_column_address_map()
1235 ((addrmap[4] & COL_MAX_VAL_MASK) + in setup_column_address_map()
1237 priv->col_shift[11] = (((addrmap[4] >> 8) & in setup_column_address_map()
1239 (((addrmap[4] >> 8) & COL_MAX_VAL_MASK) + in setup_column_address_map()
1242 priv->col_shift[11] = ((addrmap[4] & in setup_column_address_map()
1244 ((addrmap[4] & COL_MAX_VAL_MASK) + in setup_column_address_map()
1246 priv->col_shift[13] = (((addrmap[4] >> 8) & in setup_column_address_map()
1248 (((addrmap[4] >> 8) & COL_MAX_VAL_MASK) + in setup_column_address_map()
1253 priv->col_shift[10] = (((addrmap[3] >> 24) & in setup_column_address_map()
1255 (((addrmap[3] >> 24) & COL_MAX_VAL_MASK) + in setup_column_address_map()
1257 priv->col_shift[11] = ((addrmap[4] & in setup_column_address_map()
1259 ((addrmap[4] & COL_MAX_VAL_MASK) + in setup_column_address_map()
1262 priv->col_shift[11] = (((addrmap[3] >> 24) & in setup_column_address_map()
1264 (((addrmap[3] >> 24) & COL_MAX_VAL_MASK) + in setup_column_address_map()
1266 priv->col_shift[13] = ((addrmap[4] & in setup_column_address_map()
1268 ((addrmap[4] & COL_MAX_VAL_MASK) + in setup_column_address_map()
1273 priv->col_shift[10] = (((addrmap[3] >> 16) & in setup_column_address_map()
1275 (((addrmap[3] >> 16) & COL_MAX_VAL_MASK) + in setup_column_address_map()
1277 priv->col_shift[11] = (((addrmap[3] >> 24) & in setup_column_address_map()
1279 (((addrmap[3] >> 24) & COL_MAX_VAL_MASK) + in setup_column_address_map()
1281 priv->col_shift[13] = ((addrmap[4] & in setup_column_address_map()
1283 ((addrmap[4] & COL_MAX_VAL_MASK) + in setup_column_address_map()
1286 priv->col_shift[11] = (((addrmap[3] >> 16) & in setup_column_address_map()
1288 (((addrmap[3] >> 16) & COL_MAX_VAL_MASK) + in setup_column_address_map()
1290 priv->col_shift[13] = (((addrmap[3] >> 24) & in setup_column_address_map()
1292 (((addrmap[3] >> 24) & COL_MAX_VAL_MASK) + in setup_column_address_map()
1306 static void setup_bank_address_map(struct synps_edac_priv *priv, u32 *addrmap) in setup_bank_address_map() argument
1308 priv->bank_shift[0] = (addrmap[1] & BANK_MAX_VAL_MASK) + BANK_B0_BASE; in setup_bank_address_map()
1309 priv->bank_shift[1] = ((addrmap[1] >> 8) & in setup_bank_address_map()
1311 priv->bank_shift[2] = (((addrmap[1] >> 16) & in setup_bank_address_map()
1313 (((addrmap[1] >> 16) & BANK_MAX_VAL_MASK) + in setup_bank_address_map()
1318 static void setup_bg_address_map(struct synps_edac_priv *priv, u32 *addrmap) in setup_bg_address_map() argument
1320 priv->bankgrp_shift[0] = (addrmap[8] & in setup_bg_address_map()
1322 priv->bankgrp_shift[1] = (((addrmap[8] >> 8) & BANKGRP_MAX_VAL_MASK) == in setup_bg_address_map()
1323 BANKGRP_MAX_VAL_MASK) ? 0 : (((addrmap[8] >> 8) in setup_bg_address_map()
1328 static void setup_rank_address_map(struct synps_edac_priv *priv, u32 *addrmap) in setup_rank_address_map() argument
1330 priv->rank_shift[0] = ((addrmap[0] & RANK_MAX_VAL_MASK) == in setup_rank_address_map()
1331 RANK_MAX_VAL_MASK) ? 0 : ((addrmap[0] & in setup_rank_address_map()
1345 u32 addrmap[12]; in setup_address_map() local
1352 addrmap[index] = readl(priv->baseaddr + addrmap_offset); in setup_address_map()
1355 setup_row_address_map(priv, addrmap); in setup_address_map()
1357 setup_column_address_map(priv, addrmap); in setup_address_map()
1359 setup_bank_address_map(priv, addrmap); in setup_address_map()
1361 setup_bg_address_map(priv, addrmap); in setup_address_map()
1363 setup_rank_address_map(priv, addrmap); in setup_address_map()