Lines Matching refs:fw
37 int rproc_elf_sanity_check(struct rproc *rproc, const struct firmware *fw) argument
52 if (!fw) {
57 if (fw->size < sizeof(struct elf32_hdr)) {
62 ehdr = (struct elf32_hdr *)fw->data;
75 if (class == ELFCLASS64 && fw->size < sizeof(struct elf64_hdr)) {
90 phoff = elf_hdr_get_e_phoff(class, fw->data);
91 shoff = elf_hdr_get_e_shoff(class, fw->data);
92 phnum = elf_hdr_get_e_phnum(class, fw->data);
95 if (fw->size < shoff + elf_shdr_get_size) {
105 if (phoff > fw->size) {
128 u64 rproc_elf_get_boot_addr(struct rproc *rproc, const struct firmware *fw) argument
130 return elf_hdr_get_e_entry(fw_elf_get_class(fw), fw->data);
160 int rproc_elf_load_segments(struct rproc *rproc, const struct firmware *fw) argument
166 const u8 *elf_data = fw->data;
167 u8 class = fw_elf_get_class(fw);
197 if (offset + filesz > fw->size) {
199 offset + filesz, fw->size);
248 find_table(struct device *dev, const struct firmware *fw) argument
254 const u8 *elf_data = (void *)fw->data;
255 u8 class = fw_elf_get_class(fw);
256 size_t fw_size = fw->size;
326 int rproc_elf_load_rsc_table(struct rproc *rproc, const struct firmware *fw) argument
331 const u8 *elf_data = fw->data;
333 u8 class = fw_elf_get_class(fw);
336 shdr = find_table(dev, fw);
373 const struct firmware *fw) argument
377 u8 class = fw_elf_get_class(fw);
380 shdr = find_table(&rproc->dev, fw);