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