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
356 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_populate_irq_pool()
368 error = fsl_mc_msi_domain_alloc_irqs(&mc_bus_dev->dev, irq_count); in fsl_mc_populate_irq_pool()
372 irq_resources = devm_kcalloc(&mc_bus_dev->dev, in fsl_mc_populate_irq_pool()
390 mc_dev_irq->virq = msi_get_virq(&mc_bus_dev->dev, i); in fsl_mc_populate_irq_pool()
402 fsl_mc_msi_domain_free_irqs(&mc_bus_dev->dev); in fsl_mc_populate_irq_pool()
411 void fsl_mc_cleanup_irq_pool(struct fsl_mc_device *mc_bus_dev) in fsl_mc_cleanup_irq_pool() argument
413 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_cleanup_irq_pool()
430 fsl_mc_msi_domain_free_irqs(&mc_bus_dev->dev); in fsl_mc_cleanup_irq_pool()
534 void fsl_mc_init_all_resource_pools(struct fsl_mc_device *mc_bus_dev) in fsl_mc_init_all_resource_pools() argument
537 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_init_all_resource_pools()
552 static void fsl_mc_cleanup_resource_pool(struct fsl_mc_device *mc_bus_dev, in fsl_mc_cleanup_resource_pool() argument
557 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_cleanup_resource_pool()
564 devm_kfree(&mc_bus_dev->dev, resource); in fsl_mc_cleanup_resource_pool()
568 void fsl_mc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev) in fsl_mc_cleanup_all_resource_pools() argument
573 fsl_mc_cleanup_resource_pool(mc_bus_dev, pool_type); in fsl_mc_cleanup_all_resource_pools()
583 struct fsl_mc_device *mc_bus_dev; in fsl_mc_allocator_probe() local
590 mc_bus_dev = to_fsl_mc_device(mc_dev->dev.parent); in fsl_mc_allocator_probe()
591 if (!dev_is_fsl_mc(&mc_bus_dev->dev)) in fsl_mc_allocator_probe()
594 mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_allocator_probe()