Lines Matching refs:host

55 	struct mmc_host	*host = s->private;  in mmc_ios_show()  local
56 struct mmc_ios *ios = &host->ios; in mmc_ios_show()
60 if (host->actual_clock) in mmc_ios_show()
61 seq_printf(s, "actual clock:\t%u Hz\n", host->actual_clock); in mmc_ios_show()
211 struct mmc_host *host = data; in mmc_clock_opt_get() local
213 *val = host->ios.clock; in mmc_clock_opt_get()
220 struct mmc_host *host = data; in mmc_clock_opt_set() local
223 if (val > host->f_max) in mmc_clock_opt_set()
226 mmc_claim_host(host); in mmc_clock_opt_set()
227 mmc_set_clock(host, (unsigned int) val); in mmc_clock_opt_set()
228 mmc_release_host(host); in mmc_clock_opt_set()
236 void mmc_add_host_debugfs(struct mmc_host *host) in mmc_add_host_debugfs() argument
240 root = debugfs_create_dir(mmc_hostname(host), NULL); 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()
261 host->fail_mmc_request = fail_default_attr; in mmc_add_host_debugfs()
264 &host->fail_mmc_request))) in mmc_add_host_debugfs()
271 host->debugfs_root = NULL; in mmc_add_host_debugfs()
273 dev_err(&host->class_dev, "failed to initialize debugfs\n"); in mmc_add_host_debugfs()
276 void mmc_remove_host_debugfs(struct mmc_host *host) in mmc_remove_host_debugfs() argument
278 debugfs_remove_recursive(host->debugfs_root); in mmc_remove_host_debugfs()
358 struct mmc_host *host = card->host; in mmc_add_card_debugfs() local
361 if (!host->debugfs_root) in mmc_add_card_debugfs()
364 root = debugfs_create_dir(mmc_card_id(card), host->debugfs_root); in mmc_add_card_debugfs()