Home
last modified time | relevance | path

Searched full:buffer_size (Results 1 – 25 of 55) sorted by relevance

123

/openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/ez-ipupdate/files/
H A D0001-ez-ipupdate-Include-time.h-for-time-API-prototype.patch29 limit = BUFFER_SIZE - 1 - strlen(buf);
31 - snprintf(buf, BUFFER_SIZE, "Content-length: %d\015\012", strlen(putbuf));
32 + snprintf(buf, BUFFER_SIZE, "Content-length: %lu\015\012", strlen(putbuf));
34 snprintf(buf, BUFFER_SIZE, "\015\012");
38 limit = BUFFER_SIZE - 1 - strlen(buf);
40 - snprintf(buf, BUFFER_SIZE, "Content-length: %d\015\012", strlen(putbuf));
41 + snprintf(buf, BUFFER_SIZE, "Content-length: %lu\015\012", strlen(putbuf));
43 snprintf(buf, BUFFER_SIZE, "\015\012");
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/
H A D0016-pass-correct-parameters-to-getdents64.patch8 … n = getdents64(dir_fd, (uint8_t*) de->buffer + de->buffer_size, bs - de->buffer_size);
28 assert(bs > de->buffer_size);
30 … n = getdents64(dir_fd, (uint8_t*) de->buffer + de->buffer_size, bs - de->buffer_size);
31 …etdents64(dir_fd, (struct dirent*)((uint8_t*) de->buffer + de->buffer_size), bs - de->buffer_size);
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd/
H A D0016-pass-correct-parameters-to-getdents64.patch8 … n = getdents64(dir_fd, (uint8_t*) de->buffer + de->buffer_size, bs - de->buffer_size);
28 assert(bs > de->buffer_size);
30 … n = getdents64(dir_fd, (uint8_t*) de->buffer + de->buffer_size, bs - de->buffer_size);
31 …etdents64(dir_fd, (struct dirent*)((uint8_t*) de->buffer + de->buffer_size), bs - de->buffer_size);
/openbmc/u-boot/lib/efi_loader/
H A Defi_file.c302 static efi_status_t file_read(struct file_handle *fh, u64 *buffer_size, in file_read() argument
308 *buffer_size, &actread)) in file_read()
311 *buffer_size = actread; in file_read()
317 static efi_status_t dir_read(struct file_handle *fh, u64 *buffer_size, in dir_read() argument
357 if (*buffer_size == 0) in dir_read()
358 *buffer_size = sizeof(*info); in dir_read()
360 *buffer_size = 0; in dir_read()
366 if (*buffer_size < required_size) { in dir_read()
367 *buffer_size = required_size; in dir_read()
372 *buffer_size = required_size; in dir_read()
[all …]
H A Defi_disk.c57 u32 media_id, u64 lba, unsigned long buffer_size, in efi_disk_rw_blocks() argument
69 blocks = buffer_size / blksz; in efi_disk_rw_blocks()
76 if (buffer_size & (blksz - 1)) in efi_disk_rw_blocks()
96 u32 media_id, u64 lba, efi_uintn_t buffer_size, in efi_disk_read_blocks() argument
103 if (buffer_size > EFI_LOADER_BOUNCE_BUFFER_SIZE) { in efi_disk_read_blocks()
110 buffer_size - EFI_LOADER_BOUNCE_BUFFER_SIZE, in efi_disk_read_blocks()
118 buffer_size, buffer); in efi_disk_read_blocks()
120 r = efi_disk_rw_blocks(this, media_id, lba, buffer_size, real_buffer, in efi_disk_read_blocks()
125 memcpy(buffer, real_buffer, buffer_size); in efi_disk_read_blocks()
131 u32 media_id, u64 lba, efi_uintn_t buffer_size, in efi_disk_write_blocks() argument
[all …]
H A Defi_net.c301 * @buffer_size: size of buffer
307 ulong buffer_size, char *buffer) in efi_net_nvdata() argument
309 EFI_ENTRY("%p, %x, %lx, %lx, %p", this, read_write, offset, buffer_size, in efi_net_nvdata()
373 * @buffer_size: size of the buffer to receive the packet
382 size_t buffer_size, void *buffer, in efi_net_transmit() argument
389 (unsigned long)header_size, (unsigned long)buffer_size, in efi_net_transmit()
401 if (buffer_size > PKTSIZE_ALIGN) { in efi_net_transmit()
427 memcpy(transmit_buffer, buffer, buffer_size); in efi_net_transmit()
428 net_send_packet(transmit_buffer, buffer_size); in efi_net_transmit()
444 * @buffer_size: size of the buffer to receive the packet
[all …]
H A Defi_boottime.c1313 * @buffer_size: size of the buffer to receive the handles in bytes
1324 efi_uintn_t *buffer_size, efi_handle_t *buffer) in efi_locate_handle() argument
1351 if (!buffer_size || (*buffer_size && !buffer)) in efi_locate_handle()
1360 if (*buffer_size < size) { in efi_locate_handle()
1361 *buffer_size = size; in efi_locate_handle()
1365 *buffer_size = size; in efi_locate_handle()
1383 * @buffer_size: size of the buffer to receive the handles in bytes
1396 efi_uintn_t *buffer_size, efi_handle_t *buffer) in efi_locate_handle_ext() argument
1399 buffer_size, buffer); in efi_locate_handle_ext()
1402 buffer_size, buffer)); in efi_locate_handle_ext()
[all …]
/openbmc/openbmc/poky/meta/recipes-extended/unzip/unzip/
H A DCVE-2022-0529.patch14 + size_t buffer_size;
22 + buffer_size = wsize * max_bytes + 1;
23 + if ((buffer = (char *)malloc(buffer_size)) == NULL) {
34 + if (buffer_len + escape_string_len + 1 > buffer_size)
35 + escape_string_len = buffer_size - buffer_len - 1;
/openbmc/u-boot/lib/efi_selftest/
H A Defi_selftest_loadimage.c159 (struct efi_file_handle *this, efi_uintn_t *buffer_size, void *buffer);
162 (struct efi_file_handle *this, efi_uintn_t *buffer_size, void *buffer);
170 efi_uintn_t *buffer_size, void *buffer);
174 efi_uintn_t buffer_size, void *buffer);
275 (struct efi_file_handle *this, efi_uintn_t *buffer_size, void *buffer) in read() argument
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()
285 boottime->copy_mem(buffer, &image[priv.file_pos], *buffer_size); in read()
286 priv.file_pos += *buffer_size; in read()
[all …]
H A Defi_selftest_manageprotocols.c139 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()
H A Defi_selftest_block_device.c74 * @buffer_size number of bytes to read
80 efi_uintn_t buffer_size, void *buffer) in read_blocks() argument
84 if ((lba << LB_BLOCK_SIZE) + buffer_size > img.length) in read_blocks()
88 boottime->copy_mem(buffer, start, buffer_size); in read_blocks()
99 * @buffer_size number of bytes to read
105 efi_uintn_t buffer_size, void *buffer) in write_blocks() argument
109 if ((lba << LB_BLOCK_SIZE) + buffer_size > img.length) in write_blocks()
113 boottime->copy_mem(start, buffer, buffer_size); in write_blocks()
/openbmc/libpldm/include/libpldm/
H A Dutils.h
/openbmc/u-boot/drivers/misc/
H A Dcbmem_console.c15 u32 buffer_size; member
27 if (cursor < cbmem_console_p->buffer_size) in cbmemc_putc()
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-security/trusted-services/corstone1000/
H A D0014-Revert-Make-constraints-of-NV-UEFI-variables-persist.patch244 -efi_status_t variable_index_dump(const struct variable_index *context, size_t buffer_size,
246 +bool variable_index_dump(const struct variable_index *context, size_t buffer_size, uint8_t *buffer,
264 - if (bytes_dumped + sizeof(struct variable_metadata) > buffer_size)
268 + ((bytes_dumped + sizeof(struct variable_metadata)) <= buffer_size)) {
274 - if (bytes_dumped + sizeof(entry->info.is_constraints_set) > buffer_size)
285 - buffer_size)
370 * @param[in] buffer_size Size of destination buffer
378 -efi_status_t variable_index_dump(const struct variable_index *context, size_t buffer_size,
380 +bool variable_index_dump(const struct variable_index *context, size_t buffer_size, uint8_t *buffer,
/openbmc/openbmc/poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/
H A Dsocklen_t.patch19 unsigned char optbuf[BUFFER_SIZE / 3], *cp;
20 char lbuf[BUFFER_SIZE], *lp;
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/sharutils/sharutils/
H A D0003-ISO-C23-Port-the-code-to-ISO-C23.patch94 -read_raw_bytes (file, buffer, buffer_size)
97 - int buffer_size;
98 +read_raw_bytes (FILE *file, char *buffer, int buffer_size)
102 @@ -75,9 +70,7 @@ read_raw_bytes (file, buffer, buffer_size)
/openbmc/u-boot/drivers/usb/gadget/
H A Df_fastboot.c322 static int fastboot_tx_write(const char *buffer, unsigned int buffer_size) in fastboot_tx_write() argument
327 memcpy(in_req->buf, buffer, buffer_size); in fastboot_tx_write()
328 in_req->length = buffer_size; in fastboot_tx_write()
377 unsigned int buffer_size = req->actual; in rx_handler_dl_image() local
384 if (buffer_size < transfer_size) in rx_handler_dl_image()
385 transfer_size = buffer_size; in rx_handler_dl_image()
H A Ddesignware_udc.c595 int buffer_size; in udc_setup_ep() local
613 buffer_size = packet_size * 2; in udc_setup_ep()
618 buffer_size = packet_size * 2; in udc_setup_ep()
643 buffer_size = packet_size; in udc_setup_ep()
653 writel(buffer_size / sizeof(int), &in_p->endp_bsorfn); in udc_setup_ep()
659 writel(packet_size | ((buffer_size / sizeof(int)) << 16), in udc_setup_ep()
666 writel(buffer_size / sizeof(int), &in_p->endp_bsorfn); in udc_setup_ep()
695 writel(packet_size | ((buffer_size / sizeof(int)) << 16), in udc_setup_ep()
/openbmc/u-boot/lib/libavb/
H A Davb_ops.h241 * returned in |out_buffer| which must point to |buffer_size| bytes. On
247 * The |buffer_size| may be zero and the |out_buffer| may be NULL, but if
248 * |out_buffer| is NULL then |buffer_size| *must* be zero.
253 * AVB_IO_RESULT_ERROR_NO_SUCH_VALUE. If |buffer_size| is smaller than the
262 size_t buffer_size,
/openbmc/qemu/util/
H A Dhexdump.c112 void qemu_hexdump_to_buffer(char *restrict buffer, size_t buffer_size, in qemu_hexdump_to_buffer()
119 assert(!overflow && buffer_size >= required_buffer_size);
102 qemu_hexdump_to_buffer(char * restrict buffer,size_t buffer_size,const uint8_t * restrict data,size_t data_size) qemu_hexdump_to_buffer() argument
/openbmc/qemu/hw/net/
H A Dmv88w8618_eth.c83 uint16_t buffer_size; member
117 cpu_to_le16s(&desc->buffer_size); in eth_rx_desc_put()
129 le16_to_cpus(&desc->buffer_size); in eth_rx_desc_get()
148 if ((desc.cmdstat & MP_ETH_RX_OWN) && desc.buffer_size >= size) { in eth_receive()
/openbmc/ipmitool/src/plugins/serial/
H A Dserial_basic.c132 size_t buffer_size; member
563 rv = read(intf->fd, recv_ctx->buffer + recv_ctx->buffer_size, in serial_bm_recv_msg()
564 recv_ctx->max_buffer_size - recv_ctx->buffer_size); in serial_bm_recv_msg()
573 buf2str(recv_ctx->buffer + recv_ctx->buffer_size, rv)); in serial_bm_recv_msg()
577 recv_ctx->buffer_size += rv; in serial_bm_recv_msg()
581 recv_ctx->buffer_size, &parse_ctx); in serial_bm_recv_msg()
583 if (rv < recv_ctx->buffer_size) { in serial_bm_recv_msg()
586 recv_ctx->buffer_size - rv); in serial_bm_recv_msg()
590 recv_ctx->buffer_size -= rv; in serial_bm_recv_msg()
905 read_ctx.buffer_size = 0; in serial_bm_send_request()
/openbmc/qemu/qga/vss-win32/
H A Dinstall.cpp29 #define BUFFER_SIZE 1024 macro
160 DWORD domainNameLen = BUFFER_SIZE; in getNameByStringSID()
161 wchar_t domainName[BUFFER_SIZE]; in getNameByStringSID()
277 DWORD bufferLen = BUFFER_SIZE; in COMRegister()
278 wchar_t buffer[BUFFER_SIZE]; in COMRegister()
374 bufferLen = BUFFER_SIZE; in COMRegister()
/openbmc/u-boot/include/
H A Defi_api.h113 efi_uintn_t *buffer_size, efi_handle_t *buffer);
509 u32 media_id, u64 lba, efi_uintn_t buffer_size,
512 u32 media_id, u64 lba, efi_uintn_t buffer_size,
1028 efi_uintn_t *buffer_size,
1251 int read_write, ulong offset, ulong buffer_size,
1256 size_t header_size, size_t buffer_size, void *buffer,
1260 size_t *header_size, size_t *buffer_size, void *buffer,
1337 efi_uintn_t *buffer_size, void *buffer);
1339 efi_uintn_t *buffer_size, void *buffer);
1345 const efi_guid_t *info_type, efi_uintn_t *buffer_size,
[all …]
/openbmc/u-boot/drivers/remoteproc/
H A Dk3_system_controller.c41 * @buffer_size: Size of the firmware.
46 u32 buffer_size; member
98 fw->buffer_size = size; in k3_sysctrler_load_msg_setup()

123