/u-boot/lib/efi_loader/ |
A D | efi_file.c | 435 *buffer_size, &actread)) in file_read() 438 *buffer_size = actread; in file_read() 477 *buffer_size = 0; in dir_read() 493 *buffer_size = required_size; in dir_read() 521 bs = *buffer_size; in efi_file_read_int() 527 *buffer_size = bs; in efi_file_read_int() 529 *buffer_size = SIZE_MAX; in efi_file_read_int() 614 if (!*buffer_size) in efi_file_write_int() 626 *buffer_size = actwrite; in efi_file_write_int() 851 if (*buffer_size < 2) { in efi_file_getinfo() [all …]
|
A D | efi_load_initrd.c | 16 efi_uintn_t *buffer_size, void *buffer); 94 efi_uintn_t *buffer_size, void *buffer) in efi_load_file2_initrd() argument 104 buffer_size, buffer); in efi_load_file2_initrd() 112 !buffer_size) { in efi_load_file2_initrd() 149 if (!buffer || *buffer_size < file_sz) { in efi_load_file2_initrd() 151 *buffer_size = file_sz; in efi_load_file2_initrd() 159 ret = fs_read(file, map_to_sysmem(buffer), 0, *buffer_size, in efi_load_file2_initrd() 163 *buffer_size = read_sz; in efi_load_file2_initrd()
|
A D | efi_dt_fixup.c | 110 efi_uintn_t *buffer_size, u32 flags) in efi_dt_fixup() argument 117 EFI_ENTRY("%p, %p, %p, %d", this, dtb, buffer_size, flags); in efi_dt_fixup() 119 if (this != &efi_dt_fixup_prot || !dtb || !buffer_size || in efi_dt_fixup() 136 if (required_size > *buffer_size) { in efi_dt_fixup() 137 *buffer_size = required_size; in efi_dt_fixup() 142 fdt_set_totalsize(dtb, *buffer_size); in efi_dt_fixup()
|
A D | efi_disk.c | 79 u32 media_id, u64 lba, unsigned long buffer_size, in efi_disk_rw_blocks() argument 91 blocks = buffer_size / blksz; in efi_disk_rw_blocks() 98 if (buffer_size & (blksz - 1)) in efi_disk_rw_blocks() 133 u32 media_id, u64 lba, efi_uintn_t buffer_size, in efi_disk_read_blocks() argument 150 if (lba * this->media->block_size + buffer_size > in efi_disk_read_blocks() 162 buffer_size - EFI_LOADER_BOUNCE_BUFFER_SIZE, in efi_disk_read_blocks() 170 buffer_size, buffer); in efi_disk_read_blocks() 177 memcpy(buffer, real_buffer, buffer_size); in efi_disk_read_blocks() 230 buffer_size - EFI_LOADER_BOUNCE_BUFFER_SIZE, in efi_disk_write_blocks() 238 buffer_size, buffer); in efi_disk_write_blocks() [all …]
|
A D | efi_net.c | 418 ulong buffer_size, char *buffer) in efi_net_nvdata() argument 491 size_t buffer_size, void *buffer, in efi_net_transmit() argument 510 if (buffer_size > PKTSIZE_ALIGN) { in efi_net_transmit() 554 memcpy(transmit_buffer, buffer, buffer_size); in efi_net_transmit() 555 net_send_packet(transmit_buffer, buffer_size); in efi_net_transmit() 580 size_t *buffer_size, void *buffer, in efi_net_receive() argument 596 if (!this || !buffer || !buffer_size) { in efi_net_receive() 640 *buffer_size = receive_lengths[rx_packet_idx]; in efi_net_receive() 768 u8 overwrite, efi_uintn_t *buffer_size, in efi_pxe_base_code_mtftp() argument 783 efi_uintn_t *buffer_size, void *buffer_ptr) in efi_pxe_base_code_udp_write() argument [all …]
|
A D | efi_string.c | 26 u16 *efi_create_indexed_name(u16 *buffer, size_t buffer_size, const char *name, in efi_create_indexed_name() argument 35 if (buffer_size < size) in efi_create_indexed_name()
|
A D | efi_boottime.c | 1552 if (!buffer_size) in efi_locate_handle() 1555 if (*buffer_size < size) { in efi_locate_handle() 1556 *buffer_size = size; in efi_locate_handle() 1560 *buffer_size = size; in efi_locate_handle() 1601 buffer_size, buffer); in efi_locate_handle_ext() 1604 buffer_size, buffer)); in efi_locate_handle_ext() 1954 efi_uintn_t buffer_size; in efi_load_image_from_path() local 1982 buffer_size = 0; in efi_load_image_from_path() 2004 *size = buffer_size; in efi_load_image_from_path() 2346 unsigned long buffer_size; in efi_open_protocol_information() local [all …]
|
/u-boot/lib/efi_selftest/ |
A D | efi_selftest_loadimage.c | 170 efi_uintn_t *buffer_size, void *buffer); 174 efi_uintn_t buffer_size, void *buffer); 281 *buffer_size = 0; in read() 282 else if (priv.file_pos + *buffer_size > img.length) in read() 283 *buffer_size = img.length - priv.file_pos; in read() 286 priv.file_pos += *buffer_size; in read() 322 efi_uintn_t *buffer_size, void *buffer) in getinfo() argument 327 if (*buffer_size >= sizeof(struct file_info)) { in getinfo() 331 *buffer_size = sizeof(struct file_info); in getinfo() 342 *buffer_size = sizeof(struct file_system_info); in getinfo() [all …]
|
A D | dtbdump.c | 150 pos < buffer_size - 1) { in efi_input() 296 efi_uintn_t buffer_size; in do_load() local 327 buffer_size = 0; in do_load() 343 buffer_size = info->file_size; in do_load() 344 pages = efi_size_in_pages(buffer_size); in do_load() 357 ret = file->read(file, &buffer_size, dtb); in do_load() 363 ret = dt_fixup_prot->fixup(dt_fixup_prot, dtb, &buffer_size, in do_load() 371 pages = efi_size_in_pages(buffer_size); in do_load() 385 ret = file->read(file, &buffer_size, dtb); in do_load() 390 buffer_size = pages << EFI_PAGE_SHIFT; in do_load() [all …]
|
A D | efi_selftest_manageprotocols.c | 139 size_t buffer_size; in execute() local 171 buffer_size = count; in execute() 220 count = buffer_size; in execute() 242 boottime->set_mem(buffer, sizeof(efi_handle_t) * buffer_size, 0); in execute() 247 count = buffer_size * sizeof(efi_handle_t); in execute() 258 buffer_size = count; in execute() 304 count = buffer_size; in execute() 320 boottime->set_mem(buffer, sizeof(efi_handle_t) * buffer_size, 0); in execute()
|
A D | efi_selftest_load_file.c | 212 efi_uintn_t *buffer_size, in load_file() argument 227 if (*buffer_size < img.length) { in load_file() 228 *buffer_size = img.length; in load_file() 232 *buffer_size = img.length; in load_file() 249 efi_uintn_t *buffer_size, in load_file2() argument 268 if (*buffer_size < img.length) { in load_file2() 269 *buffer_size = img.length; in load_file2() 273 *buffer_size = img.length; in load_file2()
|
A D | efi_selftest_block_device.c | 81 efi_uintn_t buffer_size, void *buffer) in read_blocks() argument 85 if ((lba << LB_BLOCK_SIZE) + buffer_size > img.length) in read_blocks() 89 boottime->copy_mem(buffer, start, buffer_size); in read_blocks() 106 efi_uintn_t buffer_size, void *buffer) in write_blocks() argument 110 if ((lba << LB_BLOCK_SIZE) + buffer_size > img.length) in write_blocks() 114 boottime->copy_mem(start, buffer, buffer_size); in write_blocks()
|
/u-boot/cmd/ |
A D | pstore.c | 38 static unsigned int buffer_size; variable 130 if (pstore_record_size > buffer_size) in pstore_init_buffer_size() 131 buffer_size = pstore_record_size; in pstore_init_buffer_size() 133 if (pstore_console_size > buffer_size) in pstore_init_buffer_size() 134 buffer_size = pstore_console_size; in pstore_init_buffer_size() 136 if (pstore_ftrace_size > buffer_size) in pstore_init_buffer_size() 137 buffer_size = pstore_ftrace_size; in pstore_init_buffer_size() 139 if (pstore_pmsg_size > buffer_size) in pstore_init_buffer_size() 140 buffer_size = pstore_pmsg_size; in pstore_init_buffer_size() 271 if (buffer_size == 0) in pstore_display() [all …]
|
A D | optee_rpmb.c | 74 size_t buffer_size, in read_persistent_value() argument 93 rc = tee_shm_alloc(tee, buffer_size, in read_persistent_value() 108 param[1].u.memref.size = buffer_size; in read_persistent_value() 115 if (param[1].u.memref.size > buffer_size) { in read_persistent_value()
|
A D | bootefi.c | 63 void *buffer, size_t buffer_size) in efi_set_bootdev() argument 69 if (buffer + buffer_size >= image_addr && in efi_set_bootdev() 74 if (efi_check_pe(buffer, buffer_size, NULL) != EFI_SUCCESS) { in efi_set_bootdev() 83 buffer_size = 0; in efi_set_bootdev() 93 image_size = buffer_size; in efi_set_bootdev()
|
/u-boot/drivers/misc/ |
A D | cbmem_console.c | 15 u32 buffer_size; member 27 if (cursor < cbmem_console_p->buffer_size) in cbmemc_putc()
|
/u-boot/tools/ |
A D | ifwitool.c | 1176 while (offset < buffer_size(buff)) { in ifwi_parse() 1182 if (offset >= buffer_size(buff)) { in ifwi_parse() 1228 if (buffer_size(b) != size) { in __bpdt_reset() 1324 size_t buff_size = buffer_size(b); in pad_buffer() 1536 buffer_size(&ifwi)); in ifwi_write() 1539 buffer_size(subpart_buf)); in ifwi_write() 1610 e->length = buffer_size(b); in init_subpart_dir_entry() 1612 return (offset + buffer_size(b)); in init_subpart_dir_entry() 1705 buffer_size(info[i])); in create_subpart() 2062 curr_offset += buffer_size(&b); in ifwi_dir_replace() [all …]
|
/u-boot/drivers/fpga/ |
A D | socfpga_arria10.c | 533 size_t buffer_size = *buffer_bsize; in first_loading_rbf_to_buffer() local 556 if (fit_size > buffer_size) { in first_loading_rbf_to_buffer() 675 buffer_size = rbf_size; in first_loading_rbf_to_buffer() 688 if (rbf_size <= buffer_size) { in first_loading_rbf_to_buffer() 690 buffer_size = rbf_size; in first_loading_rbf_to_buffer() 693 fpga_loadfs->remaining -= buffer_size; in first_loading_rbf_to_buffer() 700 buffer_p, buffer_size, in first_loading_rbf_to_buffer() 711 fpga_loadfs->offset += buffer_size; in first_loading_rbf_to_buffer() 717 *buffer_bsize = buffer_size; in first_loading_rbf_to_buffer()
|
/u-boot/include/ |
A D | efi_dt_fixup.h | 34 efi_uintn_t *buffer_size,
|
A D | efi_api.h | 122 efi_uintn_t *buffer_size, efi_handle_t *buffer); 654 u32 media_id, u64 lba, efi_uintn_t buffer_size, 657 u32 media_id, u64 lba, efi_uintn_t buffer_size, 1175 efi_uintn_t *buffer_size, 1534 u8 overwrite, efi_uintn_t *buffer_size, 1545 efi_uintn_t *buffer_size, void *buffer_ptr); 1551 void *header_ptr, efi_uintn_t *buffer_size, 1595 efi_uintn_t buffer_size; member 1606 efi_uintn_t *buffer_size, void *buffer); 1608 efi_uintn_t *buffer_size, void *buffer); [all …]
|
/u-boot/include/fsl-mc/ |
A D | fsl_dpni.h | 99 MC_CMD_OP(cmd, 4, 32, 16, uint16_t, cfg->pools[0].buffer_size);\ 101 MC_CMD_OP(cmd, 4, 48, 16, uint16_t, cfg->pools[1].buffer_size);\ 103 MC_CMD_OP(cmd, 5, 0, 16, uint16_t, cfg->pools[2].buffer_size);\ 105 MC_CMD_OP(cmd, 5, 16, 16, uint16_t, cfg->pools[3].buffer_size);\ 107 MC_CMD_OP(cmd, 5, 32, 16, uint16_t, cfg->pools[4].buffer_size);\ 109 MC_CMD_OP(cmd, 5, 48, 16, uint16_t, cfg->pools[5].buffer_size);\ 111 MC_CMD_OP(cmd, 6, 0, 16, uint16_t, cfg->pools[6].buffer_size);\ 113 MC_CMD_OP(cmd, 6, 16, 16, uint16_t, cfg->pools[7].buffer_size);\ 568 uint16_t buffer_size; member
|
/u-boot/drivers/usb/gadget/ |
A D | f_fastboot.c | 400 static int fastboot_tx_write(const char *buffer, unsigned int buffer_size) in fastboot_tx_write() argument 405 memcpy(in_req->buf, buffer, buffer_size); in fastboot_tx_write() 406 in_req->length = buffer_size; in fastboot_tx_write() 455 unsigned int buffer_size = req->actual; in rx_handler_dl_image() local 462 if (buffer_size < transfer_size) in rx_handler_dl_image() 463 transfer_size = buffer_size; in rx_handler_dl_image()
|
A D | designware_udc.c | 598 int buffer_size; in udc_setup_ep() local 616 buffer_size = packet_size * 2; in udc_setup_ep() 621 buffer_size = packet_size * 2; in udc_setup_ep() 646 buffer_size = packet_size; in udc_setup_ep() 656 writel(buffer_size / sizeof(int), &in_p->endp_bsorfn); in udc_setup_ep() 662 writel(packet_size | ((buffer_size / sizeof(int)) << 16), in udc_setup_ep() 669 writel(buffer_size / sizeof(int), &in_p->endp_bsorfn); in udc_setup_ep() 698 writel(packet_size | ((buffer_size / sizeof(int)) << 16), in udc_setup_ep()
|
/u-boot/arch/arm/mach-stm32mp/cmd_stm32prog/ |
A D | stm32prog_serial.c | 80 u32 buffer_size) in stm32prog_write() argument 91 buffer_size, in stm32prog_write() 101 if (buffer_size == 0) in stm32prog_write() 108 u8 *buffer, u32 buffer_size) in stm32prog_read() argument 165 ret = dfu_read(dfu_entity, buffer, buffer_size, in stm32prog_read() 175 if (size < buffer_size) { in stm32prog_read() 178 memset(buffer + size, 0, buffer_size - size); in stm32prog_read()
|
/u-boot/drivers/mtd/nand/raw/ |
A D | omap_elm.c | 147 u32 buffer_size = 0x7FF; in elm_config() local 151 val |= ((buffer_size << ELM_LOCATION_CONFIG_ECC_SIZE_POS) & in elm_config()
|