Lines Matching refs:log_addr
751 uint32_t log_addr, bsize; in ftl_read() local
769 log_addr = part->VirtualBlockMap[sector+i]; in ftl_read()
770 if (log_addr == 0xffffffff) in ftl_read()
773 offset = (part->EUNInfo[log_addr / bsize].Offset in ftl_read()
774 + (log_addr % bsize)); in ftl_read()
794 static int set_bam_entry(partition_t *part, uint32_t log_addr, in set_bam_entry() argument
806 part, log_addr, virt_addr); in set_bam_entry()
808 eun = log_addr / bsize; in set_bam_entry()
809 blk = (log_addr % bsize) / SECTOR_SIZE; in set_bam_entry()
829 ", new = 0x%x\n", log_addr, old_addr, virt_addr); in set_bam_entry()
857 log_addr, virt_addr); in set_bam_entry()
865 uint32_t bsize, log_addr, virt_addr, old_addr, blk; in ftl_write() local
903 log_addr = part->bam_index * bsize + blk * SECTOR_SIZE; in ftl_write()
906 if (set_bam_entry(part, log_addr, 0xfffffffe)) in ftl_write()
916 " = 0x%x, Offset = 0x%zx\n", log_addr, virt_addr, in ftl_write()
931 if (set_bam_entry(part, log_addr, virt_addr)) in ftl_write()
933 part->VirtualBlockMap[sector+i] = log_addr; in ftl_write()