Home
last modified time | relevance | path

Searched refs:mc_bus_dev (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/drivers/bus/fsl-mc/
Dfsl-mc-allocator.c39 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()
[all …]
Ddprc-driver.c89 void dprc_remove_devices(struct fsl_mc_device *mc_bus_dev, in dprc_remove_devices() argument
102 device_for_each_child(&mc_bus_dev->dev, &objs, in dprc_remove_devices()
109 device_for_each_child(&mc_bus_dev->dev, NULL, in dprc_remove_devices()
124 struct fsl_mc_device *mc_bus_dev) in fsl_mc_device_lookup() argument
128 dev = device_find_child(&mc_bus_dev->dev, obj_desc, in fsl_mc_device_lookup()
169 static void fsl_mc_obj_device_add(struct fsl_mc_device *mc_bus_dev, in fsl_mc_obj_device_add() argument
178 child_dev = fsl_mc_device_lookup(obj_desc, mc_bus_dev); in fsl_mc_obj_device_add()
183 error = fsl_mc_device_add(obj_desc, NULL, &mc_bus_dev->dev, in fsl_mc_obj_device_add()
202 static void dprc_add_new_devices(struct fsl_mc_device *mc_bus_dev, in dprc_add_new_devices() argument
214 fsl_mc_obj_device_add(mc_bus_dev, obj_desc); in dprc_add_new_devices()
[all …]
Dfsl-mc-msi.c58 static void __fsl_mc_msi_write_msg(struct fsl_mc_device *mc_bus_dev, in __fsl_mc_msi_write_msg() argument
82 if (owner_mc_dev == mc_bus_dev) { in __fsl_mc_msi_write_msg()
86 error = dprc_set_irq(mc_bus_dev->mc_io, in __fsl_mc_msi_write_msg()
88 mc_bus_dev->mc_handle, in __fsl_mc_msi_write_msg()
99 error = dprc_set_obj_irq(mc_bus_dev->mc_io, in __fsl_mc_msi_write_msg()
101 mc_bus_dev->mc_handle, in __fsl_mc_msi_write_msg()
120 struct fsl_mc_device *mc_bus_dev = to_fsl_mc_device(msi_desc->dev); in fsl_mc_msi_write_msg() local
121 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_msi_write_msg()
130 __fsl_mc_msi_write_msg(mc_bus_dev, mc_dev_irq, msi_desc); in fsl_mc_msi_write_msg()
Dmc-io.c169 struct fsl_mc_device *mc_bus_dev; in fsl_mc_portal_allocate() local
179 mc_bus_dev = mc_dev; in fsl_mc_portal_allocate()
184 mc_bus_dev = to_fsl_mc_device(mc_dev->dev.parent); in fsl_mc_portal_allocate()
187 mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_portal_allocate()
210 error = fsl_create_mc_io(&mc_bus_dev->dev, in fsl_mc_portal_allocate()
Dfsl-mc-bus.c661 struct fsl_mc_device *mc_bus_dev) in fsl_mc_device_get_mmio_regions() argument
692 error = dprc_get_obj_region(mc_bus_dev->mc_io, in fsl_mc_device_get_mmio_regions()
694 mc_bus_dev->mc_handle, in fsl_mc_device_get_mmio_regions()
939 struct fsl_mc_device *mc_bus_dev, *endpoint; in fsl_mc_get_endpoint() local
945 mc_bus_dev = to_fsl_mc_device(mc_dev->dev.parent); in fsl_mc_get_endpoint()
950 err = dprc_get_connection(mc_bus_dev->mc_io, 0, in fsl_mc_get_endpoint()
951 mc_bus_dev->mc_handle, in fsl_mc_get_endpoint()
959 dev_err(&mc_bus_dev->dev, "dprc_get_connection() = %d\n", err); in fsl_mc_get_endpoint()
965 endpoint = fsl_mc_device_lookup(&endpoint_desc, mc_bus_dev); in fsl_mc_get_endpoint()
974 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_get_endpoint()
[all …]
Dfsl-mc-private.h629 int dprc_scan_objects(struct fsl_mc_device *mc_bus_dev,
636 void fsl_mc_init_all_resource_pools(struct fsl_mc_device *mc_bus_dev);
638 void fsl_mc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev);
668 struct fsl_mc_device *mc_bus_dev);
/linux-6.6.21/drivers/irqchip/
Dirq-gic-v3-its-fsl-mc-msi.c43 struct fsl_mc_device *mc_bus_dev; in its_fsl_mc_msi_prepare() local
49 mc_bus_dev = to_fsl_mc_device(dev); in its_fsl_mc_msi_prepare()
50 if (!(mc_bus_dev->flags & FSL_MC_IS_DPRC)) in its_fsl_mc_msi_prepare()
60 mc_bus_dev); in its_fsl_mc_msi_prepare()
/linux-6.6.21/include/linux/fsl/
Dmc.h539 int dprc_scan_container(struct fsl_mc_device *mc_bus_dev,
542 void dprc_remove_devices(struct fsl_mc_device *mc_bus_dev,
556 int fsl_mc_populate_irq_pool(struct fsl_mc_device *mc_bus_dev,
559 void fsl_mc_cleanup_irq_pool(struct fsl_mc_device *mc_bus_dev);