Lines Matching refs:config_csdev
48 struct cscfg_config_csdev *config_csdev = NULL; in cscfg_alloc_csdev_cfg() local
52 config_csdev = devm_kzalloc(dev, in cscfg_alloc_csdev_cfg()
55 if (!config_csdev) in cscfg_alloc_csdev_cfg()
58 config_csdev->csdev = csdev; in cscfg_alloc_csdev_cfg()
59 return config_csdev; in cscfg_alloc_csdev_cfg()
66 struct cscfg_config_csdev *config_csdev = NULL; in cscfg_add_csdev_cfg() local
80 if (!config_csdev) { in cscfg_add_csdev_cfg()
81 config_csdev = cscfg_alloc_csdev_cfg(csdev, in cscfg_add_csdev_cfg()
83 if (!config_csdev) in cscfg_add_csdev_cfg()
85 config_csdev->config_desc = config_desc; in cscfg_add_csdev_cfg()
87 config_csdev->feats_csdev[config_csdev->nr_feat++] = feat_csdev; in cscfg_add_csdev_cfg()
91 if (config_csdev) { in cscfg_add_csdev_cfg()
93 list_add(&config_csdev->node, &csdev->config_csdev_list); in cscfg_add_csdev_cfg()
393 struct cscfg_config_csdev *config_csdev, *tmp; in cscfg_remove_owned_csdev_configs() local
398 list_for_each_entry_safe(config_csdev, tmp, &csdev->config_csdev_list, node) { in cscfg_remove_owned_csdev_configs()
399 if (config_csdev->config_desc->load_owner == load_owner) in cscfg_remove_owned_csdev_configs()
400 list_del(&config_csdev->node); in cscfg_remove_owned_csdev_configs()
1119 struct cscfg_config_csdev *config_csdev; in cscfg_csdev_disable_active_config() local
1128 config_csdev = (struct cscfg_config_csdev *)csdev->active_cscfg_ctxt; in cscfg_csdev_disable_active_config()
1129 if (config_csdev) { in cscfg_csdev_disable_active_config()
1130 if (!config_csdev->enabled) in cscfg_csdev_disable_active_config()
1131 config_csdev = NULL; in cscfg_csdev_disable_active_config()
1133 config_csdev->enabled = false; in cscfg_csdev_disable_active_config()
1139 if (config_csdev) in cscfg_csdev_disable_active_config()
1140 cscfg_csdev_disable_config(config_csdev); in cscfg_csdev_disable_active_config()