Lines Matching refs:buf
29 char *buf; member
43 char *buf = info->buf; in ymodem_read_fit() local
46 res = xyzModem_stream_read(buf, BUF_SIZE, &err); in ymodem_read_fit()
54 memcpy(addr, &buf[BUF_SIZE - res], res); in ymodem_read_fit()
59 res = xyzModem_stream_read(buf, BUF_SIZE, &err); in ymodem_read_fit()
63 memcpy(addr, buf, res); in ymodem_read_fit()
79 char buf[BUF_SIZE]; in spl_ymodem_load_image() local
89 res = xyzModem_stream_read(buf, BUF_SIZE, &err); in spl_ymodem_load_image()
94 image_get_magic((struct image_header *)buf) == FDT_MAGIC) { in spl_ymodem_load_image()
103 info.buf = buf; in spl_ymodem_load_image()
106 ret = spl_load_simple_fit(spl_image, &load, 0, (void *)buf); in spl_ymodem_load_image()
109 while ((res = xyzModem_stream_read(buf, BUF_SIZE, &err)) > 0) in spl_ymodem_load_image()
113 (struct image_header *)buf); in spl_ymodem_load_image()
117 memcpy((void *)addr, buf, res); in spl_ymodem_load_image()
121 while ((res = xyzModem_stream_read(buf, BUF_SIZE, &err)) > 0) { in spl_ymodem_load_image()
122 memcpy((void *)addr, buf, res); in spl_ymodem_load_image()