| /openbmc/u-boot/drivers/tpm/ |
| H A D | tpm2_tis_sandbox.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 #include <tpm-v2.h> 161 if (!pw_sz && !tpm->pw_sz[*hierarchy]) in sandbox_tpm2_check_session() 175 if (pw_sz != tpm->pw_sz[*hierarchy] || in sandbox_tpm2_check_session() 176 strncmp(pw, tpm->pw[*hierarchy], tpm->pw_sz[*hierarchy])) { in sandbox_tpm2_check_session() 190 if (!tpm->init_done || tpm->startup_done) in sandbox_tpm2_check_readyness() 195 if (!tpm->init_done || !tpm->startup_done) in sandbox_tpm2_check_readyness() 200 if (!tpm->startup_done) in sandbox_tpm2_check_readyness() 205 if (!tpm->tests_done) in sandbox_tpm2_check_readyness() 214 static int sandbox_tpm2_fill_buf(u8 *recv, size_t *recv_len, u16 tag, u32 rc) in sandbox_tpm2_fill_buf() argument [all …]
|
| /openbmc/u-boot/drivers/serial/ |
| H A D | serial_mxc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 #include <asm/arch/imx-regs.h> 28 #define UCR1_RRDYEN (1<<9) /* Recv ready interrupt enable */ 29 #define UCR1_RDMAEN (1<<8) /* Recv ready DMA enable */ 31 #define UCR1_TXMPTYEN (1<<6) /* Transimitter empty interrupt enable */ 74 #define UCR4_DREN (1<<0) /* Recv data ready interrupt enable */ 93 #define USR2_TXFE (1<<14) /* Transmit buffer FIFO empty */ 102 #define USR2_RDR (1<<0) /* Recv data ready */ 105 #define UTS_TXEMPTY (1<<6) /* TxFIFO empty */ 106 #define UTS_RXEMPTY (1<<5) /* RxFIFO empty */ [all …]
|
| /openbmc/qemu/migration/ |
| H A D | multifd.h | 4 * Copyright (c) 2019-2020 Red Hat Inc 10 * See the COPYING file in the top-level directory. 102 * - normal pages (initial normal_pages entries) 103 * - zero pages (following zero_pages entries) 164 return data->type == MULTIFD_PAYLOAD_NONE; in multifd_payload_empty() 169 return data->type == MULTIFD_PAYLOAD_DEVICE_STATE; in multifd_payload_device_state() 178 data->type = type; in multifd_set_payload_type() 284 /* buffers to recv */ 294 /* used for de-compression methods */ 310 * Must allocate p->iov. If packets are in use (default), one [all …]
|
| H A D | multifd-nocomp.c | 4 * Copyright (c) 2019-2020 Red Hat Inc 10 * See the COPYING file in the top-level directory. 17 #include "migration-stats.h" 23 #include "qemu/error-report.h" 25 #include "qemu-file.h" 31 pages->offset = g_new0(ram_addr_t, multifd_ram_page_count()); in multifd_ram_payload_alloc() 36 g_clear_pointer(&pages->offset, g_free); in multifd_ram_payload_free() 51 MultiFDPages_t *pages = &p->data->u.ram; in multifd_set_file_bitmap() 53 assert(pages->block); in multifd_set_file_bitmap() 55 for (int i = 0; i < pages->normal_num; i++) { in multifd_set_file_bitmap() [all …]
|
| H A D | multifd.c | 4 * Copyright (c) 2019-2020 Red Hat Inc 10 * See the COPYING file in the top-level directory. 20 #include "qemu/error-report.h" 25 #include "migration-stats.h" 29 #include "qemu-file.h" 35 #include "io/channel-file.h" 36 #include "io/channel-socket.h" 90 * This is always posted by the recv threads, the migration thread 91 * uses it to wait for recv threads to finish assigned tasks. 105 multifd_ram_payload_alloc(&new->u.ram); in multifd_send_data_alloc() [all …]
|
| /openbmc/qemu/hw/usb/ |
| H A D | dev-smartcard-reader.c | 8 * Based on usb-serial.c, see its copyright and attributions below. 11 * See the COPYING file in the top-level directory. 12 * ------- (original copyright & attribution for usb-serial.c below) -------- 14 * Copyright (c) 2008 Samuel Thibault <samuel.thibault@ens-lyon.org> 31 * symptom: dmesg shows ERMOTEIO (-121), pcscd shows -99. This can happen 32 * when a short packet is sent, as seen in uhci-usb.c, resulting from a urb 41 #include "qemu/error-report.h" 43 #include "hw/qdev-properties.h" 53 if (lvl <= s->debug) { \ 54 printf("usb-ccid: " fmt , ## __VA_ARGS__); \ [all …]
|
| /openbmc/qemu/hw/i2c/ |
| H A D | npcm7xx_smbus.c | 22 #include "qemu/guest-random.h" 164 #define NPCM7XX_SMBUS_ENABLED(s) ((s)->ctl2 & NPCM7XX_SMBCTL2_ENABLE) 165 #define NPCM7XX_SMBUS_FIFO_ENABLED(s) ((s)->fif_ctl & \ 168 /* VERSION fields values, read-only. */ 204 if (s->ctl1 & NPCM7XX_SMBCTL1_INTEN) { in npcm7xx_smbus_update_irq() 205 level = !!((s->ctl1 & NPCM7XX_SMBCTL1_NMINTE && in npcm7xx_smbus_update_irq() 206 s->st & NPCM7XX_SMBST_NMATCH) || in npcm7xx_smbus_update_irq() 207 (s->st & NPCM7XX_SMBST_BER) || in npcm7xx_smbus_update_irq() 208 (s->st & NPCM7XX_SMBST_NEGACK) || in npcm7xx_smbus_update_irq() 209 (s->st & NPCM7XX_SMBST_SDAST) || in npcm7xx_smbus_update_irq() [all …]
|
| H A D | core.c | 12 #include "hw/qdev-properties.h" 16 #include "qemu/main-loop.h" 35 bus->saved_address = -1; in i2c_bus_pre_save() 36 if (!QLIST_EMPTY(&bus->current_devs)) { in i2c_bus_pre_save() 37 if (!bus->broadcast) { in i2c_bus_pre_save() 38 bus->saved_address = QLIST_FIRST(&bus->current_devs)->elt->address; in i2c_bus_pre_save() 40 bus->saved_address = I2C_BROADCAST; in i2c_bus_pre_save() 64 QLIST_INIT(&bus->current_devs); in i2c_init_bus() 65 QSIMPLEQ_INIT(&bus->pending_masters); in i2c_init_bus() 72 dev->address = address; in i2c_slave_set_address() [all …]
|
| /openbmc/u-boot/drivers/net/ |
| H A D | xilinx_emaclite.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * (C) Copyright 2007-2009 Michal Simek 42 /* Recv complete */ 44 /* Recv interrupt enable bit */ 64 u32 tx_ping; /* 0x0 - TX Ping buffer */ 66 u32 mdioaddr; /* 0x7e4 - MDIO Address Register */ 67 u32 mdiowr; /* 0x7e8 - MDIO Write Data Register */ 68 u32 mdiord;/* 0x7ec - MDIO Read Data Register */ 69 u32 mdioctrl; /* 0x7f0 - MDIO Control Register */ 70 u32 tx_ping_tplr; /* 0x7f4 - Tx packet length */ [all …]
|
| H A D | fsl_mcdmafec.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * (C) Copyright 2000-2004 7 * TsiChung Liew (Tsi-Chung.Liew@freescale.com) 26 #define LAST_PKTBUFSRX PKTBUFSRX - 1 47 -1, /* phy_addr */ 57 (struct fec_info_dma *)-1, /* next */ 74 -1, /* phy_addr */ 88 (struct fec_info_dma *)-1, /* next */ 109 struct fec_info_dma *info = dev->priv; in dbg_fec_regs() 110 volatile fecdma_t *fecp = (fecdma_t *) (info->iobase); in dbg_fec_regs() [all …]
|
| H A D | tsec.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright 2004-2011, 2013 Freescale Semiconductor, Inc. 73 tsec_local_mdio_write(priv->phyregs_sgmii, in_be32(&priv->regs->tbipa), in tsec_configure_serdes() 75 tsec_local_mdio_write(priv->phyregs_sgmii, in_be32(&priv->regs->tbipa), in tsec_configure_serdes() 77 tsec_local_mdio_write(priv->phyregs_sgmii, in_be32(&priv->regs->tbipa), in tsec_configure_serdes() 81 /* the 'way' for ethernet-CRC-32. Spliced in from Linux lib/crc32.c 82 * and this is the ethernet-crc method needed for TSEC -- and perhaps 83 * some other adapter -- hash tables 92 while (len--) { in ether_crc() 97 /* an reverse the bits, cuz of way they arrive -- last-first */ in ether_crc() [all …]
|
| H A D | lpc32xx_eth.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Written-by: Albert ARIBAUD - 3ADEV <albert.aribaud@3adev.fr> 78 /* MAC registers - 0x3106_0000 to 0x3106_01FC */ 81 u32 ipgt; /* Back-to-back Inter-Packet Gap reg. */ 82 u32 ipgr; /* Non-back-to-back IPG register */ 119 /* RX filter registers - 0x3106_0200 to 0x3106_0FDC */ 127 /* Module control registers - 0x3106_0FE0 to 0x3106_0FF8 */ 222 * mii_reg_read - miiphy_read callback function. 230 struct eth_device *dev = eth_get_dev_by_name(bus->name); in mii_reg_read() 232 struct lpc32xx_eth_registers *regs = dlpc32xx_eth->regs; in mii_reg_read() [all …]
|
| /openbmc/openbmc/poky/bitbake/lib/bb/asyncrpc/ |
| H A D | serv.py | 4 # SPDX-License-Identifier: GPL-2.0-only 55 client_protocol = await self.socket.recv() 74 header = await self.socket.recv() 76 # Empty line. End of headers 81 if self.client_headers.get("needs-headers", "false") == "true": 95 {"invoke-error": {"message": str(e)}} 129 socket = StreamConnection(reader, writer, -1) 263 socket = WebsocketConnection(websocket, -1)
|
| /openbmc/qemu/tests/qtest/ |
| H A D | libqmp.c | 14 * See the COPYING file in the top-level directory. 28 #include "qobject/json-parser.h" 57 g_assert(!qmp->response); in qmp_response() 58 qmp->response = qobject_to(QDict, obj); in qmp_response() 59 g_assert(qmp->response); in qmp_response() 73 len = recv(fd, &c, 1, 0); in qmp_fd_receive() 74 if (len == -1 && errno == EINTR) { in qmp_fd_receive() 78 if (len == -1 || len == 0) { in qmp_fd_receive() 98 * It's needed for qmp-commands like getfd/add-fd */ 119 cmsg->cmsg_len = CMSG_LEN(fdsize); in socket_send_fds() [all …]
|
| /openbmc/u-boot/include/ |
| H A D | net.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * LiMon Monitor (LiMon) - Network. 5 * Copyright 1994 - 2000 Neil Russell. 44 #define ARP_HLEN_ASCII (ARP_HLEN * 2) + (ARP_HLEN - 1) 89 * struct eth_pdata - Platform data for Ethernet MAC controllers 93 * @phy_interface: PHY interface to use - see PHY_INTERFACE_MODE_... 112 * struct eth_ops - functions of Ethernet MAC controllers 116 * recv: Check if the hardware received a packet. If so, set the pointer to the 118 * indicate that the hardware receive FIFO is empty. If 0 is returned, the 119 * network stack will not process the empty packet, but free_pkt() will be [all …]
|
| /openbmc/openbmc/poky/meta/lib/oeqa/utils/ |
| H A D | qemurunner.py | 4 # SPDX-License-Identifier: MIT 34 re_vt100 = re.compile(r'(\x1b\[|\x9b)[^@-_a-z]*[@-_a-z]|\x1b[@-_a-z]') 41 return os.read(o.fileno(), 1000000).decode("utf-8") 55 # target ip - from the command line or runqemu output 57 # host ip - where qemu is running 101 default_boot_patterns['search_login_succeeded'] = r"root@[a-zA-Z0-9\-]+:~#" 102 default_boot_patterns['search_cmd_finished'] = r"[a-zA-Z0-9]+@[a-zA-Z0-9\-]+:~#" 126 msg = todecode.decode("utf-8", errors='backslashreplace') 189 # use logfile to determine the recipe-sysroot-native path and 190 # then add in the site-packages path components and add that [all …]
|
| /openbmc/u-boot/board/work-microwave/work_92105/ |
| H A D | work_92105_display.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Written-by: Albert ARIBAUD <albert.aribaud@3adev.fr> 8 * The work_92105 display is a HD44780-compatible module 53 /* Function set: eight bits, two lines, 8-dot font */ 78 * Define slave as a module-wide local to save passing it around, 122 /* read register -- din = noop on xmit, din[1] = reg on recv */ in max6957aax_read() 178 /* #8, empty rectangle */ 190 /* #14, empty square */ 257 /* Show U-Boot version, date and time as a sign-of-life */ in work_92105_display_init() 295 "max6957aax - write or read display register:\n" [all …]
|
| /openbmc/u-boot/arch/arm/include/asm/arch-imx/ |
| H A D | imx-regs.h | 6 /* ------------------------------------------------------------------------ 8 * ------------------------------------------------------------------------ 319 #define PWMC_PRESCALER(x) (((x-1) & 0x7F) << 8) /* PRESCALER */ 327 #define PWMS_SAMPLE(x) ((x) & 0xFFFF) /* Contains a two-sample word */ 342 #define WSRA __REG(IMX_DMAC_BASE +0x40) /* W-Size Register A */ 343 #define XSRA __REG(IMX_DMAC_BASE +0x44) /* X-Size Register A */ 344 #define YSRA __REG(IMX_DMAC_BASE +0x48) /* Y-Size Register A */ 345 #define WSRB __REG(IMX_DMAC_BASE +0x4c) /* W-Size Register B */ 346 #define XSRB __REG(IMX_DMAC_BASE +0x50) /* X-Size Register B */ 347 #define YSRB __REG(IMX_DMAC_BASE +0x54) /* Y-Size Register B */ [all …]
|
| /openbmc/qemu/hw/char/ |
| H A D | trace-events | 12 # virtio-serial-bus.c 18 # virtio-console.c 56 imx_serial_read(const char *chrname, uint64_t addr, uint64_t value) "%s:[0x%03" PRIu64 "] -> 0x%08"… 57 imx_serial_write(const char *chrname, uint64_t addr, uint64_t value) "%s:[0x%03" PRIu64 "] <- 0x%08… 69 pl011_receive(int size) "recv %d chars" 71 # cmsdk-apb-uart.c 89 exynos_uart_dmabusy(uint32_t channel) "UART%d: DMA busy (Rx buffer empty)" 94 …t32_t channel, uint32_t offset, const char *name, uint64_t val) "UART%d: <0x%04x> %s <- 0x%" PRIx64 95 …t32_t channel, uint32_t offset, const char *name, uint64_t val) "UART%d: <0x%04x> %s -> 0x%" PRIx64 112 …*id, unsigned size, uint64_t offs, uint64_t val) " %s size %d offs 0x%02" PRIx64 " -> 0x%02" PRIx64 [all …]
|
| /openbmc/u-boot/drivers/usb/gadget/ |
| H A D | fotg210.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Dante Su <dantesu@faraday-tech.com> 73 return (id <= 0) ? -1 : ((id - 1) & 0x03); in ep_to_fifo() 79 struct fotg210_regs *regs = chip->regs; in ep_reset() 83 setbits_le32(®s->iep[ep - 1], IEP_RESET); in ep_reset() 85 clrbits_le32(®s->iep[ep - 1], IEP_RESET); in ep_reset() 87 clrbits_le32(®s->iep[ep - 1], IEP_STALL); in ep_reset() 90 setbits_le32(®s->oep[ep - 1], OEP_RESET); in ep_reset() 92 clrbits_le32(®s->oep[ep - 1], OEP_RESET); in ep_reset() 94 clrbits_le32(®s->oep[ep - 1], OEP_STALL); in ep_reset() [all …]
|
| /openbmc/docs/designs/ |
| H A D | remote-bios-configuration.md | 7 Created: 19-Nov-2019 40 Detailed password handling design -TBD(will be resolve using ARM TrustZone) 51 +--------------------------------------------------------------------------------------------------… 55 | +-------------+ +-------------+ +--------------------------------+ +-------+ … 56 … | | | | RBC daemon | | | +----------+ | 57 | | NET/ Tools +<-LAN->+ LAN-IPMID/ +<Dbus->+ | | | … 59 | +-------------+ +-------------+ | -SetAttribute() | | | … 60 | | -GetAttribute() | | | … 61 | +-------------+ +-------------+ | -VerifyPassword() | | | … 62 | | | | | | -ChangePassword() | | | … [all …]
|
| /openbmc/openbmc/poky/meta/lib/oe/ |
| H A D | utils.py | 4 # SPDX-License-Identifier: GPL-2.0-only 89 var = var[:-len(suffix)] 150 require ${@ oe.utils.all_distro_features(d, "foo bar", "foo-and-bar.inc") 170 require ${@ oe.utils.any_distro_features(d, "foo bar", "foo-or-bar.inc") 181 e.g. if PARALLEL_MAKE = "-j 10", this will return 10 as an integer. 187 # look for '-j' and throw other options (e.g. '-l') away 190 if opt == '-j': 192 elif opt.startswith('-j'): 209 option is found in PARALLEL_MAKE, returns an empty string 211 e.g. if PARALLEL_MAKE = "-j 10", parallel_make_argument(d, "-n %d") will return [all …]
|
| /openbmc/qemu/docs/ |
| H A D | rdma.txt | 31 data copies by bypassing the host networking stack. In particular, a TCP-based 32 migration, under certain types of memory-bound workloads, may take a more 38 over Converged Ethernet) as well as Infiniband-based. This implementation of 56 of RDMA migration may in fact be harmful to co-located VMs or other 65 bulk-phase round of the migration and can be enabled for extremely 66 high-performance RDMA hardware using the following command: 69 $ migrate_set_capability rdma-pin-all on # disabled by default 92 $ migrate_set_parameter max-bandwidth 40g # or whatever is the MAX of your RDMA device 96 qemu ..... -incoming rdma:host:port 101 $ migrate -d rdma:host:port [all …]
|
| /openbmc/u-boot/drivers/usb/eth/ |
| H A D | r8152.c | 1 // SPDX-License-Identifier: GPL-2.0 46 /* TP-LINK */ 76 ret = usb_control_msg(tp->udev, usb_rcvctrlpipe(tp->udev, 0), in get_registers() 89 return usb_control_msg(tp->udev, usb_sndctrlpipe(tp->udev, 0), in set_registers() 103 return -EINVAL; in generic_ocp_read() 106 return -EINVAL; in generic_ocp_read() 116 size -= txsize; in generic_ocp_read() 132 return -EINVAL; in generic_ocp_write() 135 return -EINVAL; in generic_ocp_write() 147 size -= 4; in generic_ocp_write() [all …]
|
| /openbmc/ipmitool/ |
| H A D | ChangeLog | 1 version 1.8.15 2014-11-24 2 * ID: 340 - ipmitool sol session improperly closes on packet retry 3 * ID: 277 - support for hostnames longer than 64 chars 4 * ID: 313 - ipmitool doesn't support hostname long than 64 symbols 5 * ID: 277 - Minor issue with ipmi_intf_session_set_hostname() 6 * ID: 247 - 'sensor thresh' help output is wrong 7 * ID: 324 - conflicting declaration write_fru_area() 8 * ID: 337 - Add support for 13G Dell PowerEdge 9 * ID: 325 - DDR4 DIMM Decoding Logic 10 * ID: 328 - HPM.2 fixes [all …]
|