Lines Matching +full:mmc +full:- +full:card
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/drivers/mmc/core/core.h
42 void mmc_init_erase(struct mmc_card *card);
55 int mmc_select_drive_strength(struct mmc_card *card, unsigned int max_dtr,
93 void mmc_add_card_debugfs(struct mmc_card *card);
94 void mmc_remove_card_debugfs(struct mmc_card *card);
102 static inline void mmc_add_card_debugfs(struct mmc_card *card) in mmc_add_card_debugfs() argument
105 static inline void mmc_remove_card_debugfs(struct mmc_card *card) in mmc_remove_card_debugfs() argument
110 int mmc_execute_tuning(struct mmc_card *card);
111 int mmc_hs200_to_hs400(struct mmc_card *card);
112 int mmc_hs400_to_hs200(struct mmc_card *card);
119 int mmc_erase(struct mmc_card *card, unsigned int from, unsigned int nr,
121 int mmc_can_erase(struct mmc_card *card);
122 int mmc_can_trim(struct mmc_card *card);
123 int mmc_can_discard(struct mmc_card *card);
124 int mmc_can_sanitize(struct mmc_card *card);
125 int mmc_can_secure_erase_trim(struct mmc_card *card);
126 int mmc_erase_group_aligned(struct mmc_card *card, unsigned int from,
128 unsigned int mmc_calc_max_discard(struct mmc_card *card);
130 int mmc_set_blocklen(struct mmc_card *card, unsigned int blocklen);
135 void mmc_get_card(struct mmc_card *card, struct mmc_ctx *ctx);
136 void mmc_put_card(struct mmc_card *card, struct mmc_ctx *ctx);
138 int mmc_card_alternative_gpt_sector(struct mmc_card *card, sector_t *sector);
141 * mmc_claim_host - exclusively claim a host
142 * @host: mmc host to claim
156 * mmc_pre_req - Prepare for a new request
157 * @host: MMC host to prepare command
158 * @mrq: MMC request to prepare for
166 if (host->ops->pre_req) in mmc_pre_req()
167 host->ops->pre_req(host, mrq); in mmc_pre_req()
171 * mmc_post_req - Post process a completed request
172 * @host: MMC host to post process command
173 * @mrq: MMC request to post process for
182 if (host->ops->post_req) in mmc_post_req()
183 host->ops->post_req(host, mrq, err); in mmc_post_req()
188 if (host->bus_ops->cache_enabled) in mmc_cache_enabled()
189 return host->bus_ops->cache_enabled(host); in mmc_cache_enabled()
196 if (host->bus_ops->flush_cache) in mmc_flush_cache()
197 return host->bus_ops->flush_cache(host); in mmc_flush_cache()