/kernel/linux/linux-6.6/drivers/bus/fsl-mc/ |
H A D | fsl-mc-allocator.c | 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 in fsl_mc_resource_pool_remove_device() 187 struct fsl_mc_device *mc_bus_dev = &mc_bus->mc_dev; fsl_mc_resource_allocate() local 278 struct fsl_mc_device *mc_bus_dev; fsl_mc_object_allocate() local 355 fsl_mc_populate_irq_pool(struct fsl_mc_device *mc_bus_dev, unsigned int irq_count) fsl_mc_populate_irq_pool() argument 417 fsl_mc_cleanup_irq_pool(struct fsl_mc_device *mc_bus_dev) fsl_mc_cleanup_irq_pool() argument 540 fsl_mc_init_all_resource_pools(struct fsl_mc_device *mc_bus_dev) fsl_mc_init_all_resource_pools() argument 558 fsl_mc_cleanup_resource_pool(struct fsl_mc_device *mc_bus_dev, enum fsl_mc_pool_type pool_type) fsl_mc_cleanup_resource_pool() argument 571 fsl_mc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev) fsl_mc_cleanup_all_resource_pools() argument 586 struct fsl_mc_device *mc_bus_dev; fsl_mc_allocator_probe() local [all...] |
H A D | dprc-driver.c | 80 * @mc_bus_dev: pointer to the fsl-mc device that represents a DPRC object 89 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() 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() 193 * @mc_bus_dev 123 fsl_mc_device_lookup(struct fsl_mc_obj_desc *obj_desc, struct fsl_mc_device *mc_bus_dev) fsl_mc_device_lookup() argument 202 dprc_add_new_devices(struct fsl_mc_device *mc_bus_dev, struct fsl_mc_obj_desc *obj_desc_array, int num_child_objects_in_mc) dprc_add_new_devices() argument 245 dprc_scan_objects(struct fsl_mc_device *mc_bus_dev, bool alloc_interrupts) dprc_scan_objects() argument 364 dprc_scan_container(struct fsl_mc_device *mc_bus_dev, bool alloc_interrupts) dprc_scan_container() argument [all...] |
H A D | fsl-mc-msi.c | 58 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() 84 * IRQ is for the mc_bus_dev's DPRC itself 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() 97 * IRQ is for for a child device of mc_bus_dev 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() [all...] |
H A D | fsl-mc-bus.c | 661 struct fsl_mc_device *mc_bus_dev) in fsl_mc_device_get_mmio_regions() 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() 660 fsl_mc_device_get_mmio_regions(struct fsl_mc_device *mc_dev, struct fsl_mc_device *mc_bus_dev) fsl_mc_device_get_mmio_regions() argument 1046 struct fsl_mc_device *mc_bus_dev = NULL; fsl_mc_bus_probe() local [all...] |
H A D | mc-io.c | 169 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()
|
H A D | fsl-mc-private.h | 629 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);
|
/kernel/linux/linux-5.10/drivers/bus/fsl-mc/ |
H A D | dprc-driver.c | 75 * @mc_bus_dev: pointer to the fsl-mc device that represents a DPRC object 84 void dprc_remove_devices(struct fsl_mc_device *mc_bus_dev, in dprc_remove_devices() argument 97 device_for_each_child(&mc_bus_dev->dev, &objs, in dprc_remove_devices() 104 device_for_each_child(&mc_bus_dev->dev, NULL, in dprc_remove_devices() 119 struct fsl_mc_device *mc_bus_dev) in fsl_mc_device_lookup() 123 dev = device_find_child(&mc_bus_dev->dev, obj_desc, in fsl_mc_device_lookup() 164 static void fsl_mc_obj_device_add(struct fsl_mc_device *mc_bus_dev, in fsl_mc_obj_device_add() argument 173 child_dev = fsl_mc_device_lookup(obj_desc, mc_bus_dev); in fsl_mc_obj_device_add() 178 error = fsl_mc_device_add(obj_desc, NULL, &mc_bus_dev->dev, in fsl_mc_obj_device_add() 188 * @mc_bus_dev 118 fsl_mc_device_lookup(struct fsl_mc_obj_desc *obj_desc, struct fsl_mc_device *mc_bus_dev) fsl_mc_device_lookup() argument 197 dprc_add_new_devices(struct fsl_mc_device *mc_bus_dev, struct fsl_mc_obj_desc *obj_desc_array, int num_child_objects_in_mc) dprc_add_new_devices() argument 240 dprc_scan_objects(struct fsl_mc_device *mc_bus_dev, bool alloc_interrupts) dprc_scan_objects() argument 358 dprc_scan_container(struct fsl_mc_device *mc_bus_dev, bool alloc_interrupts) dprc_scan_container() argument [all...] |
H A D | fsl-mc-allocator.c | 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 in fsl_mc_resource_allocate() 272 struct fsl_mc_device *mc_bus_dev; fsl_mc_object_allocate() local 349 fsl_mc_populate_irq_pool(struct fsl_mc_device *mc_bus_dev, unsigned int irq_count) fsl_mc_populate_irq_pool() argument 416 fsl_mc_cleanup_irq_pool(struct fsl_mc_device *mc_bus_dev) fsl_mc_cleanup_irq_pool() argument 539 fsl_mc_init_all_resource_pools(struct fsl_mc_device *mc_bus_dev) fsl_mc_init_all_resource_pools() argument 557 fsl_mc_cleanup_resource_pool(struct fsl_mc_device *mc_bus_dev, enum fsl_mc_pool_type pool_type) fsl_mc_cleanup_resource_pool() argument 573 fsl_mc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev) fsl_mc_cleanup_all_resource_pools() argument 588 struct fsl_mc_device *mc_bus_dev; fsl_mc_allocator_probe() local [all...] |
H A D | fsl-mc-msi.c | 60 static void __fsl_mc_msi_write_msg(struct fsl_mc_device *mc_bus_dev, in __fsl_mc_msi_write_msg() argument 84 if (owner_mc_dev == mc_bus_dev) { in __fsl_mc_msi_write_msg() 86 * IRQ is for the mc_bus_dev's DPRC itself in __fsl_mc_msi_write_msg() 88 error = dprc_set_irq(mc_bus_dev->mc_io, in __fsl_mc_msi_write_msg() 90 mc_bus_dev->mc_handle, in __fsl_mc_msi_write_msg() 99 * IRQ is for for a child device of mc_bus_dev in __fsl_mc_msi_write_msg() 101 error = dprc_set_obj_irq(mc_bus_dev->mc_io, in __fsl_mc_msi_write_msg() 103 mc_bus_dev->mc_handle, in __fsl_mc_msi_write_msg() 122 struct fsl_mc_device *mc_bus_dev = to_fsl_mc_device(msi_desc->dev); in fsl_mc_msi_write_msg() local 123 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_msi_write_msg() [all...] |
H A D | mc-io.c | 169 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()
|
H A D | fsl-mc-bus.c | 556 struct fsl_mc_device *mc_bus_dev) in fsl_mc_device_get_mmio_regions() 587 error = dprc_get_obj_region(mc_bus_dev->mc_io, in fsl_mc_device_get_mmio_regions() 589 mc_bus_dev->mc_handle, in fsl_mc_device_get_mmio_regions() 831 struct fsl_mc_device *mc_bus_dev, *endpoint; in fsl_mc_get_endpoint() local 837 mc_bus_dev = to_fsl_mc_device(mc_dev->dev.parent); in fsl_mc_get_endpoint() 841 err = dprc_get_connection(mc_bus_dev->mc_io, 0, in fsl_mc_get_endpoint() 842 mc_bus_dev->mc_handle, in fsl_mc_get_endpoint() 850 dev_err(&mc_bus_dev->dev, "dprc_get_connection() = %d\n", err); in fsl_mc_get_endpoint() 856 endpoint = fsl_mc_device_lookup(&endpoint_desc, mc_bus_dev); in fsl_mc_get_endpoint() 974 struct fsl_mc_device *mc_bus_dev in fsl_mc_bus_probe() local 555 fsl_mc_device_get_mmio_regions(struct fsl_mc_device *mc_dev, struct fsl_mc_device *mc_bus_dev) fsl_mc_device_get_mmio_regions() argument [all...] |
H A D | fsl-mc-private.h | 580 void fsl_mc_init_all_resource_pools(struct fsl_mc_device *mc_bus_dev); 582 void fsl_mc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev); 612 struct fsl_mc_device *mc_bus_dev);
|
/kernel/linux/linux-5.10/drivers/irqchip/ |
H A D | irq-gic-v3-its-fsl-mc-msi.c | 45 struct fsl_mc_device *mc_bus_dev; in its_fsl_mc_msi_prepare() local 51 mc_bus_dev = to_fsl_mc_device(dev); in its_fsl_mc_msi_prepare() 52 if (!(mc_bus_dev->flags & FSL_MC_IS_DPRC)) in its_fsl_mc_msi_prepare() 62 mc_bus_dev); in its_fsl_mc_msi_prepare()
|
/kernel/linux/linux-6.6/drivers/irqchip/ |
H A D | irq-gic-v3-its-fsl-mc-msi.c | 43 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()
|
/kernel/linux/linux-5.10/include/linux/fsl/ |
H A D | mc.h | 534 int dprc_scan_container(struct fsl_mc_device *mc_bus_dev, 537 void dprc_remove_devices(struct fsl_mc_device *mc_bus_dev, 551 int fsl_mc_populate_irq_pool(struct fsl_mc_device *mc_bus_dev, 554 void fsl_mc_cleanup_irq_pool(struct fsl_mc_device *mc_bus_dev);
|
/kernel/linux/linux-6.6/include/linux/fsl/ |
H A D | mc.h | 539 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);
|