| /openbmc/u-boot/fs/yaffs2/ |
| H A D | yaffs_checkptrw.c | 17 static int yaffs2_checkpt_space_ok(struct yaffs_dev *dev) in yaffs2_checkpt_space_ok() argument 19 int blocks_avail = dev->n_erased_blocks - dev->param.n_reserved_blocks; in yaffs2_checkpt_space_ok() 27 static int yaffs_checkpt_erase(struct yaffs_dev *dev) in yaffs_checkpt_erase() argument 31 if (!dev->param.erase_fn) in yaffs_checkpt_erase() 35 dev->internal_start_block, dev->internal_end_block); in yaffs_checkpt_erase() 37 for (i = dev->internal_start_block; i <= dev->internal_end_block; i++) { in yaffs_checkpt_erase() 38 struct yaffs_block_info *bi = yaffs_get_block_info(dev, i); in yaffs_checkpt_erase() 43 dev->n_erasures++; in yaffs_checkpt_erase() 45 if (dev->param. in yaffs_checkpt_erase() 46 erase_fn(dev, in yaffs_checkpt_erase() [all …]
|
| /openbmc/qemu/tests/docker/dockerfiles/ |
| H A D | alpine.docker | 12 alsa-lib-dev \ 13 attr-dev \ 18 bzip2-dev \ 20 capstone-dev \ 22 ceph-dev \ 24 cmocka-dev \ 27 curl-dev \ 28 cyrus-sasl-dev \ 31 dtc-dev \ 32 eudev-dev \ [all...] |
| H A D | ubuntu2204.docker | 34 libaio-dev \ 36 libasound2-dev \ 37 libattr1-dev \ 38 libbpf-dev \ 39 libbrlapi-dev \ 40 libbz2-dev \ 41 libc6-dev \ 42 libcacard-dev \ 43 libcap-ng-dev \ 44 libcapstone-dev \ [all...] |
| H A D | debian.docker | 35 libaio-dev \ 37 libasound2-dev \ 38 libattr1-dev \ 39 libbpf-dev \ 40 libbrlapi-dev \ 41 libbz2-dev \ 42 libc6-dev \ 43 libcacard-dev \ 44 libcap-ng-dev \ 45 libcapstone-dev \ [all...] |
| H A D | debian-amd64-cross.docker | 34 libclang-rt-dev \ 35 libglib2.0-dev \ 86 eatmydata apt-get install --no-install-recommends -y dpkg-dev && \ 89 libaio-dev:amd64 \ 91 libasound2-dev:amd64 \ 92 libattr1-dev:amd64 \ 93 libbpf-dev:amd64 \ 94 libbrlapi-dev:amd64 \ 95 libbz2-dev:amd64 \ 96 libc6-dev [all...] |
| H A D | debian-armhf-cross.docker | 34 libclang-rt-dev \ 35 libglib2.0-dev \ 86 eatmydata apt-get install --no-install-recommends -y dpkg-dev && \ 89 libaio-dev:armhf \ 91 libasound2-dev:armhf \ 92 libattr1-dev:armhf \ 93 libbpf-dev:armhf \ 94 libbrlapi-dev:armhf \ 95 libbz2-dev:armhf \ 96 libc6-dev [all...] |
| H A D | debian-arm64-cross.docker | 34 libclang-rt-dev \ 35 libglib2.0-dev \ 86 eatmydata apt-get install --no-install-recommends -y dpkg-dev && \ 89 libaio-dev:arm64 \ 91 libasound2-dev:arm64 \ 92 libattr1-dev:arm64 \ 93 libbpf-dev:arm64 \ 94 libbrlapi-dev:arm64 \ 95 libbz2-dev:arm64 \ 96 libc6-dev [all...] |
| H A D | debian-mipsel-cross.docker | 34 libclang-rt-dev \ 35 libglib2.0-dev \ 85 eatmydata apt-get install --no-install-recommends -y dpkg-dev && \ 88 libaio-dev:mipsel \ 89 libasound2-dev:mipsel \ 90 libattr1-dev:mipsel \ 91 libbpf-dev:mipsel \ 92 libbrlapi-dev:mipsel \ 93 libbz2-dev:mipsel \ 94 libc6-dev [all...] |
| H A D | debian-mips64el-cross.docker | 34 libclang-rt-dev \ 35 libglib2.0-dev \ 85 eatmydata apt-get install --no-install-recommends -y dpkg-dev && \ 88 libaio-dev:mips64el \ 89 libasound2-dev:mips64el \ 90 libattr1-dev:mips64el \ 91 libbpf-dev:mips64el \ 92 libbrlapi-dev:mips64el \ 93 libbz2-dev:mips64el \ 94 libc6-dev [all...] |
| H A D | debian-i686-cross.docker | 34 libclang-rt-dev \ 35 libglib2.0-dev \ 86 eatmydata apt-get install --no-install-recommends -y dpkg-dev && \ 89 libaio-dev:i386 \ 91 libasound2-dev:i386 \ 92 libattr1-dev:i386 \ 93 libbpf-dev:i386 \ 94 libbrlapi-dev:i386 \ 95 libbz2-dev:i386 \ 96 libc6-dev [all...] |
| H A D | debian-ppc64el-cross.docker | 34 libclang-rt-dev \ 35 libglib2.0-dev \ 86 eatmydata apt-get install --no-install-recommends -y dpkg-dev && \ 89 libaio-dev:ppc64el \ 91 libasound2-dev:ppc64el \ 92 libattr1-dev:ppc64el \ 93 libbpf-dev:ppc64el \ 94 libbrlapi-dev:ppc64el \ 95 libbz2-dev:ppc64el \ 96 libc6-dev [all...] |
| H A D | debian-s390x-cross.docker | 34 libclang-rt-dev \ 35 libglib2.0-dev \ 86 eatmydata apt-get install --no-install-recommends -y dpkg-dev && \ 89 libaio-dev:s390x \ 91 libasound2-dev:s390x \ 92 libattr1-dev:s390x \ 93 libbpf-dev:s390x \ 94 libbrlapi-dev:s390x \ 95 libbz2-dev:s390x \ 96 libc6-dev [all...] |
| /openbmc/u-boot/lib/ |
| H A D | tpm_api.c | 14 u32 tpm_startup(struct udevice *dev, enum tpm_startup_type mode) in tpm_startup() argument 16 if (tpm_is_v1(dev)) { in tpm_startup() 17 return tpm1_startup(dev, mode); in tpm_startup() 18 } else if (tpm_is_v2(dev)) { in tpm_startup() 32 return tpm2_startup(dev, type); in tpm_startup() 38 u32 tpm_auto_start(struct udevice *dev) in tpm_auto_start() argument 40 if (tpm_is_v2(dev)) in tpm_auto_start() 41 return tpm2_auto_start(dev); in tpm_auto_start() 46 u32 tpm_resume(struct udevice *dev) in tpm_resume() argument 48 if (tpm_is_v1(dev)) in tpm_resume() [all …]
|
| /openbmc/dbus-sensors/docs/mctp/ |
| H A D | openbmc_usb_mctp.tla | 13 DeviceEventType == [ dev: Devices, state: DeviceStateType ] 14 PlugEvent(dev) == [ dev |-> dev, state |-> "plugged" ] 15 UnplugEvent(dev) == [ dev |-> dev, state |-> "unplugged"] 18 InventoryEventType == [ dev: Devices, state: InventoryStateType ] 19 PublishEvent(dev) == [ dev |-> dev, state |-> "present" ] 20 RetractEvent(dev) == [ dev |-> dev, state |-> "absent" ] 23 NetdevEventType == [ dev: Devices, state: NetdevStateType ] 24 NetdevAddEvent(dev) == [ dev |-> dev, state |-> "present" ] 25 NetdevRemoveEvent(dev) == [ dev |-> dev, state |-> "absent" ] 28 MctpdRequestType == [ dev: Devices, action: MctpdActionType ] [all …]
|
| /openbmc/qemu/hw/pci/ |
| H A D | msix.c | 37 static MSIMessage msix_prepare_message(PCIDevice *dev, unsigned vector) in msix_prepare_message() argument 39 uint8_t *table_entry = dev->msix_table + vector * PCI_MSIX_ENTRY_SIZE; in msix_prepare_message() 47 MSIMessage msix_get_message(PCIDevice *dev, unsigned vector) in msix_get_message() argument 49 return dev->msix_prepare_message(dev, vector); in msix_get_message() 56 void msix_set_message(PCIDevice *dev, int vector, struct MSIMessage msg) in msix_set_message() argument 58 uint8_t *table_entry = dev->msix_table + vector * PCI_MSIX_ENTRY_SIZE; in msix_set_message() 70 static uint8_t *msix_pending_byte(PCIDevice *dev, int vector) in msix_pending_byte() argument 72 return dev->msix_pba + vector / 8; in msix_pending_byte() 75 int msix_is_pending(PCIDevice *dev, unsigned int vector) in msix_is_pending() argument 77 return *msix_pending_byte(dev, vector) & msix_pending_mask(vector); in msix_is_pending() [all …]
|
| H A D | msi.c | 84 #define MSI_DEV_PRINTF(dev, fmt, ...) \ argument 85 MSI_DPRINTF("%s:%x " fmt, (dev)->name, (dev)->devfn, ## __VA_ARGS__) 93 static inline uint8_t msi_flags_off(const PCIDevice* dev) in msi_flags_off() argument 95 return dev->msi_cap + PCI_MSI_FLAGS; in msi_flags_off() 98 static inline uint8_t msi_address_lo_off(const PCIDevice* dev) in msi_address_lo_off() argument 100 return dev->msi_cap + PCI_MSI_ADDRESS_LO; in msi_address_lo_off() 103 static inline uint8_t msi_address_hi_off(const PCIDevice* dev) in msi_address_hi_off() argument 105 return dev->msi_cap + PCI_MSI_ADDRESS_HI; in msi_address_hi_off() 108 static inline uint8_t msi_data_off(const PCIDevice* dev, bool msi64bit) in msi_data_off() argument 110 return dev->msi_cap + (msi64bit ? PCI_MSI_DATA_64 : PCI_MSI_DATA_32); in msi_data_off() [all …]
|
| /openbmc/qemu/tests/qtest/libqos/ |
| H A D | virtio-pci-modern.c | 18 QVirtioPCIDevice *dev = container_of(d, QVirtioPCIDevice, vdev); in config_readb() local 19 return qpci_io_readb(dev->pdev, dev->bar, dev->device_cfg_offset + addr); in config_readb() 24 QVirtioPCIDevice *dev = container_of(d, QVirtioPCIDevice, vdev); in config_readw() local 25 return qpci_io_readw(dev->pdev, dev->bar, dev->device_cfg_offset + addr); in config_readw() 30 QVirtioPCIDevice *dev = container_of(d, QVirtioPCIDevice, vdev); in config_readl() local 31 return qpci_io_readl(dev->pdev, dev->bar, dev->device_cfg_offset + addr); in config_readl() 36 QVirtioPCIDevice *dev = container_of(d, QVirtioPCIDevice, vdev); in config_readq() local 37 return qpci_io_readq(dev->pdev, dev->bar, dev->device_cfg_offset + addr); in config_readq() 42 QVirtioPCIDevice *dev = container_of(d, QVirtioPCIDevice, vdev); in get_features() local 45 qpci_io_writel(dev->pdev, dev->bar, dev->common_cfg_offset + in get_features() [all …]
|
| H A D | pci.c | 23 void (*func)(QPCIDevice *dev, int devfn, void *data), in qpci_device_foreach() argument 32 QPCIDevice *dev; in qpci_device_foreach() local 34 dev = qpci_device_find(bus, QPCI_DEVFN(slot, fn)); in qpci_device_foreach() 35 if (!dev) { in qpci_device_foreach() 40 qpci_config_readw(dev, PCI_VENDOR_ID) != vendor_id) { in qpci_device_foreach() 41 g_free(dev); in qpci_device_foreach() 46 qpci_config_readw(dev, PCI_DEVICE_ID) != device_id) { in qpci_device_foreach() 47 g_free(dev); in qpci_device_foreach() 51 func(dev, QPCI_DEVFN(slot, fn), data); in qpci_device_foreach() 56 bool qpci_has_buggy_msi(QPCIDevice *dev) in qpci_has_buggy_msi() argument [all …]
|
| H A D | virtio-mmio.c | 21 QVirtioMMIODevice *dev = container_of(d, QVirtioMMIODevice, vdev); in qvirtio_mmio_config_readb() local 22 return qtest_readb(dev->qts, dev->addr + QVIRTIO_MMIO_DEVICE_SPECIFIC + off); in qvirtio_mmio_config_readb() 27 QVirtioMMIODevice *dev = container_of(d, QVirtioMMIODevice, vdev); in qvirtio_mmio_config_readw() local 28 return qtest_readw(dev->qts, dev->addr + QVIRTIO_MMIO_DEVICE_SPECIFIC + off); in qvirtio_mmio_config_readw() 33 QVirtioMMIODevice *dev = container_of(d, QVirtioMMIODevice, vdev); in qvirtio_mmio_config_readl() local 34 return qtest_readl(dev->qts, dev->addr + QVIRTIO_MMIO_DEVICE_SPECIFIC + off); in qvirtio_mmio_config_readl() 39 QVirtioMMIODevice *dev = container_of(d, QVirtioMMIODevice, vdev); in qvirtio_mmio_config_readq() local 40 return qtest_readq(dev->qts, dev->addr + QVIRTIO_MMIO_DEVICE_SPECIFIC + off); in qvirtio_mmio_config_readq() 45 QVirtioMMIODevice *dev = container_of(d, QVirtioMMIODevice, vdev); in qvirtio_mmio_get_features() local 49 qtest_writel(dev->qts, dev->addr + QVIRTIO_MMIO_HOST_FEATURES_SEL, 0); in qvirtio_mmio_get_features() [all …]
|
| /openbmc/qemu/ |
| H A D | .travis.yml | 87 - libaio-dev 88 - libattr1-dev 89 - libbrlapi-dev 90 - libcacard-dev 91 - libcap-ng-dev 92 - libfdt-dev 93 - libgcrypt20-dev 94 - libgnutls28-dev 95 - libgtk-3-dev 96 - libiscsi-dev [all …]
|
| /openbmc/u-boot/drivers/core/ |
| H A D | device.c | 38 struct udevice *dev; in device_bind_common() local 53 dev = calloc(1, sizeof(struct udevice)); in device_bind_common() 54 if (!dev) in device_bind_common() 57 INIT_LIST_HEAD(&dev->sibling_node); in device_bind_common() 58 INIT_LIST_HEAD(&dev->child_head); in device_bind_common() 59 INIT_LIST_HEAD(&dev->uclass_node); in device_bind_common() 61 INIT_LIST_HEAD(&dev->devres_head); in device_bind_common() 63 dev->platdata = platdata; in device_bind_common() 64 dev->driver_data = driver_data; in device_bind_common() 65 dev->name = name; in device_bind_common() [all …]
|
| H A D | read.c | 14 int dev_read_u32(struct udevice *dev, const char *propname, u32 *outp) in dev_read_u32() argument 16 return ofnode_read_u32(dev_ofnode(dev), propname, outp); in dev_read_u32() 19 int dev_read_u32_default(struct udevice *dev, const char *propname, int def) in dev_read_u32_default() argument 21 return ofnode_read_u32_default(dev_ofnode(dev), propname, def); in dev_read_u32_default() 24 int dev_read_s32(struct udevice *dev, const char *propname, s32 *outp) in dev_read_s32() argument 26 return ofnode_read_u32(dev_ofnode(dev), propname, (u32 *)outp); in dev_read_s32() 29 int dev_read_s32_default(struct udevice *dev, const char *propname, int def) in dev_read_s32_default() argument 31 return ofnode_read_u32_default(dev_ofnode(dev), propname, def); in dev_read_s32_default() 34 int dev_read_u32u(struct udevice *dev, const char *propname, uint *outp) in dev_read_u32u() argument 39 ret = ofnode_read_u32(dev_ofnode(dev), propname, &val); in dev_read_u32u() [all …]
|
| H A D | device-remove.c | 20 int device_chld_unbind(struct udevice *dev, struct driver *drv) in device_chld_unbind() argument 25 assert(dev); in device_chld_unbind() 27 list_for_each_entry_safe(pos, n, &dev->child_head, sibling_node) { in device_chld_unbind() 39 int device_chld_remove(struct udevice *dev, struct driver *drv, in device_chld_remove() argument 45 assert(dev); in device_chld_remove() 47 list_for_each_entry_safe(pos, n, &dev->child_head, sibling_node) { in device_chld_remove() 59 int device_unbind(struct udevice *dev) in device_unbind() argument 64 if (!dev) in device_unbind() 67 if (dev->flags & DM_FLAG_ACTIVATED) in device_unbind() 70 if (!(dev->flags & DM_FLAG_BOUND)) in device_unbind() [all …]
|
| /openbmc/u-boot/drivers/net/ |
| H A D | smc911x.c | 16 u32 pkt_data_pull(struct eth_device *dev, u32 addr) \ 18 void pkt_data_push(struct eth_device *dev, u32 addr, u32 val) \ 21 static void smc911x_handle_mac_address(struct eth_device *dev) in smc911x_handle_mac_address() argument 24 uchar *m = dev->enetaddr; in smc911x_handle_mac_address() 28 smc911x_set_mac_csr(dev, ADDRL, addrl); in smc911x_handle_mac_address() 29 smc911x_set_mac_csr(dev, ADDRH, addrh); in smc911x_handle_mac_address() 34 static int smc911x_eth_phy_read(struct eth_device *dev, in smc911x_eth_phy_read() argument 37 while (smc911x_get_mac_csr(dev, MII_ACC) & MII_ACC_MII_BUSY) in smc911x_eth_phy_read() 40 smc911x_set_mac_csr(dev, MII_ACC, phy << 11 | reg << 6 | in smc911x_eth_phy_read() 43 while (smc911x_get_mac_csr(dev, MII_ACC) & MII_ACC_MII_BUSY) in smc911x_eth_phy_read() [all …]
|
| /openbmc/u-boot/cmd/ |
| H A D | tpm_test.c | 32 static uint32_t TlclStartupIfNeeded(struct udevice *dev) in TlclStartupIfNeeded() argument 34 uint32_t result = tpm_startup(dev, TPM_ST_CLEAR); in TlclStartupIfNeeded() 39 static int test_timer(struct udevice *dev) in test_timer() argument 45 static uint32_t tpm_get_flags(struct udevice *dev, uint8_t *disable, in tpm_get_flags() argument 51 result = tpm_get_permanent_flags(dev, &pflags); in tpm_get_flags() 66 static uint32_t tpm_nv_write_value_lock(struct udevice *dev, uint32_t index) in tpm_nv_write_value_lock() argument 70 return tpm_nv_write_value(dev, index, NULL, 0); in tpm_nv_write_value_lock() 73 static int tpm_is_owned(struct udevice *dev) in tpm_is_owned() argument 78 result = tpm_read_pubek(dev, response, sizeof(response)); in tpm_is_owned() 83 static int test_early_extend(struct udevice *dev) in test_early_extend() argument [all …]
|