Lines Matching refs:mfunc
369 u32 mfunc, mfunc_old, devctl; in ti12xx_irqroute_func0() local
373 mfunc = mfunc_old = config_readl(socket, TI122X_MFUNC); in ti12xx_irqroute_func0()
376 "TI: mfunc 0x%08x, devctl 0x%02x\n", mfunc, devctl); in ti12xx_irqroute_func0()
407 mfunc = (mfunc & ~TI122X_MFUNC3_MASK) | TI122X_MFUNC3_IRQSER; in ti12xx_irqroute_func0()
410 if (mfunc != mfunc_old) { in ti12xx_irqroute_func0()
411 config_writel(socket, TI122X_MFUNC, mfunc); in ti12xx_irqroute_func0()
417 mfunc_old = mfunc; in ti12xx_irqroute_func0()
422 mfunc = mfunc_old; in ti12xx_irqroute_func0()
423 config_writel(socket, TI122X_MFUNC, mfunc); in ti12xx_irqroute_func0()
454 mfunc = (mfunc & ~TI122X_MFUNC0_MASK) | TI122X_MFUNC0_INTA; in ti12xx_irqroute_func0()
455 if (mfunc != mfunc_old) in ti12xx_irqroute_func0()
456 config_writel(socket, TI122X_MFUNC, mfunc); in ti12xx_irqroute_func0()
462 mfunc_old = mfunc; in ti12xx_irqroute_func0()
467 mfunc = mfunc_old; in ti12xx_irqroute_func0()
468 config_writel(socket, TI122X_MFUNC, mfunc); in ti12xx_irqroute_func0()
545 u32 mfunc, mfunc_old, devctl, sysctl; in ti12xx_irqroute_func1() local
548 mfunc = mfunc_old = config_readl(socket, TI122X_MFUNC); in ti12xx_irqroute_func1()
552 mfunc, devctl); in ti12xx_irqroute_func1()
605 mfunc = (mfunc & ~TI122X_MFUNC0_MASK) | TI125X_MFUNC0_INTB; in ti12xx_irqroute_func1()
609 mfunc = (mfunc & ~TI122X_MFUNC1_MASK) | TI122X_MFUNC1_INTB; in ti12xx_irqroute_func1()
614 if (mfunc != mfunc_old) { in ti12xx_irqroute_func1()
615 config_writel(socket, TI122X_MFUNC, mfunc); in ti12xx_irqroute_func1()
624 mfunc = mfunc_old; in ti12xx_irqroute_func1()
625 config_writel(socket, TI122X_MFUNC, mfunc); in ti12xx_irqroute_func1()
750 u32 mfunc, devctl, sysctl; in ti12xx_power_hook() local
759 mfunc = config_readl(socket, TI122X_MFUNC); in ti12xx_power_hook()
783 mfunc = (mfunc & ~TI122X_MFUNC3_MASK); in ti12xx_power_hook()
785 mfunc = (mfunc & ~TI122X_MFUNC3_MASK) | TI122X_MFUNC3_IRQSER; in ti12xx_power_hook()
813 mfunc &= ~TI122X_MFUNC0_MASK; in ti12xx_power_hook()
815 mfunc |= TI122X_MFUNC0_INTA; in ti12xx_power_hook()
816 config_writel(socket, TI122X_MFUNC, mfunc); in ti12xx_power_hook()
825 mfunc &= ~TI122X_MFUNC0_MASK; in ti12xx_power_hook()
827 mfunc |= TI125X_MFUNC0_INTB; in ti12xx_power_hook()
828 config_writel(socket, TI122X_MFUNC, mfunc); in ti12xx_power_hook()
835 mfunc &= ~TI122X_MFUNC1_MASK; in ti12xx_power_hook()
837 mfunc |= TI122X_MFUNC1_INTB; in ti12xx_power_hook()
838 config_writel(socket, TI122X_MFUNC, mfunc); in ti12xx_power_hook()