Exemplo n.º 1
0
static void __funnel_disable(uint8_t id, uint32_t port_mask)
{
	uint32_t functl;

	FUNNEL_UNLOCK(id);

	functl = funnel_readl(funnel, id, CS_TFUNNEL_FUNCTL);
	functl &= ~port_mask;
	funnel_writel(funnel, id, functl, CS_TFUNNEL_FUNCTL);

	FUNNEL_LOCK(id);
}
Exemplo n.º 2
0
static void __funnel_enable(uint8_t id, uint32_t port_mask)
{
	uint32_t functl;

	FUNNEL_UNLOCK(id);

	functl = funnel_readl(funnel, id, CS_TFUNNEL_FUNCTL);
	functl &= ~DEFAULT_HOLDTIME_MASK;
	functl |= DEFAULT_HOLDTIME;
	functl |= port_mask;
	funnel_writel(funnel, id, functl, CS_TFUNNEL_FUNCTL);
	funnel_writel(funnel, id, DEFAULT_PRIORITY, CS_TFUNNEL_PRICTL);

	FUNNEL_LOCK(id);
}
Exemplo n.º 3
0
static void __funnel_enable(uint8_t id, uint32_t port_mask)
{
	uint32_t functl;

	FUNNEL_UNLOCK(id);

	functl = funnel_readl(drvdata, id, FUNNEL_FUNCTL);
	functl &= ~FUNNEL_HOLDTIME_MASK;
	functl |= FUNNEL_HOLDTIME;
	functl |= port_mask;
	funnel_writel(drvdata, id, functl, FUNNEL_FUNCTL);
	funnel_writel(drvdata, id, drvdata->priority, FUNNEL_PRICTL);

	FUNNEL_LOCK(id);
}