Lines Matching defs:ptable
46 * @numparts: Number of partitions in this ptable
47 * @pentry: Flash partition entries belonging to this ptable
64 struct smem_flash_ptable *ptable;
76 ptable = qcom_smem_get(SMEM_APPS, SMEM_AARM_PARTITION_TABLE, &len);
77 if (IS_ERR(ptable)) {
78 if (PTR_ERR(ptable) != -EPROBE_DEFER)
80 return PTR_ERR(ptable);
83 /* Verify ptable magic */
84 if (le32_to_cpu(ptable->magic1) != SMEM_FLASH_PART_MAGIC1 ||
85 le32_to_cpu(ptable->magic2) != SMEM_FLASH_PART_MAGIC2) {
91 tmpparts = le32_to_cpu(ptable->numparts);
98 if (le32_to_cpu(ptable->version) <= SMEM_FLASH_PTABLE_V3) {
101 } else if (le32_to_cpu(ptable->version) == SMEM_FLASH_PTABLE_V4) {
105 pr_err("Unknown ptable version (%d)", le32_to_cpu(ptable->version));
114 ptable = qcom_smem_get(SMEM_APPS, SMEM_AARM_PARTITION_TABLE, &len);
115 if (IS_ERR(ptable)) {
117 return PTR_ERR(ptable);
121 pentry = &ptable->pentry[i];
131 pentry = &ptable->pentry[i];
156 le32_to_cpu(ptable->version), tmpparts);