| /openbmc/qemu/hw/scsi/ |
| H A D | emulation.c | 6 int scsi_emulate_block_limits(uint8_t *outbuf, const SCSIBlockLimits *bl) in scsi_emulate_block_limits() argument 9 memset(outbuf, 0, 0x3c); in scsi_emulate_block_limits() 11 outbuf[0] = bl->wsnz; /* wsnz */ in scsi_emulate_block_limits() 17 stw_be_p(outbuf + 2, MIN(bl->min_io_size, bl->max_io_sectors)); in scsi_emulate_block_limits() 20 stl_be_p(outbuf + 4, bl->max_io_sectors); in scsi_emulate_block_limits() 23 stl_be_p(outbuf + 8, MIN(bl->opt_io_size, bl->max_io_sectors)); in scsi_emulate_block_limits() 25 stw_be_p(outbuf + 2, bl->min_io_size); in scsi_emulate_block_limits() 26 stl_be_p(outbuf + 8, bl->opt_io_size); in scsi_emulate_block_limits() 30 stl_be_p(outbuf + 16, bl->max_unmap_sectors); in scsi_emulate_block_limits() 33 stl_be_p(outbuf + 20, bl->max_unmap_descr); in scsi_emulate_block_limits() [all …]
|
| H A D | scsi-disk.c | 658 static int scsi_disk_emulate_vpd_page(SCSIRequest *req, uint8_t *outbuf) in scsi_disk_emulate_vpd_page() argument 664 outbuf[buflen++] = s->qdev.type & 0x1f; in scsi_disk_emulate_vpd_page() 665 outbuf[buflen++] = page_code; in scsi_disk_emulate_vpd_page() 666 outbuf[buflen++] = 0x00; in scsi_disk_emulate_vpd_page() 667 outbuf[buflen++] = 0x00; in scsi_disk_emulate_vpd_page() 674 outbuf[buflen++] = 0x00; /* list of supported pages (this page) */ in scsi_disk_emulate_vpd_page() 676 outbuf[buflen++] = 0x80; /* unit serial number */ in scsi_disk_emulate_vpd_page() 678 outbuf[buflen++] = 0x83; /* device identification */ in scsi_disk_emulate_vpd_page() 680 outbuf[buflen++] = 0xb0; /* block limits */ in scsi_disk_emulate_vpd_page() 681 outbuf[buflen++] = 0xb1; /* block device characteristics */ in scsi_disk_emulate_vpd_page() [all …]
|
| /openbmc/qemu/hw/ufs/ |
| H A D | lu.c | 94 static int ufs_emulate_report_luns(UfsRequest *req, uint8_t *outbuf, in ufs_emulate_report_luns() argument 113 memset(outbuf + len, 0, 8); in ufs_emulate_report_luns() 114 outbuf[len] = 0; in ufs_emulate_report_luns() 115 outbuf[len + 1] = lun; in ufs_emulate_report_luns() 121 stl_be_p(outbuf, len - 8); in ufs_emulate_report_luns() 126 static int ufs_scsi_emulate_vpd_page(UfsRequest *req, uint8_t *outbuf, in ufs_scsi_emulate_vpd_page() argument 132 outbuf[buflen++] = TYPE_WLUN; in ufs_scsi_emulate_vpd_page() 133 outbuf[buflen++] = page_code; in ufs_scsi_emulate_vpd_page() 134 outbuf[buflen++] = 0x00; in ufs_scsi_emulate_vpd_page() 135 outbuf[buflen++] = 0x00; in ufs_scsi_emulate_vpd_page() [all …]
|
| /openbmc/u-boot/drivers/usb/gadget/ |
| H A D | rndis.c | 148 __le32 *outbuf; in gen_ndis_query_resp() local 174 outbuf = (__le32 *) &resp[1]; in gen_ndis_query_resp() 188 outbuf[i] = cpu_to_le32(oid_supported_list[i]); in gen_ndis_query_resp() 202 *outbuf = __constant_cpu_to_le32(0); in gen_ndis_query_resp() 209 *outbuf = cpu_to_le32(params->medium); in gen_ndis_query_resp() 217 *outbuf = cpu_to_le32(params->medium); in gen_ndis_query_resp() 225 *outbuf = cpu_to_le32(params->mtu); in gen_ndis_query_resp() 236 *outbuf = __constant_cpu_to_le32(0); in gen_ndis_query_resp() 238 *outbuf = cpu_to_le32(params->speed); in gen_ndis_query_resp() 246 *outbuf = cpu_to_le32(params->mtu); in gen_ndis_query_resp() [all …]
|
| /openbmc/qemu/hw/ipmi/ |
| H A D | smbus_ipmi.c | 59 uint8_t outbuf[MAX_SSIF_IPMI_MSG_CHUNK + 1]; /* len + message. */ member 147 if (sid->outpos >= sizeof(sid->outbuf)) { in ipmi_receive_byte() 151 return sid->outbuf[sid->outpos++]; in ipmi_receive_byte() 166 sid->outbuf[0] = sid->outlen; in ipmi_load_readbuf() 167 memcpy(sid->outbuf + 1, sid->outmsg, sid->outlen); in ipmi_load_readbuf() 173 sid->outbuf[0] = 32; in ipmi_load_readbuf() 174 sid->outbuf[1] = 0; in ipmi_load_readbuf() 175 sid->outbuf[2] = 1; in ipmi_load_readbuf() 176 memcpy(sid->outbuf + 3, sid->outmsg, 30); in ipmi_load_readbuf() 196 sid->outbuf[1] = block - 1; in ipmi_load_readbuf() [all …]
|
| H A D | ipmi_bmc_extern.c | 81 unsigned char outbuf[(MAX_IPMI_MSG_SIZE + 2) * 2 + 1]; member 109 ret = qemu_chr_fe_write(&ibe->chr, ibe->outbuf + ibe->outpos, in continue_send() 130 ibe->outbuf[0] = VM_CMD_RESET; in continue_send() 131 ibe->outbuf[1] = VM_CMD_CHAR; in continue_send() 157 ibe->inbuf[1] = ibe->outbuf[1] | 0x04; in extern_timeout() 158 ibe->inbuf[2] = ibe->outbuf[2]; in extern_timeout() 160 k->handle_rsp(s, ibe->outbuf[0], ibe->inbuf + 1, 3); in extern_timeout() 173 ibe->outbuf[ibe->outlen] = VM_ESCAPE_CHAR; in addchar() 178 ibe->outbuf[ibe->outlen] = ch; in addchar() 226 ibe->outbuf[ibe->outlen] = VM_MSG_CHAR; in ipmi_bmc_extern_handle_command() [all …]
|
| /openbmc/qemu/chardev/ |
| H A D | msmouse.c | 65 Fifo8 outbuf; member 79 avail = fifo8_num_used(&mouse->outbuf); in DECLARE_INSTANCE_CHECKER() 84 buf = fifo8_pop_bufptr(&mouse->outbuf, MIN(len, avail), &size); in DECLARE_INSTANCE_CHECKER() 117 if (fifo8_num_free(&mouse->outbuf) >= count) { in msmouse_queue_event() 118 fifo8_push_all(&mouse->outbuf, bytes, count); in msmouse_queue_event() 201 fifo8_push_all(&mouse->outbuf, mouse_id, sizeof(mouse_id)); in msmouse_ioctl() 203 fifo8_push_all(&mouse->outbuf, pnp_data, sizeof(pnp_data)); in msmouse_ioctl() 221 fifo8_push_all(&mouse->outbuf, bytes, i); in msmouse_ioctl() 231 fifo8_reset(&mouse->outbuf); in msmouse_ioctl() 253 fifo8_destroy(&mouse->outbuf); in char_msmouse_finalize() [all …]
|
| H A D | wctablet.c | 77 uint8_t outbuf[WC_OUTPUT_BUF_MAX_LEN]; member 104 if (tablet->outlen + count > sizeof(tablet->outbuf)) { in wctablet_queue_output() 108 memcpy(tablet->outbuf + tablet->outlen, buf, count); in wctablet_queue_output() 200 qemu_chr_be_write(chr, tablet->outbuf, len); in wctablet_chr_accept_input() 203 memmove(tablet->outbuf, tablet->outbuf + len, tablet->outlen); in wctablet_chr_accept_input() 337 memcpy(tablet->outbuf, WC_FULL_CONFIG_STRING, WC_FULL_CONFIG_STRING_LENGTH); in wctablet_chr_open()
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-connectivity/krb5/krb5/ |
| H A D | CVE-2024-26458_CVE-2024-26461.patch | 32 - unsigned char *outbuf = 0; 33 + unsigned char *outbuf = NULL; 87 outbuf = gssalloc_malloc(bufsize); 88 if (outbuf == NULL) { 132 outbuf = gssalloc_malloc(bufsize); 133 if (outbuf == NULL) { 144 memcpy(outbuf + 16, message2->value, message2->length); 146 - sum.contents = outbuf + 16 + message2->length; 155 zap(outbuf,bufsize); 161 memcpy(outbuf + 16 + message2->length, sum.contents, cksumsize); [all …]
|
| /openbmc/qemu/hw/usb/ |
| H A D | dev-network.c | 664 uint8_t *inbuf, unsigned int inlen, uint8_t *outbuf, in ndis_query() argument 674 stl_le_p(outbuf + (i * sizeof(le32)), oid_supported_list[i]); in ndis_query() 680 stl_le_p(outbuf, 0); in ndis_query() 685 stl_le_p(outbuf, s->medium); in ndis_query() 690 stl_le_p(outbuf, s->medium); in ndis_query() 695 stl_le_p(outbuf, ETH_FRAME_LEN); in ndis_query() 700 stl_le_p(outbuf, s->speed); in ndis_query() 705 stl_le_p(outbuf, ETH_FRAME_LEN); in ndis_query() 710 stl_le_p(outbuf, ETH_FRAME_LEN); in ndis_query() 715 stl_le_p(outbuf, s->vendorid); in ndis_query() [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/ |
| H A D | 0001-stdlib-Make-iconv-use-portable-across-glibc-musl.patch | 35 char **outbuf, size_t *outbytesleft) 39 - retCode = iconv(cd, (char **)inbuf, inbytesleft, outbuf, outbytesleft); 41 - retCode = iconv(cd, inbuf, inbytesleft, outbuf, outbytesleft); 46 + const size_t retCode = iconv((iconv_t)((uintptr_t)cd), (void *)inbuf, inbytesleft, outbuf, outbyt…
|
| /openbmc/entity-manager/src/fru_device/ |
| H A D | fru_reader.hpp | 24 std::function<int64_t(off_t offset, size_t len, uint8_t* outbuf)>; 35 ssize_t read(off_t start, size_t len, uint8_t* outbuf);
|
| H A D | fru_reader.cpp | 8 ssize_t FRUReader::read(off_t start, size_t len, uint8_t* outbuf) in read() argument 71 memcpy(outbuf + done, blkData + blkOffset, toCopy); in read()
|
| H A D | fru_device.cpp | 360 auto readFunc = [file](off_t offset, size_t length, uint8_t* outbuf) { in processEeprom() argument 361 return readFromEeprom(file, offset, length, outbuf); in processEeprom() 560 ii](off_t offset, size_t length, uint8_t* outbuf) { in getBusFRUs() argument 562 outbuf); in getBusFRUs() 578 ii](off_t offset, size_t length, uint8_t* outbuf) { in getBusFRUs() argument 580 length, outbuf); in getBusFRUs() 1052 auto readFunc = [eeprom](off_t offset, size_t length, uint8_t* outbuf) { in writeFRU() argument 1053 return readFromEeprom(eeprom, offset, length, outbuf); in writeFRU()
|
| /openbmc/qemu/monitor/ |
| H A D | monitor.c | 160 buf = mon->outbuf->str; in monitor_flush_locked() 161 len = mon->outbuf->len; in monitor_flush_locked() 167 g_string_truncate(mon->outbuf, 0); in monitor_flush_locked() 172 g_string_erase(mon->outbuf, 0, rc); in monitor_flush_locked() 197 g_string_append_c(mon->outbuf, '\r'); in monitor_puts_locked() 199 g_string_append_c(mon->outbuf, c); in monitor_puts_locked() 632 mon->outbuf = g_string_new(NULL); in monitor_data_init() 646 g_string_free(mon->outbuf, true); in monitor_data_destroy()
|
| H A D | monitor-internal.h | 115 GString *outbuf; member
|
| H A D | qmp-cmds.c | 182 output = g_strdup(hmp.common.outbuf->str); in qmp_human_monitor_command()
|
| /openbmc/qemu/ui/ |
| H A D | vdagent.c | 48 GByteArray *outbuf; member 143 while (vd->outbuf->len) { in vdagent_send_buf() 148 if (len > vd->outbuf->len) { in vdagent_send_buf() 149 len = vd->outbuf->len; in vdagent_send_buf() 151 qemu_chr_be_write(CHARDEV(vd), vd->outbuf->data, len); in vdagent_send_buf() 152 g_byte_array_remove_range(vd->outbuf, 0, len); in vdagent_send_buf() 167 if (vd->outbuf->len + msgsize > VDAGENT_BUFFER_LIMIT) { in vdagent_send_msg() 178 g_byte_array_append(vd->outbuf, (void *)&chunk, sizeof(chunk)); in vdagent_send_msg() 179 g_byte_array_append(vd->outbuf, msgbuf + msgoff, chunk.size); in vdagent_send_msg() 872 g_byte_array_set_size(vd->outbuf, 0); in vdagent_disconnect() [all …]
|
| /openbmc/qemu/include/hw/scsi/ |
| H A D | emulation.h | 14 int scsi_emulate_block_limits(uint8_t *outbuf, const SCSIBlockLimits *bl);
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-connectivity/wvdial/wvstreams/ |
| H A D | 0001-Forward-port-to-OpenSSL-1.1.x.patch | 128 int WvDiffieHellman::get_public_value(WvBuf &outbuf, int len) 142 outbuf.put(foo, len); 145 @@ -91,8 +97,10 @@ int WvDiffieHellman::get_public_value(WvBuf &outbuf, int len) 147 bool WvDiffieHellman::create_secret(WvBuf &inbuf, size_t in_len, WvBuf& outbuf) 218 @@ -145,7 +145,7 @@ bool WvHMACDigest::_finish(WvBuf &outbuf) 477 bool create_secret(WvBuf &inbuf, size_t in_len, WvBuf& outbuf); 518 virtual bool _encode(WvBuf &inbuf, WvBuf &outbuf, 520 virtual bool _finish(WvBuf &outbuf); // outputs digest
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/gphoto2/libgphoto2/ |
| H A D | fix-build-with-gcc-14.patch | 20 uint8_t *outbuf = NULL, *tmprowbuf = NULL;
|
| /openbmc/openbmc-test-automation/lib/ |
| H A D | gen_arg.py | 396 rc, outbuf = gc.shell_cmd(cmd_buf, quiet=1) 397 report += outbuf + "\n"
|
| H A D | gen_cmd.py | 220 rc, outbuf = cmd_fnc_u( 223 command_string_list = outbuf.rstrip("\n").split("\n")
|
| /openbmc/u-boot/board/congatec/cgtqmx6eval/ |
| H A D | cgtqmx6eval.c | 995 unsigned char outbuf[32]; in is_2gb() local 1006 conv_ascii(outbuf, data->pn, sizeof(data->pn)); in is_2gb() 1007 if (!memcmp(outbuf, "016104", 6) || !memcmp(outbuf, "016105", 6)) in is_2gb()
|
| /openbmc/u-boot/tools/ |
| H A D | mxsimage.c | 227 uint8_t *outbuf; in sb_aes_crypt() local 229 outbuf = malloc(in_len); in sb_aes_crypt() 230 if (!outbuf) in sb_aes_crypt() 232 memset(outbuf, 0, sizeof(in_len)); in sb_aes_crypt() 234 ret = EVP_CipherUpdate(ctx, outbuf, &outlen, in_data, in_len); in sb_aes_crypt() 241 memcpy(out_data, outbuf, outlen); in sb_aes_crypt() 244 free(outbuf); in sb_aes_crypt()
|