Searched refs:mc_dev (Results 1 – 7 of 7) sorted by relevance
/linux-4.19.296/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() 133 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in modalias_show() local 135 return sprintf(buf, "fsl-mc:v%08Xd%s\n", mc_dev->obj_desc.vendor, in modalias_show() [all …]
|
D | mc-io.c | 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()
|
D | fsl-mc-private.h | 505 struct fsl_mc_device mc_dev; member 513 container_of(_mc_dev, struct fsl_mc_bus, mc_dev) 520 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-4.19.296/include/linux/fsl/ |
D | mc.h | 99 struct fsl_mc_device *mc_dev; member 375 int __must_check fsl_mc_portal_allocate(struct fsl_mc_device *mc_dev, 383 int __must_check fsl_mc_object_allocate(struct fsl_mc_device *mc_dev, 393 int __must_check fsl_mc_allocate_irqs(struct fsl_mc_device *mc_dev); 395 void fsl_mc_free_irqs(struct fsl_mc_device *mc_dev); 409 static inline bool is_fsl_mc_bus_dprc(const struct fsl_mc_device *mc_dev) in is_fsl_mc_bus_dprc() argument 411 return mc_dev->dev.type == &fsl_mc_bus_dprc_type; in is_fsl_mc_bus_dprc() 414 static inline bool is_fsl_mc_bus_dpni(const struct fsl_mc_device *mc_dev) in is_fsl_mc_bus_dpni() argument 416 return mc_dev->dev.type == &fsl_mc_bus_dpni_type; in is_fsl_mc_bus_dpni() 419 static inline bool is_fsl_mc_bus_dpio(const struct fsl_mc_device *mc_dev) in is_fsl_mc_bus_dpio() argument [all …]
|