Lines Matching refs:more
93 esci2_check_header(const char *cmd, const char *buf, unsigned int *more)
97 *more = 0;
120 err = sscanf(&buf[5], "%7x#", more);
135 unsigned int more;
136 char header[13], rbuf[64]; /* add one more byte for header buffer to correct buffer overflow issue,*/
186 * parsed to know if we need to read more data
188 if (!esci2_check_header(cmd, rbuf, &more)) {
201 if (more) {
203 char *pbuf = malloc(more);
207 epsonds_net_request_read(s, more);
210 ssize_t read = eds_recv(s, pbuf, more, &status);
211 if (read != more) {
218 status = esci2_parse_block(pbuf, more, userdata, cb);
1050 unsigned int more;
1076 more = 0;
1077 if (!esci2_check_header("IMG ", (char *)s->buf, &more)) {
1095 /* no more data? return using the status of the esci2_parse_block
1098 if (!more) {
1102 /* more data than was accounted for in s->buf */
1103 if (more > s->bsz) {
1108 epsonds_net_request_read(s, more);
1111 read = eds_recv(s, s->buf, more, &status);
1116 if (read != more) {