Lines Matching refs:ehdr
82 const struct elf32_hdr *ehdr; in qcom_mdt_get_size() local
87 ehdr = (struct elf32_hdr *)fw->data; in qcom_mdt_get_size()
88 phdrs = (struct elf32_phdr *)(ehdr + 1); in qcom_mdt_get_size()
90 for (i = 0; i < ehdr->e_phnum; i++) { in qcom_mdt_get_size()
130 const struct elf32_hdr *ehdr; in qcom_mdt_read_metadata() local
139 ehdr = (struct elf32_hdr *)fw->data; in qcom_mdt_read_metadata()
140 phdrs = (struct elf32_phdr *)(ehdr + 1); in qcom_mdt_read_metadata()
142 if (ehdr->e_phnum < 2) in qcom_mdt_read_metadata()
148 for (i = 1; i < ehdr->e_phnum; i++) { in qcom_mdt_read_metadata()
210 const struct elf32_hdr *ehdr; in qcom_mdt_pas_init() local
219 ehdr = (struct elf32_hdr *)fw->data; in qcom_mdt_pas_init()
220 phdrs = (struct elf32_phdr *)(ehdr + 1); in qcom_mdt_pas_init()
222 for (i = 0; i < ehdr->e_phnum; i++) { in qcom_mdt_pas_init()
270 const struct elf32_hdr *ehdr; in qcom_mdt_bins_are_split() local
274 ehdr = (struct elf32_hdr *)fw->data; in qcom_mdt_bins_are_split()
275 phdrs = (struct elf32_phdr *)(ehdr + 1); in qcom_mdt_bins_are_split()
277 for (i = 0; i < ehdr->e_phnum; i++) { in qcom_mdt_bins_are_split()
302 const struct elf32_hdr *ehdr; in __qcom_mdt_load() local
316 ehdr = (struct elf32_hdr *)fw->data; in __qcom_mdt_load()
317 phdrs = (struct elf32_phdr *)(ehdr + 1); in __qcom_mdt_load()
319 for (i = 0; i < ehdr->e_phnum; i++) { in __qcom_mdt_load()
346 for (i = 0; i < ehdr->e_phnum; i++) { in __qcom_mdt_load()