Lines Matching defs:mux
12 #include "mux.h"
15 const struct sprd_mux_ssel *mux)
23 parent = reg >> mux->shift;
24 parent &= (1 << mux->width) - 1;
26 if (!mux->table)
32 if (parent >= mux->table[i] && parent < mux->table[i + 1])
43 return sprd_mux_helper_get_parent(&cm->common, &cm->mux);
47 const struct sprd_mux_ssel *mux,
52 if (mux->table)
53 index = mux->table[index];
56 reg &= ~GENMASK(mux->width + mux->shift - 1, mux->shift);
58 reg | (index << mux->shift));
68 return sprd_mux_helper_set_parent(&cm->common, &cm->mux, index);