Lines Matching refs:alarm
231 static unsigned int xadc_zynq_transform_alarm(unsigned int alarm) in xadc_zynq_transform_alarm() argument
233 return ((alarm & 0x80) >> 4) | in xadc_zynq_transform_alarm()
234 ((alarm & 0x78) << 1) | in xadc_zynq_transform_alarm()
235 (alarm & 0x07); in xadc_zynq_transform_alarm()
399 static void xadc_zynq_update_alarm(struct xadc *xadc, unsigned int alarm) in xadc_zynq_update_alarm() argument
405 alarm = ((alarm & 0x08) << 4) | ((alarm & 0xf0) >> 1) | (alarm & 0x07); in xadc_zynq_update_alarm()
411 xadc_write_reg(xadc, XADC_ZYNQ_REG_INTSTS, status & alarm); in xadc_zynq_update_alarm()
414 ~alarm & XADC_ZYNQ_INT_ALARM_MASK); in xadc_zynq_update_alarm()
493 static void xadc_axi_update_alarm(struct xadc *xadc, unsigned int alarm) in xadc_axi_update_alarm() argument
504 alarm = ((alarm & 0x07) << 1) | ((alarm & 0x08) >> 3) | in xadc_axi_update_alarm()
505 ((alarm & 0xf0) << 6); in xadc_axi_update_alarm()
510 val |= alarm; in xadc_axi_update_alarm()