Lines Matching defs:cmd
31 #define CPLD_CMD_WRITE_NAND 0x08 /* send cmd, n x send data, send indle */
32 #define CPLD_CMD_WRITE_CFG 0x09 /* send cmd, n x send cfg */
33 #define CPLD_CMD_READ_NAND 0x0a /* send cmd, send idle, n x read data */
34 #define CPLD_CMD_READ_FAST 0x0b /* send cmd, 4 x idle, n x read data */
35 #define CPLD_CMD_LED5_ON 0x0c /* send cmd */
36 #define CPLD_CMD_LED5_OFF 0x0d /* send cmd */
52 static int rb4xx_cpld_write_cmd(struct rb4xx_cpld *cpld, unsigned char cmd)
66 tx_buf[0] = cmd;
76 unsigned char cmd[2];
82 t[0].tx_buf = cmd;
83 t[0].len = sizeof(cmd);
86 cmd[0] = CPLD_CMD_WRITE_CFG;
87 cmd[1] = config;
137 const unsigned char cmd[5] = {
146 .tx_buf = &cmd,
175 unsigned char cmd[2];
184 t[0].tx_buf = cmd;
185 t[0].len = sizeof(cmd);
188 cmd[0] = CPLD_CMD_READ_NAND;
189 cmd[1] = 0;
202 static const unsigned char cmd[2] = { CPLD_CMD_READ_NAND, 0 };
205 .tx_buf = &cmd,
232 unsigned char cmd[1];
241 t[0].tx_buf = cmd;
242 t[0].len = sizeof(cmd);
245 cmd[0] = CPLD_CMD_WRITE_NAND;
258 static const unsigned char cmd = CPLD_CMD_WRITE_NAND;
261 .tx_buf = &cmd,