Lines Matching refs:dfl_devs
62 static struct dfl_dev_info dfl_devs[] = { variable
89 for (i = 0; i < ARRAY_SIZE(dfl_devs); i++) in dfl_ids_init()
90 idr_init(&dfl_devs[i].id); in dfl_ids_init()
97 for (i = 0; i < ARRAY_SIZE(dfl_devs); i++) in dfl_ids_destroy()
98 idr_destroy(&dfl_devs[i].id); in dfl_ids_destroy()
107 id = idr_alloc(&dfl_devs[type].id, dev, 0, 0, GFP_KERNEL); in dfl_id_alloc()
117 idr_remove(&dfl_devs[type].id, id); in dfl_id_free()
125 for (i = 0; i < ARRAY_SIZE(dfl_devs); i++) in feature_dev_id_type()
126 if (!strcmp(dfl_devs[i].name, pdev->name)) in feature_dev_id_type()
136 for (i = 0; i < ARRAY_SIZE(dfl_devs); i++) in dfh_id_to_type()
137 if (dfl_devs[i].dfh_id == id) in dfh_id_to_type()
872 fdev = platform_device_alloc(dfl_devs[type].name, -ENODEV); in build_info_create_dev()
886 fdev->dev.devt = dfl_get_devt(dfl_devs[type].devt_type, fdev->id); in build_info_create_dev()