Lines Matching defs:src_devicep

3372   struct gomp_device_descr *dst_devicep = NULL, *src_devicep = NULL;
3393 src_devicep = resolve_device (src_device_num);
3394 if (src_devicep == NULL)
3397 if (!(src_devicep->capabilities & GOMP_OFFLOAD_CAP_OPENMP_400)
3398 || src_devicep->capabilities & GOMP_OFFLOAD_CAP_SHARED_MEM)
3399 src_devicep = NULL;
3401 if (src_devicep == NULL && dst_devicep == NULL)
3406 if (src_devicep == NULL)
3417 gomp_mutex_lock (&src_devicep->lock);
3418 ret = src_devicep->dev2host_func (src_devicep->target_id,
3421 gomp_mutex_unlock (&src_devicep->lock);
3424 if (src_devicep == dst_devicep)
3426 gomp_mutex_lock (&src_devicep->lock);
3427 ret = src_devicep->dev2dev_func (src_devicep->target_id,
3430 gomp_mutex_unlock (&src_devicep->lock);
3444 struct gomp_device_descr *src_devicep)
3457 if (dst_devicep == NULL && src_devicep == NULL)
3463 else if (src_devicep == NULL)
3469 ret = src_devicep->dev2host_func (src_devicep->target_id,
3473 else if (src_devicep == dst_devicep)
3474 ret = src_devicep->dev2dev_func (src_devicep->target_id,
3503 src_devicep);
3521 struct gomp_device_descr *dst_devicep = NULL, *src_devicep = NULL;
3544 src_devicep = resolve_device (src_device_num);
3545 if (src_devicep == NULL)
3548 if (!(src_devicep->capabilities & GOMP_OFFLOAD_CAP_OPENMP_400)
3549 || src_devicep->capabilities & GOMP_OFFLOAD_CAP_SHARED_MEM)
3550 src_devicep = NULL;
3553 if (src_devicep != NULL && dst_devicep != NULL && src_devicep != dst_devicep)
3556 if (src_devicep)
3557 gomp_mutex_lock (&src_devicep->lock);
3563 dst_devicep, src_devicep);
3564 if (src_devicep)
3565 gomp_mutex_unlock (&src_devicep->lock);