Lines Matching refs:DI_val
488 uint16_t DI_val; in litex_clk_calc_DI() local
490 DI_val = DO_val & mask; in litex_clk_calc_DI()
491 DI_val |= bitset; in litex_clk_calc_DI()
493 return DI_val; in litex_clk_calc_DI()
497 static int litex_clk_set_DI(uint16_t DI_val) in litex_clk_set_DI() argument
501 litex_clk_set_reg(DRP_DAT_W, DI_val); in litex_clk_set_DI()
520 uint16_t DO_val, DI_val; in litex_clk_change_value() local
529 DI_val = litex_clk_calc_DI(DO_val, mask, bitset); in litex_clk_change_value()
530 ret = litex_clk_set_DI(DI_val); in litex_clk_change_value()
535 DI_val = litex_clk_get_reg(DRP_DAT_W); in litex_clk_change_value()
536 LOG_DBG("set 0x%x under: 0x%x", DI_val, clk_reg_addr); in litex_clk_change_value()