Lines Matching refs:shdr
872 struct elf32_shdr *shdr, *name_table_shdr; in pru_rproc_find_interrupt_map() local
881 shdr = (struct elf32_shdr *)(elf_data + ehdr->e_shoff); in pru_rproc_find_interrupt_map()
883 name_table_shdr = shdr + shstrndx; in pru_rproc_find_interrupt_map()
887 for (i = 0; i < shnum; i++, shdr++) { in pru_rproc_find_interrupt_map()
888 u32 size = shdr->sh_size; in pru_rproc_find_interrupt_map()
889 u32 offset = shdr->sh_offset; in pru_rproc_find_interrupt_map()
890 u32 name = shdr->sh_name; in pru_rproc_find_interrupt_map()
907 return shdr; in pru_rproc_find_interrupt_map()
930 const void *shdr; in pru_rproc_parse_fw() local
943 shdr = pru_rproc_find_interrupt_map(dev, fw); in pru_rproc_parse_fw()
944 if (IS_ERR(shdr)) in pru_rproc_parse_fw()
945 return PTR_ERR(shdr); in pru_rproc_parse_fw()
947 if (!shdr) in pru_rproc_parse_fw()
951 sh_offset = elf_shdr_get_sh_offset(class, shdr); in pru_rproc_parse_fw()
953 pru->pru_interrupt_map_sz = elf_shdr_get_sh_size(class, shdr); in pru_rproc_parse_fw()