Lines Matching refs:dev_info
1312 struct ddr_device_info *dev_info) in of_get_ddr_info() argument
1318 dev_info->cs1_used = true; in of_get_ddr_info()
1321 dev_info->cal_resistors_per_cs = true; in of_get_ddr_info()
1324 dev_info->type = DDR_TYPE_LPDDR2_S4; in of_get_ddr_info()
1326 dev_info->type = DDR_TYPE_LPDDR2_S2; in of_get_ddr_info()
1333 dev_info->density = 0; in of_get_ddr_info()
1335 dev_info->density = __fls(density) - 5; in of_get_ddr_info()
1339 dev_info->io_width = 0; in of_get_ddr_info()
1341 dev_info->io_width = __fls(io_width) - 1; in of_get_ddr_info()
1348 struct ddr_device_info *dev_info = NULL; in of_get_memory_device_details() local
1358 dev_info = devm_kzalloc(dev, sizeof(*dev_info), GFP_KERNEL); in of_get_memory_device_details()
1360 if (!emif || !pd || !dev_info) { in of_get_memory_device_details()
1367 pd->device_info = dev_info; in of_get_memory_device_details()
1382 of_get_ddr_info(np_emif, np_ddr, dev_info); in of_get_memory_device_details()
1431 struct ddr_device_info *dev_info; in get_device_details() local
1449 dev_info = devm_kzalloc(dev, sizeof(*dev_info), GFP_KERNEL); in get_device_details()
1451 if (!emif || !pd || !dev_info) { in get_device_details()
1458 memcpy(dev_info, pd->device_info, sizeof(*dev_info)); in get_device_details()
1460 pd->device_info = dev_info; in get_device_details()
1471 emif->duplicate = emif1 && (memcmp(dev_info, in get_device_details()
1591 dev_info(&pdev->dev, "%s: device configured with addr = %p and IRQ%d\n", in emif_probe()