Lines Matching refs:dev
1890 static void sm501_init(SM501State *s, DeviceState *dev, in sm501_init() argument
1902 memory_region_init_ram(&s->local_mem_region, OBJECT(dev), "sm501.local", in sm501_init()
1908 s->i2c_bus = i2c_init_bus(dev, "sm501.i2c"); in sm501_init()
1915 memory_region_init(&s->mmio_region, OBJECT(dev), "sm501.mmio", MMIO_SIZE); in sm501_init()
1916 memory_region_init_io(&s->system_config_region, OBJECT(dev), in sm501_init()
1921 memory_region_init_io(&s->i2c_region, OBJECT(dev), &sm501_i2c_ops, s, in sm501_init()
1924 memory_region_init_io(&s->disp_ctrl_region, OBJECT(dev), in sm501_init()
1929 memory_region_init_io(&s->twoD_engine_region, OBJECT(dev), in sm501_init()
1936 s->con = graphic_console_init(dev, 0, &sm501_ops, s); in sm501_init()
2029 static void sm501_realize_sysbus(DeviceState *dev, Error **errp) in sm501_realize_sysbus() argument
2031 SM501SysBusState *s = SYSBUS_SM501(dev); in sm501_realize_sysbus()
2032 SysBusDevice *sbd = SYS_BUS_DEVICE(dev); in sm501_realize_sysbus()
2035 sm501_init(&s->state, dev, s->vram_size); in sm501_realize_sysbus()
2064 static void sm501_reset_sysbus(DeviceState *dev) in sm501_reset_sysbus() argument
2066 SM501SysBusState *s = SYSBUS_SM501(dev); in sm501_reset_sysbus()
2130 static void sm501_realize_pci(PCIDevice *dev, Error **errp) in sm501_realize_pci() argument
2132 SM501PCIState *s = PCI_SM501(dev); in sm501_realize_pci()
2134 sm501_init(&s->state, DEVICE(dev), s->vram_size); in sm501_realize_pci()
2140 pci_register_bar(dev, 0, PCI_BASE_ADDRESS_SPACE_MEMORY, in sm501_realize_pci()
2142 pci_register_bar(dev, 1, PCI_BASE_ADDRESS_SPACE_MEMORY, in sm501_realize_pci()
2152 static void sm501_reset_pci(DeviceState *dev) in sm501_reset_pci() argument
2154 SM501PCIState *s = PCI_SM501(dev); in sm501_reset_pci()