Home
last modified time | relevance | path

Searched refs:sbdev (Results 1 – 17 of 17) sorted by relevance

/openbmc/linux/drivers/slimbus/
H A Dcore.c59 sbdrv->device_status(sbdev, sbdev->status); in slim_device_update_status()
149 kfree(sbdev); in slim_dev_release()
182 sbdev = kzalloc(sizeof(*sbdev), GFP_KERNEL); in slim_alloc_device()
183 if (!sbdev) in slim_alloc_device()
193 return sbdev; in slim_alloc_device()
235 if (!sbdev) in of_register_slim_devices()
377 if (!sbdev) { in slim_get_device()
379 if (!sbdev) in slim_get_device()
383 return sbdev; in slim_get_device()
465 laddr, sbdev->e_addr.manf_id, sbdev->e_addr.prod_code, in slim_device_alloc_laddr()
[all …]
H A Dmessaging.c233 int slim_xfer_msg(struct slim_device *sbdev, struct slim_val_inf *msg, in slim_xfer_msg() argument
236 DEFINE_SLIM_LDEST_TXN(txn_stack, mc, 6, sbdev->laddr, msg); in slim_xfer_msg()
238 struct slim_controller *ctrl = sbdev->ctrl; in slim_xfer_msg()
H A Dslimbus.h427 void slim_report_absent(struct slim_device *sbdev);
H A Dqcom-ngd-ctrl.c1232 struct slim_device *sbdev; in qcom_slim_ngd_notify_slaves() local
1236 sbdev = of_slim_get_device(&ctrl->ctrl, node); in qcom_slim_ngd_notify_slaves()
1237 if (!sbdev) in qcom_slim_ngd_notify_slaves()
1240 if (slim_get_logical_addr(sbdev)) in qcom_slim_ngd_notify_slaves()
/openbmc/qemu/hw/core/
H A Dplatform-bus.c37 qemu_irq sbirq = sysbus_get_connected_irq(sbdev, n); in platform_bus_get_irqn()
58 MemoryRegion *sbdev_mr = sysbus_mmio_get_region(sbdev, n); in platform_bus_get_mmio_addr()
84 if (!sysbus_has_irq(sbdev, n)) { in platform_bus_count_irqs()
88 sbirq = sysbus_get_connected_irq(sbdev, n); in platform_bus_count_irqs()
114 if (sysbus_is_irq_connected(sbdev, n)) { in platform_bus_map_irq()
126 sysbus_connect_irq(sbdev, n, pbus->irqs[irqn]); in platform_bus_map_irq()
132 MemoryRegion *sbdev_mr = sysbus_mmio_get_region(sbdev, n); in platform_bus_map_mmio()
172 for (i = 0; sysbus_has_irq(sbdev, i); i++) { in platform_bus_link_device()
173 platform_bus_map_irq(pbus, sbdev, i); in platform_bus_link_device()
176 for (i = 0; sysbus_has_mmio(sbdev, i); i++) { in platform_bus_link_device()
[all …]
H A Dsysbus-fdt.c56 int (*add_fn)(SysBusDevice *sbdev, void *opaque);
223 VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(sbdev); in add_calxeda_midway_xgmac_fdt_node()
226 mmio_base = platform_bus_get_mmio_addr(pbus, sbdev, 0); in add_calxeda_midway_xgmac_fdt_node()
249 irq_number = platform_bus_get_irqn(pbus, sbdev , i) in add_calxeda_midway_xgmac_fdt_node()
294 VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(sbdev); in add_amd_xgbe_fdt_node()
361 mmio_base = platform_bus_get_mmio_addr(pbus, sbdev, 0); in add_amd_xgbe_fdt_node()
419 static bool vfio_platform_match(SysBusDevice *sbdev, in vfio_platform_match() argument
474 static int no_fdt_node(SysBusDevice *sbdev, void *opaque) in no_fdt_node() argument
520 if (type_match(sbdev, iter)) { in add_fdt_node()
522 ret = iter->add_fn(sbdev, opaque); in add_fdt_node()
[all …]
H A Dsysbus.c40 SysBusDevice *sbdev; in find_sysbus_device() local
43 sbdev = (SysBusDevice *)dev; in find_sysbus_device()
45 if (!sbdev) { in find_sysbus_device()
50 find->func(sbdev, find->opaque); in find_sysbus_device()
/openbmc/qemu/hw/tpm/
H A Dtpm_tis_sysbus.c46 TPMStateSysBus *sbdev = opaque; in OBJECT_DECLARE_SIMPLE_TYPE() local
48 return tpm_tis_pre_save(&sbdev->state); in OBJECT_DECLARE_SIMPLE_TYPE()
71 TPMStateSysBus *sbdev = TPM_TIS_SYSBUS(ti); in tpm_tis_sysbus_request_completed() local
72 TPMState *s = &sbdev->state; in tpm_tis_sysbus_request_completed()
79 TPMStateSysBus *sbdev = TPM_TIS_SYSBUS(ti); in tpm_tis_sysbus_get_tpm_version() local
80 TPMState *s = &sbdev->state; in tpm_tis_sysbus_get_tpm_version()
87 TPMStateSysBus *sbdev = TPM_TIS_SYSBUS(dev); in tpm_tis_sysbus_reset() local
88 TPMState *s = &sbdev->state; in tpm_tis_sysbus_reset()
101 TPMStateSysBus *sbdev = TPM_TIS_SYSBUS(obj); in tpm_tis_sysbus_initfn() local
102 TPMState *s = &sbdev->state; in tpm_tis_sysbus_initfn()
[all …]
/openbmc/qemu/include/hw/
H A Dplatform-bus.h45 int platform_bus_get_irqn(PlatformBusDevice *platform_bus, SysBusDevice *sbdev,
47 hwaddr platform_bus_get_mmio_addr(PlatformBusDevice *pbus, SysBusDevice *sbdev,
50 void platform_bus_link_device(PlatformBusDevice *pbus, SysBusDevice *sbdev);
H A Dsysbus.h68 typedef void FindSysbusDeviceFunc(SysBusDevice *sbdev, void *opaque);
/openbmc/qemu/hw/ppc/
H A Dsam460ex.c286 SysBusDevice *sbdev; in sam460ex_init() local
327 sbdev = SYS_BUS_DEVICE(uic[i]); in sam460ex_init()
329 sysbus_connect_irq(sbdev, PPCUIC_OUTPUT_INT, in sam460ex_init()
331 sysbus_connect_irq(sbdev, PPCUIC_OUTPUT_CINT, in sam460ex_init()
334 sysbus_connect_irq(sbdev, PPCUIC_OUTPUT_INT, in sam460ex_init()
336 sysbus_connect_irq(sbdev, PPCUIC_OUTPUT_CINT, in sam460ex_init()
401 sbdev = SYS_BUS_DEVICE(dev); in sam460ex_init()
423 sbdev = SYS_BUS_DEVICE(dev); in sam460ex_init()
424 sysbus_realize_and_unref(sbdev, &error_fatal); in sam460ex_init()
425 sysbus_mmio_map(sbdev, 0, 0x4bffd0000); in sam460ex_init()
[all …]
H A De500.c238 eTSEC *etsec = ETSEC_COMMON(sbdev); in create_devtree_etsec()
240 hwaddr mmio0 = platform_bus_get_mmio_addr(pbus, sbdev, 0); in create_devtree_etsec()
241 int irq0 = platform_bus_get_irqn(pbus, sbdev, 0); in create_devtree_etsec()
242 int irq1 = platform_bus_get_irqn(pbus, sbdev, 1); in create_devtree_etsec()
243 int irq2 = platform_bus_get_irqn(pbus, sbdev, 2); in create_devtree_etsec()
282 create_devtree_etsec(sbdev, data); in sysbus_device_create_devtree()
288 qdev_fw_name(DEVICE(sbdev))); in sysbus_device_create_devtree()
293 static void create_devtree_flash(SysBusDevice *sbdev, in create_devtree_flash() argument
327 SysBusDevice *sbdev; in platform_bus_create_devtree() local
357 if (sbdev) { in platform_bus_create_devtree()
[all …]
/openbmc/qemu/hw/vfio/
H A Dplatform.c63 SysBusDevice *sbdev = SYS_BUS_DEVICE(vdev); in vfio_init_intp() local
73 sysbus_init_irq(sbdev, &intp->qemuirq); in vfio_init_intp()
325 static void vfio_start_eventfd_injection(SysBusDevice *sbdev, qemu_irq irq) in vfio_start_eventfd_injection() argument
327 VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(sbdev); in vfio_start_eventfd_injection()
376 static void vfio_start_irqfd_injection(SysBusDevice *sbdev, qemu_irq irq) in vfio_start_irqfd_injection() argument
378 VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(sbdev); in vfio_start_irqfd_injection()
420 vfio_start_eventfd_injection(sbdev, irq); in vfio_start_irqfd_injection()
574 SysBusDevice *sbdev = SYS_BUS_DEVICE(dev); in vfio_platform_realize() local
615 sysbus_init_mmio(sbdev, vdev->regions[i]->mem); in vfio_platform_realize()
/openbmc/linux/include/linux/
H A Dslimbus.h179 int slim_get_logical_addr(struct slim_device *sbdev);
194 int slim_xfer_msg(struct slim_device *sbdev, struct slim_val_inf *msg,
/openbmc/qemu/include/hw/vfio/
H A Dvfio-platform.h51 SysBusDevice sbdev; member
/openbmc/qemu/hw/loongarch/
H A Dacpi-build.c370 SysBusDevice *sbdev = SYS_BUS_DEVICE(tpm_find()); in acpi_dsdt_add_tpm() local
374 if (!sbdev) { in acpi_dsdt_add_tpm()
378 tpm_base = platform_bus_get_mmio_addr(pbus, sbdev, 0); in acpi_dsdt_add_tpm()
383 sbdev_mr = sysbus_mmio_get_region(sbdev, 0); in acpi_dsdt_add_tpm()
/openbmc/qemu/hw/arm/
H A Dvirt-acpi-build.c177 SysBusDevice *sbdev = SYS_BUS_DEVICE(tpm_find()); in acpi_dsdt_add_tpm() local
181 if (!sbdev) { in acpi_dsdt_add_tpm()
185 tpm_base = platform_bus_get_mmio_addr(pbus, sbdev, 0); in acpi_dsdt_add_tpm()
190 sbdev_mr = sysbus_mmio_get_region(sbdev, 0); in acpi_dsdt_add_tpm()