OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:MtdWriteContext
(Results
1 - 2
of
2
) sorted by null
/bootable/recovery/mtdutils/
mtdutils.h
47
typedef struct
MtdWriteContext
MtdWriteContext
;
54
MtdWriteContext
*mtd_write_partition(const MtdPartition *);
55
ssize_t mtd_write_data(
MtdWriteContext
*, const char *data, size_t data_len);
56
off_t mtd_erase_blocks(
MtdWriteContext
*, int blocks); /* 0 ok, -1 for all */
57
off_t mtd_find_write_start(
MtdWriteContext
*ctx, off_t pos);
58
int mtd_write_close(
MtdWriteContext
*);
mtdutils.c
45
struct
MtdWriteContext
{
369
MtdWriteContext
*mtd_write_partition(const MtdPartition *partition)
371
MtdWriteContext
*ctx = (
MtdWriteContext
*) malloc(sizeof(
MtdWriteContext
));
398
static void add_bad_block_offset(
MtdWriteContext
*ctx, off_t pos) {
407
static int write_block(
MtdWriteContext
*ctx, const char *data)
476
ssize_t mtd_write_data(
MtdWriteContext
*ctx, const char *data, size_t len)
505
off_t mtd_erase_blocks(
MtdWriteContext
*ctx, int blocks)
546
int mtd_write_close(
MtdWriteContext
*ctx
[
all
...]
Completed in 2117 milliseconds