Lines Matching refs:slot

77 static int	pcishpc_register_slot(pcie_hp_ctrl_t *ctrl_p, int slot);
90 static void pcishpc_set_slot_name(pcie_hp_ctrl_t *ctrl_p, int slot);
263 int slot; in pcishpc_intr() local
303 for (slot = 0; slot < ctrl_p->hc_num_slots_impl; slot++) { in pcishpc_intr()
304 if ((irq_locator & (PCI_HP_IRQ_SLOT_N_PENDING<<slot)) || in pcishpc_intr()
306 (PCI_HP_IRQ_SERR_SLOT_N_PENDING<<slot))) { in pcishpc_intr()
308 "pending IRQ\n", slot+1); in pcishpc_intr()
311 PCI_HP_LOGICAL_SLOT_REGS+slot); in pcishpc_intr()
316 slot+1); in pcishpc_intr()
321 slot+1); in pcishpc_intr()
325 "PCI_HP_SLOT_ATTN_DETECTED\n", slot+1); in pcishpc_intr()
331 if (ctrl_p->hc_slots[slot]-> in pcishpc_intr()
333 ctrl_p->hc_slots[slot]-> in pcishpc_intr()
337 cv_signal(&ctrl_p->hc_slots[slot]-> in pcishpc_intr()
343 "PCI_HP_SLOT_MRL_DETECTED\n", slot+1); in pcishpc_intr()
347 "PCI_HP_SLOT_POWER_DETECTED\n", slot+1); in pcishpc_intr()
350 pcishpc_write_reg(ctrl_p, PCI_HP_LOGICAL_SLOT_REGS+slot, in pcishpc_intr()
993 pcishpc_register_slot(pcie_hp_ctrl_t *ctrl_p, int slot) in pcishpc_register_slot() argument
999 ctrl_p->hc_slots[slot] = slot_p; in pcishpc_register_slot()
1000 slot_p->hs_num = slot; in pcishpc_register_slot()
1023 "handler thread for slot %d\n", slot); in pcishpc_register_slot()
1034 pcishpc_set_slot_name(ctrl_p, slot); in pcishpc_register_slot()
1050 PCIE_DBG("pcishpc_register_slot() success for slot %d\n", slot); in pcishpc_register_slot()
1119 int slot; in pcishpc_enable_irqs() local
1129 for (slot = 0; slot < ctrl_p->hc_num_slots_impl; slot++) { in pcishpc_enable_irqs()
1130 reg = pcishpc_read_reg(ctrl_p, PCI_HP_LOGICAL_SLOT_REGS+slot); in pcishpc_enable_irqs()
1145 pcishpc_write_reg(ctrl_p, PCI_HP_LOGICAL_SLOT_REGS+slot, reg); in pcishpc_enable_irqs()
1165 int slot; in pcishpc_disable_irqs() local
1175 for (slot = 0; slot < ctrl_p->hc_num_slots_impl; slot++) { in pcishpc_disable_irqs()
1176 reg = pcishpc_read_reg(ctrl_p, PCI_HP_LOGICAL_SLOT_REGS+slot); in pcishpc_disable_irqs()
1181 pcishpc_write_reg(ctrl_p, PCI_HP_LOGICAL_SLOT_REGS+slot, reg); in pcishpc_disable_irqs()
1884 pcishpc_set_slot_name(pcie_hp_ctrl_t *ctrl_p, int slot) in pcishpc_set_slot_name() argument
1886 pcie_hp_slot_t *slot_p = ctrl_p->hc_slots[slot]; in pcishpc_set_slot_name()
1905 slot_p->hs_phy_slot_num = ctrl_p->hc_phys_start + slot; in pcishpc_set_slot_name()
1907 slot_p->hs_phy_slot_num = ctrl_p->hc_phys_start - slot; in pcishpc_set_slot_name()
2427 int slot, numSlots; in pcishpc_dump_regs() local
2537 for (slot = 0; slot < numSlots; slot++) { in pcishpc_dump_regs()
2538 PCIE_DBG("Slot %d Interrupt Pending : %s\n", slot+1, in pcishpc_dump_regs()
2539 (reg & (PCI_HP_IRQ_SLOT_N_PENDING<<slot)) ? "Yes" : "No"); in pcishpc_dump_regs()
2547 for (slot = 0; slot < numSlots; slot++) { in pcishpc_dump_regs()
2549 slot+1, (reg & in pcishpc_dump_regs()
2550 (PCI_HP_IRQ_SERR_SLOT_N_PENDING<<slot)) ? "Yes" : "No"); in pcishpc_dump_regs()
2573 for (slot = 0; slot < numSlots; slot++) { in pcishpc_dump_regs()
2574 PCIE_DBG("Logical Slot %d Registers:\n", slot+1); in pcishpc_dump_regs()
2577 reg = pcishpc_read_reg(ctrl_p, PCI_HP_LOGICAL_SLOT_REGS+slot); in pcishpc_dump_regs()
2579 PCIE_DBG("Slot %d state : %s\n", slot+1, in pcishpc_dump_regs()
2582 PCIE_DBG("Slot %d Power Indicator State : %s\n", slot+1, in pcishpc_dump_regs()
2586 PCIE_DBG("Slot %d Attention Indicator State : %s\n", slot+1, in pcishpc_dump_regs()
2590 PCIE_DBG("Slot %d Power Fault : %s\n", slot+1, in pcishpc_dump_regs()
2592 PCIE_DBG("Slot %d Attention Button : %s\n", slot+1, in pcishpc_dump_regs()
2594 PCIE_DBG("Slot %d MRL Sensor : %s\n", slot+1, in pcishpc_dump_regs()
2596 PCIE_DBG("Slot %d 66mhz Capable : %s\n", slot+1, in pcishpc_dump_regs()
2614 PCIE_DBG("Slot %d PRSNT1#/PRSNT2# : %s\n", slot+1, in pcishpc_dump_regs()
2633 slot+1, (reg & PCI_HP_SLOT_PRESENCE_DETECTED) ? "Yes" : in pcishpc_dump_regs()
2636 slot+1, (reg & PCI_HP_SLOT_ISO_PWR_DETECTED) ? "Yes" : in pcishpc_dump_regs()
2639 slot+1, (reg & PCI_HP_SLOT_ATTN_DETECTED) ? "Yes" : "No"); in pcishpc_dump_regs()
2641 slot+1, (reg & PCI_HP_SLOT_MRL_DETECTED) ? "Yes" : "No"); in pcishpc_dump_regs()
2643 slot+1, (reg & PCI_HP_SLOT_POWER_DETECTED) ? "Yes" : "No"); in pcishpc_dump_regs()
2646 slot+1, (reg & PCI_HP_SLOT_PRESENCE_MASK) ? "Yes" : "No"); in pcishpc_dump_regs()
2648 slot+1, (reg & PCI_HP_SLOT_ISO_PWR_MASK) ? "Yes" : "No"); in pcishpc_dump_regs()
2650 slot+1, (reg & PCI_HP_SLOT_ATTN_MASK) ? "Yes" : "No"); in pcishpc_dump_regs()
2652 slot+1, (reg & PCI_HP_SLOT_MRL_MASK) ? "Yes" : "No"); in pcishpc_dump_regs()
2654 slot+1, (reg & PCI_HP_SLOT_POWER_MASK) ? "Yes" : "No"); in pcishpc_dump_regs()
2656 slot+1, (reg & PCI_HP_SLOT_MRL_SERR_MASK) ? "Yes" : "No"); in pcishpc_dump_regs()
2658 slot+1, (reg & PCI_HP_SLOT_POWER_SERR_MASK) ? "Yes" : "No"); in pcishpc_dump_regs()