Lines Matching full:density
267 /* Find addressing table entry based on the device's type and density */
271 u32 index, type, density; in get_addressing_table() local
274 density = device_info->density; in get_addressing_table()
278 index = density - 1; in get_addressing_table()
281 switch (density) { in get_addressing_table()
284 index = density + 3; in get_addressing_table()
287 index = density - 1; in get_addressing_table()
778 static int is_dev_data_valid(u32 type, u32 density, u32 io_width, u32 phy_type, in is_dev_data_valid() argument
785 && (density >= DDR_DENSITY_64Mb in is_dev_data_valid()
786 && density <= DDR_DENSITY_8Gb) in is_dev_data_valid()
880 u32 density = 0, io_width = 0; in of_get_ddr_info() local
890 of_property_read_u32(np_ddr, "density", &density); in of_get_ddr_info()
893 /* Convert from density in Mb to the density encoding in jedc_ddr.h */ in of_get_ddr_info()
894 if (density & (density - 1)) in of_get_ddr_info()
895 dev_info->density = 0; in of_get_ddr_info()
897 dev_info->density = __fls(density) - 5; in of_get_ddr_info()
944 if (!is_dev_data_valid(pd->device_info->type, pd->device_info->density, in of_get_memory_device_details()
993 pd->device_info->density, pd->device_info->io_width, in get_device_details()