Lines Matching refs:i2c_wbuf
285 i2c_tp->i2c_wbuf[0] = (uchar_t)RTC_STATUS; /* Read Status register */
312 i2c_tp->i2c_wbuf[0] = RTC_CTL; /* Write Control register */
313 i2c_tp->i2c_wbuf[1] = (uchar_t)(RTC_CTL_RS2 | RTC_CTL_RS1 |
336 i2c_tp->i2c_wbuf[0] = RTC_STATUS;
337 i2c_tp->i2c_wbuf[1] = (uchar_t)0;
514 i2c_tp->i2c_wbuf[0] = (uchar_t)RTC_CTL; /* Read Control register */
533 i2c_tp->i2c_wbuf[0] = (uchar_t)RTC_CTL; /* Write Control register */
534 i2c_tp->i2c_wbuf[1] = tmpval & ~RTC_CTL_A1IE;
556 i2c_tp->i2c_wbuf[0] = (uchar_t)RTC_ALARM_SEC; /* Alarm #1 Seconds */
557 i2c_tp->i2c_wbuf[1] = BYTE_TO_BCD(tod.tod_sec);
558 i2c_tp->i2c_wbuf[2] = BYTE_TO_BCD(tod.tod_min);
559 i2c_tp->i2c_wbuf[3] = BYTE_TO_BCD(tod.tod_hour);
560 i2c_tp->i2c_wbuf[4] = BYTE_TO_BCD(tod.tod_day);
581 i2c_tp->i2c_wbuf[0] = (uchar_t)RTC_CTL; /* Write Control register */
582 i2c_tp->i2c_wbuf[1] = tmpval | RTC_CTL_A1IE;
636 i2c_tp->i2c_wbuf[0] = (uchar_t)RTC_CTL; /* Read Control register */
655 i2c_tp->i2c_wbuf[0] = (uchar_t)RTC_CTL; /* Write Control register */
656 i2c_tp->i2c_wbuf[1] = tmpval & ~RTC_CTL_A1IE;
676 i2c_tp->i2c_wbuf[0] = (uchar_t)RTC_STATUS; /* Read Status register */
695 i2c_tp->i2c_wbuf[0] = (uchar_t)RTC_STATUS; /* Write Status register */
696 i2c_tp->i2c_wbuf[1] = tmpval & ~RTC_STATUS_A1F;
765 i2c_tp->i2c_wbuf[0] = (uchar_t)RTC_SEC; /* Start from 0x00 */
780 i2c_tp->i2c_wbuf[0] = (uchar_t)0x00;
846 i2c_tp->i2c_wbuf[0] = (uchar_t)RTC_SEC;
847 i2c_tp->i2c_wbuf[1] = BYTE_TO_BCD(rtc->rtc_sec);
848 i2c_tp->i2c_wbuf[2] = BYTE_TO_BCD(rtc->rtc_min);
849 i2c_tp->i2c_wbuf[3] = BYTE_TO_BCD(rtc->rtc_hrs);
850 i2c_tp->i2c_wbuf[4] = BYTE_TO_BCD(rtc->rtc_dow);
851 i2c_tp->i2c_wbuf[5] = BYTE_TO_BCD(rtc->rtc_dom);
852 i2c_tp->i2c_wbuf[6] = BYTE_TO_BCD(rtc->rtc_mon);
853 i2c_tp->i2c_wbuf[7] = BYTE_TO_BCD(rtc->rtc_year);