fimage 117 drivers/staging/gs_fpgaboot/gs_fpgaboot.c static void gs_print_header(struct fpgaimage *fimage) fimage 119 drivers/staging/gs_fpgaboot/gs_fpgaboot.c pr_info("file: %s\n", fimage->filename); fimage 120 drivers/staging/gs_fpgaboot/gs_fpgaboot.c pr_info("part: %s\n", fimage->part); fimage 121 drivers/staging/gs_fpgaboot/gs_fpgaboot.c pr_info("date: %s\n", fimage->date); fimage 122 drivers/staging/gs_fpgaboot/gs_fpgaboot.c pr_info("time: %s\n", fimage->time); fimage 123 drivers/staging/gs_fpgaboot/gs_fpgaboot.c pr_info("lendata: %d\n", fimage->lendata); fimage 126 drivers/staging/gs_fpgaboot/gs_fpgaboot.c static int gs_read_bitstream(struct fpgaimage *fimage) fimage 133 drivers/staging/gs_fpgaboot/gs_fpgaboot.c bitdata = (u8 *)fimage->fw_entry->data; fimage 139 drivers/staging/gs_fpgaboot/gs_fpgaboot.c err = readinfo_bitstream(bitdata, fimage->filename, MAX_STR, &offset); fimage 142 drivers/staging/gs_fpgaboot/gs_fpgaboot.c err = readinfo_bitstream(bitdata, fimage->part, MAX_STR, &offset); fimage 145 drivers/staging/gs_fpgaboot/gs_fpgaboot.c err = readinfo_bitstream(bitdata, fimage->date, MAX_STR, &offset); fimage 148 drivers/staging/gs_fpgaboot/gs_fpgaboot.c err = readinfo_bitstream(bitdata, fimage->time, MAX_STR, &offset); fimage 152 drivers/staging/gs_fpgaboot/gs_fpgaboot.c err = readlength_bitstream(bitdata, &fimage->lendata, &offset); fimage 156 drivers/staging/gs_fpgaboot/gs_fpgaboot.c fimage->fpgadata = bitdata + offset; fimage 161 drivers/staging/gs_fpgaboot/gs_fpgaboot.c static int gs_read_image(struct fpgaimage *fimage) fimage 171 drivers/staging/gs_fpgaboot/gs_fpgaboot.c err = gs_read_bitstream(fimage); fimage 180 drivers/staging/gs_fpgaboot/gs_fpgaboot.c gs_print_header(fimage); fimage 185 drivers/staging/gs_fpgaboot/gs_fpgaboot.c static int gs_load_image(struct fpgaimage *fimage, char *fw_file) fimage 191 drivers/staging/gs_fpgaboot/gs_fpgaboot.c err = request_firmware(&fimage->fw_entry, fw_file, &firmware_pdev->dev); fimage 200 drivers/staging/gs_fpgaboot/gs_fpgaboot.c static int gs_download_image(struct fpgaimage *fimage, enum wbus bus_bytes) fimage 206 drivers/staging/gs_fpgaboot/gs_fpgaboot.c bitdata = (u8 *)fimage->fpgadata; fimage 207 drivers/staging/gs_fpgaboot/gs_fpgaboot.c size = fimage->lendata; fimage 266 drivers/staging/gs_fpgaboot/gs_fpgaboot.c static int gs_release_image(struct fpgaimage *fimage) fimage 268 drivers/staging/gs_fpgaboot/gs_fpgaboot.c release_firmware(fimage->fw_entry); fimage 277 drivers/staging/gs_fpgaboot/gs_fpgaboot.c static int gs_set_download_method(struct fpgaimage *fimage) fimage 281 drivers/staging/gs_fpgaboot/gs_fpgaboot.c fimage->dmethod = m_systemmap; fimage 298 drivers/staging/gs_fpgaboot/gs_fpgaboot.c struct fpgaimage *fimage; fimage 300 drivers/staging/gs_fpgaboot/gs_fpgaboot.c fimage = kmalloc(sizeof(*fimage), GFP_KERNEL); fimage 301 drivers/staging/gs_fpgaboot/gs_fpgaboot.c if (!fimage) fimage 304 drivers/staging/gs_fpgaboot/gs_fpgaboot.c err = gs_load_image(fimage, file); fimage 310 drivers/staging/gs_fpgaboot/gs_fpgaboot.c err = gs_read_image(fimage); fimage 316 drivers/staging/gs_fpgaboot/gs_fpgaboot.c err = gs_set_download_method(fimage); fimage 322 drivers/staging/gs_fpgaboot/gs_fpgaboot.c err = gs_download_image(fimage, bus_2byte); fimage 328 drivers/staging/gs_fpgaboot/gs_fpgaboot.c err = gs_release_image(fimage); fimage 334 drivers/staging/gs_fpgaboot/gs_fpgaboot.c kfree(fimage); fimage 338 drivers/staging/gs_fpgaboot/gs_fpgaboot.c err = gs_release_image(fimage); fimage 342 drivers/staging/gs_fpgaboot/gs_fpgaboot.c kfree(fimage);