/kernel/linux/linux-6.6/drivers/bus/fsl-mc/ |
H A D | dprc-driver.c | 25 static bool fsl_mc_device_match(struct fsl_mc_device *mc_dev, in fsl_mc_device_match() argument 28 return mc_dev->obj_desc.id == obj_desc->id && in fsl_mc_device_match() 29 strcmp(mc_dev->obj_desc.type, obj_desc->type) == 0; in fsl_mc_device_match() 46 struct fsl_mc_device *mc_dev; in __fsl_mc_device_remove_if_not_in_mc() local 51 mc_dev = to_fsl_mc_device(dev); in __fsl_mc_device_remove_if_not_in_mc() 58 fsl_mc_device_match(mc_dev, obj_desc)) in __fsl_mc_device_remove_if_not_in_mc() 63 fsl_mc_device_remove(mc_dev); in __fsl_mc_device_remove_if_not_in_mc() 118 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in __fsl_mc_device_match() local 120 return fsl_mc_device_match(mc_dev, obj_desc); in __fsl_mc_device_match() 137 * @mc_dev 145 check_plugged_state_change(struct fsl_mc_device *mc_dev, struct fsl_mc_obj_desc *obj_desc) check_plugged_state_change() argument 405 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); dprc_irq0_handler_thread() local 468 disable_dprc_irq(struct fsl_mc_device *mc_dev) disable_dprc_irq() argument 512 get_dprc_irq_state(struct fsl_mc_device *mc_dev) get_dprc_irq_state() argument 519 register_dprc_irq_handler(struct fsl_mc_device *mc_dev) register_dprc_irq_handler() argument 545 enable_dprc_irq(struct fsl_mc_device *mc_dev) enable_dprc_irq() argument 583 dprc_setup_irq(struct fsl_mc_device *mc_dev) dprc_setup_irq() argument 619 dprc_setup(struct fsl_mc_device *mc_dev) dprc_setup() argument 738 dprc_probe(struct fsl_mc_device *mc_dev) dprc_probe() argument 773 dprc_teardown_irq(struct fsl_mc_device *mc_dev) dprc_teardown_irq() argument 793 dprc_cleanup(struct fsl_mc_device *mc_dev) dprc_cleanup() argument 844 dprc_remove(struct fsl_mc_device *mc_dev) dprc_remove() argument [all...] |
H A D | fsl-mc-allocator.c | 15 static bool __must_check fsl_mc_is_allocatable(struct fsl_mc_device *mc_dev) in fsl_mc_is_allocatable() argument 17 return is_fsl_mc_bus_dpbp(mc_dev) || in fsl_mc_is_allocatable() 18 is_fsl_mc_bus_dpmcp(mc_dev) || in fsl_mc_is_allocatable() 19 is_fsl_mc_bus_dpcon(mc_dev); in fsl_mc_is_allocatable() 28 * @mc_dev: pointer to allocatable fsl-mc device 35 *mc_dev) in fsl_mc_resource_pool_add_device() 39 struct fsl_mc_device *mc_bus_dev = &mc_bus->mc_dev; in fsl_mc_resource_pool_add_device() 44 if (!fsl_mc_is_allocatable(mc_dev)) in fsl_mc_resource_pool_add_device() 46 if (mc_dev->resource) in fsl_mc_resource_pool_add_device() 73 resource->id = mc_dev in fsl_mc_resource_pool_add_device() 30 fsl_mc_resource_pool_add_device(struct fsl_mc_bus *mc_bus, enum fsl_mc_pool_type pool_type, struct fsl_mc_device *mc_dev) fsl_mc_resource_pool_add_device() argument 97 fsl_mc_resource_pool_remove_device(struct fsl_mc_device *mc_dev) fsl_mc_resource_pool_remove_device() argument 274 fsl_mc_object_allocate(struct fsl_mc_device *mc_dev, enum fsl_mc_pool_type pool_type, struct fsl_mc_device **new_mc_adev) fsl_mc_object_allocate() argument 443 fsl_mc_allocate_irqs(struct fsl_mc_device *mc_dev) fsl_mc_allocate_irqs() argument 511 fsl_mc_free_irqs(struct fsl_mc_device *mc_dev) fsl_mc_free_irqs() argument 583 fsl_mc_allocator_probe(struct fsl_mc_device *mc_dev) fsl_mc_allocator_probe() argument 615 fsl_mc_allocator_remove(struct fsl_mc_device *mc_dev) fsl_mc_allocator_remove() argument [all...] |
H A D | fsl-mc-bus.c | 86 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in fsl_mc_bus_match() local 91 if (mc_dev->driver_override) { in fsl_mc_bus_match() 92 found = !strcmp(mc_dev->driver_override, mc_drv->driver.name); in fsl_mc_bus_match() 103 if ((mc_dev->obj_desc.state & FSL_MC_OBJ_STATE_PLUGGED) == 0 && in fsl_mc_bus_match() 104 !fsl_mc_is_root_dprc(&mc_dev->dev)) in fsl_mc_bus_match() 112 if (id->vendor == mc_dev->obj_desc.vendor && in fsl_mc_bus_match() 113 strcmp(id->obj_type, mc_dev->obj_desc.type) == 0) { in fsl_mc_bus_match() 130 const struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in fsl_mc_bus_uevent() local 133 mc_dev->obj_desc.vendor, in fsl_mc_bus_uevent() 134 mc_dev in fsl_mc_bus_uevent() 143 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); fsl_mc_dma_configure() local 176 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); modalias_show() local 187 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); driver_override_store() local 203 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); driver_override_show() local 439 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); fsl_mc_driver_probe() local 457 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); fsl_mc_driver_remove() local 467 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); fsl_mc_driver_shutdown() local 625 translate_mc_addr(struct fsl_mc_device *mc_dev, enum dprc_region_type mc_region_type, u64 mc_offset, phys_addr_t *phys_addr) translate_mc_addr() argument 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 768 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); fsl_mc_device_release() local 787 struct fsl_mc_device *mc_dev = NULL; fsl_mc_device_add() local 923 fsl_mc_device_remove(struct fsl_mc_device *mc_dev) fsl_mc_device_remove() argument 936 fsl_mc_get_endpoint(struct fsl_mc_device *mc_dev, u16 if_id) fsl_mc_get_endpoint() argument [all...] |
H A D | fsl-mc-uapi.c | 374 static int fsl_mc_command_check(struct fsl_mc_device *mc_dev, in fsl_mc_command_check() argument 392 dev_err(&mc_dev->dev, "MC command 0x%04x: cmdid not accepted\n", cmdid); in fsl_mc_command_check() 404 dev_err(&mc_dev->dev, "MC command 0x%04x: garbage beyond max size of %d bytes!\n", in fsl_mc_command_check() 415 dev_err(&mc_dev->dev, "MC command 0x%04x: token 0x%04x is invalid!\n", in fsl_mc_command_check() 425 dev_err(&mc_dev->dev, "MC command 0x%04x: unknown module ID 0x%x\n", in fsl_mc_command_check() 436 dev_err(&mc_dev->dev, "MC command 0x%04x: needs CAP_NET_ADMIN!\n", in fsl_mc_command_check() 445 static int fsl_mc_uapi_send_command(struct fsl_mc_device *mc_dev, unsigned long arg, in fsl_mc_uapi_send_command() argument 455 error = fsl_mc_command_check(mc_dev, &mc_cmd); in fsl_mc_uapi_send_command() 485 root_mc_device = &mc_bus->mc_dev; in fsl_mc_uapi_dev_open() 552 root_mc_device = &mc_bus->mc_dev; in fsl_mc_uapi_dev_ioctl() 575 struct fsl_mc_device *mc_dev = &mc_bus->mc_dev; fsl_mc_uapi_create_device_file() local [all...] |
H A D | mc-io.c | 154 * @mc_dev: MC device for which the MC portal is to be allocated 162 * it in a new fsl_mc_io object. If 'mc_dev' is a DPRC itself, the 165 int __must_check fsl_mc_portal_allocate(struct fsl_mc_device *mc_dev, in fsl_mc_portal_allocate() argument 178 if (mc_dev->flags & FSL_MC_IS_DPRC) { in fsl_mc_portal_allocate() 179 mc_bus_dev = mc_dev; in fsl_mc_portal_allocate() 181 if (!dev_is_fsl_mc(mc_dev->dev.parent)) in fsl_mc_portal_allocate() 184 mc_bus_dev = to_fsl_mc_device(mc_dev->dev.parent); in fsl_mc_portal_allocate() 217 dpmcp_dev->consumer_link = device_link_add(&mc_dev->dev, in fsl_mc_portal_allocate()
|
H A D | fsl-mc-msi.c | 63 struct fsl_mc_device *owner_mc_dev = mc_dev_irq->mc_dev; in __fsl_mc_msi_write_msg() 185 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in fsl_mc_find_msi_domain() local 192 mc_dev->icid, in fsl_mc_find_msi_domain() 205 msi_domain = iort_get_device_domain(dev, mc_dev->icid, in fsl_mc_find_msi_domain()
|
H A D | fsl-mc-private.h | 596 * @mc_dev: fsl-mc device for the bus device itself. 606 struct fsl_mc_device mc_dev; member 616 container_of(_mc_dev, struct fsl_mc_bus, mc_dev) 623 void fsl_mc_device_remove(struct fsl_mc_device *mc_dev); 691 int disable_dprc_irq(struct fsl_mc_device *mc_dev); 692 int enable_dprc_irq(struct fsl_mc_device *mc_dev); 693 int get_dprc_irq_state(struct fsl_mc_device *mc_dev);
|
/kernel/linux/linux-5.10/drivers/bus/fsl-mc/ |
H A D | dprc-driver.c | 26 static bool fsl_mc_device_match(struct fsl_mc_device *mc_dev, in fsl_mc_device_match() argument 29 return mc_dev->obj_desc.id == obj_desc->id && in fsl_mc_device_match() 30 strcmp(mc_dev->obj_desc.type, obj_desc->type) == 0; in fsl_mc_device_match() 47 struct fsl_mc_device *mc_dev; in __fsl_mc_device_remove_if_not_in_mc() local 49 mc_dev = to_fsl_mc_device(dev); in __fsl_mc_device_remove_if_not_in_mc() 56 fsl_mc_device_match(mc_dev, obj_desc)) in __fsl_mc_device_remove_if_not_in_mc() 61 fsl_mc_device_remove(mc_dev); in __fsl_mc_device_remove_if_not_in_mc() 113 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in __fsl_mc_device_match() local 115 return fsl_mc_device_match(mc_dev, obj_desc); in __fsl_mc_device_match() 132 * @mc_dev 140 check_plugged_state_change(struct fsl_mc_device *mc_dev, struct fsl_mc_obj_desc *obj_desc) check_plugged_state_change() argument 398 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); dprc_irq0_handler_thread() local 461 disable_dprc_irq(struct fsl_mc_device *mc_dev) disable_dprc_irq() argument 502 register_dprc_irq_handler(struct fsl_mc_device *mc_dev) register_dprc_irq_handler() argument 528 enable_dprc_irq(struct fsl_mc_device *mc_dev) enable_dprc_irq() argument 563 dprc_setup_irq(struct fsl_mc_device *mc_dev) dprc_setup_irq() argument 599 dprc_setup(struct fsl_mc_device *mc_dev) dprc_setup() argument 711 dprc_probe(struct fsl_mc_device *mc_dev) dprc_probe() argument 746 dprc_teardown_irq(struct fsl_mc_device *mc_dev) dprc_teardown_irq() argument 766 dprc_cleanup(struct fsl_mc_device *mc_dev) dprc_cleanup() argument 814 dprc_remove(struct fsl_mc_device *mc_dev) dprc_remove() argument [all...] |
H A D | fsl-mc-allocator.c | 15 static bool __must_check fsl_mc_is_allocatable(struct fsl_mc_device *mc_dev) in fsl_mc_is_allocatable() argument 17 return is_fsl_mc_bus_dpbp(mc_dev) || in fsl_mc_is_allocatable() 18 is_fsl_mc_bus_dpmcp(mc_dev) || in fsl_mc_is_allocatable() 19 is_fsl_mc_bus_dpcon(mc_dev); in fsl_mc_is_allocatable() 28 * @mc_dev: pointer to allocatable fsl-mc device 35 *mc_dev) in fsl_mc_resource_pool_add_device() 39 struct fsl_mc_device *mc_bus_dev = &mc_bus->mc_dev; in fsl_mc_resource_pool_add_device() 44 if (!fsl_mc_is_allocatable(mc_dev)) in fsl_mc_resource_pool_add_device() 46 if (mc_dev->resource) in fsl_mc_resource_pool_add_device() 73 resource->id = mc_dev in fsl_mc_resource_pool_add_device() 30 fsl_mc_resource_pool_add_device(struct fsl_mc_bus *mc_bus, enum fsl_mc_pool_type pool_type, struct fsl_mc_device *mc_dev) fsl_mc_resource_pool_add_device() argument 97 fsl_mc_resource_pool_remove_device(struct fsl_mc_device *mc_dev) fsl_mc_resource_pool_remove_device() argument 268 fsl_mc_object_allocate(struct fsl_mc_device *mc_dev, enum fsl_mc_pool_type pool_type, struct fsl_mc_device **new_mc_adev) fsl_mc_object_allocate() argument 442 fsl_mc_allocate_irqs(struct fsl_mc_device *mc_dev) fsl_mc_allocate_irqs() argument 510 fsl_mc_free_irqs(struct fsl_mc_device *mc_dev) fsl_mc_free_irqs() argument 585 fsl_mc_allocator_probe(struct fsl_mc_device *mc_dev) fsl_mc_allocator_probe() argument 617 fsl_mc_allocator_remove(struct fsl_mc_device *mc_dev) fsl_mc_allocator_remove() argument [all...] |
H A D | fsl-mc-bus.c | 80 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in fsl_mc_bus_match() local 85 if (mc_dev->driver_override) { in fsl_mc_bus_match() 86 found = !strcmp(mc_dev->driver_override, mc_drv->driver.name); in fsl_mc_bus_match() 97 if ((mc_dev->obj_desc.state & FSL_MC_OBJ_STATE_PLUGGED) == 0 && in fsl_mc_bus_match() 98 !fsl_mc_is_root_dprc(&mc_dev->dev)) in fsl_mc_bus_match() 106 if (id->vendor == mc_dev->obj_desc.vendor && in fsl_mc_bus_match() 107 strcmp(id->obj_type, mc_dev->obj_desc.type) == 0) { in fsl_mc_bus_match() 124 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in fsl_mc_bus_uevent() local 127 mc_dev->obj_desc.vendor, in fsl_mc_bus_uevent() 128 mc_dev in fsl_mc_bus_uevent() 137 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); fsl_mc_dma_configure() local 152 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); modalias_show() local 163 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); driver_override_store() local 196 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); driver_override_show() local 329 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); fsl_mc_driver_probe() local 347 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); fsl_mc_driver_remove() local 362 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); fsl_mc_driver_shutdown() local 520 translate_mc_addr(struct fsl_mc_device *mc_dev, enum dprc_region_type mc_region_type, u64 mc_offset, phys_addr_t *phys_addr) translate_mc_addr() argument 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 663 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); fsl_mc_device_release() local 682 struct fsl_mc_device *mc_dev = NULL; fsl_mc_device_add() local 816 fsl_mc_device_remove(struct fsl_mc_device *mc_dev) fsl_mc_device_remove() argument 829 fsl_mc_get_endpoint(struct fsl_mc_device *mc_dev) fsl_mc_get_endpoint() argument [all...] |
H A D | mc-io.c | 154 * @mc_dev: MC device for which the MC portal is to be allocated 162 * it in a new fsl_mc_io object. If 'mc_dev' is a DPRC itself, the 165 int __must_check fsl_mc_portal_allocate(struct fsl_mc_device *mc_dev, in fsl_mc_portal_allocate() argument 178 if (mc_dev->flags & FSL_MC_IS_DPRC) { in fsl_mc_portal_allocate() 179 mc_bus_dev = mc_dev; in fsl_mc_portal_allocate() 181 if (!dev_is_fsl_mc(mc_dev->dev.parent)) in fsl_mc_portal_allocate() 184 mc_bus_dev = to_fsl_mc_device(mc_dev->dev.parent); in fsl_mc_portal_allocate() 217 dpmcp_dev->consumer_link = device_link_add(&mc_dev->dev, in fsl_mc_portal_allocate()
|
H A D | fsl-mc-msi.c | 64 struct fsl_mc_device *owner_mc_dev = mc_dev_irq->mc_dev; in __fsl_mc_msi_write_msg() 186 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in fsl_mc_find_msi_domain() local 193 mc_dev->icid, in fsl_mc_find_msi_domain() 206 msi_domain = iort_get_device_domain(dev, mc_dev->icid, in fsl_mc_find_msi_domain()
|
/kernel/linux/linux-6.6/drivers/vfio/fsl-mc/ |
H A D | vfio_fsl_mc.c | 26 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_open_device() local 27 int count = mc_dev->obj_desc.region_count; in vfio_fsl_mc_open_device() 36 struct resource *res = &mc_dev->regions[i]; in vfio_fsl_mc_open_device() 37 int no_mmap = is_fsl_mc_bus_dprc(mc_dev); in vfio_fsl_mc_open_device() 41 vdev->regions[i].type = mc_dev->regions[i].flags & IORESOURCE_BITS; in vfio_fsl_mc_open_device() 51 if (!(mc_dev->regions[i].flags & IORESOURCE_READONLY)) in vfio_fsl_mc_open_device() 60 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_regions_cleanup() local 63 for (i = 0; i < mc_dev in vfio_fsl_mc_regions_cleanup() 70 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_reset_device() local 101 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_close_device() local 126 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_ioctl() local 247 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_read() local 326 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_write() local 389 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_mmap() local 428 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); vfio_fsl_mc_bus_notifier() local 455 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_init_device() local 484 vfio_fsl_mc_scan_container(struct fsl_mc_device *mc_dev) vfio_fsl_mc_scan_container() argument 503 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_uninit_device() local 516 struct fsl_mc_device *mc_dev = to_fsl_mc_device(core_vdev->dev); vfio_fsl_mc_init_dev() local 534 vfio_fsl_mc_probe(struct fsl_mc_device *mc_dev) vfio_fsl_mc_probe() argument 573 vfio_fsl_mc_remove(struct fsl_mc_device *mc_dev) vfio_fsl_mc_remove() argument [all...] |
H A D | vfio_fsl_mc_intr.c | 17 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_irqs_allocate() local 23 if (mc_dev->obj_desc.irq_count == 0) in vfio_fsl_mc_irqs_allocate() 30 irq_count = mc_dev->obj_desc.irq_count; in vfio_fsl_mc_irqs_allocate() 37 ret = fsl_mc_allocate_irqs(mc_dev); in vfio_fsl_mc_irqs_allocate() 69 hwirq = vdev->mc_dev->irqs[index]->virq; in vfio_set_trigger() 81 hwirq, dev_name(&vdev->mc_dev->dev)); in vfio_set_trigger() 110 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_set_irq_trigger() local 113 struct device *cont_dev = fsl_mc_cont_dev(&mc_dev in vfio_fsl_mc_set_irq_trigger() 177 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_irqs_cleanup() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-ptp.c | 20 struct fsl_mc_device *mc_dev; in dpaa2_ptp_enable() local 27 mc_dev = to_fsl_mc_device(dev); in dpaa2_ptp_enable() 51 err = dprtc_get_irq_mask(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_enable() 63 err = dprtc_set_irq_mask(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_enable() 93 struct fsl_mc_device *mc_dev; in dpaa2_ptp_irq_handler_thread() local 99 mc_dev = to_fsl_mc_device(dev); in dpaa2_ptp_irq_handler_thread() 101 err = dprtc_get_irq_status(mc_dev->mc_io, 0, mc_dev in dpaa2_ptp_irq_handler_thread() 129 dpaa2_ptp_probe(struct fsl_mc_device *mc_dev) dpaa2_ptp_probe() argument 225 dpaa2_ptp_remove(struct fsl_mc_device *mc_dev) dpaa2_ptp_remove() argument [all...] |
H A D | dpaa2-mac.c | 159 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_config() 203 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_link_up() 219 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_link_down() 305 struct fsl_mc_device *dpmac_dev = mac->mc_dev; in dpaa2_mac_connect() 406 dpmac_close(mac->mc_io, 0, mac->mc_dev->mc_handle); in dpaa2_mac_disconnect() 460 struct fsl_mc_device *dpmac_dev = mac->mc_dev; in dpaa2_mac_get_ethtool_stats()
|
H A D | dpaa2-mac.h | 16 struct fsl_mc_device *mc_dev; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-ptp.c | 19 struct fsl_mc_device *mc_dev; in dpaa2_ptp_enable() local 26 mc_dev = to_fsl_mc_device(dev); in dpaa2_ptp_enable() 50 err = dprtc_get_irq_mask(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_enable() 62 err = dprtc_set_irq_mask(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_enable() 92 struct fsl_mc_device *mc_dev; in dpaa2_ptp_irq_handler_thread() local 98 mc_dev = to_fsl_mc_device(dev); in dpaa2_ptp_irq_handler_thread() 100 err = dprtc_get_irq_status(mc_dev->mc_io, 0, mc_dev in dpaa2_ptp_irq_handler_thread() 128 dpaa2_ptp_probe(struct fsl_mc_device *mc_dev) dpaa2_ptp_probe() argument 222 dpaa2_ptp_remove(struct fsl_mc_device *mc_dev) dpaa2_ptp_remove() argument [all...] |
H A D | dpaa2-mac.c | 174 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_config() 183 err = dpmac_set_protocol(mac->mc_io, 0, mac->mc_dev->mc_handle, in dpaa2_mac_config() 223 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_link_up() 239 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_link_down() 468 struct fsl_mc_device *dpmac_dev = mac->mc_dev; in dpaa2_mac_open() 498 fw_node = dpaa2_mac_get_node(&mac->mc_dev->dev, mac->attr.id); in dpaa2_mac_open() 516 struct fsl_mc_device *dpmac_dev = mac->mc_dev; in dpaa2_mac_close() 574 struct fsl_mc_device *dpmac_dev = mac->mc_dev; in dpaa2_mac_get_ethtool_stats()
|
/kernel/linux/linux-5.10/drivers/vfio/fsl-mc/ |
H A D | vfio_fsl_mc.c | 64 if (is_fsl_mc_bus_dprc(vdev->mc_dev)) { in vfio_fsl_mc_reflck_attach() 68 struct device *mc_cont_dev = vdev->mc_dev->dev.parent; in vfio_fsl_mc_reflck_attach() 96 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_regions_init() local 97 int count = mc_dev->obj_desc.region_count; in vfio_fsl_mc_regions_init() 106 struct resource *res = &mc_dev->regions[i]; in vfio_fsl_mc_regions_init() 107 int no_mmap = is_fsl_mc_bus_dprc(mc_dev); in vfio_fsl_mc_regions_init() 111 vdev->regions[i].type = mc_dev->regions[i].flags & IORESOURCE_BITS; in vfio_fsl_mc_regions_init() 121 if (!(mc_dev->regions[i].flags & IORESOURCE_READONLY)) in vfio_fsl_mc_regions_init() 130 struct fsl_mc_device *mc_dev in vfio_fsl_mc_regions_cleanup() local 172 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_release() local 205 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_ioctl() local 312 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_ioctl() local 336 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_read() local 413 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_write() local 474 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_mmap() local 522 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); vfio_fsl_mc_bus_notifier() local 549 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_init_device() local 578 vfio_fsl_mc_scan_container(struct fsl_mc_device *mc_dev) vfio_fsl_mc_scan_container() argument 597 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_uninit_device() local 606 vfio_fsl_mc_probe(struct fsl_mc_device *mc_dev) vfio_fsl_mc_probe() argument 664 vfio_fsl_mc_remove(struct fsl_mc_device *mc_dev) vfio_fsl_mc_remove() argument [all...] |
H A D | vfio_fsl_mc_intr.c | 18 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_irqs_allocate() local 24 if (mc_dev->obj_desc.irq_count == 0) in vfio_fsl_mc_irqs_allocate() 31 irq_count = mc_dev->obj_desc.irq_count; in vfio_fsl_mc_irqs_allocate() 38 ret = fsl_mc_allocate_irqs(mc_dev); in vfio_fsl_mc_irqs_allocate() 70 hwirq = vdev->mc_dev->irqs[index]->msi_desc->irq; in vfio_set_trigger() 82 hwirq, dev_name(&vdev->mc_dev->dev)); in vfio_set_trigger() 111 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_set_irq_trigger() local 114 struct device *cont_dev = fsl_mc_cont_dev(&mc_dev in vfio_fsl_mc_set_irq_trigger() 177 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_irqs_cleanup() local [all...] |
/kernel/linux/linux-5.10/include/linux/fsl/ |
H A D | mc.h | 94 * @mc_dev: MC object device that owns this interrupt 100 struct fsl_mc_device *mc_dev; member 410 int __must_check fsl_mc_portal_allocate(struct fsl_mc_device *mc_dev, 418 int __must_check fsl_mc_object_allocate(struct fsl_mc_device *mc_dev, 428 int __must_check fsl_mc_allocate_irqs(struct fsl_mc_device *mc_dev); 430 void fsl_mc_free_irqs(struct fsl_mc_device *mc_dev); 432 struct fsl_mc_device *fsl_mc_get_endpoint(struct fsl_mc_device *mc_dev); 452 static inline bool is_fsl_mc_bus_dprc(const struct fsl_mc_device *mc_dev) in is_fsl_mc_bus_dprc() argument 454 return mc_dev->dev.type == &fsl_mc_bus_dprc_type; in is_fsl_mc_bus_dprc() 457 static inline bool is_fsl_mc_bus_dpni(const struct fsl_mc_device *mc_dev) in is_fsl_mc_bus_dpni() argument 462 is_fsl_mc_bus_dpio(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpio() argument 467 is_fsl_mc_bus_dpsw(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpsw() argument 472 is_fsl_mc_bus_dpdmux(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpdmux() argument 477 is_fsl_mc_bus_dpbp(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpbp() argument 482 is_fsl_mc_bus_dpcon(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpcon() argument 487 is_fsl_mc_bus_dpmcp(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpmcp() argument 492 is_fsl_mc_bus_dpmac(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpmac() argument 497 is_fsl_mc_bus_dprtc(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dprtc() argument 502 is_fsl_mc_bus_dpseci(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpseci() argument 507 is_fsl_mc_bus_dpdcei(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpdcei() argument 512 is_fsl_mc_bus_dpaiop(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpaiop() argument 517 is_fsl_mc_bus_dpci(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpci() argument 522 is_fsl_mc_bus_dpdmai(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpdmai() argument [all...] |
/kernel/linux/linux-6.6/include/linux/fsl/ |
H A D | mc.h | 103 * @mc_dev: MC object device that owns this interrupt 109 struct fsl_mc_device *mc_dev; member 414 int __must_check fsl_mc_portal_allocate(struct fsl_mc_device *mc_dev, 422 int __must_check fsl_mc_object_allocate(struct fsl_mc_device *mc_dev, 432 int __must_check fsl_mc_allocate_irqs(struct fsl_mc_device *mc_dev); 434 void fsl_mc_free_irqs(struct fsl_mc_device *mc_dev); 436 struct fsl_mc_device *fsl_mc_get_endpoint(struct fsl_mc_device *mc_dev, 457 static inline bool is_fsl_mc_bus_dprc(const struct fsl_mc_device *mc_dev) in is_fsl_mc_bus_dprc() argument 459 return mc_dev->dev.type == &fsl_mc_bus_dprc_type; in is_fsl_mc_bus_dprc() 462 static inline bool is_fsl_mc_bus_dpni(const struct fsl_mc_device *mc_dev) in is_fsl_mc_bus_dpni() argument 467 is_fsl_mc_bus_dpio(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpio() argument 472 is_fsl_mc_bus_dpsw(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpsw() argument 477 is_fsl_mc_bus_dpdmux(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpdmux() argument 482 is_fsl_mc_bus_dpbp(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpbp() argument 487 is_fsl_mc_bus_dpcon(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpcon() argument 492 is_fsl_mc_bus_dpmcp(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpmcp() argument 497 is_fsl_mc_bus_dpmac(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpmac() argument 502 is_fsl_mc_bus_dprtc(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dprtc() argument 507 is_fsl_mc_bus_dpseci(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpseci() argument 512 is_fsl_mc_bus_dpdcei(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpdcei() argument 517 is_fsl_mc_bus_dpaiop(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpaiop() argument 522 is_fsl_mc_bus_dpci(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpci() argument 527 is_fsl_mc_bus_dpdmai(const struct fsl_mc_device *mc_dev) is_fsl_mc_bus_dpdmai() argument [all...] |
/kernel/linux/linux-5.10/drivers/irqchip/ |
H A D | irq-gic-v3-its-fsl-mc-msi.c | 29 struct fsl_mc_device *mc_dev) in fsl_mc_msi_domain_get_msi_id() 35 out_id = of_node ? of_msi_map_id(&mc_dev->dev, of_node, mc_dev->icid) : in fsl_mc_msi_domain_get_msi_id() 36 iort_msi_map_id(&mc_dev->dev, mc_dev->icid); in fsl_mc_msi_domain_get_msi_id() 28 fsl_mc_msi_domain_get_msi_id(struct irq_domain *domain, struct fsl_mc_device *mc_dev) fsl_mc_msi_domain_get_msi_id() argument
|
/kernel/linux/linux-6.6/drivers/irqchip/ |
H A D | irq-gic-v3-its-fsl-mc-msi.c | 27 struct fsl_mc_device *mc_dev) in fsl_mc_msi_domain_get_msi_id() 33 out_id = of_node ? of_msi_map_id(&mc_dev->dev, of_node, mc_dev->icid) : in fsl_mc_msi_domain_get_msi_id() 34 iort_msi_map_id(&mc_dev->dev, mc_dev->icid); in fsl_mc_msi_domain_get_msi_id() 26 fsl_mc_msi_domain_get_msi_id(struct irq_domain *domain, struct fsl_mc_device *mc_dev) fsl_mc_msi_domain_get_msi_id() argument
|