Lines Matching defs:ocpdev
402 static int __init mal_probe(struct ocp_device *ocpdev)
408 MAL_DBG("%d: probe" NL, ocpdev->def->index);
410 maldata = ocpdev->def->additions;
413 ocpdev->def->index);
421 ocpdev->def->index);
425 mal->def = ocpdev->def;
452 dma_alloc_coherent(&ocpdev->dev, bd_size, &mal->bd_dma, GFP_KERNEL);
493 ocp_set_drvdata(ocpdev, mal);
510 dma_free_coherent(&ocpdev->dev, bd_size, mal->bd_virt, mal->bd_dma);
516 static void __exit mal_remove(struct ocp_device *ocpdev)
518 struct ibm_ocp_mal *mal = ocp_get_drvdata(ocpdev);
536 ocp_set_drvdata(ocpdev, NULL);
548 dma_free_coherent(&ocpdev->dev,