Home
last modified time | relevance | path

Searched refs:buf_size (Results 1 – 25 of 52) sorted by relevance

123

/u-boot/cmd/
A Dfastboot.c20 uintptr_t buf_addr, size_t buf_size) in do_fastboot_udp() argument
38 uintptr_t buf_addr, size_t buf_size) in do_fastboot_usb() argument
101 size_t buf_size = 0; in do_fastboot() local
121 buf_size = simple_strtoul(*++argv, NULL, 16); in do_fastboot()
138 fastboot_init((void *)buf_addr, buf_size); in do_fastboot()
141 return do_fastboot_udp(argc, argv, buf_addr, buf_size); in do_fastboot()
148 return do_fastboot_usb(argc, argv, buf_addr, buf_size); in do_fastboot()
A Dnvedit_efi.c177 efi_uintn_t buf_size, size; in efi_dump_var_all() local
182 buf_size = 128; in efi_dump_var_all()
183 var_name16 = malloc(buf_size); in efi_dump_var_all()
189 size = buf_size; in efi_dump_var_all()
195 buf_size = size; in efi_dump_var_all()
196 p = realloc(var_name16, buf_size); in efi_dump_var_all()
/u-boot/drivers/power/pmic/
A Di2c_pmic_emul.c26 u8 buf_size; member
35 if (plat->rw_idx + len > plat->buf_size) { in sandbox_i2c_pmic_read_data()
73 if (plat->rw_idx + len > plat->buf_size) { in sandbox_i2c_pmic_write_data()
125 plat->buf_size = plat->reg_count * plat->trans_len; in sandbox_i2c_pmic_probe()
127 plat->reg = calloc(1, plat->buf_size); in sandbox_i2c_pmic_probe()
130 plat->buf_size); in sandbox_i2c_pmic_probe()
135 plat->buf_size); in sandbox_i2c_pmic_probe()
144 memcpy(plat->reg, reg_defaults, plat->buf_size); in sandbox_i2c_pmic_probe()
/u-boot/drivers/fpga/
A Dintel_sdm_mb.c66 args[1] = buf_size; in send_bitstream()
71 wr_ret, rbf_data, buf_size); in send_bitstream()
76 rbf_size -= buf_size; in send_bitstream()
77 rbf_data += buf_size; in send_bitstream()
79 if (buf_size >= rbf_size) in send_bitstream()
80 buf_size = rbf_size; in send_bitstream()
262 u32 *resp_buf, u32 buf_size, u32 client_id) in get_resp_hdr() argument
270 if (*resp_count < buf_size) { in get_resp_hdr()
271 u32 rcv_len_max = buf_size - *resp_count; in get_resp_hdr()
279 *w_index %= buf_size; in get_resp_hdr()
[all …]
/u-boot/lib/efi_selftest/
A Defi_selftest_block_device.c311 efi_uintn_t buf_size; in execute() local
391 buf_size = sizeof(system_info); in execute()
421 buf_size = sizeof(buf) - 1; in execute()
422 ret = file->read(file, &buf_size, buf); in execute()
427 if (buf_size != 12) { in execute()
429 (unsigned int)buf_size); in execute()
460 buf_size = 7; in execute()
492 buf_size = sizeof(buf) - 1; in execute()
493 ret = file->read(file, &buf_size, buf); in execute()
498 if (buf_size != 7) { in execute()
[all …]
/u-boot/drivers/fastboot/
A Dfb_common.c179 void fastboot_init(void *buf_addr, u32 buf_size) in fastboot_init() argument
183 fastboot_buf_size = buf_size ? buf_size : CONFIG_FASTBOOT_BUF_SIZE; in fastboot_init()
/u-boot/include/
A Dvideo_bridge.h64 int (*read_edid)(struct udevice *dev, u8 *buf, int buf_size);
109 int video_bridge_read_edid(struct udevice *dev, u8 *buf, int buf_size);
A Deeprom_layout.h28 unsigned int buf_size, int layout_version);
A Ddisplay.h71 int (*read_edid)(struct udevice *dev, u8 *buf, int buf_size);
A Dfastboot.h122 void fastboot_init(void *buf_addr, u32 buf_size);
/u-boot/arch/arm/mach-bcm283x/
A Dmbox.c99 words = buffer->buf_size / 4; in dump_buf()
119 roundup(buffer->buf_size, ARCH_DMA_MINALIGN))); in bcm2835_mbox_call_prop()
129 roundup(buffer->buf_size, ARCH_DMA_MINALIGN))); in bcm2835_mbox_call_prop()
/u-boot/test/dm/
A Dtee.c53 u64 xfer_flags, u8 *buf, size_t buf_size) in invoke_func_rpc_test() argument
64 rc = tee_shm_alloc(dev, buf_size, in invoke_func_rpc_test()
70 memcpy(shm_buf->addr, buf, buf_size); in invoke_func_rpc_test()
79 param[1].u.memref.size = buf_size; in invoke_func_rpc_test()
87 memcpy(buf, shm_buf->addr, buf_size); in invoke_func_rpc_test()
A Dvideo.c288 int buf_size = 100000; in read_file() local
297 size = os_read(fd, buf, buf_size); in read_file()
300 ut_assert(size < buf_size); in read_file()
/u-boot/drivers/video/
A Ddisplay-uclass.c12 int display_read_edid(struct udevice *dev, u8 *buf, int buf_size) in display_read_edid() argument
18 return ops->read_edid(dev, buf, buf_size); in display_read_edid()
/u-boot/common/eeprom/
A Deeprom_layout.c105 unsigned int buf_size, int layout_version) in eeprom_layout_setup() argument
121 layout->data_size = buf_size; in eeprom_layout_setup()
/u-boot/drivers/video/rockchip/
A Drk_hdmi.c74 int rk_hdmi_read_edid(struct udevice *dev, u8 *buf, int buf_size) in rk_hdmi_read_edid() argument
78 return dw_hdmi_read_edid(&priv->hdmi, buf, buf_size); in rk_hdmi_read_edid()
A Drk_hdmi.h38 int rk_hdmi_read_edid(struct udevice *dev, u8 *buf, int buf_size);
/u-boot/drivers/video/bridge/
A Dvideo-bridge-uclass.c50 int video_bridge_read_edid(struct udevice *dev, u8 *buf, int buf_size) in video_bridge_read_edid() argument
56 return ops->read_edid(dev, buf, buf_size); in video_bridge_read_edid()
/u-boot/board/samsung/common/
A Dmisc.c45 size_t buf_size = CONFIG_SET_DFU_ALT_BUF_LEN; in set_dfu_alt_info() local
46 ALLOC_CACHE_ALIGN_BUFFER(char, buf, buf_size); in set_dfu_alt_info()
58 offset = snprintf(buf, buf_size, "%s", alt_setting); in set_dfu_alt_info()
68 offset += snprintf(buf + offset, buf_size - offset, in set_dfu_alt_info()
/u-boot/lib/libavb/
A Davb_util.h191 size_t buf_size,
246 uint32_t avb_crc32(const uint8_t* buf, size_t buf_size);
/u-boot/common/
A Dedid.c172 int edid_get_timing_validate(u8 *buf, int buf_size, in edid_get_timing_validate() argument
183 if (buf_size < sizeof(*edid) || edid_check_info(edid)) { in edid_get_timing_validate()
228 if (edid->extension_flag && (buf_size >= EDID_EXT_SIZE)) { in edid_get_timing_validate()
239 int edid_get_timing(u8 *buf, int buf_size, struct display_timing *timing, in edid_get_timing() argument
242 return edid_get_timing_validate(buf, buf_size, timing, in edid_get_timing()
A Davb_verify.c266 size_t buf_size; in mmc_read_and_flush() local
287 buf_size = get_sector_buf_size(); in mmc_read_and_flush()
288 if (sectors > buf_size / part->info.blksz) in mmc_read_and_flush()
289 sectors = buf_size / part->info.blksz; in mmc_read_and_flush()
309 size_t buf_size; in mmc_write() local
323 buf_size = get_sector_buf_size(); in mmc_write()
325 if (sectors > buf_size / part->info.blksz) in mmc_write()
326 sectors = buf_size / part->info.blksz; in mmc_write()
/u-boot/drivers/net/
A Dcalxedaxgmac.c208 __le32 buf_size; member
219 p->buf_size = cpu_to_le32(MAX_DESC_BUF_SZ | in desc_set_buf_len()
222 p->buf_size = cpu_to_le32(buf_sz); in desc_set_buf_len()
227 u32 len = le32_to_cpu(p->buf_size); in desc_get_buf_len()
242 end->buf_size |= cpu_to_le32(RXDESC1_END_RING); in desc_init_rx_desc()
/u-boot/lib/efi_loader/
A Defi_variable_tee.c74 ulong buf_size; in optee_mm_communicate() local
87 buf_size = mm_hdr->message_len + sizeof(efi_guid_t) + sizeof(size_t); in optee_mm_communicate()
89 if (dsize != buf_size) in optee_mm_communicate()
98 if (tee_shm_register(conn.tee, comm_buf, buf_size, 0, &shm)) { in optee_mm_communicate()
110 param[0].u.memref.size = buf_size; in optee_mm_communicate()
/u-boot/fs/jffs2/
A Djffs2_1pass.c1473 u32 buf_size; in jffs2_1pass_build_lists() local
1506 buf_size = DEFAULT_EMPTY_SCAN_SIZE; in jffs2_1pass_build_lists()
1516 buf_len, buf_len, buf + buf_size - buf_len); in jffs2_1pass_build_lists()
1518 sm = (void *)buf + buf_size - sizeof(*sm); in jffs2_1pass_build_lists()
1521 sumptr = buf + buf_size - sumlen; in jffs2_1pass_build_lists()
1524 if (sumlen > buf_size) { in jffs2_1pass_build_lists()
1535 buf_size - buf_len, buf_len); in jffs2_1pass_build_lists()
1551 if (buf_size && sumlen > buf_size) in jffs2_1pass_build_lists()
1585 buf_size = sizeof(union jffs2_node_union); in jffs2_1pass_build_lists()
1601 buf_len = min_t(uint32_t, buf_size, sector_ofs in jffs2_1pass_build_lists()
[all …]

Completed in 29 milliseconds

123