Lines Matching refs:le32_to_cpu

284 	return p + le32_to_cpu(phdr->offset_free_uncached);  in phdr_to_last_uncached_entry()
294 return p + le32_to_cpu(phdr->size) - ALIGN(sizeof(*e), cacheline); in phdr_to_first_cached_entry()
302 return p + le32_to_cpu(phdr->offset_free_cached); in phdr_to_last_cached_entry()
319 le32_to_cpu(e->size); in uncached_entry_next()
327 return p - le32_to_cpu(e->size) - ALIGN(sizeof(*e), cacheline); in cached_entry_next()
341 return p - le32_to_cpu(e->size); in cached_entry_to_item()
382 hdr->padding_data = cpu_to_le16(le32_to_cpu(hdr->size) - size); in qcom_smem_alloc_private()
414 if (WARN_ON(size > le32_to_cpu(header->available))) in qcom_smem_alloc_global()
498 aux_base = le32_to_cpu(entry->aux_base) & AUX_BASE_MASK; in qcom_smem_get_global()
505 *size = le32_to_cpu(entry->size); in qcom_smem_get_global()
506 return region->virt_base + le32_to_cpu(entry->offset); in qcom_smem_get_global()
530 *size = le32_to_cpu(e->size) - in qcom_smem_get_private()
550 *size = le32_to_cpu(e->size) - in qcom_smem_get_private()
634 ret = le32_to_cpu(phdr->offset_free_cached) - in qcom_smem_get_free_space()
635 le32_to_cpu(phdr->offset_free_uncached); in qcom_smem_get_free_space()
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(header->available); in qcom_smem_get_free_space()
684 return le32_to_cpu(versions[SMEM_MASTER_SBL_VERSION_INDEX]); in qcom_smem_get_sbl_version()
696 version = le32_to_cpu(ptable->version); in qcom_smem_get_ptable()
733 header = smem->regions[0].virt_base + le32_to_cpu(entry->offset); in qcom_smem_partition_header()
751 size = le32_to_cpu(header->size); in qcom_smem_partition_header()
752 if (size != le32_to_cpu(entry->size)) { in qcom_smem_partition_header()
754 size, le32_to_cpu(entry->size)); in qcom_smem_partition_header()
758 if (le32_to_cpu(header->offset_free_uncached) > size) { in qcom_smem_partition_header()
760 le32_to_cpu(header->offset_free_uncached), size); in qcom_smem_partition_header()
784 for (i = 0; i < le32_to_cpu(ptable->num_entries); i++) { in qcom_smem_set_global_partition()
786 if (!le32_to_cpu(entry->offset)) in qcom_smem_set_global_partition()
788 if (!le32_to_cpu(entry->size)) in qcom_smem_set_global_partition()
811 smem->global_cacheline = le32_to_cpu(entry->cacheline); in qcom_smem_set_global_partition()
830 for (i = 0; i < le32_to_cpu(ptable->num_entries); i++) { in qcom_smem_enumerate_partitions()
832 if (!le32_to_cpu(entry->offset)) in qcom_smem_enumerate_partitions()
834 if (!le32_to_cpu(entry->size)) in qcom_smem_enumerate_partitions()
861 smem->cacheline[remote_host] = le32_to_cpu(entry->cacheline); in qcom_smem_enumerate_partitions()
947 if (le32_to_cpu(header->initialized) != 1 || in qcom_smem_probe()
948 le32_to_cpu(header->reserved)) { in qcom_smem_probe()