Lines Matching refs:cmd

55 	char cmd[DATA_SIZE];  member
68 const char *cmd = rain->cmd + 3; in rain_process_msg() local
71 for (; *cmd; cmd++) { in rain_process_msg()
72 if (!isxdigit(*cmd)) in rain_process_msg()
74 if (isxdigit(cmd[0]) && isxdigit(cmd[1])) { in rain_process_msg()
77 if (hex2bin(msg.msg + msg.len, cmd, 1)) in rain_process_msg()
80 cmd++; in rain_process_msg()
83 if (!cmd[1]) in rain_process_msg()
84 stat = hex_to_bin(cmd[0]); in rain_process_msg()
88 if (rain->cmd[0] == 'R') { in rain_process_msg()
133 rain->cmd[rain->cmd_idx] = '\0'; in rain_irq_work_handler()
134 dev_dbg(rain->dev, "received: %s\n", rain->cmd); in rain_irq_work_handler()
135 if (!memcmp(rain->cmd, "REC", 3) || in rain_irq_work_handler()
136 !memcmp(rain->cmd, "STA", 3)) { in rain_irq_work_handler()
139 strscpy(rain->cmd_reply, rain->cmd, in rain_irq_work_handler()
163 rain->cmd[rain->cmd_idx++] = data; in rain_irq_work_handler()
213 const char *cmd, const char *reply) in rain_send_and_wait() argument
220 err = rain_send(rain, cmd); in rain_send_and_wait()
231 cmd, rain->cmd_reply, reply); in rain_send_and_wait()
266 u8 cmd[16]; in rain_cec_adap_log_addr() local
270 snprintf(cmd, sizeof(cmd), "A %x", log_addr); in rain_cec_adap_log_addr()
271 return rain_send_and_wait(rain, cmd, "ADR"); in rain_cec_adap_log_addr()
278 char cmd[2 * CEC_MAX_MSG_SIZE + 16]; in rain_cec_adap_transmit() local
283 snprintf(cmd, sizeof(cmd), "x%x", cec_msg_destination(msg)); in rain_cec_adap_transmit()
287 snprintf(cmd, sizeof(cmd), "x%x %02x ", in rain_cec_adap_transmit()
291 strlcat(cmd, hex, sizeof(cmd)); in rain_cec_adap_transmit()
295 err = rain_send(rain, cmd); in rain_cec_adap_transmit()