Lines Matching defs:ptable
268 * @ptable: virtual base of partition table
283 struct smem_ptable *ptable;
822 struct smem_ptable *ptable;
825 ptable = smem->ptable;
826 if (memcmp(ptable->magic, SMEM_PTABLE_MAGIC, sizeof(ptable->magic)))
829 version = le32_to_cpu(ptable->version);
835 return ptable;
840 struct smem_ptable *ptable;
843 ptable = qcom_smem_get_ptable(smem);
844 if (IS_ERR_OR_NULL(ptable))
847 info = (struct smem_info *)&ptable->entry[ptable->num_entries];
909 struct smem_ptable *ptable;
918 ptable = qcom_smem_get_ptable(smem);
919 if (IS_ERR(ptable))
920 return PTR_ERR(ptable);
922 for (i = 0; i < le32_to_cpu(ptable->num_entries); i++) {
923 entry = &ptable->entry[i];
962 struct smem_ptable *ptable;
967 ptable = qcom_smem_get_ptable(smem);
968 if (IS_ERR(ptable))
969 return PTR_ERR(ptable);
971 for (i = 0; i < le32_to_cpu(ptable->num_entries); i++) {
972 entry = &ptable->entry[i];
1019 smem->ptable = devm_ioremap_wc(smem->dev, ptable_start, SZ_4K);
1021 if (!region->virt_base || !smem->ptable)