Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 25 of 385) sorted by relevance

12345678910>>...16

/illumos-kvm-cmd/hw/
H A Dpcnet-pci.c79 addr, size); in pcnet_ioport_map()
98 if (!(addr & 0x10)) in pcnet_mmio_writeb()
106 if (!(addr & 0x10)) in pcnet_mmio_readb()
122 if (addr & 0x10) in pcnet_mmio_writew()
125 addr &= 0x0f; in pcnet_mmio_writew()
135 if (addr & 0x10) in pcnet_mmio_readw()
138 addr &= 0x0f; in pcnet_mmio_readw()
157 if (addr & 0x10) in pcnet_mmio_writel()
160 addr &= 0x0f; in pcnet_mmio_writel()
172 if (addr & 0x10) in pcnet_mmio_readl()
[all …]
H A Dds1225y.c45 val = s->contents[addr]; in nvram_readb()
56 v = nvram_readb(opaque, addr); in nvram_readw()
57 v |= nvram_readb(opaque, addr + 1) << 8; in nvram_readw()
64 v = nvram_readb(opaque, addr); in nvram_readl()
65 v |= nvram_readb(opaque, addr + 1) << 8; in nvram_readl()
66 v |= nvram_readb(opaque, addr + 2) << 16; in nvram_readl()
79 s->contents[addr] = val & 0xff; in nvram_writeb()
81 qemu_fseek(s->file, addr, SEEK_SET); in nvram_writeb()
89 nvram_writeb(opaque, addr, val & 0xff); in nvram_writew()
95 nvram_writeb(opaque, addr, val & 0xff); in nvram_writel()
[all …]
H A Dppc_prep.c300 switch (addr) { in PREP_io_800_writeb()
366 switch (addr) { in PREP_io_800_readb()
432 addr &= 0xFFFF; in prep_IO_address()
435 addr = (addr & 0x1F) | ((addr & 0x007FFF000) >> 7); in prep_IO_address()
438 return addr; in prep_IO_address()
446 addr = prep_IO_address(sysctrl, addr); in PPC_prep_io_writeb()
455 addr = prep_IO_address(sysctrl, addr); in PPC_prep_io_readb()
466 addr = prep_IO_address(sysctrl, addr); in PPC_prep_io_writew()
476 addr = prep_IO_address(sysctrl, addr); in PPC_prep_io_readw()
488 addr = prep_IO_address(sysctrl, addr); in PPC_prep_io_writel()
[all …]
H A Dm48t59.c68 uint16_t addr; member
193 if (addr > 0x1FF8 && addr < 0x2000) in m48t59_write()
203 switch (addr) { in m48t59_write()
343 if (addr >= 0x20 && addr <= 0x2F && (NVRAM->lock & 1)) in m48t59_write()
345 if (addr >= 0x30 && addr <= 0x3F && (NVRAM->lock & 2)) in m48t59_write()
368 switch (addr) { in m48t59_read()
446 if (addr >= 0x20 && addr <= 0x2F && (NVRAM->lock & 1)) in m48t59_read()
448 if (addr >= 0x30 && addr <= 0x3F && (NVRAM->lock & 2)) in m48t59_read()
456 if (addr > 0x1FF9 && addr < 0x2000) in m48t59_read()
466 NVRAM->addr = addr; in m48t59_set_addr()
[all …]
H A Dopenpic.c593 addr &= 0xFF; in openpic_gbl_write()
650 addr &= 0xFF; in openpic_gbl_read()
701 addr = addr & 0x30; in openpic_timer_write()
734 addr = addr & 0x30; in openpic_timer_read()
762 addr = addr & 0xFFF0; in openpic_src_write()
783 addr = addr & 0xFFF0; in openpic_src_read()
810 addr &= 0xFF0; in openpic_cpu_write()
870 addr &= 0xFF0; in openpic_cpu_read()
1008 addr + 0x1000, addr + 0x1000 + 0x100); in openpic_map()
1011 addr + 0x1100, addr + 0x1100 + 0x40 * MAX_TMR); in openpic_map()
[all …]
H A Dpcie_host.c40 #define PCIE_MMCFG_BUS(addr) (((addr) >> PCIE_MMCFG_BUS_BIT) & \ argument
42 #define PCIE_MMCFG_DEVFN(addr) (((addr) >> PCIE_MMCFG_DEVFN_BIT) & \ argument
44 #define PCIE_MMCFG_CONFOFFSET(addr) ((addr) & PCIE_MMCFG_CONFOFFSET_MASK) argument
70 PCIDevice *pci_dev = pcie_dev_find_by_mmcfg_addr(s, addr); in pcie_mmcfg_data_read()
103 return pcie_mmcfg_data_read(e->pci.bus, addr - e->base_addr, 1); in pcie_mmcfg_data_readb()
109 return pcie_mmcfg_data_read(e->pci.bus, addr - e->base_addr, 2); in pcie_mmcfg_data_readw()
115 return pcie_mmcfg_data_read(e->pci.bus, addr - e->base_addr, 4); in pcie_mmcfg_data_readl()
158 target_phys_addr_t addr, uint32_t size) in pcie_host_mmcfg_map() argument
164 e->base_addr = addr; in pcie_host_mmcfg_map()
171 target_phys_addr_t addr, uint32_t size) in pcie_host_mmcfg_update() argument
[all …]
H A Djazz_led.c56 switch (addr) { in led_readb()
74 v = led_readb(opaque, addr) << 8; in led_readw()
75 v |= led_readb(opaque, addr + 1); in led_readw()
77 v = led_readb(opaque, addr); in led_readw()
78 v |= led_readb(opaque, addr + 1) << 8; in led_readw()
87 v = led_readb(opaque, addr) << 24; in led_readl()
90 v |= led_readb(opaque, addr + 3); in led_readl()
92 v = led_readb(opaque, addr); in led_readl()
106 switch (addr) { in led_writeb()
123 led_writeb(opaque, addr, val & 0xff); in led_writew()
[all …]
H A Drc4030.c117 addr &= 0x3fff; in rc4030_readl()
253 if (addr & 0x2) in rc4030_readw()
268 addr &= 0x3fff; in rc4030_writel()
394 if (addr & 0x2) in rc4030_writew()
405 switch (addr & 3) { in rc4030_writeb()
488 addr &= 0xfff; in jazzio_readw()
490 switch (addr) { in jazzio_readw()
539 addr &= 0xfff; in jazzio_writew()
543 switch (addr) { in jazzio_writew()
559 switch (addr & 1) { in jazzio_writeb()
[all …]
H A Dwdt_i6300esb.c214 if (addr == ESB_CONFIG_REG && len == 2) { in i6300esb_config_write()
242 if (addr == ESB_CONFIG_REG && len == 2) { in i6300esb_config_read()
271 i6300esb_debug("addr = %x\n", (int) addr); in i6300esb_mem_readw()
273 if (addr == 0xc) { in i6300esb_mem_readw()
297 if (addr == 0xc && val == 0x80) in i6300esb_mem_writeb()
309 if (addr == 0xc && val == 0x80) in i6300esb_mem_writew()
315 if (addr == 0xc) { in i6300esb_mem_writew()
342 if (addr == 0xc && val == 0x80) in i6300esb_mem_writel()
348 if (addr == 0) in i6300esb_mem_writel()
350 else if (addr == 4) in i6300esb_mem_writel()
[all …]
H A Dtc6393xb.c216 switch (addr) { in tc6393xb_scr_readb()
277 switch (addr) { in tc6393xb_scr_writeb()
314 (uint32_t) addr, value & 0xff); in tc6393xb_scr_writeb()
327 switch (addr) { in tc6393xb_nand_cfg_readb()
340 switch (addr) { in tc6393xb_nand_cfg_writeb()
353 (uint32_t) addr, value & 0xff); in tc6393xb_nand_cfg_writeb()
357 switch (addr) { in tc6393xb_nand_readb()
378 switch (addr) { in tc6393xb_nand_writeb()
416 (uint32_t) addr, value & 0xff); in tc6393xb_nand_writeb()
501 switch (addr >> 8) { in tc6393xb_readb()
[all …]
H A Dnand.c61 uint32_t cmd, addr; member
83 # define PAGE(addr) ((addr) >> ADDR_SHIFT) argument
88 # define SECTOR(addr) ((addr) >> (9 + ADDR_SHIFT - PAGE_SHIFT)) argument
89 # define SECTOR_OFFSET(addr) ((addr) & ((511 >> PAGE_SHIFT) << 8)) argument
205 s->addr = 0; in nand_reset()
395 s->addr = (s->addr & mask) | v; in nand_setio()
445 s->addr++; in nand_getio()
555 off = PAGE_START(s->addr) + (s->addr & PAGE_MASK) + s->offset; in glue()
576 addr = s->addr & ~((1 << (ADDR_SHIFT + s->erase_shift)) - 1); in glue()
593 addr = PAGE_START(addr); in glue()
[all …]
H A Dne2000.c305 addr &= 0xf; in ne2000_ioport_write()
402 addr &= 0xf; in ne2000_ioport_read()
471 if (addr < 32 || in ne2000_mem_writeb()
472 (addr >= NE2000_PMEM_START && addr < NE2000_MEM_SIZE)) { in ne2000_mem_writeb()
473 s->mem[addr] = val; in ne2000_mem_writeb()
481 if (addr < 32 || (addr >= NE2000_PMEM_START && in ne2000_mem_writew()
491 if (addr < 32 || (addr >= NE2000_PMEM_START && in ne2000_mem_writel()
499 if (addr < 32 || in ne2000_mem_readb()
500 (addr >= NE2000_PMEM_START && addr < NE2000_MEM_SIZE)) { in ne2000_mem_readb()
510 if (addr < 32 || (addr >= NE2000_PMEM_START && in ne2000_mem_readw()
[all …]
H A Dtestdev.c21 static void test_device_exit(void *opaque, uint32_t addr, uint32_t data) in test_device_exit() argument
26 static uint32_t test_device_memsize_read(void *opaque, uint32_t addr) in test_device_memsize_read() argument
35 qemu_set_irq(ioapic_irq_hack[addr - 0x2000], !!data); in test_device_irq_line()
45 static uint32_t test_device_ioport_read(void *opaque, uint32_t addr) in test_device_ioport_read() argument
62 static uint32_t test_iomem_readb(void *opaque, target_phys_addr_t addr) in test_iomem_readb() argument
64 return iomem_buf[addr]; in test_iomem_readb()
69 return *(uint16_t*)(iomem_buf + addr); in test_iomem_readw()
74 return *(uint32_t*)(iomem_buf + addr); in test_iomem_readl()
79 iomem_buf[addr] = val; in test_iomem_writeb()
84 *(uint16_t*)(iomem_buf + addr) = val; in test_iomem_writew()
[all …]
H A Dapb_pci.c89 switch (addr & 0xffff) { in apb_config_writel()
94 s->iommu[(addr & 0xf) >> 2] = val; in apb_config_writel()
99 if (addr & 4) { in apb_config_writel()
108 if (addr & 4) { in apb_config_writel()
136 switch (addr & 0xffff) { in apb_config_readl()
142 val = s->iommu[(addr & 0xf) >> 2]; in apb_config_readl()
148 if (addr & 4) { in apb_config_readl()
158 if (addr & 4) { in apb_config_readl()
197 pci_data_write(s->bus, addr, val, size); in apb_pci_config_write()
215 cpu_outb(addr & IOPORTS_MASK, val); in pci_apb_iowriteb()
[all …]
/illumos-kvm-cmd/linux-user/
H A Dmmap.c110 for(addr = host_start; addr < start; addr += TARGET_PAGE_SIZE) { in target_mprotect()
114 for(addr = end; addr < host_end; addr += TARGET_PAGE_SIZE) { in target_mprotect()
126 for(addr = end; addr < host_end; addr += TARGET_PAGE_SIZE) { in target_mprotect()
164 for(addr = real_start; addr < real_end; addr++) { in mmap_frag()
165 if (addr < start || addr >= end) in mmap_frag()
580 for (addr = real_start; addr < start; addr += TARGET_PAGE_SIZE) { in mmap_reserve()
584 for (addr = end; addr < real_end; addr += TARGET_PAGE_SIZE) { in mmap_reserve()
594 for (addr = end; addr < real_end; addr += TARGET_PAGE_SIZE) { in mmap_reserve()
630 for(addr = real_start; addr < start; addr += TARGET_PAGE_SIZE) { in target_munmap()
634 for(addr = end; addr < real_end; addr += TARGET_PAGE_SIZE) { in target_munmap()
[all …]
/illumos-kvm-cmd/
H A Dsoftmmu_template.h68 env->mem_io_vaddr = addr; in glue()
102 if ((addr & (DATA_SIZE - 1)) != 0) in glue()
131 if ((addr & (DATA_SIZE - 1)) != 0) in glue()
157 if ((addr & (DATA_SIZE - 1)) != 0) in glue()
164 addr1 = addr & ~(DATA_SIZE - 1); in glue()
210 env->mem_io_vaddr = addr; in glue()
241 if ((addr & (DATA_SIZE - 1)) != 0) in glue()
269 if ((addr & (DATA_SIZE - 1)) != 0) in glue()
272 tlb_fill(addr, 1, mmu_idx, retaddr); in glue()
294 if ((addr & (DATA_SIZE - 1)) != 0) in glue()
[all …]
H A Dcpu-common.h52 void qemu_ram_unmap(ram_addr_t addr);
53 void qemu_ram_free(ram_addr_t addr);
55 void *qemu_get_ram_ptr(ram_addr_t addr);
58 void *qemu_safe_ram_ptr(ram_addr_t addr);
73 cpu_physical_memory_rw(addr, buf, len, 0); in cpu_physical_memory_read()
80 void *cpu_physical_memory_map(target_phys_addr_t addr,
117 uint32_t ldub_phys(target_phys_addr_t addr);
118 uint32_t lduw_phys(target_phys_addr_t addr);
119 uint32_t ldl_phys(target_phys_addr_t addr);
120 uint64_t ldq_phys(target_phys_addr_t addr);
[all …]
H A Dioport.c263 trace_cpu_out(addr, val); in cpu_outb()
264 ioport_write(0, addr, val); in cpu_outb()
270 trace_cpu_out(addr, val); in cpu_outw()
271 ioport_write(1, addr, val); in cpu_outw()
277 trace_cpu_out(addr, val); in cpu_outl()
278 ioport_write(2, addr, val); in cpu_outl()
284 val = ioport_read(0, addr); in cpu_inb()
285 trace_cpu_in(addr, val); in cpu_inb()
293 val = ioport_read(1, addr); in cpu_inw()
294 trace_cpu_in(addr, val); in cpu_inw()
[all …]
H A Dsoftmmu_defs.h4 uint8_t REGPARM __ldb_mmu(target_ulong addr, int mmu_idx);
5 void REGPARM __stb_mmu(target_ulong addr, uint8_t val, int mmu_idx);
6 uint16_t REGPARM __ldw_mmu(target_ulong addr, int mmu_idx);
7 void REGPARM __stw_mmu(target_ulong addr, uint16_t val, int mmu_idx);
8 uint32_t REGPARM __ldl_mmu(target_ulong addr, int mmu_idx);
9 void REGPARM __stl_mmu(target_ulong addr, uint32_t val, int mmu_idx);
10 uint64_t REGPARM __ldq_mmu(target_ulong addr, int mmu_idx);
13 uint8_t REGPARM __ldb_cmmu(target_ulong addr, int mmu_idx);
15 uint16_t REGPARM __ldw_cmmu(target_ulong addr, int mmu_idx);
17 uint32_t REGPARM __ldl_cmmu(target_ulong addr, int mmu_idx);
[all …]
/illumos-kvm-cmd/target-sparc/
H A Dop_helper.c277 return addr; in address_mask()
312 return addr; in asi_address_mask()
2357 addr = asi_address_mask(env, asi, addr); in helper_ld_asi()
2460 addr = asi_address_mask(env, asi, addr); in helper_st_asi()
2537 addr = asi_address_mask(env, asi, addr); in helper_ld_asi()
2890 addr = asi_address_mask(env, asi, addr); in helper_st_asi()
3266 addr = asi_address_mask(env, asi, addr); in helper_ldda_asi()
3315 addr = asi_address_mask(env, asi, addr); in helper_ldf_asi()
3373 addr = asi_address_mask(env, asi, addr); in helper_stf_asi()
4097 addr &= ~7; in helper_flush()
[all …]
/illumos-kvm-cmd/bsd-user/
H A Dmmap.c167 for(addr = host_start; addr < start; addr += TARGET_PAGE_SIZE) { in target_mprotect()
171 for(addr = end; addr < host_end; addr += TARGET_PAGE_SIZE) { in target_mprotect()
183 for(addr = end; addr < host_end; addr += TARGET_PAGE_SIZE) { in target_mprotect()
221 for(addr = real_start; addr < real_end; addr++) { in mmap_frag()
222 if (addr < start || addr >= end) in mmap_frag()
299 addr = start; in mmap_find_vma()
317 return addr; in mmap_find_vma()
399 for(addr = real_start; addr < real_end; addr += TARGET_PAGE_SIZE) { in target_mmap()
511 for(addr = real_start; addr < start; addr += TARGET_PAGE_SIZE) { in target_munmap()
515 for(addr = end; addr < real_end; addr += TARGET_PAGE_SIZE) { in target_munmap()
[all …]
/illumos-kvm-cmd/target-sh4/
H A Dtranslate.c594 tcg_temp_free(addr); in _decode_opc()
602 tcg_temp_free(addr); in _decode_opc()
1121 tcg_gen_subi_i32(addr, addr, 4); in _decode_opc()
1126 TCGv addr; in _decode_opc() local
1142 tcg_gen_addi_i32(addr, addr, 4); in _decode_opc()
1158 tcg_gen_addi_i32(addr, addr, 4); in _decode_opc()
1249 TCGv addr, val; in _decode_opc() local
1373 TCGv addr, val; in _decode_opc() local
1417 TCGv addr, val; in _decode_opc() local
1585 TCGv addr, val; in _decode_opc() local
[all …]
/illumos-kvm-cmd/linux-user/arm/nwfpe/
H A Dfpa11_cpdt.c49 get_user_u32(p[1], addr + 4); in loadDouble()
52 get_user_u32(p[0], addr + 4); in loadDouble()
79 get_user_u32(x, addr); in loadMultiple()
97 get_user_u32(p[1], addr + 8); in loadMultiple()
126 put_user_u32(p[0], addr); in storeSingle()
150 put_user_u32(p[0], addr); /* msw */ in storeDouble()
151 put_user_u32(p[1], addr + 4); /* lsw */ in storeDouble()
153 put_user_u32(p[1], addr); /* msw */ in storeDouble()
180 put_user_u32(p[1], addr + 8); in storeExtended()
200 put_user_u32(nType << 14, addr); in storeMultiple()
[all …]
/illumos-kvm-cmd/hw/ide/
H A Dmacio.c187 addr = (addr & 0xFFF) >> 4; in pmac_ide_writeb()
188 switch (addr) { in pmac_ide_writeb()
206 addr = (addr & 0xFFF) >> 4; in pmac_ide_readb()
207 switch (addr) { in pmac_ide_readb()
227 addr = (addr & 0xFFF) >> 4; in pmac_ide_writew()
229 if (addr == 0) { in pmac_ide_writew()
239 addr = (addr & 0xFFF) >> 4; in pmac_ide_readw()
240 if (addr == 0) { in pmac_ide_readw()
254 addr = (addr & 0xFFF) >> 4; in pmac_ide_writel()
256 if (addr == 0) { in pmac_ide_writel()
[all …]
H A Dcmd646.c48 pcibus_t addr, pcibus_t size, int type) in ide_map() argument
72 uint32_t addr) in bmdma_readb_common() argument
76 switch(addr & 3) { in bmdma_readb_common()
98 printf("bmdma: readb 0x%02x : 0x%02x\n", addr, val); in bmdma_readb_common()
108 return bmdma_readb_common(pci_dev, bm, addr); in bmdma_readb_0()
116 return bmdma_readb_common(pci_dev, bm, addr); in bmdma_readb_1()
125 switch(addr & 3) { in bmdma_writeb_common()
127 bmdma_cmd_writeb(bm, addr, val); in bmdma_writeb_common()
151 bmdma_writeb_common(pci_dev, bm, addr, val); in bmdma_writeb_0()
159 bmdma_writeb_common(pci_dev, bm, addr, val); in bmdma_writeb_1()
[all …]

Completed in 85 milliseconds

12345678910>>...16