Home | History | Annotate | Download | only in RealTimeClockLib

Lines Matching refs:Data

54   UINT8                 Data;

67 Status = gTPS65950->Read (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, RTC_CTRL_REG), 1, &Data);
69 Data |= BIT6;
70 Status = gTPS65950->Write (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, RTC_CTRL_REG), 1, &Data);
74 Status = gTPS65950->Read (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, YEARS_REG), 1, &Data);
76 Time->Year = 2000 + ((Data >> 4) & 0xF) * 10 + (Data & 0xF);
78 Status = gTPS65950->Read (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, MONTHS_REG), 1, &Data);
80 Time->Month = ((Data >> 4) & 0x1) * 10 + (Data & 0xF);
82 Status = gTPS65950->Read (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, DAYS_REG), 1, &Data);
84 Time->Day = ((Data >> 4) & 0x3) * 10 + (Data & 0xF);
86 Status = gTPS65950->Read (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, HOURS_REG), 1, &Data);
88 Time->Hour = ((Data >> 4) & 0x3) * 10 + (Data & 0xF);
90 Status = gTPS65950->Read (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, MINUTES_REG), 1, &Data);
92 Time->Minute = ((Data >> 4) & 0x7) * 10 + (Data & 0xF);
94 Status = gTPS65950->Read (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, SECONDS_REG), 1, &Data);
96 Time->Second = ((Data >> 4) & 0x7) * 10 + (Data & 0xF);
134 UINT8 Data;
155 Data = Time->Year - 2000;
156 Status = gTPS65950->Write (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, YEARS_REG), 1, &Data);
159 Data = ((Time->Month / 10) << 4) | (Time->Month % 10);
160 Status = gTPS65950->Write (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, MONTHS_REG), 1, &Data);
163 Data = ((Time->Day / 10) << 4) | (Time->Day % 10);
164 Status = gTPS65950->Write (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, DAYS_REG), 1, &Data);
167 Data = ((Time->Hour / 10) << 4) | (Time->Hour % 10);
168 Status = gTPS65950->Write (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, HOURS_REG), 1, &Data);
171 Data = ((Time->Minute / 10) << 4) | (Time->Minute % 10);
172 Status = gTPS65950->Write (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, MINUTES_REG), 1, &Data);
175 Data = ((Time->Second / 10) << 4) | (Time->Second % 10);
176 Status = gTPS65950->Write (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, SECONDS_REG), 1, &Data);
252 UINT8 Data;
259 Data = 1;
260 Status = gTPS65950->Write (gTPS65950, EXTERNAL_DEVICE_REGISTER(I2C_ADDR_GRP_ID4, RTC_CTRL_REG), 1, &Data);
282 Fixup internal data so that EFI can be call in virtual mode.