![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Functions | |
static uint32_t | storage_write (struct storage_media *media, uint32_t start, uint64_t block_count, const void *src) |
uint64_t | storage_block_write (struct storage_media *media, uint64_t start, uint64_t count, const void *buffer) |
uint64_t | storage_block_fill_write (struct storage_media *media, uint64_t start, uint64_t count, uint32_t fill_pattern) |
uint64_t storage_block_fill_write | ( | struct storage_media * | media, |
uint64_t | start, | ||
uint64_t | count, | ||
uint32_t | fill_pattern | ||
) |
Definition at line 84 of file storage_write.c.
References sd_mmc_ctrlr::b_max, buffer, count, storage_media::ctrlr, free(), malloc(), media, MiB, MIN, storage_block_setup(), storage_write(), and storage_media::write_bl_len.
uint64_t storage_block_write | ( | struct storage_media * | media, |
uint64_t | start, | ||
uint64_t | count, | ||
const void * | buffer | ||
) |
Definition at line 63 of file storage_write.c.
References sd_mmc_ctrlr::b_max, buffer, count, storage_media::ctrlr, media, MIN, mmc_data::src, storage_block_setup(), storage_write(), and storage_media::write_bl_len.
|
static |
Definition at line 12 of file storage_write.c.
References mmc_data::blocks, mmc_data::blocksize, sd_mmc_ctrlr::caps, CARD_RSP_R1, CARD_RSP_R1b, CMD_FLAG_IGNORE_INHIBIT, mmc_command::cmdarg, mmc_command::cmdidx, storage_media::ctrlr, DATA_FLAG_WRITE, DRVR_CAP_AUTO_CMD12, mmc_command::flags, mmc_data::flags, storage_media::high_capacity, media, MMC_CMD_STOP_TRANSMISSION, MMC_CMD_WRITE_MULTIPLE_BLOCK, MMC_CMD_WRITE_SINGLE_BLOCK, NULL, mmc_command::resp_type, sd_mmc_error, SD_MMC_IO_RETRIES, sd_mmc_send_status(), sd_mmc_ctrlr::send_cmd, mmc_data::src, and storage_media::write_bl_len.
Referenced by storage_block_fill_write(), and storage_block_write().