Lines Matching refs:msic
300 int intel_msic_irq_read(struct intel_msic *msic, unsigned short reg, u8 *val) in intel_msic_irq_read() argument
305 *val = readb(msic->irq_base + (reg - INTEL_MSIC_IRQLVL1)); in intel_msic_irq_read()
310 static int intel_msic_init_devices(struct intel_msic *msic) in intel_msic_init_devices() argument
312 struct platform_device *pdev = msic->pdev; in intel_msic_init_devices()
366 static void intel_msic_remove_devices(struct intel_msic *msic) in intel_msic_remove_devices() argument
368 struct platform_device *pdev = msic->pdev; in intel_msic_remove_devices()
376 struct intel_msic *msic; in intel_msic_probe() local
404 msic = devm_kzalloc(&pdev->dev, sizeof(*msic), GFP_KERNEL); in intel_msic_probe()
405 if (!msic) in intel_msic_probe()
408 msic->vendor = MSIC_VENDOR(id0); in intel_msic_probe()
409 msic->version = MSIC_VERSION(id0); in intel_msic_probe()
410 msic->pdev = pdev; in intel_msic_probe()
417 msic->irq_base = devm_ioremap_resource(&pdev->dev, res); in intel_msic_probe()
418 if (IS_ERR(msic->irq_base)) in intel_msic_probe()
419 return PTR_ERR(msic->irq_base); in intel_msic_probe()
421 platform_set_drvdata(pdev, msic); in intel_msic_probe()
423 ret = intel_msic_init_devices(msic); in intel_msic_probe()
430 MSIC_MAJOR(msic->version), MSIC_MINOR(msic->version), in intel_msic_probe()
431 msic->vendor); in intel_msic_probe()
438 struct intel_msic *msic = platform_get_drvdata(pdev); in intel_msic_remove() local
440 intel_msic_remove_devices(msic); in intel_msic_remove()