Lines Matching refs:mmc

346 struct mmc *do_returnmmc(void);
348 int read_counter(struct mmc *mmc, struct s_rpmb *requestpackets);
349 int program_key(struct mmc *mmc, struct s_rpmb *requestpackets);
351 (struct mmc *mmc, struct s_rpmb *requestpackets, uint16_t block_count);
352 int authenticated_write(struct mmc *mmc, struct s_rpmb *requestpackets);
360 struct mmc *mmc; member
376 struct mmc *mmc_get_mmc_dev(struct udevice *dev);
407 struct mmc;
489 bool mmc_card_busy(struct mmc *mmc);
490 bool mmc_can_card_busy(struct mmc *mmc);
491 int mmc_set_ios(struct mmc *mmc);
492 int mmc_getcd(struct mmc *mmc);
493 int mmc_getwp(struct mmc *mmc);
495 int mmc_set_enhanced_strobe(struct mmc *mmc);
498 bool (*card_busy)(struct mmc *mmc);
499 int (*send_cmd)(struct mmc *mmc,
501 int (*set_ios)(struct mmc *mmc);
502 int (*init)(struct mmc *mmc);
503 int (*getcd)(struct mmc *mmc);
504 int (*getwp)(struct mmc *mmc);
535 struct mmc { struct
632 static inline bool mmc_card_hs(struct mmc *mmc) in mmc_card_hs() argument
634 return (mmc->timing == MMC_TIMING_MMC_HS) || in mmc_card_hs()
635 (mmc->timing == MMC_TIMING_SD_HS); in mmc_card_hs()
638 static inline bool mmc_card_ddr(struct mmc *mmc) in mmc_card_ddr() argument
640 return (mmc->timing == MMC_TIMING_UHS_DDR50) || in mmc_card_ddr()
641 (mmc->timing == MMC_TIMING_MMC_DDR52) || in mmc_card_ddr()
642 (mmc->timing == MMC_TIMING_MMC_HS400) || in mmc_card_ddr()
643 (mmc->timing == MMC_TIMING_MMC_HS400ES); in mmc_card_ddr()
646 static inline bool mmc_card_hs200(struct mmc *mmc) in mmc_card_hs200() argument
648 return mmc->timing == MMC_TIMING_MMC_HS200; in mmc_card_hs200()
651 static inline bool mmc_card_ddr52(struct mmc *mmc) in mmc_card_ddr52() argument
653 return mmc->timing == MMC_TIMING_MMC_DDR52; in mmc_card_ddr52()
656 static inline bool mmc_card_hs400(struct mmc *mmc) in mmc_card_hs400() argument
658 return mmc->timing == MMC_TIMING_MMC_HS400; in mmc_card_hs400()
661 static inline bool mmc_card_hs400es(struct mmc *mmc) in mmc_card_hs400es() argument
663 return mmc->timing == MMC_TIMING_MMC_HS400ES; in mmc_card_hs400es()
666 int mmc_send_tuning(struct mmc *mmc, u32 opcode);
668 struct mmc *mmc_create(const struct mmc_config *cfg, void *priv);
681 int mmc_bind(struct udevice *dev, struct mmc *mmc,
683 void mmc_destroy(struct mmc *mmc);
693 int mmc_init(struct mmc *mmc);
694 int mmc_read(struct mmc *mmc, u64 src, uchar *dst, int size);
695 void mmc_set_clock(struct mmc *mmc, uint clock);
696 struct mmc *find_mmc_device(int dev_num);
706 int mmc_switch_part(struct mmc *mmc, unsigned int part_num);
707 int mmc_hwpart_config(struct mmc *mmc, const struct mmc_hwpart_conf *conf,
711 int mmc_getcd(struct mmc *mmc);
712 int board_mmc_getcd(struct mmc *mmc);
713 int mmc_getwp(struct mmc *mmc);
714 int board_mmc_getwp(struct mmc *mmc);
717 int mmc_set_dsr(struct mmc *mmc, u16 val);
719 int mmc_boot_partition_size_change(struct mmc *mmc, unsigned long bootsize,
722 int mmc_set_part_conf(struct mmc *mmc, u8 ack, u8 part_num, u8 access);
724 int mmc_set_boot_bus_width(struct mmc *mmc, u8 width, u8 reset, u8 mode);
726 int mmc_set_rst_n_function(struct mmc *mmc, u8 enable);
728 int mmc_rpmb_set_key(struct mmc *mmc, void *key);
729 int mmc_rpmb_get_counter(struct mmc *mmc, unsigned long *counter);
730 int mmc_rpmb_read(struct mmc *mmc, void *addr, unsigned short blk,
732 int mmc_rpmb_write(struct mmc *mmc, void *addr, unsigned short blk,
735 int mmc_set_bkops_enable(struct mmc *mmc);
747 int mmc_start_init(struct mmc *mmc);
761 void mmc_set_preinit(struct mmc *mmc, int preinit);
764 #define mmc_host_is_spi(mmc) ((mmc)->cfg->host_caps & MMC_MODE_SPI) argument
766 #define mmc_host_is_spi(mmc) 0 argument
768 struct mmc *mmc_spi_init(uint bus, uint cs, uint speed, uint mode);
773 int mmc_get_env_addr(struct mmc *mmc, int copy, u32 *env_addr);
787 struct blk_desc *mmc_get_blk_desc(struct mmc *mmc);