Lines Matching refs:mdrv
134 void mic_hw_intr_init(struct mic_driver *mdrv) in mic_hw_intr_init() argument
136 mdrv->intr_info.num_intr = MIC_X100_NUM_SBOX_IRQ + in mic_hw_intr_init()
148 int mic_db_to_irq(struct mic_driver *mdrv, int db) in mic_db_to_irq() argument
233 struct mic_driver *mdrv = &g_drv; in mic_probe() local
234 struct mic_device *mdev = &mdrv->mdev; in mic_probe()
237 mdrv->dev = &pdev->dev; in mic_probe()
238 snprintf(mdrv->name, sizeof(mic_driver_name), mic_driver_name); in mic_probe()
252 mic_hw_intr_init(mdrv); in mic_probe()
253 platform_set_drvdata(pdev, mdrv); in mic_probe()
254 mdrv->dma_mbdev = mbus_register_device(mdrv->dev, MBUS_DEV_DMA_MIC, in mic_probe()
256 mdrv->mdev.mmio.va); in mic_probe()
257 if (IS_ERR(mdrv->dma_mbdev)) { in mic_probe()
258 rc = PTR_ERR(mdrv->dma_mbdev); in mic_probe()
262 rc = mic_driver_init(mdrv); in mic_probe()
270 mbus_unregister_device(mdrv->dma_mbdev); in mic_probe()
276 struct mic_driver *mdrv = &g_drv; in mic_remove() local
278 mic_driver_uninit(mdrv); in mic_remove()
279 mbus_unregister_device(mdrv->dma_mbdev); in mic_remove()