| /Linux-v5.4/drivers/bus/fsl-mc/ |
| 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() 37 struct fsl_mc_device *mc_dev; in __fsl_mc_device_remove_if_not_in_mc() local 39 mc_dev = to_fsl_mc_device(dev); in __fsl_mc_device_remove_if_not_in_mc() 46 fsl_mc_device_match(mc_dev, obj_desc)) in __fsl_mc_device_remove_if_not_in_mc() 51 fsl_mc_device_remove(mc_dev); in __fsl_mc_device_remove_if_not_in_mc() 102 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in __fsl_mc_device_match() local 104 return fsl_mc_device_match(mc_dev, obj_desc); in __fsl_mc_device_match() 131 static void check_plugged_state_change(struct fsl_mc_device *mc_dev, in check_plugged_state_change() argument [all …]
|
| 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() 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->obj_desc.id; in fsl_mc_resource_pool_add_device() 74 resource->data = mc_dev; in fsl_mc_resource_pool_add_device() [all …]
|
| D | fsl-mc-bus.c | 82 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in fsl_mc_bus_match() local 93 if ((mc_dev->obj_desc.state & FSL_MC_OBJ_STATE_PLUGGED) == 0 && in fsl_mc_bus_match() 94 !fsl_mc_is_root_dprc(&mc_dev->dev)) in fsl_mc_bus_match() 102 if (id->vendor == mc_dev->obj_desc.vendor && in fsl_mc_bus_match() 103 strcmp(id->obj_type, mc_dev->obj_desc.type) == 0) { in fsl_mc_bus_match() 120 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in fsl_mc_bus_uevent() local 123 mc_dev->obj_desc.vendor, in fsl_mc_bus_uevent() 124 mc_dev->obj_desc.type)) in fsl_mc_bus_uevent() 143 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in modalias_show() local 145 return sprintf(buf, "fsl-mc:v%08Xd%s\n", mc_dev->obj_desc.vendor, in modalias_show() [all …]
|
| D | mc-io.c | 160 int __must_check fsl_mc_portal_allocate(struct fsl_mc_device *mc_dev, in fsl_mc_portal_allocate() argument 173 if (mc_dev->flags & FSL_MC_IS_DPRC) { in fsl_mc_portal_allocate() 174 mc_bus_dev = mc_dev; in fsl_mc_portal_allocate() 176 if (!dev_is_fsl_mc(mc_dev->dev.parent)) in fsl_mc_portal_allocate() 179 mc_bus_dev = to_fsl_mc_device(mc_dev->dev.parent); in fsl_mc_portal_allocate() 212 dpmcp_dev->consumer_link = device_link_add(&mc_dev->dev, in fsl_mc_portal_allocate()
|
| D | fsl-mc-private.h | 518 struct fsl_mc_device mc_dev; member 526 container_of(_mc_dev, struct fsl_mc_bus, mc_dev) 533 void fsl_mc_device_remove(struct fsl_mc_device *mc_dev);
|
| D | fsl-mc-msi.c | 63 struct fsl_mc_device *owner_mc_dev = mc_dev_irq->mc_dev; in __fsl_mc_msi_write_msg()
|
| /Linux-v5.4/drivers/net/ethernet/freescale/dpaa2/ |
| 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() 37 err = dprtc_get_irq_mask(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_enable() 49 err = dprtc_set_irq_mask(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_enable() 79 struct fsl_mc_device *mc_dev; in dpaa2_ptp_irq_handler_thread() local 85 mc_dev = to_fsl_mc_device(dev); in dpaa2_ptp_irq_handler_thread() 87 err = dprtc_get_irq_status(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_irq_handler_thread() 99 err = dprtc_clear_irq_status(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_irq_handler_thread() 109 static int dpaa2_ptp_probe(struct fsl_mc_device *mc_dev) in dpaa2_ptp_probe() argument 111 struct device *dev = &mc_dev->dev; in dpaa2_ptp_probe() [all …]
|
| /Linux-v5.4/include/linux/fsl/ |
| D | mc.h | 99 struct fsl_mc_device *mc_dev; member 384 int __must_check fsl_mc_portal_allocate(struct fsl_mc_device *mc_dev, 392 int __must_check fsl_mc_object_allocate(struct fsl_mc_device *mc_dev, 402 int __must_check fsl_mc_allocate_irqs(struct fsl_mc_device *mc_dev); 404 void fsl_mc_free_irqs(struct fsl_mc_device *mc_dev); 419 static inline bool is_fsl_mc_bus_dprc(const struct fsl_mc_device *mc_dev) in is_fsl_mc_bus_dprc() argument 421 return mc_dev->dev.type == &fsl_mc_bus_dprc_type; in is_fsl_mc_bus_dprc() 424 static inline bool is_fsl_mc_bus_dpni(const struct fsl_mc_device *mc_dev) in is_fsl_mc_bus_dpni() argument 426 return mc_dev->dev.type == &fsl_mc_bus_dpni_type; in is_fsl_mc_bus_dpni() 429 static inline bool is_fsl_mc_bus_dpio(const struct fsl_mc_device *mc_dev) in is_fsl_mc_bus_dpio() argument [all …]
|
| /Linux-v5.4/drivers/iommu/ |
| D | of_iommu.c | 134 static int of_fsl_mc_iommu_init(struct fsl_mc_device *mc_dev, in of_fsl_mc_iommu_init() argument 140 err = of_map_rid(master_np, mc_dev->icid, "iommu-map", in of_fsl_mc_iommu_init() 146 err = of_iommu_xlate(&mc_dev->dev, &iommu_spec); in of_fsl_mc_iommu_init()
|
| /Linux-v5.4/arch/x86/events/intel/ |
| D | uncore_snbep.c | 4388 struct pci_dev *mc_dev = NULL; in snr_uncore_get_mc_dev() local 4392 mc_dev = pci_get_device(PCI_VENDOR_ID_INTEL, 0x3451, mc_dev); in snr_uncore_get_mc_dev() 4393 if (!mc_dev) in snr_uncore_get_mc_dev() 4395 phys_id = uncore_pcibus_to_physid(mc_dev->bus); in snr_uncore_get_mc_dev() 4404 return mc_dev; in snr_uncore_get_mc_dev()
|