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,
94 void mmc_add_card_debugfs(struct mmc_card *card);
95 void mmc_remove_card_debugfs(struct mmc_card *card);
103 static inline void mmc_add_card_debugfs(struct mmc_card *card) in mmc_add_card_debugfs() argument
106 static inline void mmc_remove_card_debugfs(struct mmc_card *card) in mmc_remove_card_debugfs() argument
111 int mmc_execute_tuning(struct mmc_card *card);
112 int mmc_hs200_to_hs400(struct mmc_card *card);
113 int mmc_hs400_to_hs200(struct mmc_card *card);
120 int mmc_erase(struct mmc_card *card, sector_t from, unsigned int nr, unsigned int arg);
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, sector_t from, unsigned int nr);
127 unsigned int mmc_calc_max_discard(struct mmc_card *card);
129 int mmc_set_blocklen(struct mmc_card *card, unsigned int blocklen);
134 void mmc_get_card(struct mmc_card *card, struct mmc_ctx *ctx);
135 void mmc_put_card(struct mmc_card *card, struct mmc_ctx *ctx);
137 int mmc_card_alternative_gpt_sector(struct mmc_card *card, sector_t *sector);
140 * mmc_claim_host - exclusively claim a host
141 * @host: mmc host to claim
155 * mmc_pre_req - Prepare for a new request
156 * @host: MMC host to prepare command
157 * @mrq: MMC request to prepare for
165 if (host->ops->pre_req) in mmc_pre_req()
166 host->ops->pre_req(host, mrq); in mmc_pre_req()
170 * mmc_post_req - Post process a completed request
171 * @host: MMC host to post process command
172 * @mrq: MMC request to post process for
181 if (host->ops->post_req) in mmc_post_req()
182 host->ops->post_req(host, mrq, err); in mmc_post_req()
187 if (host->bus_ops->cache_enabled) in mmc_cache_enabled()
188 return host->bus_ops->cache_enabled(host); in mmc_cache_enabled()
195 if (host->bus_ops->flush_cache) in mmc_flush_cache()
196 return host->bus_ops->flush_cache(host); in mmc_flush_cache()