Lines Matching refs:reclen
315 int i, c, reclen, checksum, length; in save_serial() local
320 reclen = 0; in save_serial()
327 c = *(volatile uchar*)(address + reclen); /* get one byte */ in save_serial()
329 data[2*reclen] = hex[(c>>4)&0x0f]; in save_serial()
330 data[2*reclen+1] = hex[c & 0x0f]; in save_serial()
331 data[2*reclen+2] = '\0'; in save_serial()
332 ++reclen; in save_serial()
335 if(reclen == SREC_BYTES_PER_RECORD || count == 0) { in save_serial()
337 if(reclen) { /* build & write a data record: */ in save_serial()
339 length = 4 + reclen + 1; in save_serial()
357 address += reclen; /* increment address */ in save_serial()
359 reclen = 0; in save_serial()