Lines Matching refs:mc_bus_dev

39 	struct fsl_mc_device *mc_bus_dev = &mc_bus->mc_dev;  in fsl_mc_resource_pool_add_device()  local
63 resource = devm_kzalloc(&mc_bus_dev->dev, sizeof(*resource), in fsl_mc_resource_pool_add_device()
67 dev_err(&mc_bus_dev->dev, in fsl_mc_resource_pool_add_device()
100 struct fsl_mc_device *mc_bus_dev; in fsl_mc_resource_pool_remove_device() local
113 mc_bus_dev = to_fsl_mc_device(mc_dev->dev.parent); in fsl_mc_resource_pool_remove_device()
114 mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_resource_pool_remove_device()
133 dev_err(&mc_bus_dev->dev, in fsl_mc_resource_pool_remove_device()
143 devm_kfree(&mc_bus_dev->dev, resource); in fsl_mc_resource_pool_remove_device()
181 struct fsl_mc_device *mc_bus_dev = &mc_bus->mc_dev; in fsl_mc_resource_allocate() local
201 dev_err(&mc_bus_dev->dev, in fsl_mc_resource_allocate()
272 struct fsl_mc_device *mc_bus_dev; in fsl_mc_object_allocate() local
288 mc_bus_dev = to_fsl_mc_device(mc_dev->dev.parent); in fsl_mc_object_allocate()
289 mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_object_allocate()
349 int fsl_mc_populate_irq_pool(struct fsl_mc_device *mc_bus_dev, in fsl_mc_populate_irq_pool() argument
357 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_populate_irq_pool()
369 error = fsl_mc_msi_domain_alloc_irqs(&mc_bus_dev->dev, irq_count); in fsl_mc_populate_irq_pool()
373 irq_resources = devm_kcalloc(&mc_bus_dev->dev, in fsl_mc_populate_irq_pool()
395 for_each_msi_entry(msi_desc, &mc_bus_dev->dev) { in fsl_mc_populate_irq_pool()
407 fsl_mc_msi_domain_free_irqs(&mc_bus_dev->dev); in fsl_mc_populate_irq_pool()
416 void fsl_mc_cleanup_irq_pool(struct fsl_mc_device *mc_bus_dev) in fsl_mc_cleanup_irq_pool() argument
418 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_cleanup_irq_pool()
435 fsl_mc_msi_domain_free_irqs(&mc_bus_dev->dev); in fsl_mc_cleanup_irq_pool()
539 void fsl_mc_init_all_resource_pools(struct fsl_mc_device *mc_bus_dev) in fsl_mc_init_all_resource_pools() argument
542 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_init_all_resource_pools()
557 static void fsl_mc_cleanup_resource_pool(struct fsl_mc_device *mc_bus_dev, in fsl_mc_cleanup_resource_pool() argument
562 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_cleanup_resource_pool()
569 devm_kfree(&mc_bus_dev->dev, resource); in fsl_mc_cleanup_resource_pool()
573 void fsl_mc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev) in fsl_mc_cleanup_all_resource_pools() argument
578 fsl_mc_cleanup_resource_pool(mc_bus_dev, pool_type); in fsl_mc_cleanup_all_resource_pools()
588 struct fsl_mc_device *mc_bus_dev; in fsl_mc_allocator_probe() local
595 mc_bus_dev = to_fsl_mc_device(mc_dev->dev.parent); in fsl_mc_allocator_probe()
596 if (!dev_is_fsl_mc(&mc_bus_dev->dev)) in fsl_mc_allocator_probe()
599 mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_allocator_probe()