Lines Matching refs:msic
273 int intel_msic_irq_read(struct intel_msic *msic, unsigned short reg, u8 *val) in intel_msic_irq_read() argument
278 *val = readb(msic->irq_base + (reg - INTEL_MSIC_IRQLVL1)); in intel_msic_irq_read()
283 static int intel_msic_init_devices(struct intel_msic *msic) in intel_msic_init_devices() argument
285 struct platform_device *pdev = msic->pdev; in intel_msic_init_devices()
339 static void intel_msic_remove_devices(struct intel_msic *msic) in intel_msic_remove_devices() argument
341 struct platform_device *pdev = msic->pdev; in intel_msic_remove_devices()
349 struct intel_msic *msic; in intel_msic_probe() local
377 msic = devm_kzalloc(&pdev->dev, sizeof(*msic), GFP_KERNEL); in intel_msic_probe()
378 if (!msic) in intel_msic_probe()
381 msic->vendor = MSIC_VENDOR(id0); in intel_msic_probe()
382 msic->version = MSIC_VERSION(id0); in intel_msic_probe()
383 msic->pdev = pdev; in intel_msic_probe()
390 msic->irq_base = devm_ioremap_resource(&pdev->dev, res); in intel_msic_probe()
391 if (IS_ERR(msic->irq_base)) in intel_msic_probe()
392 return PTR_ERR(msic->irq_base); in intel_msic_probe()
394 platform_set_drvdata(pdev, msic); in intel_msic_probe()
396 ret = intel_msic_init_devices(msic); in intel_msic_probe()
403 MSIC_MAJOR(msic->version), MSIC_MINOR(msic->version), in intel_msic_probe()
404 msic->vendor); in intel_msic_probe()
411 struct intel_msic *msic = platform_get_drvdata(pdev); in intel_msic_remove() local
413 intel_msic_remove_devices(msic); in intel_msic_remove()