Lines Matching defs:command
166 * Execute a VIA PRAM/RTC command. For read commands
169 * to the data byte to for the command.
174 static void via_rtc_command(int command, __u8 *data)
183 command = (command & ~3) | 1;
189 if (command & 0xFF00) { /* extended (two-byte) command */
190 via_rtc_send((command & 0xFF00) >> 8);
191 via_rtc_send(command & 0xFF);
192 is_read = command & (RTC_FLG_READ << 8);
193 } else { /* one-byte command */
194 via_rtc_send(command);
195 is_read = command & RTC_FLG_READ;