Lines Matching full:addr
434 uint32_t addr, uint32_t *buf, int num)
438 addr += ohci->localmem_base;
440 for (i = 0; i < num; i++, buf++, addr += sizeof(*buf)) {
441 cpu_physical_memory_rw(addr, (uint8_t *)buf, sizeof(*buf), 0);
450 uint32_t addr, uint32_t *buf, int num)
454 addr += ohci->localmem_base;
456 for (i = 0; i < num; i++, buf++, addr += sizeof(*buf)) {
458 cpu_physical_memory_rw(addr, (uint8_t *)&tmp, sizeof(tmp), 1);
466 uint32_t addr, uint16_t *buf, int num)
470 addr += ohci->localmem_base;
472 for (i = 0; i < num; i++, buf++, addr += sizeof(*buf)) {
473 cpu_physical_memory_rw(addr, (uint8_t *)buf, sizeof(*buf), 0);
482 uint32_t addr, uint16_t *buf, int num)
486 addr += ohci->localmem_base;
488 for (i = 0; i < num; i++, buf++, addr += sizeof(*buf)) {
490 cpu_physical_memory_rw(addr, (uint8_t *)&tmp, sizeof(tmp), 1);
497 uint32_t addr, struct ohci_ed *ed)
499 return get_dwords(ohci, addr, (uint32_t *)ed, sizeof(*ed) >> 2);
503 uint32_t addr, struct ohci_td *td)
505 return get_dwords(ohci, addr, (uint32_t *)td, sizeof(*td) >> 2);
509 uint32_t addr, struct ohci_iso_td *td)
511 return (get_dwords(ohci, addr, (uint32_t *)td, 4) &&
512 get_words(ohci, addr + 16, td->offset, 8));
516 uint32_t addr, struct ohci_hcca *hcca)
518 cpu_physical_memory_rw(addr + ohci->localmem_base,
524 uint32_t addr, struct ohci_ed *ed)
526 return put_dwords(ohci, addr, (uint32_t *)ed, sizeof(*ed) >> 2);
530 uint32_t addr, struct ohci_td *td)
532 return put_dwords(ohci, addr, (uint32_t *)td, sizeof(*td) >> 2);
536 uint32_t addr, struct ohci_iso_td *td)
538 return (put_dwords(ohci, addr, (uint32_t *)td, 4) &&
539 put_words(ohci, addr + 16, td->offset, 8));
543 uint32_t addr, struct ohci_hcca *hcca)
545 cpu_physical_memory_rw(addr + ohci->localmem_base,
614 uint32_t addr;
621 addr = ed->head & OHCI_DPTR_MASK;
623 if (!ohci_read_iso_td(ohci, addr, &iso_td)) {
624 printf("usb-ohci: ISO_TD read error at %x\n", addr);
661 ohci->done = addr;
665 ohci_put_iso_td(ohci, addr, &iso_td);
827 ohci->done = addr;
832 ohci_put_iso_td(ohci, addr, &iso_td);
849 uint32_t addr;
853 addr = ed->head & OHCI_DPTR_MASK;
855 completion = (addr == ohci->async_td);
862 if (!ohci_read_td(ohci, addr, &td)) {
863 fprintf(stderr, "usb-ohci: TD read error at %x\n", addr);
910 addr, len, str, flag_r, td.cbp, td.be);
956 ohci->async_td = addr;
1027 ohci->done = addr;
1031 ohci_put_td(ohci, addr, &td);
1057 uint32_t addr;
1059 addr = ed.head & OHCI_DPTR_MASK;
1060 if (ohci->async_td && addr == ohci->async_td) {
1401 static uint32_t ohci_mem_read(void *ptr, target_phys_addr_t addr)
1407 if (addr & 3) {
1410 } else if (addr >= 0x54 && addr < 0x54 + ohci->num_ports * 4) {
1412 retval = ohci->rhport[(addr - 0x54) >> 2].ctrl | OHCI_PORT_PPS;
1414 switch (addr >> 2) {
1514 fprintf(stderr, "ohci_read: Bad offset %x\n", (int)addr);
1525 static void ohci_mem_write(void *ptr, target_phys_addr_t addr, uint32_t val)
1534 if (addr & 3) {
1539 if (addr >= 0x54 && addr < 0x54 + ohci->num_ports * 4) {
1541 ohci_port_set_status(ohci, (addr - 0x54) >> 2, val);
1545 switch (addr >> 2) {
1644 fprintf(stderr, "ohci_write: Bad offset %x\n", (int)addr);
1708 uint32_t addr, uint32_t size, int type)
1711 cpu_register_physical_memory(addr, size, ohci->state.mem);