coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
storage_write.c File Reference
#include <stdlib.h>
#include "sd_mmc.h"
#include "storage.h"
Include dependency graph for storage_write.c:

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)
 

Function Documentation

◆ storage_block_fill_write()

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.

Here is the call graph for this function:

◆ storage_block_write()

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.

Here is the call graph for this function:

◆ storage_write()