Lines Matching refs:phdrs
35 static ssize_t mdt_load_split_segment(void *ptr, const struct elf32_phdr *phdrs, in mdt_load_split_segment() argument
39 const struct elf32_phdr *phdr = &phdrs[segment]; in mdt_load_split_segment()
78 const struct elf32_phdr *phdrs; in qcom_mdt_get_size() local
86 phdrs = (struct elf32_phdr *)(ehdr + 1); in qcom_mdt_get_size()
89 phdr = &phdrs[i]; in qcom_mdt_get_size()
127 const struct elf32_phdr *phdrs; in qcom_mdt_read_metadata() local
138 phdrs = (struct elf32_phdr *)(ehdr + 1); in qcom_mdt_read_metadata()
143 if (phdrs[0].p_type == PT_LOAD) in qcom_mdt_read_metadata()
147 if ((phdrs[i].p_flags & QCOM_MDT_TYPE_MASK) == QCOM_MDT_TYPE_HASH) { in qcom_mdt_read_metadata()
158 ehdr_size = phdrs[0].p_filesz; in qcom_mdt_read_metadata()
159 hash_size = phdrs[hash_segment].p_filesz; in qcom_mdt_read_metadata()
170 hash_offset = phdrs[0].p_filesz; in qcom_mdt_read_metadata()
172 } else if (phdrs[hash_segment].p_offset + hash_size <= fw->size) { in qcom_mdt_read_metadata()
174 hash_offset = phdrs[hash_segment].p_offset; in qcom_mdt_read_metadata()
178 ret = mdt_load_split_segment(data + ehdr_size, phdrs, hash_segment, fw_name, dev); in qcom_mdt_read_metadata()
206 const struct elf32_phdr *phdrs; in qcom_mdt_pas_init() local
218 phdrs = (struct elf32_phdr *)(ehdr + 1); in qcom_mdt_pas_init()
221 phdr = &phdrs[i]; in qcom_mdt_pas_init()
267 const struct elf32_phdr *phdrs; in qcom_mdt_bins_are_split() local
273 phdrs = (struct elf32_phdr *)(ehdr + 1); in qcom_mdt_bins_are_split()
281 if (!phdrs[i].p_filesz) in qcom_mdt_bins_are_split()
284 seg_start = phdrs[i].p_offset; in qcom_mdt_bins_are_split()
285 seg_end = phdrs[i].p_offset + phdrs[i].p_filesz; in qcom_mdt_bins_are_split()
298 const struct elf32_phdr *phdrs; in __qcom_mdt_load() local
315 phdrs = (struct elf32_phdr *)(ehdr + 1); in __qcom_mdt_load()
318 phdr = &phdrs[i]; in __qcom_mdt_load()
345 phdr = &phdrs[i]; in __qcom_mdt_load()
379 ret = mdt_load_split_segment(ptr, phdrs, i, fw_name, dev); in __qcom_mdt_load()