Lines Matching refs:root
138 struct dentry *root; in mmc_add_host_debugfs() local
140 root = debugfs_create_dir(mmc_hostname(host), NULL); in mmc_add_host_debugfs()
141 if (IS_ERR(root)) in mmc_add_host_debugfs()
144 if (!root) in mmc_add_host_debugfs()
149 host->debugfs_root = root; in mmc_add_host_debugfs()
151 if (!debugfs_create_file("ios", S_IRUSR, root, host, &mmc_ios_fops)) in mmc_add_host_debugfs()
157 debugfs_remove_recursive(root); in mmc_add_host_debugfs()
252 struct dentry *root; in mmc_add_card_debugfs() local
257 root = debugfs_create_dir(mmc_card_id(card), host->debugfs_root); in mmc_add_card_debugfs()
258 if (IS_ERR(root)) in mmc_add_card_debugfs()
261 if (!root) in mmc_add_card_debugfs()
266 card->debugfs_root = root; in mmc_add_card_debugfs()
268 if (!debugfs_create_x32("state", S_IRUSR, root, &card->state)) in mmc_add_card_debugfs()
272 if (!debugfs_create_file("status", S_IRUSR, root, card, in mmc_add_card_debugfs()
277 if (!debugfs_create_file("ext_csd", S_IRUSR, root, card, in mmc_add_card_debugfs()
284 debugfs_remove_recursive(root); in mmc_add_card_debugfs()