Home
last modified time | relevance | path

Searched refs:img_size (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/drivers/fpga/
Dfpga_slg471x5.c70 static int fpga_slg471x5_verify(const struct device *dev, uint8_t *img, uint32_t img_size) in fpga_slg471x5_verify() argument
92 static int fpga_slg471x5_load(const struct device *dev, uint32_t *image_ptr, uint32_t img_size) in fpga_slg471x5_load() argument
99 if (img_size > SLG471X5_NREG) { in fpga_slg471x5_load()
100 img_size = SLG471X5_NREG; in fpga_slg471x5_load()
104 memcpy(buf + 1, image_ptr, img_size); in fpga_slg471x5_load()
107 ret = i2c_write(config->bus.bus, buf, img_size + 1, SLG471X5_ADDR_UNCONFIGURED); in fpga_slg471x5_load()
109 ret = fpga_slg471x5_verify(dev, buf + 1, img_size); in fpga_slg471x5_load()
117 ret = i2c_write_dt(&config->bus, buf, img_size + 1); in fpga_slg471x5_load()
123 ret = fpga_slg471x5_verify(dev, buf + 1, img_size); in fpga_slg471x5_load()
Dfpga_zynqmp.c125 uint32_t *img_size) in parse_header() argument
194 *img_size = in parse_header()
286 uint32_t img_size) in zynqmp_fpga_load() argument
288 uint32_t *addr = parse_header(dev, image_ptr, &img_size); in zynqmp_fpga_load()
295 for (int i = 0; i < (img_size / 4); i++) { in zynqmp_fpga_load()
300 csudma_transfer(img_size); in zynqmp_fpga_load()
Dfpga_eos_s3.c101 static int eos_s3_fpga_load(const struct device *dev, uint32_t *image_ptr, uint32_t img_size) in eos_s3_fpga_load() argument
109 for (uint32_t chunk_cnt = 0; chunk_cnt < (img_size / 4); chunk_cnt++) { in eos_s3_fpga_load()
Dfpga_ice40_spi.c20 static int fpga_ice40_load(const struct device *dev, uint32_t *image_ptr, uint32_t img_size) in fpga_ice40_load() argument
44 crc = crc32_ieee((uint8_t *)image_ptr, img_size); in fpga_ice40_load()
121 tx_buf.len = img_size; in fpga_ice40_load()
Dfpga_ice40_bitbang.c122 static int fpga_ice40_load(const struct device *dev, uint32_t *image_ptr, uint32_t img_size) in fpga_ice40_load() argument
152 crc = crc32_ieee((uint8_t *)image_ptr, img_size); in fpga_ice40_load()
204 img_size); in fpga_ice40_load()
Dfpga_mpfs.c309 static int mpfs_fpga_load(const struct device *dev, uint32_t *image_ptr, uint32_t img_size) in mpfs_fpga_load() argument
323 if (img_size == 0) { in mpfs_fpga_load()
334 program_new_image(flash_dev, (uint8_t *)image_ptr, img_size); in mpfs_fpga_load()
/Zephyr-latest/include/zephyr/drivers/
Dfpga.h33 uint32_t img_size);
102 uint32_t img_size) in fpga_load() argument
111 return api->load(dev, image_ptr, img_size); in fpga_load()
/Zephyr-latest/soc/aspeed/ast10x0/
Dsoc.c76 uint32_t img_size; member
84 .img_size = (uint32_t)&__bss_start,