Lines Matching defs:buffer
13 void write_buffer(void *buffer, unsigned long len)
16 unsigned char *ptr = (unsigned char *)buffer;
19 fprintf(stderr, "<%s>: Invalid buffer...\n", __func__);
23 printf("Fill buffer content:\n");
30 void read_buffer(void *buffer, unsigned long len)
33 unsigned char *ptr = (unsigned char *)buffer;
36 fprintf(stderr, "<%s>: Invalid buffer...\n", __func__);
40 printf("Read buffer content:\n");
106 /* This will return a valid buffer fd */
116 /* Create memory mapped buffer for the buffer fd */
127 ion_info->buffer = map_buffer;
136 /* in case of error: close the buffer fd */
178 ion_info->buffer = map_buf;
194 /* unmap the buffer properly in the end */
195 munmap(ion_info->buffer, ion_info->buflen);
196 /* close the buffer fd */