Searched refs:buf_size (Results 1 - 25 of 65) sorted by relevance

123

/u-boot/cmd/
H A Dfastboot.c21 uintptr_t buf_addr, size_t buf_size)
41 uintptr_t buf_addr, size_t buf_size)
61 uintptr_t buf_addr, size_t buf_size)
125 size_t buf_size = 0; local
145 buf_size = hextoul(*++argv, NULL);
162 fastboot_init((void *)buf_addr, buf_size);
165 return do_fastboot_udp(argc, argv, buf_addr, buf_size);
167 return do_fastboot_tcp(argc, argv, buf_addr, buf_size);
173 return do_fastboot_usb(argc, argv, buf_addr, buf_size);
20 do_fastboot_udp(int argc, char *const argv[], uintptr_t buf_addr, size_t buf_size) argument
40 do_fastboot_tcp(int argc, char *const argv[], uintptr_t buf_addr, size_t buf_size) argument
60 do_fastboot_usb(int argc, char *const argv[], uintptr_t buf_addr, size_t buf_size) argument
H A Dnvedit_efi.c143 efi_uintn_t buf_size, size; local
148 buf_size = 128;
149 var_name16 = malloc(buf_size);
155 size = buf_size;
161 buf_size = size;
162 p = realloc(var_name16, buf_size);
/u-boot/include/
H A Dvideo_bridge.h61 * @buf_size: Buffer size
64 int (*read_edid)(struct udevice *dev, u8 *buf, int buf_size);
106 * @buf_size: Buffer size
109 int video_bridge_read_edid(struct udevice *dev, u8 *buf, int buf_size);
H A Deeprom_layout.h28 unsigned int buf_size, int layout_version);
H A Ddisplay.h68 * @buf_size: Buffer size (should be EDID_SIZE)
71 int (*read_edid)(struct udevice *dev, u8 *buf, int buf_size);
H A Dfastboot.h122 * @buf_size: Size of download buffer, or zero for default
124 void fastboot_init(void *buf_addr, u32 buf_size);
H A Dcli.h276 * @buf_size: Buffer size, including nul terminator
278 void cli_cread_init(struct cli_line_state *cls, char *buf, uint buf_size);
/u-boot/drivers/power/pmic/
H A Di2c_pmic_emul.c27 u8 buf_size; member in struct:sandbox_i2c_pmic_plat_data
36 if (plat->rw_idx + len > plat->buf_size) {
74 if (plat->rw_idx + len > plat->buf_size) {
126 plat->buf_size = plat->reg_count * plat->trans_len;
128 plat->reg = calloc(1, plat->buf_size);
131 plat->buf_size);
136 plat->buf_size);
145 memcpy(plat->reg, reg_defaults, plat->buf_size);
/u-boot/drivers/serial/
H A Dserial_octeon_pcie_console.c44 u32 buf_size; member in struct:octeon_pcie_console
103 avail = buffer_avail_bytes(cons_ptr->buf_size,
125 avail = buffer_avail_bytes(cons_ptr->buf_size,
133 while (0 == (avail = buffer_avail_bytes(cons_ptr->buf_size,
147 if (cons_ptr->input_read_index + read_size >= cons_ptr->buf_size)
148 read_size = cons_ptr->buf_size - cons_ptr->input_read_index;
152 (cons_ptr->input_read_index + read_size) % cons_ptr->buf_size;
176 avail = buffer_free_bytes(cons_ptr->buf_size,
188 cons_ptr->buf_size) {
189 write_size = cons_ptr->buf_size
[all...]
/u-boot/drivers/fpga/
H A Dintel_sdm_mb.c60 size_t buf_size = (rbf_size > BITSTREAM_CHUNK_SIZE) ? local
66 args[1] = buf_size;
70 debug("wr_ret = %d, rbf_data = %p, buf_size = %08lx\n",
71 wr_ret, rbf_data, buf_size);
76 rbf_size -= buf_size;
77 rbf_data += buf_size;
79 if (buf_size >= rbf_size)
80 buf_size = rbf_size;
262 u32 *resp_buf, u32 buf_size, u32 client_id)
270 if (*resp_count < buf_size) {
261 get_resp_hdr(u32 *r_index, u32 *w_index, u32 *resp_count, u32 *resp_buf, u32 buf_size, u32 client_id) argument
[all...]
/u-boot/drivers/fastboot/
H A Dfb_common.c221 * @buf_size: Size of download buffer, or zero for default
223 void fastboot_init(void *buf_addr, u32 buf_size) argument
227 fastboot_buf_size = buf_size ? buf_size : CONFIG_FASTBOOT_BUF_SIZE;
/u-boot/drivers/video/rockchip/
H A Drk_hdmi.h32 * this function calls dw_hdmi_read_edid, which ignores buf_size
38 * @buf_size: number of bytes in the buffer
41 int rk_hdmi_read_edid(struct udevice *dev, u8 *buf, int buf_size);
H A Drk_hdmi.c73 int rk_hdmi_read_edid(struct udevice *dev, u8 *buf, int buf_size) argument
77 return dw_hdmi_read_edid(&priv->hdmi, buf, buf_size);
/u-boot/board/samsung/common/
H A Dmisc.c45 size_t buf_size = CFG_SET_DFU_ALT_BUF_LEN; local
46 ALLOC_CACHE_ALIGN_BUFFER(char, buf, buf_size);
58 offset = snprintf(buf, buf_size, "%s", alt_setting);
68 offset += snprintf(buf + offset, buf_size - offset,
/u-boot/lib/efi_selftest/
H A Defi_selftest_block_device.c313 efi_uintn_t buf_size; local
394 buf_size = sizeof(system_info);
395 ret = root->getinfo(root, &guid_file_system_info, &buf_size,
424 buf_size = sizeof(buf) - 1;
425 ret = file->read(file, &buf_size, buf);
430 if (buf_size != 12) {
432 (unsigned int)buf_size);
487 buf_size = 7;
489 boottime->copy_mem(buf, "U-Boot", buf_size);
490 ret = file->write(file, &buf_size, bu
[all...]
/u-boot/drivers/firmware/scmi/
H A Dsmt.c146 struct scmi_msg *msg, size_t *buf_size)
160 *buf_size = msg->in_msg_sz + sizeof(hdr->msg_header);
177 struct scmi_msg *msg, size_t buf_size)
181 if (buf_size > msg->out_msg_sz + sizeof(hdr->msg_header)) {
186 msg->out_msg_sz = buf_size - sizeof(hdr->msg_header);
145 scmi_msg_to_smt_msg(struct udevice *dev, struct scmi_smt *smt, struct scmi_msg *msg, size_t *buf_size) argument
176 scmi_msg_from_smt_msg(struct udevice *dev, struct scmi_smt *smt, struct scmi_msg *msg, size_t buf_size) argument
H A Dsmt.h114 * @buf_size: Size of the full SMT_MSG buffer transmitted
117 struct scmi_msg *msg, size_t *buf_size);
124 * @buf_size: Size of the full SMT_MSG buffer received
127 struct scmi_msg *msg, size_t buf_size);
/u-boot/arch/arm/mach-bcm283x/
H A Dmbox.c99 words = buffer->buf_size / 4;
119 roundup(buffer->buf_size, ARCH_DMA_MINALIGN)));
129 roundup(buffer->buf_size, ARCH_DMA_MINALIGN)));
/u-boot/drivers/video/
H A Ddisplay-uclass.c14 int display_read_edid(struct udevice *dev, u8 *buf, int buf_size) argument
20 return ops->read_edid(dev, buf, buf_size);
/u-boot/common/eeprom/
H A Deeprom_layout.c101 * @buf_size: Size of buf in bytes.
105 unsigned int buf_size, int layout_version)
121 layout->data_size = buf_size;
104 eeprom_layout_setup(struct eeprom_layout *layout, unsigned char *buf, unsigned int buf_size, int layout_version) argument
/u-boot/test/dm/
H A Dtee.c53 u64 xfer_flags, u8 *buf, size_t buf_size)
64 rc = tee_shm_alloc(dev, buf_size,
70 memcpy(shm_buf->addr, buf, buf_size);
79 param[1].u.memref.size = buf_size;
87 memcpy(buf, shm_buf->addr, buf_size);
51 invoke_func_rpc_test(struct udevice *dev, u32 session, u64 op, u64 busnum, u64 chip_addr, u64 xfer_flags, u8 *buf, size_t buf_size) argument
/u-boot/lib/libavb/
H A Davb_util.h183 * bytes) and puts the result in |buf| which holds |buf_size|
191 size_t buf_size,
245 /* Calculates the CRC-32 for data in |buf| of size |buf_size|. */
246 uint32_t avb_crc32(const uint8_t* buf, size_t buf_size);
/u-boot/drivers/video/bridge/
H A Dvideo-bridge-uclass.c52 int video_bridge_read_edid(struct udevice *dev, u8 *buf, int buf_size) argument
58 return ops->read_edid(dev, buf, buf_size);
/u-boot/lib/efi_loader/
H A Defi_helper.c249 efi_uintn_t buf_size = *size; local
251 ret = efi_get_next_variable_name_int(&buf_size, *buf, guid);
255 p = realloc(*buf, buf_size);
260 *size = buf_size;
261 ret = efi_get_next_variable_name_int(&buf_size, *buf, guid);
/u-boot/common/
H A Dedid.c195 int edid_get_timing_validate(u8 *buf, int buf_size, argument
205 if (buf_size < sizeof(*edid) || edid_check_info(edid)) {
225 if (!found && edid->extension_flag && buf_size >= EDID_EXT_SIZE) {
254 if (edid->extension_flag && (buf_size >= EDID_EXT_SIZE)) {
265 int edid_get_timing(u8 *buf, int buf_size, struct display_timing *timing, argument
268 return edid_get_timing_validate(buf, buf_size, timing,

Completed in 359 milliseconds

123