Lines Matching refs:density
301 /* Find addressing table entry based on the device's type and density */
305 u32 index, type, density;
308 density = device_info->density;
312 index = density - 1;
315 switch (density) {
318 index = density + 3;
321 index = density - 1;
1166 static int is_dev_data_valid(u32 type, u32 density, u32 io_width, u32 phy_type,
1173 && (density >= DDR_DENSITY_64Mb
1174 && density <= DDR_DENSITY_8Gb)
1269 u32 density = 0, io_width = 0;
1283 of_property_read_u32(np_ddr, "density", &density);
1286 /* Convert from density in Mb to the density encoding in jedc_ddr.h */
1287 if (density & (density - 1))
1288 dev_info->density = 0;
1290 dev_info->density = __fls(density) - 5;
1338 if (!is_dev_data_valid(pd->device_info->type, pd->device_info->density,
1396 pd->device_info->density, pd->device_info->io_width,