Home
last modified time | relevance | path

Searched refs:slot (Results 1 – 25 of 47) sorted by relevance

12

/illumos-kvm-cmd/hw/
H A Dpxa2xx_pcmcia.c15 PCMCIASocket slot; member
27 if (s->slot.attached) { in pxa2xx_pcmcia_common_read()
39 if (s->slot.attached) { in pxa2xx_pcmcia_common_write()
49 if (s->slot.attached) { in pxa2xx_pcmcia_attr_read()
61 if (s->slot.attached) { in pxa2xx_pcmcia_attr_write()
71 if (s->slot.attached) { in pxa2xx_pcmcia_io_read()
83 if (s->slot.attached) { in pxa2xx_pcmcia_io_write()
172 if (s->slot.attached) in pxa2xx_pcmcia_attach()
181 s->slot.attached = 1; in pxa2xx_pcmcia_attach()
182 s->card->slot = &s->slot; in pxa2xx_pcmcia_attach()
[all …]
H A Dpcie_port.c86 uint8_t slot) in pcie_chassis_find_slot_with_chassis() argument
90 if (s->slot == slot) { in pcie_chassis_find_slot_with_chassis()
97 PCIESlot *pcie_chassis_find_slot(uint8_t chassis_number, uint16_t slot) in pcie_chassis_find_slot() argument
104 return pcie_chassis_find_slot_with_chassis(c, slot); in pcie_chassis_find_slot()
107 int pcie_chassis_add_slot(struct PCIESlot *slot) in pcie_chassis_add_slot() argument
110 c = pcie_chassis_find(slot->chassis); in pcie_chassis_add_slot()
114 if (pcie_chassis_find_slot_with_chassis(c, slot->slot)) { in pcie_chassis_add_slot()
117 QLIST_INSERT_HEAD(&c->slots, slot, next); in pcie_chassis_add_slot()
H A Dsyborg_pointer.c129 int slot = s->read_pos + s->read_count; in syborg_pointer_event() local
134 slot++; in syborg_pointer_event()
137 if (slot >= s->fifo_size) in syborg_pointer_event()
138 slot -= s->fifo_size; in syborg_pointer_event()
142 s->event_fifo[slot].x += dx; in syborg_pointer_event()
143 s->event_fifo[slot].y += dy; in syborg_pointer_event()
144 s->event_fifo[slot].z += dz; in syborg_pointer_event()
146 s->event_fifo[slot].x = dx; in syborg_pointer_event()
147 s->event_fifo[slot].y = dy; in syborg_pointer_event()
148 s->event_fifo[slot].z = dz; in syborg_pointer_event()
[all …]
H A Dfmopl.c452 #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt+con)/(0x1000000/SIN_ENT))&(SIN_ENT-1)][e… argument
756 int slot; in OPLWriteReg() local
870 if(slot == -1) return; in OPLWriteReg()
871 set_mul(OPL,slot,v); in OPLWriteReg()
875 if(slot == -1) return; in OPLWriteReg()
876 set_ksl_tl(OPL,slot,v); in OPLWriteReg()
880 if(slot == -1) return; in OPLWriteReg()
881 set_ar_dr(OPL,slot,v); in OPLWriteReg()
885 if(slot == -1) return; in OPLWriteReg()
886 set_sl_rr(OPL,slot,v); in OPLWriteReg()
[all …]
H A Dpci-hotplug.c110 unsigned slot; in drive_hot_add() local
128 if (pci_read_devaddr(mon, pci_addr, &dom, &pci_bus, &slot)) { in drive_hot_add()
131 dev = pci_find_device(pci_find_root_bus(dom), pci_bus, slot, 0); in drive_hot_add()
275 unsigned slot; in pci_device_hot_remove() local
277 if (pci_read_devaddr(mon, pci_addr, &dom, &bus, &slot)) { in pci_device_hot_remove()
281 d = pci_find_device(pci_find_root_bus(dom), bus, slot, 0); in pci_device_hot_remove()
283 monitor_printf(mon, "slot %d empty\n", slot); in pci_device_hot_remove()
H A Dpcie_port.h41 uint16_t slot; member
47 PCIESlot *pcie_chassis_find_slot(uint8_t chassis, uint16_t slot);
48 int pcie_chassis_add_slot(struct PCIESlot *slot);
H A Dsyborg_keyboard.c139 int slot; in syborg_keyboard_event() local
154 slot = s->read_pos + s->read_count; in syborg_keyboard_event()
155 if (slot >= s->fifo_size) in syborg_keyboard_event()
156 slot -= s->fifo_size; in syborg_keyboard_event()
160 s->key_fifo[slot] = val; in syborg_keyboard_event()
H A Dacpi_piix4.c342 int slot = PCI_SLOT(pdev->devfn); in piix4_update_hotplug() local
345 s->pci0_hotplug_enable &= ~(1 << slot); in piix4_update_hotplug()
608 int slot = ffs(val) - 1; in pciej_write() local
612 if (PCI_SLOT(dev->devfn) == slot) { in pciej_write()
702 static void enable_device(PIIX4PMState *s, int slot) in enable_device() argument
705 s->pci0_status.up |= (1 << slot); in enable_device()
708 static void disable_device(PIIX4PMState *s, int slot) in disable_device() argument
711 s->pci0_status.down |= (1 << slot); in disable_device()
717 int slot = PCI_SLOT(dev->devfn); in piix4_device_hotplug() local
731 enable_device(s, slot); in piix4_device_hotplug()
[all …]
H A Dxio3130_downstream.c94 pcie_cap_slot_init(d, s->slot); in xio3130_downstream_initfn()
136 uint16_t slot) in xio3130_downstream_init() argument
153 qdev_prop_set_uint16(qdev, "slot", slot); in xio3130_downstream_init()
189 DEFINE_PROP_UINT16("slot", PCIESlot, slot, 0),
H A Dioh3420.c129 pcie_cap_slot_init(d, s->slot); in ioh3420_initfn()
172 uint8_t port, uint8_t chassis, uint16_t slot) in ioh3420_init() argument
188 qdev_prop_set_uint16(qdev, "slot", slot); in ioh3420_init()
224 DEFINE_PROP_UINT16("slot", PCIESlot, slot, 0),
H A Dpl011.c198 int slot; in pl011_put_fifo() local
200 slot = s->read_pos + s->read_count; in pl011_put_fifo()
201 if (slot >= 16) in pl011_put_fifo()
202 slot -= 16; in pl011_put_fifo()
203 s->read_fifo[slot] = value; in pl011_put_fifo()
H A Dsyborg_serial.c101 int slot; in fifo_push() local
104 slot = s->read_pos + s->read_count; in fifo_push()
105 if (slot >= s->fifo_size) in fifo_push()
106 slot -= s->fifo_size; in fifo_push()
107 s->read_fifo[slot] = new_value; in fifo_push()
H A Dpci.c480 unsigned int slot = 0; in pci_parse_devaddr() local
503 slot = val; in pci_parse_devaddr()
530 *slotp = slot; in pci_parse_devaddr()
589 slot = val; in pci_parse_host_devaddr()
608 *slotp = slot; in pci_parse_host_devaddr()
630 unsigned slot; in pci_get_bus_devfn() local
641 *devfnp = slot << 3; in pci_get_bus_devfn()
772 slot, slot, func); in pci_init_multifunction()
2155 char slot[] = ":SS.F"; in pcibus_get_dev_path() local
2184 s = snprintf(slot, sizeof slot, ":%02x.%x", in pcibus_get_dev_path()
[all …]
H A Ddevice-assignment.h37 #define PCI_DEVFN(slot, func) ((((slot) & 0x1f) << 3) | ((func) & 0x07)) argument
H A Dqxl.c808 uint32_t slot = (phys >> (64 - 8)) & 0xff; in qxl_phys2virt() local
815 PANIC_ON(slot > NUM_MEMSLOTS); in qxl_phys2virt()
816 PANIC_ON(!qxl->guest_slots[slot].active); in qxl_phys2virt()
817 PANIC_ON(offset < qxl->guest_slots[slot].delta); in qxl_phys2virt()
818 offset -= qxl->guest_slots[slot].delta; in qxl_phys2virt()
819 PANIC_ON(offset > qxl->guest_slots[slot].size) in qxl_phys2virt()
820 return qxl->guest_slots[slot].ptr + offset; in qxl_phys2virt()
880 QXLMemSlot slot = { in qxl_set_mode() local
900 d->guest_slots[0].slot = slot; in qxl_set_mode()
984 d->guest_slots[val].slot = d->ram->mem_slot; in ioport_write()
[all …]
H A Dusb-hid.c498 int slot; in usb_keyboard_event() local
504 slot = (hs->head + hs->n) & QUEUE_MASK; hs->n++; in usb_keyboard_event()
505 s->keycodes[slot] = keycode; in usb_keyboard_event()
513 int i, keycode, slot; in usb_keyboard_process_keycode() local
518 slot = hs->head & QUEUE_MASK; QUEUE_INCR(hs->head); hs->n--; in usb_keyboard_process_keycode()
519 keycode = s->keycodes[slot]; in usb_keyboard_process_keycode()
H A Dppc4xx_pci.c272 int slot = pci_dev->devfn >> 3; in ppc4xx_pci_map_irq() local
275 pci_dev->devfn, irq_num, slot); in ppc4xx_pci_map_irq()
277 return slot - 1; in ppc4xx_pci_map_irq()
/illumos-kvm-cmd/kvm/libkvm/
H A Dlibkvm.c178 if (slot == -1) in kvm_is_containing_region()
194 if (slot == -1) { in kvm_dirty_pages_log_change()
206 .slot = slot, in kvm_dirty_pages_log_change()
215 mem.slot, in kvm_dirty_pages_log_change()
545 memory.slot, in kvm_create_phys_mem()
594 int slot; in kvm_destroy_phys_mem() local
605 if ((slot >= KVM_MAX_NUM_MEM_REGIONS) || (slot == -1)) { in kvm_destroy_phys_mem()
617 memory.slot = slot; in kvm_destroy_phys_mem()
619 memory.slot, in kvm_destroy_phys_mem()
649 .slot = slot, in kvm_get_map()
[all …]
H A Dlibkvm-s390.c88 int kvm_s390_initial_reset(kvm_context_t kvm, int slot) in kvm_s390_initial_reset() argument
90 return ioctl(kvm->vcpu_fd[slot], KVM_S390_INITIAL_RESET, NULL); in kvm_s390_initial_reset()
93 int kvm_s390_interrupt(kvm_context_t kvm, int slot, in kvm_s390_interrupt() argument
96 if (slot>=0) in kvm_s390_interrupt()
97 return ioctl(kvm->vcpu_fd[slot], KVM_S390_INTERRUPT, kvmint); in kvm_s390_interrupt()
102 int kvm_s390_set_initial_psw(kvm_context_t kvm, int slot, psw_t psw) in kvm_s390_set_initial_psw() argument
104 return ioctl(kvm->vcpu_fd[slot], KVM_S390_SET_INITIAL_PSW, &psw); in kvm_s390_set_initial_psw()
107 int kvm_s390_store_status(kvm_context_t kvm, int slot, unsigned long addr) in kvm_s390_store_status() argument
109 return ioctl(kvm->vcpu_fd[slot], KVM_S390_STORE_STATUS, addr); in kvm_s390_store_status()
H A Dlibkvm-x86.c182 static void register_alias(int slot, uint64_t start, uint64_t len) in register_alias() argument
184 kvm_aliases[slot].start = start; in register_alias()
185 kvm_aliases[slot].len = len; in register_alias()
201 int slot; in kvm_create_memory_alias() local
203 slot = get_alias_slot(phys_start); in kvm_create_memory_alias()
204 if (slot < 0) in kvm_create_memory_alias()
205 slot = get_free_alias_slot(); in kvm_create_memory_alias()
206 if (slot < 0) in kvm_create_memory_alias()
208 alias.slot = slot; in kvm_create_memory_alias()
214 register_alias(slot, phys_start, len); in kvm_create_memory_alias()
H A Dlibkvm.h166 int kvm_create_vcpu(kvm_context_t kvm, int slot);
667 int kvm_s390_initial_reset(kvm_context_t kvm, int slot);
668 int kvm_s390_interrupt(kvm_context_t kvm, int slot,
670 int kvm_s390_set_initial_psw(kvm_context_t kvm, int slot, psw_t psw);
671 int kvm_s390_store_status(kvm_context_t kvm, int slot, unsigned long addr);
/illumos-kvm-cmd/hw/ide/
H A Dahci.c47 static int handle_cmd(AHCIState *s,int port,int slot);
449 int slot; in check_cmd() local
452 for (slot = 0; (slot < 32) && pr->cmd_issue; slot++) { in check_cmd()
453 if ((pr->cmd_issue & (1 << slot)) && in check_cmd()
454 !handle_cmd(s, port, slot)) { in check_cmd()
455 pr->cmd_issue &= ~(1 << slot); in check_cmd()
724 int slot) in process_ncq_command() argument
738 ncq_tfs->slot = slot; in process_ncq_command()
786 static int handle_cmd(AHCIState *s, int port, int slot) in handle_cmd() argument
801 cmd = &((AHCICmdHdr *)s->dev[port].lst)[slot]; in handle_cmd()
[all …]
H A Dmicrodrive.c86 if (!s->card.slot) in md_interrupt_update()
89 qemu_set_irq(s->card.slot->irq, in md_interrupt_update()
522 md->card.slot->card_string = "DSCM-1xxxx Hitachi Microdrive"; in dscm1xxxx_attach()
/illumos-kvm-cmd/
H A Dqemu-kvm.h466 int kvm_s390_initial_reset(kvm_context_t kvm, int slot);
467 int kvm_s390_interrupt(kvm_context_t kvm, int slot,
469 int kvm_s390_set_initial_psw(kvm_context_t kvm, int slot, psw_t psw);
470 int kvm_s390_store_status(kvm_context_t kvm, int slot, unsigned long addr);
737 int slot; member
H A Dkvm-all.c62 int slot; member
181 static int kvm_set_user_memory_region(KVMState *s, KVMSlot *slot) in kvm_set_user_memory_region() argument
189 mem.slot = slot->slot; in kvm_set_user_memory_region()
190 mem.guest_phys_addr = slot->start_addr; in kvm_set_user_memory_region()
191 mem.memory_size = slot->memory_size; in kvm_set_user_memory_region()
192 mem.userspace_addr = (unsigned long)qemu_safe_ram_ptr(slot->phys_offset); in kvm_set_user_memory_region()
193 mem.flags = slot->flags; in kvm_set_user_memory_region()
412 d.slot = mem->slot; in kvm_physical_sync_dirty_bitmap()
704 s->slots[i].slot = i; in kvm_init()

Completed in 65 milliseconds

12