/u-boot/fs/ext4/ |
H A D | ext4_journal.c | 54 journal_ptr[i]->buf = NULL; 57 dirty_block_ptr[i]->buf = NULL; 65 journal_ptr[gindex]->buf = zalloc(fs->blksz); 66 if (!journal_ptr[gindex]->buf) 70 memcpy(journal_ptr[gindex]->buf, temp, fs->blksz); 74 journal_ptr[gindex]->buf = zalloc(fs->blksz); 75 if (!journal_ptr[gindex]->buf) 77 memcpy(journal_ptr[gindex]->buf, fs->sb, SUPERBLOCK_SIZE); 101 (uint64_t)fs->blksz), dirty_block_ptr[i]->buf, 112 free(dirty_block_ptr[i]->buf); 561 char *buf = NULL; local 611 char *buf = NULL; local [all...] |
/u-boot/include/linux/byteorder/ |
H A D | generic.h | 160 static inline void le32_to_cpu_array(u32 *buf, unsigned int words) argument 163 __le32_to_cpus(buf); 164 buf++; 168 static inline void cpu_to_le32_array(u32 *buf, unsigned int words) argument 171 __cpu_to_le32s(buf); 172 buf++;
|
/u-boot/include/ |
H A D | rtc.h | 65 * @buf: Output buffer 70 u8 *buf, unsigned int len); 77 * @buf: Input buffer 82 const u8 *buf, unsigned int len); 143 * @buf: Output buffer 147 int dm_rtc_read(struct udevice *dev, unsigned int reg, u8 *buf, unsigned int len); 154 * @buf: Input buffer 159 const u8 *buf, unsigned int len); 240 static inline int dm_rtc_read(struct udevice *dev, unsigned int reg, u8 *buf, argument 247 const u8 *buf, unsigne 246 dm_rtc_write(struct udevice *dev, unsigned int reg, const u8 *buf, unsigned int len) argument [all...] |
H A D | image-sparse.h | 32 static inline int is_sparse_image(void *buf) argument 34 sparse_header_t *s_header = (sparse_header_t *)buf;
|
H A D | ubi_uboot.h | 51 extern int ubi_volume_write(char *volume, void *buf, size_t size); 52 extern int ubi_volume_read(char *volume, char *buf, size_t size);
|
/u-boot/drivers/gpio/ |
H A D | pcf8575_gpio.c | 51 u8 buf[2] = { word & 0xff, word >> 8, }; local 54 ret = dm_i2c_write(dev, 0, buf, dev_get_driver_data(dev)); 65 u8 buf[2] = {0x00, 0x00}; local 68 ret = dm_i2c_read(dev, 0, buf, dev_get_driver_data(dev)); 75 return (buf[1] << 8) | buf[0];
|
/u-boot/board/socrates/ |
H A D | nand.c | 17 static void sc_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len); 20 static void sc_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len); 45 * @buf: data buffer 48 static void sc_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) argument 55 state | (buf[i] << FPGA_NAND_DATA_SHIFT)); 85 * @buf: buffer to store date 88 static void sc_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) argument 98 buf[i] = (in_be32(this->IO_ADDR_R) >> FPGA_NAND_DATA_SHIFT) & 0xff;
|
/u-boot/board/xilinx/zynq/ |
H A D | board.c | 174 ALLOC_CACHE_ALIGN_BUFFER(char, buf, DFU_ALT_BUF_LEN); 179 memset(buf, 0, sizeof(buf)); 183 snprintf(buf, DFU_ALT_BUF_LEN, 189 snprintf(buf, DFU_ALT_BUF_LEN, 200 env_set("dfu_alt_info", buf);
|
/u-boot/test/dm/ |
H A D | fwu_mdata.c | 55 u8 *buf; local 60 buf = malloc(img.length); 61 if (!buf) 64 memset(buf, 0, img.length); 73 memcpy(buf + addr, img.lines[i].line, len); 75 image = buf;
|
H A D | gpio.c | 29 char buf[80]; local 56 ut_assertok(gpio_get_status(dev, offset, buf, sizeof(buf))); 57 ut_asserteq_str("b4: input: 0 [ ]", buf); 61 ut_assertok(gpio_get_status(dev, offset, buf, sizeof(buf))); 62 ut_asserteq_str("b4: output: 0 [ ]", buf); 65 ut_assertok(gpio_get_status(dev, offset, buf, sizeof(buf))); 66 ut_asserteq_str("b4: output: 1 [ ]", buf); 156 char buf[80]; local 277 char buf[80]; local 295 char buf[80], name[10]; local 789 char buf[80]; local [all...] |
/u-boot/arch/arm/mach-keystone/ |
H A D | ddr3_spd.c | 154 static int ddr3_get_size_in_mb(ddr3_spd_eeprom_t *buf) argument 156 return (((buf->organization & 0x38) >> 3) + 1) * 157 (256 << (buf->density_banks & 0xf)); 160 static int ddrtimingcalculation(ddr3_spd_eeprom_t *buf, struct ddr3_sodimm *spd, argument 165 if ((buf->mem_type != 0x0b) || 166 ((buf->density_banks & 0x70) != 0x00)) 172 mtb = buf->mtb_dividend * 1000 / buf->mtb_divisor; 174 spd->t_ck = buf->tck_min * mtb; 179 spd->rank = ((buf [all...] |
/u-boot/drivers/fpga/ |
H A D | spartan3.c | 31 static int spartan3_sp_load(xilinx_desc *desc, const void *buf, size_t bsize); 32 static int spartan3_sp_dump(xilinx_desc *desc, const void *buf, size_t bsize); 35 static int spartan3_ss_load(xilinx_desc *desc, const void *buf, size_t bsize); 36 static int spartan3_ss_dump(xilinx_desc *desc, const void *buf, size_t bsize); 41 static int spartan3_load(xilinx_desc *desc, const void *buf, size_t bsize, argument 49 ret_val = spartan3_ss_load(desc, buf, bsize); 54 ret_val = spartan3_sp_load(desc, buf, bsize); 65 static int spartan3_dump(xilinx_desc *desc, const void *buf, size_t bsize) argument 72 ret_val = spartan3_ss_dump(desc, buf, bsize); 77 ret_val = spartan3_sp_dump(desc, buf, bsiz 97 spartan3_sp_load(xilinx_desc *desc, const void *buf, size_t bsize) argument 250 spartan3_sp_dump(xilinx_desc *desc, const void *buf, size_t bsize) argument 298 spartan3_ss_load(xilinx_desc *desc, const void *buf, size_t bsize) argument 452 spartan3_ss_dump(xilinx_desc *desc, const void *buf, size_t bsize) argument [all...] |
H A D | virtex2.c | 69 static int virtex2_ssm_load(xilinx_desc *desc, const void *buf, size_t bsize); 70 static int virtex2_ssm_dump(xilinx_desc *desc, const void *buf, size_t bsize); 72 static int virtex2_ss_load(xilinx_desc *desc, const void *buf, size_t bsize); 73 static int virtex2_ss_dump(xilinx_desc *desc, const void *buf, size_t bsize); 75 static int virtex2_load(xilinx_desc *desc, const void *buf, size_t bsize, argument 83 ret_val = virtex2_ss_load(desc, buf, bsize); 88 ret_val = virtex2_ssm_load(desc, buf, bsize); 98 static int virtex2_dump(xilinx_desc *desc, const void *buf, size_t bsize) argument 105 ret_val = virtex2_ss_dump(desc, buf, bsize); 110 ret_val = virtex2_ssm_dump(desc, buf, bsiz 297 virtex2_ssm_load(xilinx_desc *desc, const void *buf, size_t bsize) argument 372 virtex2_ssm_dump(xilinx_desc *desc, const void *buf, size_t bsize) argument 424 virtex2_ss_load(xilinx_desc *desc, const void *buf, size_t bsize) argument 493 virtex2_ss_dump(xilinx_desc *desc, const void *buf, size_t bsize) argument [all...] |
/u-boot/lib/efi_loader/ |
H A D | helloworld.c | 36 * @buf: pointer to buffer address 39 static void uint2dec(u32 value, u16 **buf) argument 41 u16 *pos = *buf; 58 if (c || pos != *buf) 65 if (pos == *buf) 68 *buf = pos; 77 u16 *buf = rev; local 80 uint2dec(systable->hdr.revision >> 16, &buf); 81 *buf++ = '.'; 82 uint2dec(systable->hdr.revision & 0xffff, &buf); [all...] |
/u-boot/board/gardena/smart-gateway-mt7688/ |
H A D | board.c | 96 u8 *buf; local 101 buf = malloc(FACTORY_DATA_SIZE); 102 if (!buf) { 120 (void *)buf); 126 fd = (struct factory_data_values *)buf; 180 free(buf); 213 u8 *buf; local 216 buf = malloc(FACTORY_DATA_SECT_SIZE); 217 if (!buf) { 235 (void *)buf); [all...] |
/u-boot/boot/ |
H A D | scene_textline.c | 21 char *buf; local 32 abuf_init(&tline->buf); 33 if (!abuf_realloc(&tline->buf, max_chars + 1)) 34 return log_msg_ret("buf", -ENOMEM); 35 buf = abuf_data(&tline->buf); 36 *buf = '\0'; 136 memcpy(abuf_data(&tline->buf), abuf_data(&scn->buf), 137 abuf_size(&scn->buf)); [all...] |
/u-boot/cmd/ |
H A D | eficonfig_sbkey.c | 58 * @buf: pointer to file 62 static bool file_have_auth_header(void *buf, efi_uintn_t size) argument 64 struct efi_variable_authentication_2 *auth = buf; 106 char *buf = NULL; local 140 buf = malloc(size); 141 if (!buf) { 145 ret = EFI_CALL(f->getinfo(f, &efi_file_info_guid, &size, buf)); 149 size = ((struct efi_file_info *)buf)->file_size; 150 free(buf); 158 buf 335 char buf[37]; local 388 char buf[50]; local [all...] |
/u-boot/common/ |
H A D | hash.c | 48 const void *buf, unsigned int size, 51 sha1_update((sha1_context *)ctx, buf, size); 75 const void *buf, uint size, 78 sha256_update((sha256_context *)ctx, buf, size); 102 const void *buf, uint size, 105 sha384_update((sha512_context *)ctx, buf, size); 129 const void *buf, uint size, 132 sha512_update((sha512_context *)ctx, buf, size); 156 const void *buf, unsigned int size, 159 *((uint16_t *)ctx) = crc16_ccitt(*((uint16_t *)ctx), buf, siz 47 hash_update_sha1(struct hash_algo *algo, void *ctx, const void *buf, unsigned int size, int is_last) argument 74 hash_update_sha256(struct hash_algo *algo, void *ctx, const void *buf, uint size, int is_last) argument 101 hash_update_sha384(struct hash_algo *algo, void *ctx, const void *buf, uint size, int is_last) argument 128 hash_update_sha512(struct hash_algo *algo, void *ctx, const void *buf, uint size, int is_last) argument 155 hash_update_crc16_ccitt(struct hash_algo *algo, void *ctx, const void *buf, unsigned int size, int is_last) argument 182 hash_update_crc32(struct hash_algo *algo, void *ctx, const void *buf, unsigned int size, int is_last) argument 452 void *buf; local 492 void *buf; local 546 void *buf; local [all...] |
/u-boot/tools/ |
H A D | rkcommon.c | 287 static void do_sha256_hash(uint8_t *buf, uint32_t size, uint8_t *out) argument 292 sha256_update(&ctx, buf, size); 296 static void rkcommon_set_header0(void *buf, struct image_tool_params *params) argument 298 struct header0_info *hdr = buf; 301 memset(buf, '\0', RK_INIT_OFFSET * RK_BLK_SIZE); 321 rc4_encode(buf, RK_BLK_SIZE, rc4_key); 324 static void rkcommon_set_header0_v2(void *buf, struct image_tool_params *params) argument 326 struct header0_info_v2 *hdr = buf; 334 memset(buf, '\0', RK_INIT_OFFSET * RK_BLK_SIZE); 348 image_ptr = buf 357 rkcommon_set_header(void *buf, struct stat *sbuf, int ifd, struct image_tool_params *params) argument 393 rkcommon_parse_header(const void *buf, struct header0_info *header0, struct spl_info **spl_info) argument 439 rkcommon_parse_header_v2(const void *buf, struct header0_info_v2 *header) argument 449 rkcommon_verify_header(unsigned char *buf, int size, struct image_tool_params *params) argument 484 rkcommon_print_header(const void *buf, struct image_tool_params *params) argument 531 rkcommon_rc4_encode_spl(void *buf, unsigned int offset, unsigned int size) argument [all...] |
H A D | pbl_crc32.c | 42 uint32_t pbl_crc32(uint32_t in_crc, const char *buf, uint32_t len) argument 53 crc_table[(crc32_val >> 24) ^ (*buf++ & 0xff)];
|
/u-boot/lib/libavb/ |
H A D | avb_sha.h | 37 uint8_t buf[AVB_SHA256_DIGEST_SIZE]; /* Used for storing the final digest. */ member in struct:__anon10 46 uint8_t buf[AVB_SHA512_DIGEST_SIZE]; /* Used for storing the final digest. */ member in struct:__anon11
|
/u-boot/drivers/mtd/ubi/ |
H A D | debug.c | 31 void *buf; local 34 buf = vmalloc(len); 35 if (!buf) 37 err = mtd_read(ubi->mtd, addr, len, &read, buf); 46 print_hex_dump("", DUMP_PREFIX_OFFSET, 32, 1, buf, len, 1); 48 vfree(buf); 261 char buf[8]; local 282 snprintf(buf, sizeof(buf), "%u\n", d->emulate_power_cut); 284 buf, strle 325 char buf[8] = {0}; local [all...] |
/u-boot/drivers/dfu/ |
H A D | dfu_virt.c | 12 void *buf, long *len) 27 void *buf, long *len) 11 dfu_write_medium_virt(struct dfu_entity *dfu, u64 offset, void *buf, long *len) argument 26 dfu_read_medium_virt(struct dfu_entity *dfu, u64 offset, void *buf, long *len) argument
|
/u-boot/drivers/firmware/scmi/ |
H A D | smt.c | 48 smt->buf = devm_ioremap(dev, resource.start, smt->size); 49 if (!smt->buf) 54 mmu_set_region_dcache_behaviour(ALIGN_DOWN((uintptr_t)smt->buf, MMU_SECTION_SIZE), 70 struct scmi_smt_header *hdr = (void *)smt->buf; 107 struct scmi_smt_header *hdr = (void *)smt->buf; 136 struct scmi_smt_header *hdr = (void *)smt->buf; 148 struct scmi_smt_msg_header *hdr = (void *)smt->buf; 179 struct scmi_smt_msg_header *hdr = (void *)smt->buf;
|
/u-boot/drivers/misc/ |
H A D | nvmem.c | 17 int nvmem_cell_read(struct nvmem_cell *cell, void *buf, size_t size) argument 25 return i2c_eeprom_read(cell->nvmem, cell->offset, buf, size); 27 int ret = misc_read(cell->nvmem, cell->offset, buf, size); 36 return dm_rtc_read(cell->nvmem, cell->offset, buf, size); 42 int nvmem_cell_write(struct nvmem_cell *cell, const void *buf, size_t size) argument 50 return i2c_eeprom_write(cell->nvmem, cell->offset, buf, size); 52 int ret = misc_write(cell->nvmem, cell->offset, buf, size); 61 return dm_rtc_write(cell->nvmem, cell->offset, buf, size);
|