• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/pci/hotplug/

Lines Matching defs:pslot

531 * Input:   pslot   - cannot be NULL for READ_ALLSTAT
536 int ibmphp_hpc_readslot (struct slot * pslot, u8 cmd, u8 * pstatus)
545 debug_polling ("%s - Entry pslot[%p] cmd[%x] pstatus[%p]\n", __func__, pslot, cmd, pstatus);
547 if ((pslot == NULL)
555 busindex = ibmphp_get_bus_index (pslot->bus);
563 index = pslot->ctlr_index;
573 ctlr_ptr = pslot->ctrl;
591 pslot->ctrl->status = status;
592 pslot->status = ctrl_read (ctlr_ptr, wpg_bbar, index);
596 pslot->ext_status = ctrl_read (ctlr_ptr, wpg_bbar, index + WPG_1ST_EXTSLOT_INDEX);
616 pslot->busstatus = ctrl_read (ctlr_ptr, wpg_bbar, index);
632 pslot = list_entry (pslotlist, struct slot, ibm_slot_list);
633 index = pslot->ctlr_index;
637 pslot->status = ctrl_read (ctlr_ptr, wpg_bbar, index);
641 pslot->ext_status =
675 int ibmphp_hpc_writeslot (struct slot * pslot, u8 cmd)
685 debug_polling ("%s - Entry pslot[%p] cmd[%x]\n", __func__, pslot, cmd);
686 if (pslot == NULL) {
695 busindex = ibmphp_get_bus_index (pslot->bus);
703 index = pslot->ctlr_index;
713 ctlr_ptr = pslot->ctrl;
822 struct slot *pslot = NULL;
844 pslot = list_entry (pslotlist, struct slot, ibm_slot_list);
845 if (pslot->ctrl->ctlr_relative_id == ctrl_count) {
847 if (READ_SLOT_LATCH (pslot->ctrl)) {
848 rc = ibmphp_hpc_readslot (pslot,
854 pslot->ctrl);
863 pslot = list_entry (pslotlist, struct slot, ibm_slot_list);
865 memcpy ((void *) &myslot, (void *) pslot,
867 rc = ibmphp_hpc_readslot (pslot, READ_ALLSTAT, NULL);
868 if ((myslot.status != pslot->status)
869 || (myslot.ext_status != pslot->ext_status))
870 process_changeinstatus (pslot, &myslot);
876 pslot = list_entry (pslotlist, struct slot, ibm_slot_list);
877 if (pslot->ctrl->ctlr_relative_id == ctrl_count) {
879 if (READ_SLOT_LATCH (pslot->ctrl))
880 rc = ibmphp_hpc_readslot (pslot,
932 static int process_changeinstatus (struct slot *pslot, struct slot *poldslot)
939 debug ("process_changeinstatus - Entry pslot[%p], poldslot[%p]\n", pslot, poldslot);
942 if ((pslot->status & 0x01) != (poldslot->status & 0x01))
949 if ((pslot->status & 0x04) != (poldslot->status & 0x04))
954 if (((pslot->status & 0x08) != (poldslot->status & 0x08))
955 || ((pslot->status & 0x10) != (poldslot->status & 0x10)))
959 if ((pslot->status & 0x20) != (poldslot->status & 0x20))
968 if ((pslot->status & 0x80) != (poldslot->status & 0x80)) {
971 if (pslot->status & 0x80) {
972 if (SLOT_PWRGD (pslot->status)) {
976 rc = ibmphp_hpc_readslot (pslot, READ_SLOTSTATUS, &status);
979 else // overwrite power in pslot to OFF
980 pslot->status &= ~HPC_SLOT_POWER;
991 if ((pslot->ext_status & 0x08) != (poldslot->ext_status & 0x08))
996 pslot->flag = 0;
997 rc = ibmphp_do_disable_slot (pslot);
1001 ibmphp_update_slot_info (pslot);
1021 struct slot myslot, *pslot;
1032 pslot = ibmphp_get_slot_from_physical_num (i);
1033 if (pslot) {
1034 memcpy ((void *) &myslot, (void *) pslot, sizeof (struct slot));
1035 rc = ibmphp_hpc_readslot (pslot, READ_ALLSTAT, NULL);
1037 process_changeinstatus (pslot, &myslot);