Lines Matching refs:density
276 /* Find addressing table entry based on the device's type and density */
280 u32 index, type, density;
283 density = device_info->density;
287 index = density - 1;
290 switch (density) {
293 index = density + 3;
296 index = density - 1;
788 static int is_dev_data_valid(u32 type, u32 density, u32 io_width, u32 phy_type,
795 && (density >= DDR_DENSITY_64Mb
796 && density <= DDR_DENSITY_8Gb)
891 u32 density = 0, io_width = 0;
905 of_property_read_u32(np_ddr, "density", &density);
908 /* Convert from density in Mb to the density encoding in jedc_ddr.h */
909 if (density & (density - 1))
910 dev_info->density = 0;
912 dev_info->density = __fls(density) - 5;
960 if (!is_dev_data_valid(pd->device_info->type, pd->device_info->density,
1018 pd->device_info->density, pd->device_info->io_width,