Lines Matching refs:data
23 void *data[64]; member
57 img->entry[n].data.kind = kind; in bootimage_add_string()
58 strcpy((char *) img->entry[n].data.u.b, s); in bootimage_add_string()
59 return &(img->entry[n].data); in bootimage_add_string()
62 bootentry_file *bootimage_add_filedata(bootimage *img, unsigned type, void *data, unsigned len) { in bootimage_add_filedata() argument
74 SHA256_hash(data, len, img->entry[n].file.sha256); in bootimage_add_filedata()
76 img->data[n] = data; in bootimage_add_filedata()
95 static int writex(int fd, void *data, size_t len) { in writex() argument
97 char *x = data; in writex()
129 if (writex(fd, img->data[n], img->length[n])) { in bootimage_write()
142 void *data = NULL; in load_file() local
157 if ((data = malloc(sz)) == NULL) { in load_file()
160 x = data; in load_file()
176 return data; in load_file()
179 if (data) { in load_file()
180 free(data); in load_file()
187 unsigned char *data; in bootimage_add_file() local
190 if ((data = load_file(fn, &len)) == NULL) { in bootimage_add_file()
201 free(data); in bootimage_add_file()
207 if (!memcmp(data + i, pat, sizeof(pat))) { in bootimage_add_file()
209 memmove(data, data + i, len - i); in bootimage_add_file()
217 uint32_t *w = (uint32_t *)data; in bootimage_add_file()
225 return bootimage_add_filedata(img, type, data, len); in bootimage_add_file()