Lines Matching +defs:block +defs:buffer
192 static loff_t sm_mkoffset(struct sm_ftl *ftl, int zone, int block, int boffset) in sm_mkoffset()
207 int *zone, int *block, int *boffset) in sm_break_offset()
217 static int sm_correct_sector(uint8_t *buffer, struct sm_oob *oob) in sm_correct_sector()
238 int zone, int block, int boffset, in sm_read_sector()
239 uint8_t *buffer, struct sm_oob *oob) in sm_read_sector()
323 int zone, int block, int boffset, in sm_write_sector()
324 uint8_t *buffer, struct sm_oob *oob) in sm_write_sector()
370 int zone, int block, int lba, in sm_write_block()
436 static void sm_mark_block_bad(struct sm_ftl *ftl, int zone, int block) in sm_mark_block_bad()
464 static int sm_erase_block(struct sm_ftl *ftl, int zone_num, uint16_t block, in sm_erase_block()
501 static int sm_check_block(struct sm_ftl *ftl, int zone, int block) in sm_check_block()
683 int block, boffset; in sm_find_cis() local
756 uint16_t block; in sm_init_zone() local
911 static void sm_cache_put(struct sm_ftl *ftl, char *buffer, int boffset) in sm_cache_put()
919 static int sm_cache_get(struct sm_ftl *ftl, char *buffer, int boffset) in sm_cache_get()
1019 int zone_num, block, boffset; in sm_read() local
1064 int error = 0, zone_num, block, boffset; in sm_write() local