Lines Matching refs:pmux
230 u16 m, pmux, pfunc, mask; in portmux_group_check() local
235 pmux = bfin_read_PORT_MUX(); in portmux_group_check()
249 pfunc = (pmux >> offset) & mask; in portmux_group_check()
265 u16 pmux, mask; in portmux_setup() local
270 pmux = bfin_read_PORT_MUX(); in portmux_setup()
276 pmux &= ~(mask << offset); in portmux_setup()
277 pmux |= ((function & mask) << offset); in portmux_setup()
279 bfin_write_PORT_MUX(pmux); in portmux_setup()
316 u16 pmux; in portmux_setup() local
318 pmux = *port_mux[gpio_bank(ident)]; in portmux_setup()
319 if (((pmux >> offset) & 3) == function) in portmux_setup()
321 pmux &= ~(3 << offset); in portmux_setup()
322 pmux |= (function & 3) << offset; in portmux_setup()
323 *port_mux[gpio_bank(ident)] = pmux; in portmux_setup()