Lines Matching refs:ptable
64 struct smem_flash_ptable *ptable; in parse_qcomsmem_part() local
76 ptable = qcom_smem_get(SMEM_APPS, SMEM_AARM_PARTITION_TABLE, &len); in parse_qcomsmem_part()
77 if (IS_ERR(ptable)) { in parse_qcomsmem_part()
79 return PTR_ERR(ptable); in parse_qcomsmem_part()
83 if (le32_to_cpu(ptable->magic1) != SMEM_FLASH_PART_MAGIC1 || in parse_qcomsmem_part()
84 le32_to_cpu(ptable->magic2) != SMEM_FLASH_PART_MAGIC2) { in parse_qcomsmem_part()
90 tmpparts = le32_to_cpu(ptable->numparts); in parse_qcomsmem_part()
97 if (le32_to_cpu(ptable->version) <= SMEM_FLASH_PTABLE_V3) { in parse_qcomsmem_part()
100 } else if (le32_to_cpu(ptable->version) == SMEM_FLASH_PTABLE_V4) { in parse_qcomsmem_part()
104 pr_err("Unknown ptable version (%d)", le32_to_cpu(ptable->version)); in parse_qcomsmem_part()
113 ptable = qcom_smem_get(SMEM_APPS, SMEM_AARM_PARTITION_TABLE, &len); in parse_qcomsmem_part()
114 if (IS_ERR(ptable)) { in parse_qcomsmem_part()
116 return PTR_ERR(ptable); in parse_qcomsmem_part()
120 pentry = &ptable->pentry[i]; in parse_qcomsmem_part()
130 pentry = &ptable->pentry[i]; in parse_qcomsmem_part()
155 le32_to_cpu(ptable->version), tmpparts); in parse_qcomsmem_part()