Lines Matching refs:p
77 void *p; member
133 void *p = NULL; in paged_aligned_alloc() local
135 if (!posix_memalign(&p, sysconf(_SC_PAGESIZE), sz)) in paged_aligned_alloc()
136 return p; in paged_aligned_alloc()
262 shm->buffer = (uint8_t *)tshm->p + offs; in get_param()
329 shm->p = mmap(NULL, data.size, PROT_READ | PROT_WRITE, MAP_SHARED, in alloc_shm()
331 if (shm->p == (void *)MAP_FAILED) { in alloc_shm()
370 shm->p = buf; in register_local_shm()
417 free(shm->p); in process_free()
419 if (munmap(shm->p, shm->size) != 0) { in process_free()
421 shm->p, shm->size, strerror(errno)); in process_free()
541 struct tee_ioctl_param *p = NULL; in find_params() local
544 p = (struct tee_ioctl_param *)(&request->recv + 1); in find_params()
548 if (!(p[n].attr & TEE_IOCTL_PARAM_ATTR_META)) in find_params()
553 *params = p + n; in find_params()
558 if (p[n].attr & TEE_IOCTL_PARAM_ATTR_META) { in find_params()
786 return (uint8_t *)tshm->p + MEMREF_SHM_OFFS(param); in tee_supp_param_to_va()