• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/pci/hotplug/

Lines Matching refs:slot_num

228 			debug ("%s - physical slot#: %x\n", __FUNCTION__, hpc_ptr->slots[index].slot_num);
545 * Arguments: slot_num, 1st slot number of the chassis we think we are on,
548 static int first_slot_num (u8 slot_num, u8 first_slot, u8 var)
558 if ((first_slot < opt_vg_ptr->first_slot_num) && (slot_num >= opt_vg_ptr->first_slot_num)) {
566 if ((first_slot < opt_lo_ptr->first_slot_num) && (slot_num >= opt_lo_ptr->first_slot_num)) {
575 static struct opt_rio_lo * find_rxe_num (u8 slot_num)
582 //check to see if this slot_num belongs to expansion box
583 if ((slot_num >= opt_lo_ptr->first_slot_num) && (!first_slot_num (slot_num, opt_lo_ptr->first_slot_num, 1)))
589 static struct opt_rio * find_chassis_num (u8 slot_num)
596 //check to see if this slot_num belongs to chassis
597 if ((slot_num >= opt_vg_ptr->first_slot_num) && (!first_slot_num (slot_num, opt_vg_ptr->first_slot_num, 0)))
606 static u8 calculate_first_slot (u8 slot_num)
615 if ((slot_cur->ctrl->ctlr_type != 4) && (slot_cur->ctrl->ending_slot_num > first_slot) && (slot_num > slot_cur->ctrl->ending_slot_num))
630 u8 slot_num;
638 slot_num = slot_cur->number;
644 opt_vg_ptr = find_chassis_num (slot_num);
645 opt_lo_ptr = find_rxe_num (slot_num);
650 if ((slot_num - opt_vg_ptr->first_slot_num) > (slot_num - opt_lo_ptr->first_slot_num)) {
678 first_slot = calculate_first_slot (slot_num);
687 number, slot_num - first_slot + 1);
761 u16 slot_num, bus_num, index;
776 slot_num = readb (io_mem + addr);
780 addr += (slot_num * 4);
791 hpc_ptr = alloc_ebda_hpc (slot_num, bus_num);
798 hpc_ptr->slot_count = slot_num;
803 debug ("count of slots controlled by this ctlr: %x\n", slot_num);
808 for (slot = 0; slot < slot_num; slot++) {
809 slot_ptr->slot_num = readb (io_mem + addr_slot);
810 slot_ptr->slot_bus_num = readb (io_mem + addr_slot + slot_num);
811 slot_ptr->ctl_index = readb (io_mem + addr_slot + 2*slot_num);
812 slot_ptr->slot_cap = readb (io_mem + addr_slot + 3*slot_num);
823 bus_info_ptr1->slot_min = slot_ptr->slot_num;
824 bus_info_ptr1->slot_max = slot_ptr->slot_num;
836 bus_info_ptr2->slot_min = min (bus_info_ptr2->slot_min, slot_ptr->slot_num);
837 bus_info_ptr2->slot_max = max (bus_info_ptr2->slot_max, slot_ptr->slot_num);
915 hpc_ptr->starting_slot_num = hpc_ptr->slots[0].slot_num;
916 hpc_ptr->ending_slot_num = hpc_ptr->slots[slot_num-1].slot_num;
973 tmp_slot->number = hpc_ptr->slots[index].slot_num;