Lines Matching refs:obj_desc

26 				struct fsl_mc_obj_desc *obj_desc)  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()
55 struct fsl_mc_obj_desc *obj_desc = &objs->child_array[i]; in __fsl_mc_device_remove_if_not_in_mc() local
57 if (strlen(obj_desc->type) != 0 && 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()
117 struct fsl_mc_obj_desc *obj_desc = data; in __fsl_mc_device_match() local
120 return fsl_mc_device_match(mc_dev, obj_desc); in __fsl_mc_device_match()
123 struct fsl_mc_device *fsl_mc_device_lookup(struct fsl_mc_obj_desc *obj_desc, in fsl_mc_device_lookup() argument
128 dev = device_find_child(&mc_bus_dev->dev, obj_desc, in fsl_mc_device_lookup()
146 struct fsl_mc_obj_desc *obj_desc) in check_plugged_state_change() argument
150 obj_desc->state & FSL_MC_OBJ_STATE_PLUGGED; in check_plugged_state_change()
153 (mc_dev->obj_desc.state & FSL_MC_OBJ_STATE_PLUGGED)) { in check_plugged_state_change()
155 mc_dev->obj_desc.state |= FSL_MC_OBJ_STATE_PLUGGED; in check_plugged_state_change()
163 mc_dev->obj_desc.state &= ~FSL_MC_OBJ_STATE_PLUGGED; in check_plugged_state_change()
170 struct fsl_mc_obj_desc *obj_desc) 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()
180 check_plugged_state_change(child_dev, obj_desc); 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()
210 struct fsl_mc_obj_desc *obj_desc = &obj_desc_array[i]; in dprc_add_new_devices() local
212 if (strlen(obj_desc->type) > 0 && in dprc_add_new_devices()
213 fsl_mc_obj_desc_is_allocatable(obj_desc)) in dprc_add_new_devices()
214 fsl_mc_obj_device_add(mc_bus_dev, obj_desc); in dprc_add_new_devices()
218 struct fsl_mc_obj_desc *obj_desc = &obj_desc_array[i]; in dprc_add_new_devices() local
220 if (strlen(obj_desc->type) > 0 && in dprc_add_new_devices()
221 !fsl_mc_obj_desc_is_allocatable(obj_desc)) in dprc_add_new_devices()
222 fsl_mc_obj_device_add(mc_bus_dev, obj_desc); in dprc_add_new_devices()
251 unsigned int irq_count = mc_bus_dev->obj_desc.irq_count; in dprc_scan_objects()
280 struct fsl_mc_obj_desc *obj_desc = in dprc_scan_objects() local
286 i, obj_desc); in dprc_scan_objects()
295 obj_desc->type[0] = '\0'; in dprc_scan_objects()
296 obj_desc->id = error; in dprc_scan_objects()
305 if ((strcmp(obj_desc->type, "dpseci") == 0) && in dprc_scan_objects()
306 (obj_desc->ver_major < 4)) in dprc_scan_objects()
307 obj_desc->flags |= in dprc_scan_objects()
310 irq_count += obj_desc->irq_count; in dprc_scan_objects()
313 obj_desc->type, obj_desc->id); in dprc_scan_objects()
644 if (mc_dev->obj_desc.region_count == 0) in dprc_setup()
675 error = dprc_open(mc_dev->mc_io, 0, mc_dev->obj_desc.id, in dprc_setup()