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