Lines Matching refs:root
238 struct dentry *root; in mmc_add_host_debugfs() local
240 root = debugfs_create_dir(mmc_hostname(host), NULL); in mmc_add_host_debugfs()
241 if (IS_ERR(root)) in mmc_add_host_debugfs()
244 if (!root) in mmc_add_host_debugfs()
249 host->debugfs_root = root; in mmc_add_host_debugfs()
251 if (!debugfs_create_file("ios", S_IRUSR, root, host, &mmc_ios_fops)) in mmc_add_host_debugfs()
254 if (!debugfs_create_file("clock", S_IRUSR | S_IWUSR, root, host, in mmc_add_host_debugfs()
263 root, in mmc_add_host_debugfs()
270 debugfs_remove_recursive(root); in mmc_add_host_debugfs()
359 struct dentry *root; in mmc_add_card_debugfs() local
364 root = debugfs_create_dir(mmc_card_id(card), host->debugfs_root); in mmc_add_card_debugfs()
365 if (IS_ERR(root)) in mmc_add_card_debugfs()
368 if (!root) in mmc_add_card_debugfs()
373 card->debugfs_root = root; in mmc_add_card_debugfs()
375 if (!debugfs_create_x32("state", S_IRUSR, root, &card->state)) in mmc_add_card_debugfs()
379 if (!debugfs_create_file("status", S_IRUSR, root, card, in mmc_add_card_debugfs()
384 if (!debugfs_create_file("ext_csd", S_IRUSR, root, card, in mmc_add_card_debugfs()
391 debugfs_remove_recursive(root); in mmc_add_card_debugfs()