Lines Matching defs:cmd
2 * epsonds-cmd.c - Epson ESC/I-2 routines.
22 #include "epsonds-cmd.h"
93 esci2_check_header(const char *cmd, const char *buf, unsigned int *more)
99 if (strncmp(cmd, buf, 4) != 0) {
130 char *cmd, size_t len,
139 DBG(8, "%s: %4s len %lu, payload len: %lu\n", __func__, cmd, len, plen);
151 sprintf(header, "%4.4sx%07x", cmd, (unsigned int)plen);
188 if (!esci2_check_header(cmd, rbuf, &more)) {
196 DBG(1, "%s: %4s error while parsing received header\n", __func__, cmd);
220 DBG(1, "%s: %4s error while parsing received data block\n", __func__, cmd);
234 static SANE_Status esci2_cmd_simple(epsonds_scanner* s, char *cmd, SANE_Status (*cb)(void *userdata, char *token, int len))
236 return esci2_cmd(s, cmd, 12, NULL, 0, s, cb);