Classes | Defines | Functions | Variables

src/bitmap.c File Reference

#include <stdlib.h>
#include <string.h>
#include "types.h"
#include "debug.h"
#include "nand.h"
#include "vmbitmap.h"
Include dependency graph for bitmap.c:

Go to the source code of this file.

Classes

struct  bitmap_t

Defines

#define BITS_PER_RECORD   32
#define NUMSUB   ((config_nand.page_per_blk + BITS_PER_RECORD - 1) / BITS_PER_RECORD)
#define CREATE_BITMAP_KEY(blkno, i)   ((MUFTL_BITMAP_H) | (((blkno)*(NUMSUB)) + (i)))

Functions

void bitmap_s_invalidate_page (_t_blk pbn, _t_page ppn, _t_size length)
void bitmap_s_invalidate (_t_blk pbn, _t_page ppn, _t_size length)
void bitmap_s_end ()
void bitmap_s_init ()
void bitmap_s_get_block (int pbn, _u8 *block_bitmap)
void bitmap_s_clear_block (_t_blk pbn)

Variables

struct bitmap_t bitmap

Define Documentation

#define BITS_PER_RECORD   32

Definition at line 19 of file bitmap.c.

#define CREATE_BITMAP_KEY (   blkno,
  i 
)    ((MUFTL_BITMAP_H) | (((blkno)*(NUMSUB)) + (i)))

Definition at line 21 of file bitmap.c.

#define NUMSUB   ((config_nand.page_per_blk + BITS_PER_RECORD - 1) / BITS_PER_RECORD)

Definition at line 20 of file bitmap.c.


Function Documentation

void bitmap_s_clear_block ( _t_blk  pbn  ) 

Definition at line 94 of file bitmap.c.

Here is the caller graph for this function:

void bitmap_s_end (  ) 

Definition at line 56 of file bitmap.c.

Here is the caller graph for this function:

void bitmap_s_get_block ( int  pbn,
_u8 block_bitmap 
)

Definition at line 76 of file bitmap.c.

Here is the caller graph for this function:

void bitmap_s_init (  ) 

Definition at line 61 of file bitmap.c.

Here is the caller graph for this function:

void bitmap_s_invalidate ( _t_blk  pbn,
_t_page  ppn,
_t_size  length 
)

Definition at line 50 of file bitmap.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void bitmap_s_invalidate_page ( _t_blk  pbn,
_t_page  ppn,
_t_size  length 
)

Definition at line 29 of file bitmap.c.

Here is the caller graph for this function:


Variable Documentation

struct bitmap_t bitmap
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines