• Home
  • Raw
  • Download

Lines Matching refs:vi

541 static void iosapic_rd_irt_entry(struct vector_info *vi , u32 *dp0, u32 *dp1)  in iosapic_rd_irt_entry()  argument
543 struct iosapic_info *isp = vi->iosapic; in iosapic_rd_irt_entry()
544 u8 idx = vi->irqline; in iosapic_rd_irt_entry()
551 static void iosapic_wr_irt_entry(struct vector_info *vi, u32 dp0, u32 dp1) in iosapic_wr_irt_entry() argument
553 struct iosapic_info *isp = vi->iosapic; in iosapic_wr_irt_entry()
556 vi->irqline, isp->isi_hpa, dp0, dp1); in iosapic_wr_irt_entry()
558 iosapic_write(isp->addr, IOSAPIC_IRDT_ENTRY(vi->irqline), dp0); in iosapic_wr_irt_entry()
563 iosapic_write(isp->addr, IOSAPIC_IRDT_ENTRY_HI(vi->irqline), dp1); in iosapic_wr_irt_entry()
575 iosapic_set_irt_data( struct vector_info *vi, u32 *dp0, u32 *dp1) in iosapic_set_irt_data() argument
578 struct irt_entry *p = vi->irte; in iosapic_set_irt_data()
591 *dp0 = mode | (u32) vi->txn_data; in iosapic_set_irt_data()
602 *dp1 = (u32) (vi->txn_addr); in iosapic_set_irt_data()
611 *dp1 = (((u32)vi->txn_addr & 0x0ff00000) >> 4) | in iosapic_set_irt_data()
612 (((u32)vi->txn_addr & 0x000ff000) << 12); in iosapic_set_irt_data()
628 struct vector_info *vi = iosapic_get_vector(irq); in iosapic_disable_irq() local
632 iosapic_rd_irt_entry(vi, &d0, &d1); in iosapic_disable_irq()
634 iosapic_wr_irt_entry(vi, d0, d1); in iosapic_disable_irq()
640 struct vector_info *vi = iosapic_get_vector(irq); in iosapic_enable_irq() local
644 WARN_ON(vi->txn_irq == 0); in iosapic_enable_irq()
646 iosapic_set_irt_data(vi, &d0, &d1); in iosapic_enable_irq()
647 iosapic_wr_irt_entry(vi, d0, d1); in iosapic_enable_irq()
651 u32 *t = (u32 *) ((ulong) vi->eoi_addr & ~0xffUL); in iosapic_enable_irq()
652 printk("iosapic_enable_irq(): regs %p", vi->eoi_addr); in iosapic_enable_irq()
653 for ( ; t < vi->eoi_addr; t++) in iosapic_enable_irq()
660 struct iosapic_info *isp = vi->iosapic; in iosapic_enable_irq()
677 vi->eoi_addr, vi->eoi_data); in iosapic_enable_irq()
678 iosapic_eoi(vi->eoi_addr, vi->eoi_data); in iosapic_enable_irq()
691 struct vector_info *vi = iosapic_get_vector(irq); in iosapic_end_irq() local
693 vi->eoi_addr, vi->eoi_data); in iosapic_end_irq()
694 iosapic_eoi(vi->eoi_addr, vi->eoi_data); in iosapic_end_irq()
708 struct vector_info *vi = iosapic_get_vector(irq); in iosapic_set_affinity_irq() local
718 vi->txn_addr = txn_affinity_addr(irq, dest_cpu); in iosapic_set_affinity_irq()
723 iosapic_rd_irt_entry(vi, &d0, &d1); in iosapic_set_affinity_irq()
724 iosapic_set_irt_data(vi, &dummy_d0, &d1); in iosapic_set_affinity_irq()
725 iosapic_wr_irt_entry(vi, d0, d1); in iosapic_set_affinity_irq()
747 struct vector_info *vi; in iosapic_fixup_irq() local
795 vi = isi->isi_vector + isi_line; in iosapic_fixup_irq()
796 DBG_IRT("iosapic_fixup_irq: line %d vi 0x%p\n", isi_line, vi); in iosapic_fixup_irq()
799 if (vi->irte) in iosapic_fixup_irq()
802 vi->irte = irte; in iosapic_fixup_irq()
813 vi->txn_irq = txn_alloc_irq(8); in iosapic_fixup_irq()
815 if (vi->txn_irq < 0) in iosapic_fixup_irq()
819 vi->txn_addr = txn_alloc_addr(vi->txn_irq); in iosapic_fixup_irq()
820 vi->txn_data = txn_alloc_data(vi->txn_irq); in iosapic_fixup_irq()
822 vi->eoi_addr = isi->addr + IOSAPIC_REG_EOI; in iosapic_fixup_irq()
823 vi->eoi_data = cpu_to_le32(vi->txn_data); in iosapic_fixup_irq()
825 cpu_claim_irq(vi->txn_irq, &iosapic_interrupt_type, vi); in iosapic_fixup_irq()
828 pcidev->irq = vi->txn_irq; in iosapic_fixup_irq()
925 iosapic_prt_vi(struct vector_info *vi) in iosapic_prt_vi() argument
927 printk(KERN_DEBUG MODULE_NAME ": vector_info[%d] is at %p\n", vi->irqline, vi); in iosapic_prt_vi()
928 printk(KERN_DEBUG "\t\tstatus: %.4x\n", vi->status); in iosapic_prt_vi()
929 printk(KERN_DEBUG "\t\ttxn_irq: %d\n", vi->txn_irq); in iosapic_prt_vi()
930 printk(KERN_DEBUG "\t\ttxn_addr: %lx\n", vi->txn_addr); in iosapic_prt_vi()
931 printk(KERN_DEBUG "\t\ttxn_data: %lx\n", vi->txn_data); in iosapic_prt_vi()
932 printk(KERN_DEBUG "\t\teoi_addr: %p\n", vi->eoi_addr); in iosapic_prt_vi()
933 printk(KERN_DEBUG "\t\teoi_data: %x\n", vi->eoi_data); in iosapic_prt_vi()