Lines Matching refs:ptr
78 unsigned char *ptr; in ion_map_test() local
83 ret = ion_map(fd, handle, len, prot, map_flags, 0, &ptr, &map_fd); in ion_map_test()
88 ptr[i] = (unsigned char)i; in ion_map_test()
91 if (ptr[i] != (unsigned char)i) in ion_map_test()
93 "memory\n", __func__, i, ptr[i]); in ion_map_test()
97 munmap(ptr, len); in ion_map_test()
104 munmap(ptr, len); in ion_map_test()
110 ret = ion_map(fd, handle, len, prot, flags, 0, &ptr, &map_fd); in ion_map_test()
137 char *ptr; in ion_share_test() local
144 ptr = mmap(NULL, len, prot, map_flags, share_fd, 0); in ion_share_test()
145 if (ptr == MAP_FAILED) { in ion_share_test()
148 strcpy(ptr, "master"); in ion_share_test()
155 printf("master? [%10s] should be [master]\n", ptr); in ion_share_test()
160 printf("master? [%10s] should be [child]\n", ptr); in ion_share_test()
164 printf("master->master? [%10s]\n", ptr); in ion_share_test()
171 char* ptr; in ion_share_test() local
201 ptr = mmap(NULL, len, prot, map_flags, recv_fd, 0); in ion_share_test()
202 if (ptr == MAP_FAILED) { in ion_share_test()
205 printf("child? [%10s] should be [master]\n", ptr); in ion_share_test()
206 strcpy(ptr, "child"); in ion_share_test()