Lines Matching refs:dev_cfg_data
69 struct adf_cfg_device_data *dev_cfg_data; in adf_cfg_dev_add() local
71 dev_cfg_data = kzalloc(sizeof(*dev_cfg_data), GFP_KERNEL); in adf_cfg_dev_add()
72 if (!dev_cfg_data) in adf_cfg_dev_add()
74 INIT_LIST_HEAD(&dev_cfg_data->sec_list); in adf_cfg_dev_add()
75 init_rwsem(&dev_cfg_data->lock); in adf_cfg_dev_add()
76 accel_dev->cfg = dev_cfg_data; in adf_cfg_dev_add()
79 dev_cfg_data->debug = debugfs_create_file("dev_cfg", S_IRUSR, in adf_cfg_dev_add()
81 dev_cfg_data, in adf_cfg_dev_add()
91 struct adf_cfg_device_data *dev_cfg_data = accel_dev->cfg; in adf_cfg_del_all() local
93 down_write(&dev_cfg_data->lock); in adf_cfg_del_all()
94 adf_cfg_section_del_all(&dev_cfg_data->sec_list); in adf_cfg_del_all()
95 up_write(&dev_cfg_data->lock); in adf_cfg_del_all()
111 struct adf_cfg_device_data *dev_cfg_data = accel_dev->cfg; in adf_cfg_dev_remove() local
113 if (!dev_cfg_data) in adf_cfg_dev_remove()
116 down_write(&dev_cfg_data->lock); in adf_cfg_dev_remove()
117 adf_cfg_section_del_all(&dev_cfg_data->sec_list); in adf_cfg_dev_remove()
118 up_write(&dev_cfg_data->lock); in adf_cfg_dev_remove()
119 debugfs_remove(dev_cfg_data->debug); in adf_cfg_dev_remove()
120 kfree(dev_cfg_data); in adf_cfg_dev_remove()