Searched refs:vpn (Results 1 – 8 of 8) sorted by relevance
| /system/ulib/ftl/ftln/ |
| A D | ftln_rd.c | 37 cache_ent = ftlvcGetRdPage(ftl->vol_cache, vpn); in partial_page_read() 55 if (FtlnMapGetPpn(ftl, vpn, &pn) < 0) in partial_page_read() 131 ui32 vpn; in read_sectors() local 144 vpn = vsn / ftl->sects_per_page; in read_sectors() 159 if (partial_page_read(ftl, vpn, byte_offset, byte_count, staged.buf)) in read_sectors() 164 ++vpn; in read_sectors() 196 if (FtlnMapGetPpn(ftl, vpn, &pn) < 0) in read_sectors() 225 cache_ent = FcInCache(ftl->vol_cache, vpn); in read_sectors() 259 ++vpn; in read_sectors() 272 if (partial_page_read(ftl, vpn, 0, count * ftl->sect_size, staged.buf)) in read_sectors() [all …]
|
| A D | ftln_intrnl.c | 261 SET_SA_VPN(vpn, ftl->spare_buf); in wr_vol_page() 287 FtlnDecUsed(ftl, old_pn, vpn); in wr_vol_page() 290 return FtlnMapSetPpn(ftl, vpn, ppn); in wr_vol_page() 656 ui32 vpn, pn2; in recycle_vblk() local 676 if (vpn > ftl->num_vpages) in recycle_vblk() 759 ui32 vpn, old_pn, grp_cnt, grp_i; in partial_page_write() local 934 ui32 pn, vpn, wc; in write_sectors() local 953 page_wr.vpn0 = vpn; in write_sectors() 963 SET_SA_VPN(vpn, spare); in write_sectors() 1256 PfAssert(vpn <= ftl->num_vpages); in FtlnMapGetPpn() [all …]
|
| A D | ftlnp.h | 150 #define SET_SA_VPN(vpn, spare) WR32_LE(vpn, &spare[1]) argument 284 int FtlnMapGetPpn(CFTLN ftl, ui32 vpn, ui32* pnp); 285 int FtlnMapSetPpn(CFTLN ftl, ui32 vpn, ui32 ppn); 295 int FtlnVpnRd(void* buf, ui32 vpn, void* vol); 297 void FtlnDecUsed(FTLN ftl, ui32 pn, ui32 vpn);
|
| A D | ftln_util.c | 350 ui32 ppn, vsn, count, past_end, vpn; in FtlnReport() local 394 vpn = vsn / ftl->sects_per_page; in FtlnReport() 395 past_end = vpn + count / ftl->sects_per_page; in FtlnReport() 398 for (; vpn < past_end; ++vpn) { in FtlnReport() 404 if (FtlnMapGetPpn(ftl, vpn, &ppn) < 0) in FtlnReport() 418 if (FtlnMapSetPpn(ftl, vpn, (ui32)-1)) in FtlnReport() 421 FtlnDecUsed(ftl, ppn, vpn); in FtlnReport() 431 FcRmvEntry(ftl->vol_cache, vpn); in FtlnReport() 809 void FtlnDecUsed(FTLN ftl, ui32 pn, ui32 vpn) { in FtlnDecUsed() argument 822 PfAssert(GET_SA_VPN(ftl->spare_buf) == vpn); in FtlnDecUsed()
|
| A D | ftln_init.c | 646 ui32 vpn; in format_status() local 657 vpn = GET_SA_VPN(ftl->spare_buf); in format_status() 662 if ((vpn == COPY_BLK_END) && (bc == vpn) && (wc == 0)) { in format_status() 891 ui32 po, vpn; in resume_copy() local 911 vpn = GET_SA_VPN(ftl->spare_buf); in resume_copy() 912 if (vpn > ftl->num_vpages) in resume_copy() 917 SET_SA_VPN(vpn, ftl->spare_buf); in resume_copy()
|
| /system/ulib/ftl/inc/kprivate/ |
| A D | ftl_vc.h | 21 FcEntry* ftlvcGetRdPage(void* ftlvc, ui32 vpn); 22 int ftlvcFlushPage(void* ftlvc, ui32 vpn);
|
| A D | fsprivate.h | 442 int (*decr)(const FSCrypt* fs_crypt, ui8* data, ui32 vpn, int n); 443 int (*rd_decr)(const FSCrypt* fs_crypt, ui8* data, ui32 vpn, int n); 444 int (*encr)(const FSCrypt* fs_crypt, ui8* data, ui32 vpn, int n); 445 int (*encr_wr)(const FSCrypt* fs_crypt, const ui8* data, ui32 vpn, int n);
|
| /system/ulib/ftl/ndm/ |
| A D | ndm_intrnl.c | 794 vbn = vpn / ndm->pgs_per_blk; in write_page() 879 vbn = vpn / ndm->pgs_per_blk; in rd_spare_ftl() 924 vbn = vpn / ndm->pgs_per_blk; in pg_check_ftl() 970 vbn = vpn / ndm->pgs_per_blk; in read_page() 1150 vbn = vpn / ndm->pgs_per_blk; in rd_type_ffs() 1197 vbn = vpn / ndm->pgs_per_blk; in pg_blank_ffs() 1877 PfAssert(vpn / ndm->pgs_per_blk == (vpn + count - 1) / ndm->pgs_per_blk); in ndmWritePages() 1949 ui32 past = vpn + count; in ndmWritePages() 1954 for (; vpn < past; ++vpn) { in ndmWritePages() 2108 vbn = vpn / ndm->pgs_per_blk; in ndmEraseBlock() [all …]
|
Completed in 18 milliseconds