• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/hotplug/

Lines Matching defs:slot_num

265 			debug ("%s - physical slot#: %x\n", __FUNCTION__, hpc_ptr->slots[index].slot_num);
623 * Arguments: slot_num, 1st slot number of the chassis we think we are on,
626 static int first_slot_num (u8 slot_num, u8 first_slot, u8 var)
636 if ((first_slot < opt_vg_ptr->first_slot_num) && (slot_num >= opt_vg_ptr->first_slot_num)) {
644 if ((first_slot < opt_lo_ptr->first_slot_num) && (slot_num >= opt_lo_ptr->first_slot_num)) {
653 static struct opt_rio_lo * find_rxe_num (u8 slot_num)
660 //check to see if this slot_num belongs to expansion box
661 if ((slot_num >= opt_lo_ptr->first_slot_num) && (!first_slot_num (slot_num, opt_lo_ptr->first_slot_num, 1)))
667 static struct opt_rio * find_chassis_num (u8 slot_num)
674 //check to see if this slot_num belongs to chassis
675 if ((slot_num >= opt_vg_ptr->first_slot_num) && (!first_slot_num (slot_num, opt_vg_ptr->first_slot_num, 0)))
684 static u8 calculate_first_slot (u8 slot_num)
693 if ((slot_cur->ctrl->ctlr_type != 4) && (slot_cur->ctrl->ending_slot_num > first_slot) && (slot_num > slot_cur->ctrl->ending_slot_num))
708 u8 slot_num;
716 slot_num = slot_cur->number;
734 opt_vg_ptr = find_chassis_num (slot_num);
735 opt_lo_ptr = find_rxe_num (slot_num);
740 if ((slot_num - opt_vg_ptr->first_slot_num) > (slot_num - opt_lo_ptr->first_slot_num)) {
768 first_slot = calculate_first_slot (slot_num);
782 ptr_slot_num = convert_2digits_to_char (slot_num - first_slot + 1);
793 ptr_slot_num = convert_2digits_to_char (slot_num - first_slot + 1);
814 u16 slot_num, bus_num, index;
830 slot_num = readb (io_mem + addr);
834 addr += (slot_num * 4);
845 hpc_ptr = alloc_ebda_hpc (slot_num, bus_num);
852 hpc_ptr->slot_count = slot_num;
857 debug ("count of slots controlled by this ctlr: %x\n", slot_num);
862 for (slot = 0; slot < slot_num; slot++) {
863 slot_ptr->slot_num = readb (io_mem + addr_slot);
864 slot_ptr->slot_bus_num = readb (io_mem + addr_slot + slot_num);
865 slot_ptr->ctl_index = readb (io_mem + addr_slot + 2*slot_num);
866 slot_ptr->slot_cap = readb (io_mem + addr_slot + 3*slot_num);
878 bus_info_ptr1->slot_min = slot_ptr->slot_num;
879 bus_info_ptr1->slot_max = slot_ptr->slot_num;
891 bus_info_ptr2->slot_min = min (bus_info_ptr2->slot_min, slot_ptr->slot_num);
892 bus_info_ptr2->slot_max = max (bus_info_ptr2->slot_max, slot_ptr->slot_num);
966 hpc_ptr->starting_slot_num = hpc_ptr->slots[0].slot_num;
967 hpc_ptr->ending_slot_num = hpc_ptr->slots[slot_num-1].slot_num;
1033 ((struct slot *) hp_slot_ptr->private)->number = hpc_ptr->slots[index].slot_num;