Lines Matching refs:slot_num

198 			debug("%s - physical slot#: %x\n", __func__, hpc_ptr->slots[index].slot_num);
524 * Arguments: slot_num, 1st slot number of the chassis we think we are on,
527 static int first_slot_num(u8 slot_num, u8 first_slot, u8 var)
535 if ((first_slot < opt_vg_ptr->first_slot_num) && (slot_num >= opt_vg_ptr->first_slot_num)) {
542 if ((first_slot < opt_lo_ptr->first_slot_num) && (slot_num >= opt_lo_ptr->first_slot_num)) {
551 static struct opt_rio_lo *find_rxe_num(u8 slot_num)
556 //check to see if this slot_num belongs to expansion box
557 if ((slot_num >= opt_lo_ptr->first_slot_num) && (!first_slot_num(slot_num, opt_lo_ptr->first_slot_num, 1)))
563 static struct opt_rio *find_chassis_num(u8 slot_num)
568 //check to see if this slot_num belongs to chassis
569 if ((slot_num >= opt_vg_ptr->first_slot_num) && (!first_slot_num(slot_num, opt_vg_ptr->first_slot_num, 0)))
578 static u8 calculate_first_slot(u8 slot_num)
585 if ((slot_cur->ctrl->ctlr_type != 4) && (slot_cur->ctrl->ending_slot_num > first_slot) && (slot_num > slot_cur->ctrl->ending_slot_num))
603 u8 slot_num;
611 slot_num = slot_cur->number;
617 opt_vg_ptr = find_chassis_num(slot_num);
618 opt_lo_ptr = find_rxe_num(slot_num);
623 if ((slot_num - opt_vg_ptr->first_slot_num) > (slot_num - opt_lo_ptr->first_slot_num)) {
651 first_slot = calculate_first_slot(slot_num);
660 number, slot_num - first_slot + 1);
686 u16 slot_num, bus_num, index;
700 slot_num = readb(io_mem + addr);
704 addr += (slot_num * 4);
715 hpc_ptr = alloc_ebda_hpc(slot_num, bus_num);
721 hpc_ptr->slot_count = slot_num;
726 debug("count of slots controlled by this ctlr: %x\n", slot_num);
731 for (slot = 0; slot < slot_num; slot++) {
732 slot_ptr->slot_num = readb(io_mem + addr_slot);
733 slot_ptr->slot_bus_num = readb(io_mem + addr_slot + slot_num);
734 slot_ptr->ctl_index = readb(io_mem + addr_slot + 2*slot_num);
735 slot_ptr->slot_cap = readb(io_mem + addr_slot + 3*slot_num);
746 bus_info_ptr1->slot_min = slot_ptr->slot_num;
747 bus_info_ptr1->slot_max = slot_ptr->slot_num;
759 bus_info_ptr2->slot_min = min(bus_info_ptr2->slot_min, slot_ptr->slot_num);
760 bus_info_ptr2->slot_max = max(bus_info_ptr2->slot_max, slot_ptr->slot_num);
838 hpc_ptr->starting_slot_num = hpc_ptr->slots[0].slot_num;
839 hpc_ptr->ending_slot_num = hpc_ptr->slots[slot_num-1].slot_num;
877 tmp_slot->number = hpc_ptr->slots[index].slot_num;