Lines Matching refs:idx

747 	int			idx = 0;  in mp_register_ioapic()  local
760 idx = nr_ioapics++; in mp_register_ioapic()
762 mp_ioapics[idx].mpc_type = MP_IOAPIC; in mp_register_ioapic()
763 mp_ioapics[idx].mpc_flags = MPC_APIC_USABLE; in mp_register_ioapic()
764 mp_ioapics[idx].mpc_apicaddr = address; in mp_register_ioapic()
766 set_fixmap_nocache(FIX_IO_APIC_BASE_0 + idx, address); in mp_register_ioapic()
767 mp_ioapics[idx].mpc_apicid = io_apic_get_unique_id(idx, id); in mp_register_ioapic()
768 mp_ioapics[idx].mpc_apicver = io_apic_get_version(idx); in mp_register_ioapic()
774 mp_ioapic_routing[idx].apic_id = mp_ioapics[idx].mpc_apicid; in mp_register_ioapic()
775 mp_ioapic_routing[idx].irq_start = irq_base; in mp_register_ioapic()
776 mp_ioapic_routing[idx].irq_end = irq_base + in mp_register_ioapic()
777 io_apic_get_redir_entries(idx); in mp_register_ioapic()
780 "IRQ %d-%d\n", idx, mp_ioapics[idx].mpc_apicid, in mp_register_ioapic()
781 mp_ioapics[idx].mpc_apicver, mp_ioapics[idx].mpc_apicaddr, in mp_register_ioapic()
782 mp_ioapic_routing[idx].irq_start, in mp_register_ioapic()
783 mp_ioapic_routing[idx].irq_end); in mp_register_ioapic()
865 int idx; in mp_config_acpi_legacy_irqs() local
867 for (idx = 0; idx < mp_irq_entries; idx++) in mp_config_acpi_legacy_irqs()
868 if (mp_irqs[idx].mpc_srcbus == MP_ISA_BUS && in mp_config_acpi_legacy_irqs()
869 (mp_irqs[idx].mpc_dstapic == intsrc.mpc_dstapic) && in mp_config_acpi_legacy_irqs()
870 (mp_irqs[idx].mpc_srcbusirq == i || in mp_config_acpi_legacy_irqs()
871 mp_irqs[idx].mpc_dstirq == i)) in mp_config_acpi_legacy_irqs()
874 if (idx != mp_irq_entries) { in mp_config_acpi_legacy_irqs()
917 int idx, bit = 0; in mp_parse_prt() local
956 idx = (ioapic_pin < 32) ? 0 : (ioapic_pin / 32); in mp_parse_prt()
957 if (idx > 3) { in mp_parse_prt()
963 if ((1<<bit) & mp_ioapic_routing[ioapic].pin_programmed[idx]) { in mp_parse_prt()
970 mp_ioapic_routing[ioapic].pin_programmed[idx] |= (1<<bit); in mp_parse_prt()