Lines Matching defs:command
150 * struct rave_sp_variant_cmds - Variant specific command routines
152 * @translate: Generic to variant specific command mapping routine
164 * @cmd: Variant specific command pointer table
311 static u8 rave_sp_reply_code(u8 command)
314 * There isn't a single rule that describes command code ->
319 switch (command) {
325 return command + 0x20;
331 return command | 0x01;
338 return command + 0x40;
352 int command, ret = 0;
355 command = sp->variant->cmd.translate(data[0]);
356 if (command < 0)
357 return command;
361 reply.code = rave_sp_reply_code((u8)command),
369 data[0] = command;
593 static int rave_sp_rdu1_cmd_translate(enum rave_sp_command command)
595 if (command >= RAVE_SP_CMD_STATUS &&
596 command <= RAVE_SP_CMD_CONTROL_EVENTS)
597 return command;
602 static int rave_sp_rdu2_cmd_translate(enum rave_sp_command command)
604 if (command >= RAVE_SP_CMD_GET_FIRMWARE_VERSION &&
605 command <= RAVE_SP_CMD_GET_GPIO_STATE)
606 return command;
608 if (command == RAVE_SP_CMD_REQ_COPPER_REV) {
616 return rave_sp_rdu1_cmd_translate(command);
619 static int rave_sp_default_cmd_translate(enum rave_sp_command command)
622 * All of the following command codes were taken from "Table :
626 switch (command) {