| /openbmc/phosphor-debug-collector/ |
| H A D | .shellcheck-ignore | 2 tools/dreport.d/dreport 3 tools/dreport.d/ibm.d/gendumpheader 4 tools/dreport.d/ibm.d/plugins.d/vpd_data 5 tools/dreport.d/include.d/functions 6 tools/dreport.d/openpower.d/plugins.d/obmcconsole1 7 tools/dreport.d/plugins.d/altfwprintenv 8 tools/dreport.d/plugins.d/bmcstate 9 tools/dreport.d/plugins.d/chassisstate 10 tools/dreport.d/plugins.d/corefile 11 tools/dreport.d/plugins.d/cpuinfo [all …]
|
| /openbmc/qemu/tests/qtest/ |
| H A D | tco-test.c | 51 static void test_end(TestData *d) in test_end() argument 53 g_free(d->dev); in test_end() 54 qpci_free_pc(d->bus); in test_end() 55 qtest_quit(d->qts); in test_end() 58 static void test_init(TestData *d) in test_init() argument 63 d->noreboot ? "-global ICH9-LPC.noreboot=true" : "", in test_init() 64 !d->args ? "" : d->args); in test_init() 67 d->bus = qpci_new_pc(qs, NULL); in test_init() 68 d->dev = qpci_device_find(d->bus, QPCI_DEVFN(0x1f, 0x00)); in test_init() 69 g_assert(d->dev != NULL); in test_init() [all …]
|
| /openbmc/openbmc/poky/bitbake/lib/bb/tests/ |
| H A D | data.py | 42 self.d = bb.data.init() 43 self.d["foo"] = "value_of_foo" 44 self.d["bar"] = "value_of_bar" 45 self.d["value_of_foo"] = "value_of_'value_of_foo'" 48 val = self.d.expand("${foo}") 52 val = self.d.expand("${${foo}}") 56 val = self.d.expand("${${foo}} ${bar}") 60 val = self.d.expand("${@5*12}") 64 val = self.d.expand("${@{ 'green': 1, 'blue': 2 }['green']}") 68 self.d.setVar("bar", "${unsetvar}") [all …]
|
| H A D | parse.py | 35 self.d = bb.data.init() 36 bb.parse.siggen = bb.siggen.init(self.d) 51 d = bb.parse.handle(f.name, self.d)[''] 52 self.assertEqual(d.getVar("A"), "1") 53 self.assertEqual(d.getVar("B"), "2") 54 self.assertEqual(d.getVar("C"), "3") 60 d = bb.parse.handle(f.name, self.d)[''] 73 d = bb.parse.handle(f.name, self.d)[''] 74 self.assertEqual(d.getVar("A"), None) 75 self.assertEqual(d.getVarFlag("A","flag"), None) [all …]
|
| /openbmc/u-boot/scripts/dtc/ |
| H A D | data.c | 23 void data_free(struct data d) in data_free() argument 27 m = d.markers; in data_free() 35 if (d.val) in data_free() 36 free(d.val); in data_free() 39 struct data data_grow_for(struct data d, int xlen) in data_grow_for() argument 45 return d; in data_grow_for() 47 nd = d; in data_grow_for() 51 while ((d.len + xlen) > newsize) in data_grow_for() 54 nd.val = xrealloc(d.val, newsize); in data_grow_for() 61 struct data d; in data_copy_mem() local [all …]
|
| /openbmc/qemu/net/ |
| H A D | stream_data.c | 21 NetStreamData *d = data; in net_stream_data_writable() local 23 d->ioc_write_tag = 0; in net_stream_data_writable() 25 qemu_flush_queued_packets(&d->nc); in net_stream_data_writable() 30 ssize_t net_stream_data_receive(NetStreamData *d, const uint8_t *buf, in net_stream_data_receive() argument 48 remaining = iov_size(iov, 2) - d->send_index; in net_stream_data_receive() 49 nlocal_iov = iov_copy(local_iov, 2, iov, 2, d->send_index, remaining); in net_stream_data_receive() 50 ret = qio_channel_writev(d->ioc, local_iov, nlocal_iov, NULL); in net_stream_data_receive() 55 d->send_index = 0; in net_stream_data_receive() 59 d->send_index += ret; in net_stream_data_receive() 60 d->ioc_write_tag = qio_channel_add_watch(d->ioc, G_IO_OUT, in net_stream_data_receive() [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-multimedia/recipes-multimedia/cdparanoia/files/ |
| H A D | 0002-interface-remove-C-reserved-keyword.patch | 39 static int timed_ioctl(cdrom_drive *d, int fd, int command, void *arg){ 42 - int ret1=clock_gettime(d->private->clock,&tv1); 43 + int ret1=clock_gettime(d->priv->clock,&tv1); 45 - int ret3=clock_gettime(d->private->clock,&tv2); 46 + int ret3=clock_gettime(d->priv->clock,&tv2); 48 - d->private->last_milliseconds=-1; 49 + d->priv->last_milliseconds=-1; 51 - d->private->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000. + (tv2.tv_nsec-tv1.tv_nsec)/1000… 52 + d->priv->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000. + (tv2.tv_nsec-tv1.tv_nsec)/1000000… 60 @@ -39,9 +39,9 @@ int cdda_close(cdrom_drive *d){ [all …]
|
| /openbmc/qemu/hw/9pfs/ |
| H A D | trace-events | 4 v9fs_rcancel(uint16_t tag, uint8_t id) "tag %d id %d" 5 v9fs_rerror(uint16_t tag, uint8_t id, int err) "tag %d id %d err %d" 6 v9fs_version(uint16_t tag, uint8_t id, int32_t msize, char* version) "tag %d id %d msize %d version… 7 v9fs_version_return(uint16_t tag, uint8_t id, int32_t msize, char* version) "tag %d id %d msize %d … 8 …int32_t fid, int32_t afid, char* uname, char* aname) "tag %u id %u fid %d afid %d uname %s aname %… 10 v9fs_stat(uint16_t tag, uint8_t id, int32_t fid) "tag %d id %d fid %d" 11 …ode, int32_t atime, int32_t mtime, int64_t length) "tag %d id %d stat={mode %d atime %d mtime %d l… 12 v9fs_getattr(uint16_t tag, uint8_t id, int32_t fid, uint64_t request_mask) "tag %d id %d fid %d req… 13 …, uint64_t result_mask, uint32_t mode, uint32_t uid, uint32_t gid) "tag %d id %d getattr={result_m… 14 …nt32_t newfid, uint16_t nwnames, const char* wnames) "tag=%d id=%d fid=%d newfid=%d nwnames=%d wna… [all …]
|
| /openbmc/qemu/hw/watchdog/ |
| H A D | wdt_i6300esb.c | 112 static void i6300esb_restart_timer(I6300State *d, int stage) in OBJECT_DECLARE_SIMPLE_TYPE() 116 if (!d->enabled) in OBJECT_DECLARE_SIMPLE_TYPE() 119 d->stage = stage; in OBJECT_DECLARE_SIMPLE_TYPE() 121 if (d->stage <= 1) in OBJECT_DECLARE_SIMPLE_TYPE() 122 timeout = d->timer1_preload; in OBJECT_DECLARE_SIMPLE_TYPE() 124 timeout = d->timer2_preload; in OBJECT_DECLARE_SIMPLE_TYPE() 126 if (d->clock_scale == CLOCK_SCALE_1KHZ) in OBJECT_DECLARE_SIMPLE_TYPE() 135 i6300esb_debug("stage %d, timeout %" PRIi64 "\n", d->stage, timeout); in OBJECT_DECLARE_SIMPLE_TYPE() 137 timer_mod(d->timer, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + timeout); in OBJECT_DECLARE_SIMPLE_TYPE() 141 static void i6300esb_disable_timer(I6300State *d) in i6300esb_disable_timer() argument [all …]
|
| /openbmc/qemu/hw/pci-bridge/ |
| H A D | pcie_root_port.c | 21 static void rp_aer_vector_update(PCIDevice *d) in rp_aer_vector_update() argument 23 PCIERootPortClass *rpc = PCIE_ROOT_PORT_GET_CLASS(d); in rp_aer_vector_update() 26 pcie_aer_root_set_vector(d, rpc->aer_vector(d)); in rp_aer_vector_update() 30 static void rp_write_config(PCIDevice *d, uint32_t address, in rp_write_config() argument 34 pci_get_long(d->config + d->exp.aer_cap + PCI_ERR_ROOT_COMMAND); in rp_write_config() 37 pcie_cap_slot_get(d, &slt_ctl, &slt_sta); in rp_write_config() 39 pci_bridge_write_config(d, address, val, len); in rp_write_config() 40 rp_aer_vector_update(d); in rp_write_config() 41 pcie_cap_slot_write_config(d, slt_ctl, slt_sta, address, val, len); in rp_write_config() 42 pcie_aer_write_config(d, address, val, len); in rp_write_config() [all …]
|
| /openbmc/qemu/hw/xen/ |
| H A D | xen-host-pci-device.c | 47 static void xen_host_pci_fill_local_addr(XenHostPCIDevice *d, Error **errp) in xen_host_pci_fill_local_addr() argument 73 if (domain != d->domain || in xen_host_pci_fill_local_addr() 74 bus != d->bus || in xen_host_pci_fill_local_addr() 75 dev != d->dev || in xen_host_pci_fill_local_addr() 76 func != d->func) in xen_host_pci_fill_local_addr() 84 d->local_domain = domain; in xen_host_pci_fill_local_addr() 85 d->local_bus = bus; in xen_host_pci_fill_local_addr() 86 d->local_dev = dev; in xen_host_pci_fill_local_addr() 87 d->local_func = func; in xen_host_pci_fill_local_addr() 91 d->domain, d->bus, d->dev, d->func); in xen_host_pci_fill_local_addr() [all …]
|
| /openbmc/u-boot/drivers/bios_emulator/include/x86emu/ |
| H A D | prim_ops.h | 46 u16 aaa_word (u16 d); 47 u16 aas_word (u16 d); 48 u16 aad_word (u16 d); 49 u16 aam_word (u8 d); 50 u8 adc_byte (u8 d, u8 s); 51 u16 adc_word (u16 d, u16 s); 52 u32 adc_long (u32 d, u32 s); 53 u8 add_byte (u8 d, u8 s); 54 u16 add_word (u16 d, u16 s); 55 u32 add_long (u32 d, u32 s); [all …]
|
| /openbmc/qemu/tests/tcg/s390x/ |
| H A D | vxeh2_vstrs.c | 35 S390Vector v2 = {.d[0] = 0x222000205e410000ULL, .d[1] = 0}; in test_ignored_match() 36 S390Vector v3 = {.d[0] = 0x205e410000000000ULL, .d[1] = 0}; in test_ignored_match() 37 S390Vector v4 = {.d[0] = 3, .d[1] = 0}; in test_ignored_match() 40 assert(v1.d[0] == 16); in test_ignored_match() 41 assert(v1.d[1] == 0); in test_ignored_match() 47 S390Vector v2 = {.d[0] = 0x5300000000000000ULL, .d[1] = 0}; in test_empty_needle() 48 S390Vector v3 = {.d[0] = 0, .d[1] = 0}; in test_empty_needle() 49 S390Vector v4 = {.d[0] = 0, .d[1] = 0}; in test_empty_needle() 52 assert(v1.d[0] == 0); in test_empty_needle() 53 assert(v1.d[1] == 0); in test_empty_needle() [all …]
|
| /openbmc/qemu/tests/qtest/libqos/ |
| H A D | e1000e.c | 39 void e1000e_tx_ring_push(QE1000E *d, void *descr) in e1000e_tx_ring_push() argument 41 QE1000E_PCI *d_pci = container_of(d, QE1000E_PCI, e1000e); in e1000e_tx_ring_push() 42 uint32_t tail = e1000e_macreg_read(d, E1000_TDT); in e1000e_tx_ring_push() 43 uint32_t len = e1000e_macreg_read(d, E1000_TDLEN) / E1000_RING_DESC_LEN; in e1000e_tx_ring_push() 46 d->tx_ring + tail * E1000_RING_DESC_LEN, in e1000e_tx_ring_push() 48 e1000e_macreg_write(d, E1000_TDT, (tail + 1) % len); in e1000e_tx_ring_push() 52 d->tx_ring + tail * E1000_RING_DESC_LEN, in e1000e_tx_ring_push() 56 void e1000e_rx_ring_push(QE1000E *d, void *descr) in e1000e_rx_ring_push() argument 58 QE1000E_PCI *d_pci = container_of(d, QE1000E_PCI, e1000e); in e1000e_rx_ring_push() 59 uint32_t tail = e1000e_macreg_read(d, E1000_RDT); in e1000e_rx_ring_push() [all …]
|
| H A D | igb.c | 57 QE1000E_PCI *d = (QE1000E_PCI *) obj; in igb_pci_start_hw() local 61 qpci_device_enable(&d->pci_dev); in igb_pci_start_hw() 64 val = e1000e_macreg_read(&d->e1000e, E1000_CTRL); in igb_pci_start_hw() 65 e1000e_macreg_write(&d->e1000e, E1000_CTRL, val | E1000_CTRL_RST | E1000_CTRL_SLU); in igb_pci_start_hw() 68 e1000e_macreg_write(&d->e1000e, E1000_MDIC, in igb_pci_start_hw() 74 qtest_clock_step(d->pci_dev.bus->qts, 900000000); in igb_pci_start_hw() 77 qpci_msix_enable(&d->pci_dev); in igb_pci_start_hw() 78 e1000e_macreg_write(&d->e1000e, E1000_IVAR0, IGB_IVAR_TEST_CFG); in igb_pci_start_hw() 81 val = e1000e_macreg_read(&d->e1000e, E1000_STATUS); in igb_pci_start_hw() 85 e1000e_macreg_write(&d->e1000e, E1000_RCTL, 0); in igb_pci_start_hw() [all …]
|
| H A D | virtio.c | 26 static uint16_t qvirtio_readw(QVirtioDevice *d, QTestState *qts, uint64_t addr) in qvirtio_readw() argument 30 if (d->features & (1ull << VIRTIO_F_VERSION_1)) { in qvirtio_readw() 40 static uint32_t qvirtio_readl(QVirtioDevice *d, QTestState *qts, uint64_t addr) in qvirtio_readl() argument 44 if (d->features & (1ull << VIRTIO_F_VERSION_1)) { in qvirtio_readl() 54 static void qvirtio_writew(QVirtioDevice *d, QTestState *qts, in qvirtio_writew() argument 57 if (d->features & (1ull << VIRTIO_F_VERSION_1)) { in qvirtio_writew() 65 static void qvirtio_writel(QVirtioDevice *d, QTestState *qts, in qvirtio_writel() argument 68 if (d->features & (1ull << VIRTIO_F_VERSION_1)) { in qvirtio_writel() 76 static void qvirtio_writeq(QVirtioDevice *d, QTestState *qts, in qvirtio_writeq() argument 79 if (d->features & (1ull << VIRTIO_F_VERSION_1)) { in qvirtio_writeq() [all …]
|
| H A D | virtio-pci.c | 42 static uint8_t qvirtio_pci_config_readb(QVirtioDevice *d, uint64_t off) in qvirtio_pci_config_readb() argument 44 QVirtioPCIDevice *dev = container_of(d, QVirtioPCIDevice, vdev); in qvirtio_pci_config_readb() 55 static uint16_t qvirtio_pci_config_readw(QVirtioDevice *d, uint64_t off) in qvirtio_pci_config_readw() argument 57 QVirtioPCIDevice *dev = container_of(d, QVirtioPCIDevice, vdev); in qvirtio_pci_config_readw() 61 if (qvirtio_is_big_endian(d)) { in qvirtio_pci_config_readw() 67 static uint32_t qvirtio_pci_config_readl(QVirtioDevice *d, uint64_t off) in qvirtio_pci_config_readl() argument 69 QVirtioPCIDevice *dev = container_of(d, QVirtioPCIDevice, vdev); in qvirtio_pci_config_readl() 73 if (qvirtio_is_big_endian(d)) { in qvirtio_pci_config_readl() 79 static uint64_t qvirtio_pci_config_readq(QVirtioDevice *d, uint64_t off) in qvirtio_pci_config_readq() argument 81 QVirtioPCIDevice *dev = container_of(d, QVirtioPCIDevice, vdev); in qvirtio_pci_config_readq() [all …]
|
| /openbmc/qemu/chardev/ |
| H A D | char-mux.c | 47 MuxChardev *d = MUX_CHARDEV(chr); in mux_chr_write() local 49 if (!d->timestamps) { in mux_chr_write() 50 ret = qemu_chr_fe_write(&d->chr, buf, len); in mux_chr_write() 56 if (d->linestart) { in mux_chr_write() 62 if (d->timestamps_start == -1) { in mux_chr_write() 63 d->timestamps_start = ti; in mux_chr_write() 65 ti -= d->timestamps_start; in mux_chr_write() 75 qemu_chr_fe_write_all(&d->chr, in mux_chr_write() 77 d->linestart = false; in mux_chr_write() 79 ret += qemu_chr_fe_write(&d->chr, buf + i, 1); in mux_chr_write() [all …]
|
| /openbmc/qemu/hw/display/ |
| H A D | vga-helpers.h | 25 static inline void vga_draw_glyph_line(uint8_t *d, uint32_t font_data, in vga_draw_glyph_line() argument 28 ((uint32_t *)d)[0] = (-((font_data >> 7)) & xorcol) ^ bgcol; in vga_draw_glyph_line() 29 ((uint32_t *)d)[1] = (-((font_data >> 6) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 30 ((uint32_t *)d)[2] = (-((font_data >> 5) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 31 ((uint32_t *)d)[3] = (-((font_data >> 4) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 32 ((uint32_t *)d)[4] = (-((font_data >> 3) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 33 ((uint32_t *)d)[5] = (-((font_data >> 2) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 34 ((uint32_t *)d)[6] = (-((font_data >> 1) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 35 ((uint32_t *)d)[7] = (-((font_data >> 0) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 38 static void vga_draw_glyph8(uint8_t *d, int linesize, in vga_draw_glyph8() argument [all …]
|
| /openbmc/qemu/hw/dma/ |
| H A D | i8257.c | 72 I8257State *d = opaque; in i8257_write_page() local 80 d->regs[ichan].page = data; in i8257_write_page() 85 I8257State *d = opaque; in i8257_write_pageh() local 93 d->regs[ichan].pageh = data; in i8257_write_pageh() 98 I8257State *d = opaque; in i8257_read_page() local 106 return d->regs[ichan].page; in i8257_read_page() 111 I8257State *d = opaque; in i8257_read_pageh() local 119 return d->regs[ichan].pageh; in i8257_read_pageh() 122 static inline void i8257_init_chan(I8257State *d, int ichan) in i8257_init_chan() argument 126 r = d->regs + ichan; in i8257_init_chan() [all …]
|
| /openbmc/qemu/target/arm/tcg/ |
| H A D | crypto_helper.c | 68 t.d[0] = st->d[1] ^ rk->d[1]; in HELPER() 69 t.d[1] = st->d[0] ^ rk->d[0]; in HELPER() 71 ad->d[0] = t.d[1]; in HELPER() 72 ad->d[1] = t.d[0]; in HELPER() 93 t.d[0] = st->d[1] ^ rk->d[1]; in HELPER() 94 t.d[1] = st->d[0] ^ rk->d[0]; in HELPER() 96 ad->d[0] = t.d[1]; in HELPER() 97 ad->d[1] = t.d[0]; in HELPER() 117 t.d[0] = st->d[1]; in HELPER() 118 t.d[1] = st->d[0]; in HELPER() [all …]
|
| /openbmc/phosphor-led-sysfs/test/ |
| H A D | test_led_description.cpp | 33 LedDescr d = runtest("devicename:color:function:part4"); in TEST() local 35 ASSERT_EQ("devicename", d.devicename); in TEST() 36 ASSERT_EQ("color", d.color); in TEST() 37 ASSERT_EQ("function", d.function); in TEST() 42 LedDescr d = runtest("devicename:color:function"); in TEST() local 44 ASSERT_EQ("devicename", d.devicename); in TEST() 45 ASSERT_EQ("color", d.color); in TEST() 46 ASSERT_EQ("function", d.function); in TEST() 51 LedDescr d = runtest("red:fault"); in TEST() local 53 ASSERT_EQ(std::nullopt, d.devicename); in TEST() [all …]
|
| /openbmc/openbmc/poky/meta/lib/oe/ |
| H A D | spdx_common.py | 40 def is_work_shared_spdx(d): argument 41 return '/work-shared/' in d.getVar('S') 44 def load_spdx_license_data(d): argument 45 with open(d.getVar("SPDX_LICENSES"), "r") as f: 53 def process_sources(d): argument 58 pn = d.getVar("PN") 59 assume_provided = (d.getVar("ASSUME_PROVIDED") or "").split() 61 for p in d.getVar("PROVIDES").split(): 70 if d.getVar("PN") == "libtool-cross": 72 if d.getVar("PN") == "libgcc-initial": [all …]
|
| /openbmc/qemu/hw/ide/ |
| H A D | sii3112.c | 45 SiI3112PCIState *d = opaque; in sii3112_reg_read() local 50 val = d->i.bmdma[0].cmd; in sii3112_reg_read() 53 val = d->regs[0].swdata; in sii3112_reg_read() 56 val = d->i.bmdma[0].status; in sii3112_reg_read() 62 val = bmdma_addr_ioport_ops.read(&d->i.bmdma[0], addr - 4, size); in sii3112_reg_read() 65 val = d->i.bmdma[1].cmd; in sii3112_reg_read() 68 val = d->regs[1].swdata; in sii3112_reg_read() 71 val = d->i.bmdma[1].status; in sii3112_reg_read() 77 val = bmdma_addr_ioport_ops.read(&d->i.bmdma[1], addr - 12, size); in sii3112_reg_read() 80 val = d->i.bmdma[0].cmd; in sii3112_reg_read() [all …]
|
| /openbmc/qemu/hw/usb/ |
| H A D | trace-events | 4 …st char *port, int ep, void *p, const char *o, const char *n) "bus %d, port %s, ep %d, packet %p, … 5 …st char *port, int ep, void *p, const char *o, const char *n) "bus %d, port %s, ep %d, packet %p, … 8 usb_port_claim(int bus, const char *port) "bus %d, port %s" 9 usb_port_attach(int bus, const char *port, const char *devspeed, const char *portspeed) "bus %d, po… 10 usb_port_detach(int bus, const char *port) "bus %d, port %s" 11 usb_port_release(int bus, const char *port) "bus %d, port %s" 18 …x next 0x%.8x be 0x%.8x, frame_number 0x%.8x starting_frame 0x%.8x, frame_count 0x%.8x relative %d" 20 usb_ohci_iso_td_relative_frame_number_neg(int rel) "ISO_TD R=%d < 0" 21 usb_ohci_iso_td_relative_frame_number_big(int rel, int count) "ISO_TD R=%d > FC=%d" 22 usb_ohci_iso_td_bad_direction(int dir) "Bad direction %d" [all …]
|