Lines Matching defs:card

15 #include <linux/mmc/card.h>
150 * 0 for a read/write card
151 * 1 for a read-only card
159 * 0 for a absent card
160 * 1 for a present card
171 void (*init_card)(struct mmc_host *host, struct mmc_card *card);
175 /* Check if the card is pulling dat[0] low */
185 int (*execute_hs400_tuning)(struct mmc_host *host, struct mmc_card *card);
188 int (*prepare_sd_hs_tuning)(struct mmc_host *host, struct mmc_card *card);
191 int (*execute_sd_hs_tuning)(struct mmc_host *host, struct mmc_card *card);
205 int (*select_drive_strength)(struct mmc_card *card,
208 /* Reset the eMMC card via RST_n */
216 int (*multi_io_quirk)(struct mmc_card *card,
219 /* Initialize an SD express card, mandatory for MMC_CAP2_SD_EXP. */
225 int (*cqe_enable)(struct mmc_host *host, struct mmc_card *card);
280 * @cd_irq: MMC/SD-card slot hotplug detection IRQ or -EINVAL
281 * @handler_priv: MMC/SD-card slot context
283 * Some MMC/SD host controllers implement slot-functions like card and
363 #define MMC_CAP_NEEDS_POLL (1 << 5) /* Needs polling for card-detection */
367 #define MMC_CAP_WAIT_WHILE_BUSY (1 << 9) /* Waits while card is busy */
389 #define MMC_CAP_CD_WAKE (1 << 28) /* Enable card detect wake */
392 #define MMC_CAP_HW_RESET (1 << 31) /* Reset the eMMC card via RST_n */
415 #define MMC_CAP2_NO_WRITE_PROTECT (1 << 18) /* No physical write protect pin, assume that card is always read-write */
461 int rescan_disable; /* disable card detection */
471 struct mmc_card *card; /* device attached to this host */
479 int detect_change; /* card detect flag */
627 static inline int mmc_card_hs(struct mmc_card *card)
629 return card->host->ios.timing == MMC_TIMING_SD_HS ||
630 card->host->ios.timing == MMC_TIMING_MMC_HS;
634 static inline int mmc_card_uhs(struct mmc_card *card)
636 return card->host->ios.timing >= MMC_TIMING_UHS_SDR12 &&
637 card->host->ios.timing <= MMC_TIMING_UHS_DDR50;
674 int mmc_sd_switch(struct mmc_card *card, int mode, int group, u8 value, u8 *resp);
675 int mmc_send_status(struct mmc_card *card, u32 *status);
678 int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd);