Lines Matching refs:le32_to_cpu

288 	return p + le32_to_cpu(phdr->offset_free_uncached);  in phdr_to_last_uncached_entry()
298 return p + le32_to_cpu(phdr->size) - ALIGN(sizeof(*e), cacheline); in phdr_to_first_cached_entry()
306 return p + le32_to_cpu(phdr->offset_free_cached); in phdr_to_last_cached_entry()
323 le32_to_cpu(e->size); in uncached_entry_next()
331 return p - le32_to_cpu(e->size) - ALIGN(sizeof(*e), cacheline); in cached_entry_next()
345 return p - le32_to_cpu(e->size); in cached_entry_to_item()
386 hdr->padding_data = cpu_to_le16(le32_to_cpu(hdr->size) - size); in qcom_smem_alloc_private()
418 if (WARN_ON(size > le32_to_cpu(header->available))) in qcom_smem_alloc_global()
502 aux_base = le32_to_cpu(entry->aux_base) & AUX_BASE_MASK; in qcom_smem_get_global()
509 *size = le32_to_cpu(entry->size); in qcom_smem_get_global()
510 return area->virt_base + le32_to_cpu(entry->offset); in qcom_smem_get_global()
534 *size = le32_to_cpu(e->size) - in qcom_smem_get_private()
554 *size = le32_to_cpu(e->size) - in qcom_smem_get_private()
638 ret = le32_to_cpu(phdr->offset_free_cached) - in qcom_smem_get_free_space()
639 le32_to_cpu(phdr->offset_free_uncached); in qcom_smem_get_free_space()
642 ret = le32_to_cpu(phdr->offset_free_cached) - in qcom_smem_get_free_space()
643 le32_to_cpu(phdr->offset_free_uncached); in qcom_smem_get_free_space()
646 ret = le32_to_cpu(header->available); in qcom_smem_get_free_space()
688 return le32_to_cpu(versions[SMEM_MASTER_SBL_VERSION_INDEX]); in qcom_smem_get_sbl_version()
700 version = le32_to_cpu(ptable->version); in qcom_smem_get_ptable()
743 for (i = 0; i < le32_to_cpu(ptable->num_entries); i++) { in qcom_smem_set_global_partition()
759 if (!le32_to_cpu(entry->offset) || !le32_to_cpu(entry->size)) { in qcom_smem_set_global_partition()
764 header = smem->regions[0].virt_base + le32_to_cpu(entry->offset); in qcom_smem_set_global_partition()
778 if (le32_to_cpu(header->size) != le32_to_cpu(entry->size)) { in qcom_smem_set_global_partition()
783 size = le32_to_cpu(header->offset_free_uncached); in qcom_smem_set_global_partition()
784 if (size > le32_to_cpu(header->size)) { in qcom_smem_set_global_partition()
791 smem->global_cacheline = le32_to_cpu(entry->cacheline); in qcom_smem_set_global_partition()
810 for (i = 0; i < le32_to_cpu(ptable->num_entries); i++) { in qcom_smem_enumerate_partitions()
818 if (!le32_to_cpu(entry->offset)) in qcom_smem_enumerate_partitions()
821 if (!le32_to_cpu(entry->size)) in qcom_smem_enumerate_partitions()
843 header = smem->regions[0].virt_base + le32_to_cpu(entry->offset); in qcom_smem_enumerate_partitions()
866 if (le32_to_cpu(header->size) != le32_to_cpu(entry->size)) { in qcom_smem_enumerate_partitions()
872 if (le32_to_cpu(header->offset_free_uncached) > le32_to_cpu(header->size)) { in qcom_smem_enumerate_partitions()
879 smem->cacheline[remote_host] = le32_to_cpu(entry->cacheline); in qcom_smem_enumerate_partitions()
943 if (le32_to_cpu(header->initialized) != 1 || in qcom_smem_probe()
944 le32_to_cpu(header->reserved)) { in qcom_smem_probe()