Home | History | Annotate | Download | only in vold

Lines Matching refs:buffer

39     char *buffer = (char *) malloc(1024 * 64);
40 if (!buffer) {
44 memset(buffer, 0, (1024 * 64));
49 free(buffer);
56 free(buffer);
61 struct dm_ioctl *io = (struct dm_ioctl *) buffer;
66 free(buffer);
72 struct dm_name_list *n = (struct dm_name_list *) (((char *) buffer) + io->data_start);
74 free(buffer);
107 free(buffer);
128 char *buffer = (char *) malloc(4096);
129 if (!buffer) {
137 free(buffer);
141 struct dm_ioctl *io = (struct dm_ioctl *) buffer;
148 free(buffer);
155 free(buffer);
162 char *buffer = (char *) malloc(4096);
163 if (!buffer) {
171 free(buffer);
175 struct dm_ioctl *io = (struct dm_ioctl *) buffer;
182 free(buffer);
190 char *geoParams = buffer + sizeof(struct dm_ioctl);
197 free(buffer);
206 free(buffer);
216 tgt = (struct dm_target_spec *) &buffer[sizeof(struct dm_ioctl)];
227 char *cryptParams = buffer + sizeof(struct dm_ioctl) + sizeof(struct dm_target_spec);
231 tgt->next = cryptParams - buffer;
235 free(buffer);
245 free(buffer);
250 free(buffer);
257 char *buffer = (char *) malloc(4096);
258 if (!buffer) {
266 free(buffer);
270 struct dm_ioctl *io = (struct dm_ioctl *) buffer;
279 free(buffer);
284 free(buffer);