Lines Matching refs:buffer
43 char *buffer = (char *) malloc(1024 * 64);
44 if (!buffer) {
48 memset(buffer, 0, (1024 * 64));
53 free(buffer);
60 free(buffer);
65 struct dm_ioctl *io = (struct dm_ioctl *) buffer;
70 free(buffer);
76 struct dm_name_list *n = (struct dm_name_list *) (((char *) buffer) + io->data_start);
78 free(buffer);
111 free(buffer);
134 char *buffer = (char *) malloc(DEVMAPPER_BUFFER_SIZE);
135 if (!buffer) {
143 free(buffer);
147 struct dm_ioctl *io = (struct dm_ioctl *) buffer;
154 free(buffer);
161 free(buffer);
168 char *buffer = (char *) malloc(DEVMAPPER_BUFFER_SIZE);
169 if (!buffer) {
177 free(buffer);
181 struct dm_ioctl *io = (struct dm_ioctl *) buffer;
188 free(buffer);
196 char *geoParams = buffer + sizeof(struct dm_ioctl);
203 free(buffer);
212 free(buffer);
222 tgt = (struct dm_target_spec *) &buffer[sizeof(struct dm_ioctl)];
233 char *cryptParams = buffer + sizeof(struct dm_ioctl) + sizeof(struct dm_target_spec);
239 tgt->next = cryptParams - buffer;
243 free(buffer);
253 free(buffer);
258 free(buffer);
265 char *buffer = (char *) malloc(DEVMAPPER_BUFFER_SIZE);
266 if (!buffer) {
274 free(buffer);
278 struct dm_ioctl *io = (struct dm_ioctl *) buffer;
287 free(buffer);
292 free(buffer);