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