| /openbmc/u-boot/cmd/ |
| H A D | fastboot.c | 19 uintptr_t buf_addr, size_t buf_size) in do_fastboot_udp() argument 37 uintptr_t buf_addr, size_t buf_size) in do_fastboot_usb() argument 99 size_t buf_size = 0; in do_fastboot() local 119 buf_size = simple_strtoul(*++argv, NULL, 16); in do_fastboot() 136 fastboot_init((void *)buf_addr, buf_size); in do_fastboot() 139 return do_fastboot_udp(argc, argv, buf_addr, buf_size); in do_fastboot() 146 return do_fastboot_usb(argc, argv, buf_addr, buf_size); in do_fastboot()
|
| H A D | nvedit_efi.c | 99 efi_uintn_t buf_size, size; in efi_dump_vars() local 101 buf_size = 128; in efi_dump_vars() 102 var_name16 = malloc(buf_size); in efi_dump_vars() 108 if (buf_size < size) { in efi_dump_vars() 109 buf_size = size; in efi_dump_vars() 110 p = realloc(var_name16, buf_size); in efi_dump_vars() 140 efi_uintn_t buf_size, size; in efi_dump_var_all() local 144 buf_size = 128; in efi_dump_var_all() 145 var_name16 = malloc(buf_size); in efi_dump_var_all() 151 size = buf_size; in efi_dump_var_all() [all …]
|
| /openbmc/u-boot/drivers/power/pmic/ |
| H A D | i2c_pmic_emul.c | 24 u8 buf_size; member 33 if (plat->rw_idx + len > plat->buf_size) { in sandbox_i2c_pmic_read_data() 71 if (plat->rw_idx + len > plat->buf_size) { in sandbox_i2c_pmic_write_data() 114 plat->buf_size = plat->reg_count * plat->trans_len; in sandbox_i2c_pmic_ofdata_to_platdata() 116 plat->reg = calloc(1, plat->buf_size); in sandbox_i2c_pmic_ofdata_to_platdata() 119 plat->buf_size); in sandbox_i2c_pmic_ofdata_to_platdata() 124 plat->buf_size); in sandbox_i2c_pmic_ofdata_to_platdata() 133 memcpy(plat->reg, reg_defaults, plat->buf_size); in sandbox_i2c_pmic_ofdata_to_platdata()
|
| /openbmc/qemu/hw/uefi/ |
| H A D | var-service-core.c | 33 uv->buffer = g_malloc(uv->buf_size); in uefi_vars_post_load() 43 VMSTATE_UINT32(buf_size, uefi_vars_state), 48 0, NULL, buf_size), 72 if (!uv->buffer || uv->buf_size < sizeof(*mhdr)) { in uefi_vars_cmd_mm() 88 if (uv->buf_size < size) { in uefi_vars_cmd_mm() 102 memset(uv->buffer + size, 0, uv->buf_size - size); in uefi_vars_cmd_mm() 148 uv->buf_size = 0; in uefi_vars_soft_reset() 202 retval = uv->buf_size; in uefi_vars_read() 211 if (uv->pio_xfer_offset + size > uv->buf_size) { in uefi_vars_read() 259 uv->buf_size = val; in uefi_vars_write() [all …]
|
| /openbmc/u-boot/lib/efi_selftest/ |
| H A D | efi_selftest_block_device.c | 309 efi_uintn_t buf_size; in execute() local 371 buf_size = sizeof(system_info); in execute() 372 ret = root->getinfo(root, &guid_file_system_info, &buf_size, in execute() 401 buf_size = sizeof(buf) - 1; in execute() 402 ret = file->read(file, &buf_size, buf); in execute() 407 if (buf_size != 12) { in execute() 409 (unsigned int)buf_size); in execute() 440 buf_size = 7; in execute() 442 boottime->copy_mem(buf, "U-Boot", buf_size); in execute() 443 ret = file->write(file, &buf_size, buf); in execute() [all …]
|
| /openbmc/qemu/ui/ |
| H A D | util.c | 31 static bool append_pci_address(char *buf, size_t buf_size, const PCIDevice *pci) in append_pci_address() argument 39 append_pci_address(buf, buf_size, bus->parent_dev); in append_pci_address() 43 ssize_t written = snprintf(buf + len, buf_size - len, "/%02x.%x", in append_pci_address() 46 return written > 0 && written < buf_size - len; in append_pci_address()
|
| /openbmc/libpldm/src/transport/ |
| H A D | socket.c | 83 int buf_size; in pldm_socket_sndbuf_get() local 84 socklen_t optlen = sizeof(buf_size); in pldm_socket_sndbuf_get() 85 int rc = getsockopt(ctx->socket, SOL_SOCKET, SO_SNDBUF, &(buf_size), in pldm_socket_sndbuf_get() 90 ctx->size = buf_size / 2; in pldm_socket_sndbuf_get()
|
| /openbmc/qemu/replay/ |
| H A D | replay-random.c | 34 size_t buf_size = 0; in replay_read_random() local 36 replay_get_array(buf, &buf_size); in replay_read_random() 38 g_assert(buf_size == len); in replay_read_random()
|
| /openbmc/qemu/hw/i3c/ |
| H A D | mock-target.c | |
| H A D | mock-i3c-target.c | 52 if (s->p_buf == s->cfg.buf_size) { in mock_i3c_target_rx() 60 if (s->p_buf == s->cfg.buf_size) { in mock_i3c_target_rx() 88 if (num_to_send + s->p_buf > s->cfg.buf_size) { in mock_i3c_target_tx() 89 to_write = s->cfg.buf_size - s->p_buf; in mock_i3c_target_tx() 158 data[s->ccc_byte_offset] = (s->cfg.buf_size & in mock_i3c_target_handle_ccc_read() 259 s->buf = g_new0(uint8_t, s->cfg.buf_size); in mock_i3c_target_realize() 275 DEFINE_PROP_UINT32("buf-size", MockI3cTargetState, cfg.buf_size, 0x100),
|
| /openbmc/u-boot/drivers/fastboot/ |
| H A D | fb_common.c | 163 void fastboot_init(void *buf_addr, u32 buf_size) in fastboot_init() argument 167 fastboot_buf_size = buf_size ? buf_size : CONFIG_FASTBOOT_BUF_SIZE; in fastboot_init()
|
| /openbmc/qemu/audio/ |
| H A D | sndioaudio.c | 43 size_t buf_size; member 98 if (self->sndio_pos == self->buf_size) { in sndio_write() 115 todo = self->buf_size - self->sndio_pos; in sndio_read() 145 if (self->sndio_pos < self->buf_size) { in sndio_poll_wait() 199 if (self->qemu_pos < self->buf_size) { in sndio_poll_event() 227 return self->buf_size - self->qemu_pos; in sndio_buffer_get_free() 238 *size = self->buf_size - self->qemu_pos; in sndio_get_buffer_out() 287 if (self->qemu_pos == self->buf_size) { in sndio_put_buffer_in() 421 self->buf_size = self->par.round * self->par.bps * nch; in sndio_init() 423 self->buf = g_malloc(self->buf_size); in sndio_init()
|
| /openbmc/u-boot/drivers/fpga/ |
| H A D | stratix10.c | 120 u32 *resp_buf, u32 buf_size, u32 client_id) in get_resp_hdr() argument 128 if (*resp_count < buf_size) { in get_resp_hdr() 129 u32 rcv_len_max = buf_size - *resp_count; in get_resp_hdr() 137 *w_index %= buf_size; in get_resp_hdr() 155 *r_index %= buf_size; in get_resp_hdr()
|
| /openbmc/qemu/hw/net/rocker/ |
| H A D | rocker_desc.c | 43 size_t buf_size; member 48 return le16_to_cpu(info->desc.buf_size); in desc_buf_size() 60 le16_to_cpu(info->desc.buf_size); in desc_get_buf() 62 if (size > info->buf_size) { in desc_get_buf() 64 info->buf_size = size; in desc_get_buf() 76 if (tlv_size > info->buf_size) { in desc_set_buf() 79 info->buf_size, tlv_size); in desc_set_buf()
|
| /openbmc/u-boot/include/ |
| H A D | video_bridge.h | 64 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);
|
| /openbmc/u-boot/arch/arm/mach-bcm283x/ |
| H A D | mbox.c | 95 words = buffer->buf_size / 4; in dump_buf() 115 roundup(buffer->buf_size, ARCH_DMA_MINALIGN))); in bcm2835_mbox_call_prop() 125 roundup(buffer->buf_size, ARCH_DMA_MINALIGN))); in bcm2835_mbox_call_prop()
|
| /openbmc/qemu/hw/9pfs/ |
| H A D | virtio-9p-device.c | 161 size_t buf_size = iov_size(elem->in_sg, elem->in_num); in virtio_init_in_iov_from_pdu() local 163 if (buf_size < size) { in virtio_init_in_iov_from_pdu() 168 pdu->id + 1, size, buf_size); in virtio_init_in_iov_from_pdu() 181 size_t buf_size = iov_size(elem->out_sg, elem->out_num); in virtio_init_out_iov_from_pdu() local 183 if (buf_size < size) { in virtio_init_out_iov_from_pdu() 188 pdu->id, size, buf_size); in virtio_init_out_iov_from_pdu()
|
| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | 218 | 41 def start_mirror(vm, speed=None, buf_size=None): argument 61 buf_size=buf_size)
|
| /openbmc/qemu/include/qemu/ |
| H A D | cutils.h | 40 void pstrcpy(char *buf, int buf_size, const char *str); 53 void strpadcpy(char *buf, int buf_size, const char *str, char pad); 70 char *pstrcat(char *buf, int buf_size, const char *s);
|
| /openbmc/qemu/migration/ |
| H A D | qemu-file.c | 50 int buf_size; /* 0 when writing */ member 330 pending = f->buf_size - f->buf_index; in qemu_fill_buffer() 335 f->buf_size = pending; in qemu_fill_buffer() 357 f->buf_size += len; in qemu_fill_buffer() 608 f->buf_size = 0; in qemu_set_offset() 644 if (f->buf_index + size <= f->buf_size) { in qemu_file_skip() 669 pending = f->buf_size - index; in qemu_peek_buffer() 683 pending = f->buf_size - index; in qemu_peek_buffer() 775 if (index >= f->buf_size) { in qemu_peek_byte() 778 if (index >= f->buf_size) { in qemu_peek_byte() [all …]
|
| H A D | block-dirty-bitmap.c | 433 uint64_t buf_size = QEMU_ALIGN_UP(unaligned_size, align); in send_bitmap_bits() local 434 uint8_t *buf = g_malloc0(buf_size); in send_bitmap_bits() 441 if (buffer_is_zero(buf, buf_size)) { in send_bitmap_bits() 447 trace_send_bitmap_bits(flags, start_sector, nr_sectors, buf_size); in send_bitmap_bits() 460 qemu_put_be64(f, buf_size); in send_bitmap_bits() 461 qemu_put_buffer(f, buf, buf_size); in send_bitmap_bits() 995 uint64_t buf_size = qemu_get_be64(f); in dirty_bitmap_load_bits() local 1008 if (buf_size > 10 * CHUNK_SIZE) { in dirty_bitmap_load_bits() 1014 buf = g_malloc(buf_size); in dirty_bitmap_load_bits() 1015 ret = qemu_get_buffer(f, buf, buf_size); in dirty_bitmap_load_bits() [all …]
|
| /openbmc/u-boot/drivers/video/ |
| H A D | display-uclass.c | 12 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()
|
| /openbmc/libcper/tests/ |
| H A D | test-utils.c | 53 char **buf, size_t *buf_size, in generate_record_memstream() argument 58 FILE *stream = open_memstream(buf, buf_size); in generate_record_memstream() 71 return fmemopen(*buf, *buf_size, "r"); in generate_record_memstream()
|
| /openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/opensaf/opensaf/ |
| H A D | 0001-include-missing-array-header.patch | 8 25 | std::array<char, buf_size> buffer; 29 constexpr size_t buf_size = 128;
|
| /openbmc/u-boot/board/samsung/common/ |
| H A D | misc.c | 41 size_t buf_size = CONFIG_SET_DFU_ALT_BUF_LEN; in set_dfu_alt_info() local 42 ALLOC_CACHE_ALIGN_BUFFER(char, buf, buf_size); in set_dfu_alt_info() 54 offset = snprintf(buf, buf_size, "%s", alt_setting); in set_dfu_alt_info() 64 offset += snprintf(buf + offset, buf_size - offset, in set_dfu_alt_info()
|