Lines Matching refs:dp
564 void *dp, *temp;
573 dp = NULL;
633 dp = malloc(ap->ap_data_transfer_length, M_AMR,
638 dp, ap->ap_data_transfer_length);
648 ac->ac_data = dp;
664 error = copyout(dp, temp, ap->ap_data_transfer_length);
685 dp = malloc(len, M_AMR, M_WAITOK | M_ZERO);
688 error = copyin((void *)(uintptr_t)mb->mb_physaddr, dp, len);
702 ac->ac_data = dp;
713 error = copyout(dp, (void *)(uintptr_t)mb->mb_physaddr, ali.outlen);
740 if (dp != NULL)
741 free(dp, M_AMR);
759 void *dp, *au_buffer;
772 dp = NULL;
851 dp = malloc(real_length, M_AMR, M_WAITOK|M_ZERO);
853 if ((error = copyin(au_buffer, dp, au_length)) != 0) {
854 free(dp, M_AMR);
857 debug(2, "copyin %ld bytes from %p -> %p", au_length, au_buffer, dp);
907 ac->ac_data = dp;
919 error = copyout(dp, au_buffer, au_length);
921 debug(2, "copyout %ld bytes from %p -> %p", au_length, dp, au_buffer);
922 debug(2, "%p status 0x%x", dp, ac->ac_status);
934 if (dp != NULL)
935 free(dp, M_AMR);