Lines Matching refs:menelaus_write_reg

171 static int menelaus_write_reg(int reg, u8 value)  in menelaus_write_reg()  function
198 return menelaus_write_reg(MENELAUS_INT_MASK2, in menelaus_enable_irq()
202 return menelaus_write_reg(MENELAUS_INT_MASK1, in menelaus_enable_irq()
212 return menelaus_write_reg(MENELAUS_INT_MASK2, in menelaus_disable_irq()
216 return menelaus_write_reg(MENELAUS_INT_MASK1, in menelaus_disable_irq()
224 return menelaus_write_reg(MENELAUS_INT_ACK2, 1 << (irq - 8)); in menelaus_ack_irq()
226 return menelaus_write_reg(MENELAUS_INT_ACK1, 1 << irq); in menelaus_ack_irq()
309 ret = menelaus_write_reg(MENELAUS_MCT_CTRL1, val); in menelaus_set_mmc_opendrain()
329 ret = menelaus_write_reg(MENELAUS_GPIO_CTRL, ret); in menelaus_set_slot_sel()
362 ret = menelaus_write_reg(MENELAUS_MCT_CTRL2, val); in menelaus_set_mmc_slot()
385 ret = menelaus_write_reg(MENELAUS_MCT_CTRL2, b); in menelaus_set_mmc_slot()
391 ret = menelaus_write_reg(MENELAUS_MCT_CTRL3, val); in menelaus_set_mmc_slot()
467 ret = menelaus_write_reg(vtg->vtg_reg, val); in menelaus_set_voltage()
470 ret = menelaus_write_reg(vtg->mode_reg, mode); in menelaus_set_voltage()
540 ret = menelaus_write_reg(MENELAUS_VCORE_CTRL3, fval); in menelaus_set_vcore_hw()
543 ret = menelaus_write_reg(MENELAUS_VCORE_CTRL4, rval); in menelaus_set_vcore_hw()
550 ret = menelaus_write_reg(MENELAUS_VCORE_CTRL1, val); in menelaus_set_vcore_hw()
737 ret = menelaus_write_reg(MENELAUS_SLEEP_CTRL2, val); in menelaus_set_regulator_sleep()
751 ret = menelaus_write_reg(MENELAUS_GPIO_CTRL, ret); in menelaus_set_regulator_sleep()
847 status = menelaus_write_reg(regnum++, bin2bcd(t->tm_sec)); in time_to_menelaus()
851 status = menelaus_write_reg(regnum++, bin2bcd(t->tm_min)); in time_to_menelaus()
863 status = menelaus_write_reg(regnum++, hour); in time_to_menelaus()
867 status = menelaus_write_reg(regnum++, bin2bcd(t->tm_mday)); in time_to_menelaus()
871 status = menelaus_write_reg(regnum++, bin2bcd(t->tm_mon + 1)); in time_to_menelaus()
875 status = menelaus_write_reg(regnum++, bin2bcd(t->tm_year - 100)); in time_to_menelaus()
925 status = menelaus_write_reg(MENELAUS_RTC_WKDAY, bin2bcd(t->tm_wday)); in menelaus_set_time()
933 status = menelaus_write_reg(MENELAUS_RTC_UPDATE, RTC_UPDATE_EVERY); in menelaus_set_time()
986 status = menelaus_write_reg(MENELAUS_RTC_CTRL, in menelaus_set_alarm()
1000 status = menelaus_write_reg(MENELAUS_RTC_CTRL, in menelaus_set_alarm()
1054 return menelaus_write_reg(MENELAUS_RTC_CTRL, the_menelaus->rtc_control); in menelaus_ioctl()
1078 menelaus_write_reg(MENELAUS_RTC_CTRL, the_menelaus->rtc_control); in menelaus_rtc_alarm_work()
1119 menelaus_write_reg(MENELAUS_RTC_CTRL, m->rtc_control); in menelaus_rtc_init()
1177 menelaus_write_reg(MENELAUS_INT_ACK1, 0xff); in menelaus_probe()
1178 menelaus_write_reg(MENELAUS_INT_ACK2, 0xff); in menelaus_probe()
1179 menelaus_write_reg(MENELAUS_INT_MASK1, 0xff); in menelaus_probe()
1180 menelaus_write_reg(MENELAUS_INT_MASK2, 0xff); in menelaus_probe()
1185 menelaus_write_reg(MENELAUS_MCT_CTRL1, 0x73); in menelaus_probe()