Lines Matching refs:res

42 	int res, err, buf_offset;  in ymodem_read_fit()  local
47 res = xyzModem_stream_read(buf, BUF_SIZE, &err); in ymodem_read_fit()
48 if (res <= 0) in ymodem_read_fit()
51 info->image_read += res; in ymodem_read_fit()
55 res = info->image_read - offset; in ymodem_read_fit()
60 memcpy(addr, &buf[buf_offset - res], res); in ymodem_read_fit()
61 addr = addr + res; in ymodem_read_fit()
65 res = xyzModem_stream_read(buf, BUF_SIZE, &err); in ymodem_read_fit()
66 if (res <= 0) in ymodem_read_fit()
69 memcpy(addr, buf, res); in ymodem_read_fit()
70 info->image_read += res; in ymodem_read_fit()
71 addr += res; in ymodem_read_fit()
82 int res; in spl_ymodem_load_image() local
96 res = xyzModem_stream_read(buf, BUF_SIZE, &err); in spl_ymodem_load_image()
97 if (res <= 0) in spl_ymodem_load_image()
105 memcpy((void *)addr, buf, res); in spl_ymodem_load_image()
106 size += res; in spl_ymodem_load_image()
107 addr += res; in spl_ymodem_load_image()
109 while ((res = xyzModem_stream_read(buf, BUF_SIZE, &err)) > 0) { in spl_ymodem_load_image()
110 memcpy((void *)addr, buf, res); in spl_ymodem_load_image()
111 size += res; in spl_ymodem_load_image()
112 addr += res; in spl_ymodem_load_image()
134 while ((res = xyzModem_stream_read(buf, BUF_SIZE, &err)) > 0) in spl_ymodem_load_image()
135 size += res; in spl_ymodem_load_image()
147 memcpy((void *)addr, buf, res); in spl_ymodem_load_image()
149 size += res; in spl_ymodem_load_image()
150 addr += res; in spl_ymodem_load_image()
152 while ((res = xyzModem_stream_read(buf, BUF_SIZE, &err)) > 0) { in spl_ymodem_load_image()
153 memcpy((void *)addr, buf, res); in spl_ymodem_load_image()
154 size += res; in spl_ymodem_load_image()
155 addr += res; in spl_ymodem_load_image()