Lines Matching defs:qcom_socinfo

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