| /openbmc/qemu/tests/qtest/ |
| H A D | ahci-test.c | 852 static void ahci_test_io_rw_simple(AHCIQState *ahci, unsigned bufsize, in ahci_test_io_rw_simple() argument 858 unsigned char *tx = g_malloc(bufsize); in ahci_test_io_rw_simple() 859 unsigned char *rx = g_malloc0(bufsize); in ahci_test_io_rw_simple() 869 ptr = ahci_alloc(ahci, bufsize); in ahci_test_io_rw_simple() 873 generate_pattern(tx, bufsize, AHCI_SECTOR_SIZE); in ahci_test_io_rw_simple() 874 qtest_bufwrite(ahci->parent->qts, ptr, tx, bufsize); in ahci_test_io_rw_simple() 877 ahci_guest_io(ahci, port, write_cmd, ptr, bufsize, sector); in ahci_test_io_rw_simple() 878 qtest_memset(ahci->parent->qts, ptr, 0x00, bufsize); in ahci_test_io_rw_simple() 879 ahci_guest_io(ahci, port, read_cmd, ptr, bufsize, sector); in ahci_test_io_rw_simple() 882 qtest_bufread(ahci->parent->qts, ptr, rx, bufsize); in ahci_test_io_rw_simple() [all …]
|
| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | nbd-fault-injector.py | 79 def recvall(sock, bufsize): argument 82 while received < bufsize: 83 chunk = sock.recv(bufsize - received) 109 def check(self, event, io, bufsize=None): argument 112 if rule.when == 0 or bufsize is None: 119 return bufsize 122 bufsize = self.check(event, 'write', bufsize=len(buf)) 123 self.sock.sendall(buf[:bufsize]) 126 def recv(self, bufsize, event): argument 127 bufsize = self.check(event, 'read', bufsize=bufsize) [all …]
|
| /openbmc/u-boot/scripts/dtc/libfdt/ |
| H A D | fdt_sw.c | 88 int fdt_create(void *buf, int bufsize) in fdt_create() argument 92 if (bufsize < sizeof(struct fdt_header)) in fdt_create() 95 memset(buf, 0, bufsize); in fdt_create() 100 fdt_set_totalsize(fdt, bufsize); in fdt_create() 105 fdt_set_off_dt_strings(fdt, bufsize); in fdt_create() 110 int fdt_resize(void *fdt, void *buf, int bufsize) in fdt_resize() argument 120 if ((headsize + tailsize) > bufsize) in fdt_resize() 124 newtail = (char *)buf + bufsize - tailsize; in fdt_resize() 136 fdt_set_off_dt_strings(buf, bufsize); in fdt_resize() 137 fdt_set_totalsize(buf, bufsize); in fdt_resize()
|
| H A D | fdt_empty_tree.c | 58 int fdt_create_empty_tree(void *buf, int bufsize) in fdt_create_empty_tree() argument 62 err = fdt_create(buf, bufsize); in fdt_create_empty_tree() 82 return fdt_open_into(buf, buf, bufsize); in fdt_create_empty_tree()
|
| H A D | fdt_rw.c | 429 int fdt_open_into(const void *fdt, void *buf, int bufsize) in fdt_open_into() argument 455 err = fdt_move(fdt, buf, bufsize); in fdt_open_into() 460 fdt_set_totalsize(buf, bufsize); in fdt_open_into() 468 if (bufsize < newsize) in fdt_open_into() 477 if ((tmp + newsize) > ((char *)buf + bufsize)) in fdt_open_into() 485 fdt_set_totalsize(buf, bufsize); in fdt_open_into()
|
| H A D | libfdt.h | 281 int fdt_move(const void *fdt, void *buf, int bufsize); 1300 int fdt_create(void *buf, int bufsize); 1301 int fdt_resize(void *fdt, void *buf, int bufsize); 1348 int fdt_create_empty_tree(void *buf, int bufsize); 1349 int fdt_open_into(const void *fdt, void *buf, int bufsize);
|
| H A D | fdt.c | 245 int fdt_move(const void *fdt, void *buf, int bufsize) in fdt_move() argument 249 if (fdt_totalsize(fdt) > bufsize) in fdt_move()
|
| /openbmc/u-boot/drivers/fpga/ |
| H A D | lattice.c | 21 static unsigned long bufsize; variable 157 if (read_bytes == bufsize) { in GetByte() 166 bufsize); in GetByte() 300 bufsize = bsize; in lattice_load() 303 __func__, fpga_image, bufsize); in lattice_load()
|
| /openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/ippool/ippool/ |
| H A D | strncpy-truncation.patch | 19 + int bufsize = sizeof(text_buf)/sizeof(text_buf[0]); 24 + if (left_margin > bufsize) { 25 + left_margin = bufsize;
|
| /openbmc/u-boot/scripts/dtc/ |
| H A D | util.c | 234 off_t bufsize = 1024, offset = 0; in utilfdt_read_err_len() local 245 buf = xmalloc(bufsize); in utilfdt_read_err_len() 248 if (offset == bufsize) { in utilfdt_read_err_len() 249 bufsize *= 2; in utilfdt_read_err_len() 250 buf = xrealloc(buf, bufsize); in utilfdt_read_err_len() 253 ret = read(fd, &buf[offset], bufsize - offset); in utilfdt_read_err_len() 267 *len = bufsize; in utilfdt_read_err_len()
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-connectivity/krb5/krb5/ |
| H A D | CVE-2024-26458_CVE-2024-26461.patch | 31 size_t bufsize = 16; 85 bufsize = 16 + encrypt_size; 87 outbuf = gssalloc_malloc(bufsize); 97 cipher.ciphertext.length = bufsize - 16; 131 bufsize = 16 + message2->length + cksumsize; 132 outbuf = gssalloc_malloc(bufsize); 155 zap(outbuf,bufsize); 170 token->length = bufsize;
|
| /openbmc/qemu/python/qemu/machine/ |
| H A D | console_socket.py | 112 def recv(self, bufsize: int = 1, flags: int = 0) -> bytes: 118 return socket.socket.recv(self, bufsize, flags) 121 while len(self._buffer) < bufsize: 126 return bytes((self._buffer.popleft() for i in range(bufsize)))
|
| /openbmc/u-boot/arch/arm/mach-sunxi/ |
| H A D | spl_spi_sunxi.c | 187 static void sunxi_spi0_read_data(u8 *buf, u32 addr, u32 bufsize, in sunxi_spi0_read_data() argument 197 writel(4 + bufsize, spi_bc_reg); /* Burst counter (total bytes) */ in sunxi_spi0_read_data() 212 while ((readl(spi_fifo_reg) & 0x7F) < 4 + bufsize) in sunxi_spi0_read_data() 219 while (bufsize-- > 0) in sunxi_spi0_read_data()
|
| /openbmc/qemu/tests/tcg/multiarch/ |
| H A D | sha512.c | 383 size_t bufsize = ctx->bytes % 128; in add() local 385 if (bufsize + len >= 128) { in add() 387 memcpy(ctx->buf.u8 + bufsize, data, 128 - bufsize); in add() 388 ctx->bytes += 128 - bufsize; in add() 389 data += 128 - bufsize; in add() 390 len -= 128 - bufsize; in add() 392 bufsize = 0; in add() 410 memcpy(ctx->buf.u8 + bufsize, data, len); in add() 470 bool hex_decode(const char *str, size_t slen, void *buf, size_t bufsize); 488 bool hex_encode(const void *buf, size_t bufsize, char *dest, size_t destsize); [all …]
|
| /openbmc/u-boot/board/gdsys/common/ |
| H A D | osd.c | 65 size_t bufsize; variable 244 if (offset + k >= bufsize) in osd_write_videomem() 287 len = (charcount > bufsize) ? bufsize : charcount; in osd_print() 315 bufsize = base_width * base_height; in osd_probe() 316 buf = malloc(sizeof(u16) * bufsize); in osd_probe()
|
| /openbmc/qemu/hw/net/ |
| H A D | spapr_llan.c | 93 int32_t bufsize; member 145 dev->rx_pool[pool]->bufsize >= size + 8) { in spapr_vlan_get_rx_bd_from_pool() 294 rxp->bufsize = INT_MAX; in spapr_vlan_reset_rx_pool() 532 if (pool1->bufsize < pool2->bufsize) { in rx_pool_size_compare() 535 return pool1->bufsize > pool2->bufsize; in rx_pool_size_compare() 547 if (dev->rx_pool[pool]->bufsize == size) { in spapr_vlan_get_rx_pool_id() 574 dev->rx_pool[pool]->bufsize = size; in spapr_vlan_add_rxbuf_to_pool() 809 VMSTATE_INT32(bufsize, RxBufPool),
|
| /openbmc/qemu/hw/misc/ |
| H A D | pci-testdev.c | 47 unsigned bufsize; member 200 if (addr + size >= test->bufsize) { in pci_testdev_read() 282 test->bufsize = sizeof(PCITestDevHdr) + strlen(name) + 1; in pci_testdev_realize() 283 test->hdr = g_malloc0(test->bufsize); in pci_testdev_realize()
|
| H A D | bcm2835_property.c | 48 uint32_t bufsize = ldl_le_phys(&s->dma_as, value + 4); in bcm2835_property_mbox_push() local 311 if (bufsize >= resplen) in bcm2835_property_mbox_push() 424 trace_bcm2835_mbox_property(tag, bufsize, resplen); in bcm2835_property_mbox_push() 430 value += bufsize + 12; in bcm2835_property_mbox_push()
|
| /openbmc/qemu/tests/qtest/libqos/ |
| H A D | ahci.c | 753 size_t bufsize, uint64_t sector) in ahci_guest_io_halt() argument 758 ahci_command_adjust(cmd, sector, buffer, bufsize, 0); in ahci_guest_io_halt() 779 uint64_t buffer, size_t bufsize, uint64_t sector) in ahci_guest_io() argument 784 ahci_command_set_size(cmd, bufsize); in ahci_guest_io() 809 void *buffer, size_t bufsize, uint64_t sector) in ahci_io() argument 816 ptr = ahci_alloc(ahci, bufsize); in ahci_io() 817 g_assert(!bufsize || ptr); in ahci_io() 818 qtest_memset(ahci->parent->qts, ptr, 0x00, bufsize); in ahci_io() 820 if (bufsize && props->write) { in ahci_io() 821 qtest_bufwrite(ahci->parent->qts, ptr, buffer, bufsize); in ahci_io() [all …]
|
| /openbmc/u-boot/tools/ |
| H A D | fdtgrep.c | 703 off_t bufsize = 1024, offset = 0; in utilfdt_read_err_len() local 714 buf = malloc(bufsize); in utilfdt_read_err_len() 719 if (offset == bufsize) { in utilfdt_read_err_len() 720 bufsize *= 2; in utilfdt_read_err_len() 721 buf = realloc(buf, bufsize); in utilfdt_read_err_len() 726 ret = read(fd, &buf[offset], bufsize - offset); in utilfdt_read_err_len() 740 *len = bufsize; in utilfdt_read_err_len()
|
| /openbmc/qemu/bsd-user/freebsd/ |
| H A D | os-stat.h | 35 int freebsd11_getfsstat(struct freebsd11_statfs *buf, long bufsize, int mode); 378 abi_long bufsize, abi_long flags) in do_freebsd11_getfsstat() argument 385 count = bufsize / sizeof(struct target_freebsd11_statfs); in do_freebsd11_getfsstat() 416 abi_long bufsize, abi_long flags) in do_freebsd_getfsstat() argument 423 count = bufsize / sizeof(struct target_statfs); in do_freebsd_getfsstat()
|
| /openbmc/openbmc/poky/meta/recipes-devtools/file/files/ |
| H A D | 0001-PR-579-net147-Fix-stack-overrun.patch | 31 ssize_t bufsize;
|
| /openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-netifaces/ |
| H A D | 0001-netifaces-initialize-msghdr-in-a-portable-way.patch | 28 struct iovec iov = { msgbuf, bufsize };
|
| /openbmc/qemu/target/ppc/ |
| H A D | kvm_ppc.h | 61 int kvmppc_save_htab(QEMUFile *f, int fd, size_t bufsize, int64_t max_ns); 342 static inline int kvmppc_save_htab(QEMUFile *f, int fd, size_t bufsize, in kvmppc_save_htab() argument
|
| /openbmc/u-boot/drivers/mtd/nand/raw/ |
| H A D | fsl_elbc_nand.c | 494 unsigned int bufsize = mtd->writesize + mtd->oobsize; in fsl_elbc_write_buf() local 502 if ((unsigned int)len > bufsize - ctrl->index) { in fsl_elbc_write_buf() 505 len, bufsize - ctrl->index); in fsl_elbc_write_buf() 506 len = bufsize - ctrl->index; in fsl_elbc_write_buf()
|