Home | History | Annotate | Download | only in sunxi

Lines Matching defs:mux

43 	struct sunxi_ccu_mux *mux = &clk->u.mux;
49 if (mux->sel == 0)
52 for (index = 0; index < mux->nparents; index++) {
53 if (mux->parents[index] != NULL &&
54 strcmp(mux->parents[index], name) == 0)
57 if (index == mux->nparents)
60 val = CCU_READ(sc, mux->reg);
61 val &= ~mux->sel;
62 val |= __SHIFTIN(index, mux->sel);
63 CCU_WRITE(sc, mux->reg, val);
72 struct sunxi_ccu_mux *mux = &clk->u.mux;
78 val = CCU_READ(sc, mux->reg);
79 index = __SHIFTOUT(val, mux->sel);
81 return mux->parents[index];