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
106 mc_bus_dev = to_fsl_mc_device(mc_dev->dev.parent); in fsl_mc_resource_pool_remove_device()
107 mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_resource_pool_remove_device()
111 dev_err(&mc_bus_dev->dev, "resource mismatch\n"); in fsl_mc_resource_pool_remove_device()
117 dev_err(&mc_bus_dev->dev, "pool mismatch\n"); in fsl_mc_resource_pool_remove_device()
124 dev_err(&mc_bus_dev->dev, "max_count underflow\n"); in fsl_mc_resource_pool_remove_device()
129 dev_err(&mc_bus_dev->dev, "free_count mismatch\n"); in fsl_mc_resource_pool_remove_device()
139 dev_err(&mc_bus_dev->dev, in fsl_mc_resource_pool_remove_device()
149 devm_kfree(&mc_bus_dev->dev, resource); in fsl_mc_resource_pool_remove_device()
187 struct fsl_mc_device *mc_bus_dev = &mc_bus->mc_dev; in fsl_mc_resource_allocate() local
207 dev_err(&mc_bus_dev->dev, in fsl_mc_resource_allocate()
278 struct fsl_mc_device *mc_bus_dev; in fsl_mc_object_allocate() local
294 mc_bus_dev = to_fsl_mc_device(mc_dev->dev.parent); in fsl_mc_object_allocate()
295 mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_object_allocate()
355 int fsl_mc_populate_irq_pool(struct fsl_mc_device *mc_bus_dev, in fsl_mc_populate_irq_pool() argument
362 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_populate_irq_pool()
374 error = fsl_mc_msi_domain_alloc_irqs(&mc_bus_dev->dev, irq_count); in fsl_mc_populate_irq_pool()
378 irq_resources = devm_kcalloc(&mc_bus_dev->dev, in fsl_mc_populate_irq_pool()
396 mc_dev_irq->virq = msi_get_virq(&mc_bus_dev->dev, i); in fsl_mc_populate_irq_pool()
408 fsl_mc_msi_domain_free_irqs(&mc_bus_dev->dev); in fsl_mc_populate_irq_pool()
417 void fsl_mc_cleanup_irq_pool(struct fsl_mc_device *mc_bus_dev) in fsl_mc_cleanup_irq_pool() argument
419 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_cleanup_irq_pool()
436 fsl_mc_msi_domain_free_irqs(&mc_bus_dev->dev); in fsl_mc_cleanup_irq_pool()
540 void fsl_mc_init_all_resource_pools(struct fsl_mc_device *mc_bus_dev) in fsl_mc_init_all_resource_pools() argument
543 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_init_all_resource_pools()
558 static void fsl_mc_cleanup_resource_pool(struct fsl_mc_device *mc_bus_dev, in fsl_mc_cleanup_resource_pool() argument
563 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_cleanup_resource_pool()
568 devm_kfree(&mc_bus_dev->dev, resource); in fsl_mc_cleanup_resource_pool()
571 void fsl_mc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev) in fsl_mc_cleanup_all_resource_pools() argument
576 fsl_mc_cleanup_resource_pool(mc_bus_dev, pool_type); in fsl_mc_cleanup_all_resource_pools()
586 struct fsl_mc_device *mc_bus_dev; in fsl_mc_allocator_probe() local
593 mc_bus_dev = to_fsl_mc_device(mc_dev->dev.parent); in fsl_mc_allocator_probe()
594 if (!dev_is_fsl_mc(&mc_bus_dev->dev)) in fsl_mc_allocator_probe()
597 mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_allocator_probe()