Lines Matching refs:qcom_socinfo

165 struct qcom_socinfo {  struct
262 qcom_socinfo->dbg_root, \
340 static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, in socinfo_debugfs_init() argument
348 qcom_socinfo->dbg_root = debugfs_create_dir("qcom_socinfo", NULL); in socinfo_debugfs_init()
350 qcom_socinfo->info.fmt = __le32_to_cpu(info->fmt); in socinfo_debugfs_init()
352 debugfs_create_x32("info_fmt", 0400, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
353 &qcom_socinfo->info.fmt); in socinfo_debugfs_init()
355 switch (qcom_socinfo->info.fmt) { in socinfo_debugfs_init()
357 qcom_socinfo->info.nmodem_supported = __le32_to_cpu(info->nmodem_supported); in socinfo_debugfs_init()
359 debugfs_create_u32("nmodem_supported", 0400, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
360 &qcom_socinfo->info.nmodem_supported); in socinfo_debugfs_init()
363 qcom_socinfo->info.num_clusters = __le32_to_cpu(info->num_clusters); in socinfo_debugfs_init()
364 qcom_socinfo->info.ncluster_array_offset = __le32_to_cpu(info->ncluster_array_offset); in socinfo_debugfs_init()
365 qcom_socinfo->info.num_defective_parts = __le32_to_cpu(info->num_defective_parts); in socinfo_debugfs_init()
366qcom_socinfo->info.ndefective_parts_array_offset = __le32_to_cpu(info->ndefective_parts_array_offs… in socinfo_debugfs_init()
368 debugfs_create_u32("num_clusters", 0400, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
369 &qcom_socinfo->info.num_clusters); in socinfo_debugfs_init()
370 debugfs_create_u32("ncluster_array_offset", 0400, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
371 &qcom_socinfo->info.ncluster_array_offset); in socinfo_debugfs_init()
372 debugfs_create_u32("num_defective_parts", 0400, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
373 &qcom_socinfo->info.num_defective_parts); in socinfo_debugfs_init()
374 debugfs_create_u32("ndefective_parts_array_offset", 0400, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
375 &qcom_socinfo->info.ndefective_parts_array_offset); in socinfo_debugfs_init()
378 qcom_socinfo->info.nproduct_id = __le32_to_cpu(info->nproduct_id); in socinfo_debugfs_init()
380 debugfs_create_u32("nproduct_id", 0400, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
381 &qcom_socinfo->info.nproduct_id); in socinfo_debugfs_init()
385 qcom_socinfo->info.chip_family = in socinfo_debugfs_init()
387 qcom_socinfo->info.raw_device_family = in socinfo_debugfs_init()
389 qcom_socinfo->info.raw_device_num = in socinfo_debugfs_init()
392 debugfs_create_x32("chip_family", 0400, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
393 &qcom_socinfo->info.chip_family); in socinfo_debugfs_init()
395 qcom_socinfo->dbg_root, in socinfo_debugfs_init()
396 &qcom_socinfo->info.raw_device_family); in socinfo_debugfs_init()
398 qcom_socinfo->dbg_root, in socinfo_debugfs_init()
399 &qcom_socinfo->info.raw_device_num); in socinfo_debugfs_init()
404 qcom_socinfo->info.foundry_id = __le32_to_cpu(info->foundry_id); in socinfo_debugfs_init()
406 debugfs_create_u32("foundry_id", 0400, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
407 &qcom_socinfo->info.foundry_id); in socinfo_debugfs_init()
415 qcom_socinfo->info.hw_plat_subtype = in socinfo_debugfs_init()
419 qcom_socinfo->dbg_root, in socinfo_debugfs_init()
420 &qcom_socinfo->info.hw_plat_subtype); in socinfo_debugfs_init()
423 qcom_socinfo->info.accessory_chip = in socinfo_debugfs_init()
427 qcom_socinfo->dbg_root, in socinfo_debugfs_init()
428 &qcom_socinfo->info.accessory_chip); in socinfo_debugfs_init()
431 qcom_socinfo->info.plat_ver = __le32_to_cpu(info->plat_ver); in socinfo_debugfs_init()
434 qcom_socinfo->dbg_root, in socinfo_debugfs_init()
435 &qcom_socinfo->info.plat_ver); in socinfo_debugfs_init()
438 qcom_socinfo->info.hw_plat = __le32_to_cpu(info->hw_plat); in socinfo_debugfs_init()
441 qcom_socinfo->dbg_root, in socinfo_debugfs_init()
442 &qcom_socinfo->info.hw_plat); in socinfo_debugfs_init()
445 qcom_socinfo->info.raw_ver = __le32_to_cpu(info->raw_ver); in socinfo_debugfs_init()
447 debugfs_create_u32("raw_version", 0400, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
448 &qcom_socinfo->info.raw_ver); in socinfo_debugfs_init()
463 qcom_socinfo->dbg_root); in socinfo_debugfs_init()
473 static void socinfo_debugfs_exit(struct qcom_socinfo *qcom_socinfo) in socinfo_debugfs_exit() argument
475 debugfs_remove_recursive(qcom_socinfo->dbg_root); in socinfo_debugfs_exit()
478 static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, in socinfo_debugfs_init() argument
482 static void socinfo_debugfs_exit(struct qcom_socinfo *qcom_socinfo) { } in socinfo_debugfs_exit() argument
487 struct qcom_socinfo *qs; in qcom_socinfo_probe()
531 struct qcom_socinfo *qs = platform_get_drvdata(pdev); in qcom_socinfo_remove()