Lines Matching refs:mask
178 unsigned int val, mask, shift; in pm_ioctl_set_sgmii_mode() local
202 mask = GEM_SGMII_MASK << GEM_CLK_CTRL_OFFSET * shift; in pm_ioctl_set_sgmii_mode()
203 ret = pm_mmio_write(IOU_GEM_CLK_CTRL, mask, 0U); in pm_ioctl_set_sgmii_mode()
206 mask = SGMII_SD_MASK << SGMII_SD_OFFSET * shift; in pm_ioctl_set_sgmii_mode()
208 ret = pm_mmio_write(IOU_GEM_CTRL, mask, val); in pm_ioctl_set_sgmii_mode()
213 mask = GEM_CLK_CTRL_MASK << GEM_CLK_CTRL_OFFSET * shift; in pm_ioctl_set_sgmii_mode()
216 ret = pm_mmio_write(IOU_GEM_CLK_CTRL, mask, val); in pm_ioctl_set_sgmii_mode()
234 unsigned int mask, val; in pm_ioctl_sd_dll_reset() local
238 mask = ZYNQMP_SD0_DLL_RST_MASK; in pm_ioctl_sd_dll_reset()
241 mask = ZYNQMP_SD1_DLL_RST_MASK; in pm_ioctl_sd_dll_reset()
250 ret = pm_mmio_write(ZYNQMP_SD_DLL_CTRL, mask, val); in pm_ioctl_sd_dll_reset()
259 ret = pm_mmio_write(ZYNQMP_SD_DLL_CTRL, mask, 0); in pm_ioctl_sd_dll_reset()
285 unsigned int val, mask; in pm_ioctl_sd_set_tapdelay() local
289 mask = ZYNQMP_SD0_DLL_RST_MASK; in pm_ioctl_sd_set_tapdelay()
292 mask = ZYNQMP_SD1_DLL_RST_MASK; in pm_ioctl_sd_set_tapdelay()
302 if ((val & mask) == 0) { in pm_ioctl_sd_set_tapdelay()
346 if ((val & mask) == 0) { in pm_ioctl_sd_set_tapdelay()
505 unsigned int mask; in pm_ioctl_afi() local
528 mask = FABRIC_WIDTH; in pm_ioctl_afi()
530 mask = 0xf00; in pm_ioctl_afi()
532 return pm_mmio_write(regarr[index], mask, value); in pm_ioctl_afi()