Lines Matching refs:mmc

345 	struct mmc *mmc;  member
357 struct mmc *mmc_get_mmc_dev(struct udevice *dev);
388 struct mmc;
472 int mmc_set_ios(struct mmc *mmc);
473 void mmc_send_init_stream(struct mmc *mmc);
474 int mmc_getcd(struct mmc *mmc);
475 int mmc_getwp(struct mmc *mmc);
476 int mmc_execute_tuning(struct mmc *mmc, uint opcode);
477 int mmc_wait_dat0(struct mmc *mmc, int state, int timeout);
481 int (*send_cmd)(struct mmc *mmc,
483 int (*set_ios)(struct mmc *mmc);
484 int (*init)(struct mmc *mmc);
485 int (*getcd)(struct mmc *mmc);
486 int (*getwp)(struct mmc *mmc);
559 struct mmc { struct
654 struct mmc *mmc_create(const struct mmc_config *cfg, void *priv);
667 int mmc_bind(struct udevice *dev, struct mmc *mmc,
669 void mmc_destroy(struct mmc *mmc);
679 int mmc_init(struct mmc *mmc);
680 int mmc_send_tuning(struct mmc *mmc, u32 opcode, int *cmd_error);
691 int mmc_read(struct mmc *mmc, u64 src, uchar *dst, int size);
708 int mmc_set_clock(struct mmc *mmc, uint clock, bool disable);
713 struct mmc *find_mmc_device(int dev_num);
723 int mmc_switch_part(struct mmc *mmc, unsigned int part_num);
724 int mmc_hwpart_config(struct mmc *mmc, const struct mmc_hwpart_conf *conf,
728 int mmc_getcd(struct mmc *mmc);
729 int board_mmc_getcd(struct mmc *mmc);
730 int mmc_getwp(struct mmc *mmc);
731 int board_mmc_getwp(struct mmc *mmc);
734 int mmc_set_dsr(struct mmc *mmc, u16 val);
736 int mmc_boot_partition_size_change(struct mmc *mmc, unsigned long bootsize,
739 int mmc_set_part_conf(struct mmc *mmc, u8 ack, u8 part_num, u8 access);
741 int mmc_set_boot_bus_width(struct mmc *mmc, u8 width, u8 reset, u8 mode);
743 int mmc_set_rst_n_function(struct mmc *mmc, u8 enable);
745 int mmc_rpmb_set_key(struct mmc *mmc, void *key);
746 int mmc_rpmb_get_counter(struct mmc *mmc, unsigned long *counter);
747 int mmc_rpmb_read(struct mmc *mmc, void *addr, unsigned short blk,
749 int mmc_rpmb_write(struct mmc *mmc, void *addr, unsigned short blk,
752 int mmc_set_bkops_enable(struct mmc *mmc);
764 int mmc_start_init(struct mmc *mmc);
778 void mmc_set_preinit(struct mmc *mmc, int preinit);
781 #define mmc_host_is_spi(mmc) ((mmc)->cfg->host_caps & MMC_MODE_SPI) argument
783 #define mmc_host_is_spi(mmc) 0 argument
785 struct mmc *mmc_spi_init(uint bus, uint cs, uint speed, uint mode);
790 int mmc_get_env_addr(struct mmc *mmc, int copy, u32 *env_addr);
804 struct blk_desc *mmc_get_blk_desc(struct mmc *mmc);