Lines Matching refs:shift
89 unsigned int *reg_num, unsigned int *shift) in get_cmxucr_reg() argument
95 *shift = 16 - 8 * (ucc_num & 2); in get_cmxucr_reg()
102 unsigned int shift; in ucc_mux_set_grant_tsa_bkpt() local
108 get_cmxucr_reg(ucc_num, &cmxucr, ®_num, &shift); in ucc_mux_set_grant_tsa_bkpt()
111 qe_setbits_be32(cmxucr, mask << shift); in ucc_mux_set_grant_tsa_bkpt()
113 qe_clrbits_be32(cmxucr, mask << shift); in ucc_mux_set_grant_tsa_bkpt()
123 unsigned int shift; in ucc_set_qe_mux_rxtx() local
134 get_cmxucr_reg(ucc_num, &cmxucr, ®_num, &shift); in ucc_set_qe_mux_rxtx()
207 shift += 4; in ucc_set_qe_mux_rxtx()
209 qe_clrsetbits_be32(cmxucr, QE_CMXUCR_TX_CLK_SRC_MASK << shift, in ucc_set_qe_mux_rxtx()
210 clock_bits << shift); in ucc_set_qe_mux_rxtx()
505 u32 shift; in ucc_get_tdm_clk_shift() local
507 shift = (mode == COMM_DIR_RX) ? RX_CLK_SHIFT_BASE : TX_CLK_SHIFT_BASE; in ucc_get_tdm_clk_shift()
509 shift -= tdm_num * 4; in ucc_get_tdm_clk_shift()
511 shift -= (tdm_num - 4) * 4; in ucc_get_tdm_clk_shift()
513 return shift; in ucc_get_tdm_clk_shift()
520 u32 shift; in ucc_set_tdm_rxtx_clk() local
537 shift = ucc_get_tdm_clk_shift(mode, tdm_num); in ucc_set_tdm_rxtx_clk()
542 qe_clrsetbits_be32(cmxs1cr, QE_CMXUCR_TX_CLK_SRC_MASK << shift, in ucc_set_tdm_rxtx_clk()
543 clock_bits << shift); in ucc_set_tdm_rxtx_clk()
622 u32 shift; in ucc_get_tdm_sync_shift() local
624 shift = (mode == COMM_DIR_RX) ? RX_SYNC_SHIFT_BASE : TX_SYNC_SHIFT_BASE; in ucc_get_tdm_sync_shift()
625 shift -= tdm_num * 2; in ucc_get_tdm_sync_shift()
627 return shift; in ucc_get_tdm_sync_shift()
634 u32 shift; in ucc_set_tdm_rxtx_sync() local
650 shift = ucc_get_tdm_sync_shift(mode, tdm_num); in ucc_set_tdm_rxtx_sync()
653 QE_CMXUCR_TX_CLK_SRC_MASK << shift, in ucc_set_tdm_rxtx_sync()
654 source << shift); in ucc_set_tdm_rxtx_sync()