Lines Matching defs:ptable
687 struct smem_ptable *ptable;
690 ptable = smem->regions[0].virt_base + smem->regions[0].size - SZ_4K;
691 if (memcmp(ptable->magic, SMEM_PTABLE_MAGIC, sizeof(ptable->magic)))
694 version = le32_to_cpu(ptable->version);
700 return ptable;
705 struct smem_ptable *ptable;
708 ptable = qcom_smem_get_ptable(smem);
709 if (IS_ERR_OR_NULL(ptable))
712 info = (struct smem_info *)&ptable->entry[ptable->num_entries];
771 struct smem_ptable *ptable;
780 ptable = qcom_smem_get_ptable(smem);
781 if (IS_ERR(ptable))
782 return PTR_ERR(ptable);
784 for (i = 0; i < le32_to_cpu(ptable->num_entries); i++) {
785 entry = &ptable->entry[i];
821 struct smem_ptable *ptable;
826 ptable = qcom_smem_get_ptable(smem);
827 if (IS_ERR(ptable))
828 return PTR_ERR(ptable);
830 for (i = 0; i < le32_to_cpu(ptable->num_entries); i++) {
831 entry = &ptable->entry[i];