• 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:slot_num

212 			debug ("%s - physical slot#: %x\n", __func__, hpc_ptr->slots[index].slot_num);
530 * Arguments: slot_num, 1st slot number of the chassis we think we are on,
533 static int first_slot_num (u8 slot_num, u8 first_slot, u8 var)
541 if ((first_slot < opt_vg_ptr->first_slot_num) && (slot_num >= opt_vg_ptr->first_slot_num)) {
548 if ((first_slot < opt_lo_ptr->first_slot_num) && (slot_num >= opt_lo_ptr->first_slot_num)) {
557 static struct opt_rio_lo * find_rxe_num (u8 slot_num)
562 //check to see if this slot_num belongs to expansion box
563 if ((slot_num >= opt_lo_ptr->first_slot_num) && (!first_slot_num (slot_num, opt_lo_ptr->first_slot_num, 1)))
569 static struct opt_rio * find_chassis_num (u8 slot_num)
574 //check to see if this slot_num belongs to chassis
575 if ((slot_num >= opt_vg_ptr->first_slot_num) && (!first_slot_num (slot_num, opt_vg_ptr->first_slot_num, 0)))
584 static u8 calculate_first_slot (u8 slot_num)
591 if ((slot_cur->ctrl->ctlr_type != 4) && (slot_cur->ctrl->ending_slot_num > first_slot) && (slot_num > slot_cur->ctrl->ending_slot_num))
609 u8 slot_num;
617 slot_num = slot_cur->number;
623 opt_vg_ptr = find_chassis_num (slot_num);
624 opt_lo_ptr = find_rxe_num (slot_num);
629 if ((slot_num - opt_vg_ptr->first_slot_num) > (slot_num - opt_lo_ptr->first_slot_num)) {
657 first_slot = calculate_first_slot (slot_num);
666 number, slot_num - first_slot + 1);
739 u16 slot_num, bus_num, index;
754 slot_num = readb (io_mem + addr);
758 addr += (slot_num * 4);
769 hpc_ptr = alloc_ebda_hpc (slot_num, bus_num);
776 hpc_ptr->slot_count = slot_num;
781 debug ("count of slots controlled by this ctlr: %x\n", slot_num);
786 for (slot = 0; slot < slot_num; slot++) {
787 slot_ptr->slot_num = readb (io_mem + addr_slot);
788 slot_ptr->slot_bus_num = readb (io_mem + addr_slot + slot_num);
789 slot_ptr->ctl_index = readb (io_mem + addr_slot + 2*slot_num);
790 slot_ptr->slot_cap = readb (io_mem + addr_slot + 3*slot_num);
801 bus_info_ptr1->slot_min = slot_ptr->slot_num;
802 bus_info_ptr1->slot_max = slot_ptr->slot_num;
814 bus_info_ptr2->slot_min = min (bus_info_ptr2->slot_min, slot_ptr->slot_num);
815 bus_info_ptr2->slot_max = max (bus_info_ptr2->slot_max, slot_ptr->slot_num);
893 hpc_ptr->starting_slot_num = hpc_ptr->slots[0].slot_num;
894 hpc_ptr->ending_slot_num = hpc_ptr->slots[slot_num-1].slot_num;
946 tmp_slot->number = hpc_ptr->slots[index].slot_num;