Lines Matching full:mc

3  * Freescale Management Complex (MC) bus driver
11 #define pr_fmt(fmt) "fsl-mc: " fmt
25 #include "fsl-mc-private.h"
28 * Default DMA mask for devices on a fsl-mc bus
35 * struct fsl_mc - Private data of a "fsl,qoriq-mc" platform device
36 * @root_mc_bus_dev: fsl-mc device representing the root DPRC
50 * @mc_region_type: Type of MC region for the range being translated
51 * @start_mc_offset: Start MC offset of the range being translated
52 * @end_mc_offset: MC offset of the first byte after the range (last MC
69 * @dev: the fsl-mc device to match against
70 * @drv: the device driver to search for matching fsl-mc object type
124 if (add_uevent_var(env, "MODALIAS=fsl-mc:v%08Xd%s", in fsl_mc_bus_uevent()
152 return sprintf(buf, "fsl-mc:v%08Xd%s\n", mc_dev->obj_desc.vendor, in modalias_show()
209 .name = "fsl-mc",
367 * MC bus
403 * MC bus
433 /* send command to mc*/ in mc_get_version()
448 * fsl_mc_get_version - function to retrieve the MC f/w version information
450 * Return: mc version when called after fsl-mc-bus probe; NULL otherwise.
524 struct fsl_mc *mc; in translate_mc_addr() local
527 mc = dev_get_drvdata(root_dprc_dev->parent); in translate_mc_addr()
529 if (mc->num_translation_ranges == 0) { in translate_mc_addr()
537 for (i = 0; i < mc->num_translation_ranges; i++) { in translate_mc_addr()
539 &mc->translation_ranges[i]; in translate_mc_addr()
570 * This function should not have been called for this MC object in fsl_mc_device_get_mmio_regions()
596 * Older MC only returned region offset and no base address in fsl_mc_device_get_mmio_regions()
610 "Invalid MC offset: %#x (for %s.%d\'s region %d)\n", in fsl_mc_device_get_mmio_regions()
617 regions[i].name = "fsl-mc object MMIO region"; in fsl_mc_device_get_mmio_regions()
656 * Add a newly discovered fsl-mc device to be visible in Linux
675 * Allocate an MC bus device object: in fsl_mc_device_add()
714 * parent DPRC's MC portal instead of the child DPRC's MC in fsl_mc_device_add()
719 * given MC object, using the same MC portal. in fsl_mc_device_add()
755 * Get MMIO regions for the device from the MC: in fsl_mc_device_add()
793 * fsl_mc_device_remove - Remove an fsl-mc device from being visible to
796 * @mc_dev: Pointer to an fsl-mc device
915 * 'fsl,qoriq-mc' node. In this case, identity mapping in get_mc_addr_translation_ranges()
948 * fsl_mc_bus_probe - callback invoked when the root MC bus is being
955 struct fsl_mc *mc; in fsl_mc_bus_probe() local
963 mc = devm_kzalloc(&pdev->dev, sizeof(*mc), GFP_KERNEL); in fsl_mc_bus_probe()
964 if (!mc) in fsl_mc_bus_probe()
967 platform_set_drvdata(pdev, mc); in fsl_mc_bus_probe()
971 mc->fsl_mc_regs = devm_ioremap_resource(&pdev->dev, plat_res); in fsl_mc_bus_probe()
973 if (mc->fsl_mc_regs && IS_ENABLED(CONFIG_ACPI) && in fsl_mc_bus_probe()
975 mc_stream_id = readl(mc->fsl_mc_regs + FSL_MC_FAPR); in fsl_mc_bus_probe()
991 * Get physical address of MC portal for the root DPRC: in fsl_mc_bus_probe()
1009 dev_info(&pdev->dev, "MC firmware version: %u.%u.%u\n", in fsl_mc_bus_probe()
1014 &mc->translation_ranges, in fsl_mc_bus_probe()
1015 &mc->num_translation_ranges); in fsl_mc_bus_probe()
1044 mc->root_mc_bus_dev = mc_bus_dev; in fsl_mc_bus_probe()
1054 * fsl_mc_bus_remove - callback invoked when the root MC bus is being
1059 struct fsl_mc *mc = platform_get_drvdata(pdev); in fsl_mc_bus_remove() local
1061 if (!fsl_mc_is_root_dprc(&mc->root_mc_bus_dev->dev)) in fsl_mc_bus_remove()
1064 fsl_mc_device_remove(mc->root_mc_bus_dev); in fsl_mc_bus_remove()
1066 fsl_destroy_mc_io(mc->root_mc_bus_dev->mc_io); in fsl_mc_bus_remove()
1067 mc->root_mc_bus_dev->mc_io = NULL; in fsl_mc_bus_remove()
1073 {.compatible = "fsl,qoriq-mc",},