Lines Matching refs:raw_value
50 u32 raw_value; in rockchip_mmc_get_phase() local
58 raw_value = readl(mmc_clock->reg) >> (mmc_clock->shift); in rockchip_mmc_get_phase()
60 degrees = (raw_value & ROCKCHIP_MMC_DEGREE_MASK) * 90; in rockchip_mmc_get_phase()
62 if (raw_value & ROCKCHIP_MMC_DELAY_SEL) { in rockchip_mmc_get_phase()
67 delay_num = (raw_value & ROCKCHIP_MMC_DELAYNUM_MASK); in rockchip_mmc_get_phase()
81 u32 raw_value; in rockchip_mmc_set_phase() local
135 raw_value = delay_num ? ROCKCHIP_MMC_DELAY_SEL : 0; in rockchip_mmc_set_phase()
136 raw_value |= delay_num << ROCKCHIP_MMC_DELAYNUM_OFFSET; in rockchip_mmc_set_phase()
137 raw_value |= nineties; in rockchip_mmc_set_phase()
138 writel(HIWORD_UPDATE(raw_value, 0x07ff, mmc_clock->shift), in rockchip_mmc_set_phase()
143 mmc_clock->reg, raw_value>>(mmc_clock->shift), in rockchip_mmc_set_phase()