Lines Matching defs:info

170 	struct socinfo_params info;
260 #define DEBUGFS_ADD(info, name) \
263 info, &qcom_ ##name## _ops)
341 struct socinfo *info)
350 qcom_socinfo->info.fmt = __le32_to_cpu(info->fmt);
353 &qcom_socinfo->info.fmt);
355 switch (qcom_socinfo->info.fmt) {
357 qcom_socinfo->info.nmodem_supported = __le32_to_cpu(info->nmodem_supported);
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);
369 &qcom_socinfo->info.num_clusters);
371 &qcom_socinfo->info.ncluster_array_offset);
373 &qcom_socinfo->info.num_defective_parts);
375 &qcom_socinfo->info.ndefective_parts_array_offset);
378 qcom_socinfo->info.nproduct_id = __le32_to_cpu(info->nproduct_id);
381 &qcom_socinfo->info.nproduct_id);
382 DEBUGFS_ADD(info, chip_id);
385 qcom_socinfo->info.chip_family =
386 __le32_to_cpu(info->chip_family);
387 qcom_socinfo->info.raw_device_family =
388 __le32_to_cpu(info->raw_device_family);
389 qcom_socinfo->info.raw_device_num =
390 __le32_to_cpu(info->raw_device_num);
393 &qcom_socinfo->info.chip_family);
396 &qcom_socinfo->info.raw_device_family);
399 &qcom_socinfo->info.raw_device_num);
404 qcom_socinfo->info.foundry_id = __le32_to_cpu(info->foundry_id);
407 &qcom_socinfo->info.foundry_id);
411 DEBUGFS_ADD(info, pmic_model);
412 DEBUGFS_ADD(info, pmic_die_rev);
415 qcom_socinfo->info.hw_plat_subtype =
416 __le32_to_cpu(info->hw_plat_subtype);
420 &qcom_socinfo->info.hw_plat_subtype);
423 qcom_socinfo->info.accessory_chip =
424 __le32_to_cpu(info->accessory_chip);
428 &qcom_socinfo->info.accessory_chip);
431 qcom_socinfo->info.plat_ver = __le32_to_cpu(info->plat_ver);
435 &qcom_socinfo->info.plat_ver);
438 qcom_socinfo->info.hw_plat = __le32_to_cpu(info->hw_plat);
442 &qcom_socinfo->info.hw_plat);
445 qcom_socinfo->info.raw_ver = __le32_to_cpu(info->raw_ver);
448 &qcom_socinfo->info.raw_ver);
451 DEBUGFS_ADD(info, build_id);
479 struct socinfo *info)
488 struct socinfo *info;
491 info = qcom_smem_get(QCOM_SMEM_HOST_ANY, SMEM_HW_SW_BUILD_ID,
493 if (IS_ERR(info)) {
495 return PTR_ERR(info);
504 le32_to_cpu(info->id));
506 le32_to_cpu(info->id));
508 SOCINFO_MAJOR(le32_to_cpu(info->ver)),
509 SOCINFO_MINOR(le32_to_cpu(info->ver)));
513 le32_to_cpu(info->serial_num));
519 socinfo_debugfs_init(qs, info);
522 add_device_randomness(info, item_size);