Searched refs:buf (Results 1 - 24 of 24) sorted by relevance

/bootable/recovery/minzip/
H A DBits.h233 INLINE int readUtf8String(unsigned char const** ppSrc, char* buf, size_t bufLen) argument
238 memcpy(buf, *ppSrc, copyLen);
239 buf[copyLen] = '\0';
254 char* buf; local
256 buf = (char*) malloc(length+1);
258 memcpy(buf, *ppSrc, length);
259 buf[length] = '\0';
264 return buf;
271 INLINE void set1(unsigned char* buf, unsigned char val) argument
273 *buf
279 set2BE(unsigned char* buf, unsigned short val) argument
288 set4BE(unsigned char* buf, unsigned int val) argument
299 set8BE(unsigned char* buf, unsigned long long val) argument
314 set2LE(unsigned char* buf, unsigned short val) argument
323 set4LE(unsigned char* buf, unsigned int val) argument
334 set8LE(unsigned char* buf, unsigned long long val) argument
349 setUtf8String(unsigned char* buf, const unsigned char* str) argument
[all...]
H A DZip.c533 unsigned char buf[32 * 1024]; local
539 if (count > sizeof(buf)) {
540 count = sizeof(buf);
542 n = read(pArchive->fd, buf, count);
547 ret = processFunction(buf, n, cookie);
735 char *buf; member in struct:__anon31
744 memcpy(args->buf, data, dataLen);
745 args->buf += dataLen;
756 char *buf, int bufLen)
761 args.buf
755 mzReadZipEntry(const ZipArchive* pArchive, const ZipEntry* pEntry, char *buf, int bufLen) argument
855 char *buf; member in struct:__anon33
[all...]
H A DZip.h168 char* buf, int bufLen);
/bootable/recovery/mtdutils/
H A Dflash_image.c35 char buf[1024]; local
36 vsnprintf(buf, sizeof(buf), msg, args);
40 strlcat(buf, ": ", sizeof(buf));
41 strlcat(buf, strerror(err), sizeof(buf));
44 fprintf(stderr, "%s\n", buf);
45 ALOGE("%s\n", buf);
98 char buf[HEADER_SIZ local
[all...]
H A Dmounts.c62 char buf[2048]; local
93 nbytes = read(fd, buf, sizeof(buf) - 1);
98 buf[nbytes] = '\0';
114 bufp = buf;
H A Dmtdutils.c73 char buf[2048]; local
111 nbytes = read(fd, buf, sizeof(buf) - 1);
116 buf[nbytes] = '\0';
129 bufp = buf;
/bootable/recovery/applypatch/
H A Dbspatch.c66 static off_t offtin(u_char *buf) argument
70 y=buf[7]&0x7F;
71 y=y*256;y+=buf[6];
72 y=y*256;y+=buf[5];
73 y=y*256;y+=buf[4];
74 y=y*256;y+=buf[3];
75 y=y*256;y+=buf[2];
76 y=y*256;y+=buf[1];
77 y=y*256;y+=buf[0];
79 if(buf[
197 unsigned char buf[24]; local
[all...]
H A Dbsdiff.c195 static void offtout(off_t x,u_char *buf) argument
201 buf[0]=y%256;y-=buf[0];
202 y=y/256;buf[1]=y%256;y-=buf[1];
203 y=y/256;buf[2]=y%256;y-=buf[2];
204 y=y/256;buf[3]=y%256;y-=buf[3];
205 y=y/256;buf[
237 u_char buf[8]; local
[all...]
/bootable/recovery/
H A Dverifier_test.cpp78 char buf[256]; local
81 vsnprintf(buf, 256, fmt, ap);
84 fputs(buf, stderr);
H A Dui.cpp199 char buf; local
201 int connected = (read(fd, &buf, 1) == 1) && (buf == 'C');
H A Drecovery.cpp202 char buf[MAX_ARG_LENGTH]; local
204 if (!fgets(buf, sizeof(buf), fp)) break;
205 (*argv)[*argc] = strdup(strtok(buf, "\r\n")); // Strip newline.
248 char buf[4096]; local
249 while (fgets(buf, sizeof(buf), tmplog)) fputs(buf, log);
H A Dscreen_ui.cpp393 char buf[256]; local
396 vsnprintf(buf, 256, fmt, ap);
399 fputs(buf, stdout);
405 for (ptr = buf; *ptr != '\0'; ++ptr) {
H A Dbootloader.cpp148 struct stat buf; local
151 ret = stat(fn, &buf);
/bootable/recovery/minadbd/
H A Dservices.c48 unsigned char buf[4096]; local
63 if(readx(s, buf, xfer)) break;
64 if(writex(fd, buf, xfer)) break;
87 char buf[4096];
93 r = read(fd, buf, 4096);
101 p = buf;
H A Dsysdeps.h114 extern int adb_read(int fd, void* buf, int len);
115 extern int adb_write(int fd, const void* buf, int len);
127 static __inline__ int unix_read(int fd, void* buf, size_t len) argument
129 return read(fd, buf, len);
134 static __inline__ int unix_write(int fd, const void* buf, size_t len) argument
136 return write(fd, buf, len);
366 static __inline__ int adb_read(int fd, void* buf, size_t len) argument
368 return read(fd, buf, len);
374 static __inline__ int adb_write(int fd, const void* buf, size_t len) argument
376 return write(fd, buf, le
[all...]
H A Dsockets.c35 char buf[9]; local
39 snprintf(buf, sizeof buf, "FAIL%04x", len);
40 if(writex(fd, buf, 8)) return -1;
H A Dadb.h227 int list_transports(char *buf, size_t bufsize);
/bootable/bootloader/legacy/libc/
H A Drsa.c135 uint8_t buf[RSANUMBYTES]; local
142 if (len != sizeof(buf)) {
147 buf[i] = signature[i];
150 modpowF4(key, buf); // In-place exponentiation.
154 buf[i] ^= *sha++;
157 // Hash resulting buf, in-place.
158 SHA(buf, len, buf);
162 if (buf[i] != kExpectedPadShaRsa2048[i]) {
H A Dsha.c13 uint8_t* p = ctx->buf.b;
71 int i = ctx->count % sizeof(ctx->buf);
77 ctx->buf.b[i++] = *p++;
78 if (i == sizeof(ctx->buf)) {
87 uint8_t *p = ctx->buf.b;
92 while ((ctx->count % sizeof(ctx->buf)) != (sizeof(ctx->buf) - 8)) {
108 return ctx->buf.b;
H A Dsha.h19 } buf; member in struct:SHA_CTX
/bootable/bootloader/legacy/nandwrite/
H A Dnandwrite.c47 void *buf = alloc(FLASH_PAGE_SIZE + extra); local
52 flash_read_ext(p, extra, offset, buf, FLASH_PAGE_SIZE);
53 if(memcmp(addr, buf, FLASH_PAGE_SIZE + verify_extra)) {
/bootable/bootloader/legacy/include/boot/
H A Dusb.h71 void *buf; member in struct:usb_request
/bootable/bootloader/legacy/arch_msm7k/
H A Dhsusb.c116 req->buf = alloc(bufsiz);
124 unsigned phys = (unsigned) req->buf;
209 static void setup_tx(void *buf, unsigned len) argument
211 DBG("setup_tx %p %d\n", buf, len);
212 memcpy(ep0req->buf, buf, len);
/bootable/bootloader/legacy/usbloader/
H A Dusbloader.c255 req->buf = cmdbuf;
264 req->buf = (void*) rx_addr;
275 memcpy(req->buf, status, len);
532 cmdbuf = rx_req->buf;

Completed in 98 milliseconds