Lines Matching refs:mc_adev
274 struct fsl_mc_device *mc_adev; in fsl_mc_object_allocate() local
294 mc_adev = resource->data; in fsl_mc_object_allocate()
295 if (!mc_adev) { in fsl_mc_object_allocate()
300 mc_adev->consumer_link = device_link_add(&mc_dev->dev, in fsl_mc_object_allocate()
301 &mc_adev->dev, in fsl_mc_object_allocate()
303 if (!mc_adev->consumer_link) { in fsl_mc_object_allocate()
308 *new_mc_adev = mc_adev; in fsl_mc_object_allocate()
323 void fsl_mc_object_free(struct fsl_mc_device *mc_adev) in fsl_mc_object_free() argument
327 resource = mc_adev->resource; in fsl_mc_object_free()
330 if (resource->data != mc_adev) in fsl_mc_object_free()
335 mc_adev->consumer_link = NULL; in fsl_mc_object_free()