Lines Matching refs:root
213 struct dentry *root; in mmc_add_host_debugfs() local
215 root = debugfs_create_dir(mmc_hostname(host), NULL); in mmc_add_host_debugfs()
216 if (IS_ERR(root)) in mmc_add_host_debugfs()
219 if (!root) in mmc_add_host_debugfs()
224 host->debugfs_root = root; in mmc_add_host_debugfs()
226 if (!debugfs_create_file("ios", S_IRUSR, root, host, &mmc_ios_fops)) in mmc_add_host_debugfs()
229 if (!debugfs_create_file("clock", S_IRUSR | S_IWUSR, root, host, in mmc_add_host_debugfs()
235 root, &host->clk_delay)) in mmc_add_host_debugfs()
243 root, in mmc_add_host_debugfs()
250 debugfs_remove_recursive(root); in mmc_add_host_debugfs()
339 struct dentry *root; in mmc_add_card_debugfs() local
344 root = debugfs_create_dir(mmc_card_id(card), host->debugfs_root); in mmc_add_card_debugfs()
345 if (IS_ERR(root)) in mmc_add_card_debugfs()
348 if (!root) in mmc_add_card_debugfs()
353 card->debugfs_root = root; in mmc_add_card_debugfs()
355 if (!debugfs_create_x32("state", S_IRUSR, root, &card->state)) in mmc_add_card_debugfs()
359 if (!debugfs_create_file("status", S_IRUSR, root, card, in mmc_add_card_debugfs()
364 if (!debugfs_create_file("ext_csd", S_IRUSR, root, card, in mmc_add_card_debugfs()
371 debugfs_remove_recursive(root); in mmc_add_card_debugfs()