Lines Matching refs:ldg
293 struct niu_ldg *lp = &np->ldg[i]; in niu_enable_interrupts()
301 niu_ldg_rearm(np, &np->ldg[i], on); in niu_enable_interrupts()
4165 static void __niu_fastpath_interrupt(struct niu *np, int ldg, u64 v0) in __niu_fastpath_interrupt() argument
4178 if (parent->ldg_map[ldn] != ldg) in __niu_fastpath_interrupt()
4190 if (parent->ldg_map[ldn] != ldg) in __niu_fastpath_interrupt()
4215 int ldg = lp->ldg_num; in niu_interrupt() local
4221 __func__, lp, ldg); in niu_interrupt()
4225 v0 = nr64(LDSV0(ldg)); in niu_interrupt()
4226 v1 = nr64(LDSV1(ldg)); in niu_interrupt()
4227 v2 = nr64(LDSV2(ldg)); in niu_interrupt()
6053 struct niu_ldg *lp = &np->ldg[i]; in niu_request_irq()
6066 struct niu_ldg *lp = &np->ldg[j]; in niu_request_irq()
6078 struct niu_ldg *lp = &np->ldg[i]; in niu_free_irq()
6089 napi_enable(&np->ldg[i].napi); in niu_enable_napi()
6097 napi_disable(&np->ldg[i].napi); in niu_disable_napi()
7914 int ldg, int ldn) in niu_ldg_assign_ldn() argument
7916 if (ldg < NIU_LDG_MIN || ldg > NIU_LDG_MAX) in niu_ldg_assign_ldn()
7921 parent->ldg_map[ldn] = ldg; in niu_ldg_assign_ldn()
7929 if (nr64(LDG_NUM(ldn)) != ldg) { in niu_ldg_assign_ldn()
7931 np->port, ldn, ldg, in niu_ldg_assign_ldn()
7936 nw64(LDG_NUM(ldn), ldg); in niu_ldg_assign_ldn()
7952 static int niu_set_ldg_sid(struct niu *np, int ldg, int func, int vector) in niu_set_ldg_sid() argument
7954 if ((ldg < NIU_LDG_MIN || ldg > NIU_LDG_MAX) || in niu_set_ldg_sid()
7959 nw64(SID(ldg), (func << SID_FUNC_SHIFT) | vector); in niu_set_ldg_sid()
9069 np->ldg[i].irq = msi_vec[i].vector; in niu_try_msix()
9086 np->ldg[i].irq = op->archdata.irqs[i]; in niu_n2_irq_init()
9106 np->ldg[0].irq = np->dev->irq; in niu_ldg_init()
9116 struct niu_ldg *lp = &np->ldg[i]; in niu_ldg_init()