Searched refs:mc_dev (Results 1 – 5 of 5) sorted by relevance
/drivers/staging/fsl-mc/bus/ |
D | dprc-driver.c | 27 struct fsl_mc_device *mc_dev; in __fsl_mc_device_remove_if_not_in_mc() local 31 mc_dev = to_fsl_mc_device(dev); in __fsl_mc_device_remove_if_not_in_mc() 38 FSL_MC_DEVICE_MATCH(mc_dev, obj_desc)) in __fsl_mc_device_remove_if_not_in_mc() 43 fsl_mc_device_remove(mc_dev); in __fsl_mc_device_remove_if_not_in_mc() 96 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in __fsl_mc_device_match() local 98 return FSL_MC_DEVICE_MATCH(mc_dev, obj_desc); in __fsl_mc_device_match() 125 static void check_plugged_state_change(struct fsl_mc_device *mc_dev, in check_plugged_state_change() argument 133 (mc_dev->obj_desc.state & DPRC_OBJ_STATE_PLUGGED)) { in check_plugged_state_change() 135 mc_dev->obj_desc.state |= DPRC_OBJ_STATE_PLUGGED; in check_plugged_state_change() 136 error = device_attach(&mc_dev->dev); in check_plugged_state_change() [all …]
|
D | mc-bus.c | 38 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in fsl_mc_bus_match() local 54 if ((mc_dev->obj_desc.state & DPRC_OBJ_STATE_PLUGGED) == 0 && in fsl_mc_bus_match() 55 !fsl_mc_is_root_dprc(&mc_dev->dev)) in fsl_mc_bus_match() 63 if (id->vendor == mc_dev->obj_desc.vendor && in fsl_mc_bus_match() 64 strcmp(id->obj_type, mc_dev->obj_desc.type) == 0) { in fsl_mc_bus_match() 65 if (id->ver_major == mc_dev->obj_desc.ver_major) { in fsl_mc_bus_match() 67 if (id->ver_minor != mc_dev->obj_desc.ver_minor) in fsl_mc_bus_match() 81 mc_dev->obj_desc.ver_major, in fsl_mc_bus_match() 82 mc_dev->obj_desc.ver_minor); in fsl_mc_bus_match() 87 mc_dev->obj_desc.ver_major, in fsl_mc_bus_match() [all …]
|
D | mc-allocator.c | 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() 45 if (WARN_ON(!FSL_MC_IS_ALLOCATABLE(mc_dev->obj_desc.type))) in fsl_mc_resource_pool_add_device() 47 if (WARN_ON(mc_dev->resource)) in fsl_mc_resource_pool_add_device() 75 resource->id = mc_dev->obj_desc.id; in fsl_mc_resource_pool_add_device() 76 resource->data = mc_dev; in fsl_mc_resource_pool_add_device() 80 mc_dev->resource = resource; in fsl_mc_resource_pool_add_device() 101 *mc_dev) in fsl_mc_resource_pool_remove_device() 110 if (WARN_ON(!FSL_MC_IS_ALLOCATABLE(mc_dev->obj_desc.type))) in fsl_mc_resource_pool_remove_device() 113 resource = mc_dev->resource; in fsl_mc_resource_pool_remove_device() [all …]
|
/drivers/staging/fsl-mc/include/ |
D | mc-private.h | 85 struct fsl_mc_device mc_dev; member 91 container_of(_mc_dev, struct fsl_mc_bus, mc_dev) 98 void fsl_mc_device_remove(struct fsl_mc_device *mc_dev);
|
D | mc.h | 187 int __must_check fsl_mc_portal_allocate(struct fsl_mc_device *mc_dev, 195 int __must_check fsl_mc_object_allocate(struct fsl_mc_device *mc_dev,
|