Lines Matching refs:sbdev

236 static int create_devtree_etsec(SysBusDevice *sbdev, PlatformDevtreeData *data)  in create_devtree_etsec()  argument
238 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()
276 static void sysbus_device_create_devtree(SysBusDevice *sbdev, void *opaque) in sysbus_device_create_devtree() argument
281 if (object_dynamic_cast(OBJECT(sbdev), TYPE_ETSEC_COMMON)) { in sysbus_device_create_devtree()
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
297 uint64_t num_blocks = object_property_get_uint(OBJECT(sbdev), in create_devtree_flash()
300 uint64_t sector_length = object_property_get_uint(OBJECT(sbdev), in create_devtree_flash()
303 uint64_t bank_width = object_property_get_uint(OBJECT(sbdev), in create_devtree_flash()
327 SysBusDevice *sbdev; in platform_bus_create_devtree() local
355 sbdev = SYS_BUS_DEVICE(object_resolve_path_type("", TYPE_PFLASH_CFI01, in platform_bus_create_devtree()
357 if (sbdev) { in platform_bus_create_devtree()
359 create_devtree_flash(sbdev, &data); in platform_bus_create_devtree()