Lines Matching refs:block_address
199 int block_address, parity; in get_logical_address() local
210 block_address = ((int)oob_buf[offset[j]] << 8) | in get_logical_address()
214 if ((block_address & ~0x7FF) == 0x1000) { in get_logical_address()
215 parity = block_address & 0x01; in get_logical_address()
216 block_address &= 0x7FF; in get_logical_address()
217 block_address >>= 1; in get_logical_address()
219 if (get_parity(block_address, 10) != parity) { in get_logical_address()
222 block_address); in get_logical_address()
231 block_address = -2; in get_logical_address()
234 block_address); in get_logical_address()
236 return block_address; in get_logical_address()
244 int ret, block_address, phys_block; in build_logical_block_map() local
264 block_address = get_logical_address(oob_buf); in build_logical_block_map()
267 if (block_address >= 0 && in build_logical_block_map()
268 block_address < MAX_LOGIC_BLK_PER_ZONE) { in build_logical_block_map()
272 block_address += zone_index * MAX_LOGIC_BLK_PER_ZONE; in build_logical_block_map()
273 ssfdc->logic_block_map[block_address] = in build_logical_block_map()
278 phys_block, block_address, zone_index); in build_logical_block_map()
371 int sectors_per_block, offset, block_address; in ssfdcr_readsect() local
375 block_address = (int)(logic_sect_no / sectors_per_block); in ssfdcr_readsect()
379 block_address); in ssfdcr_readsect()
381 BUG_ON(block_address >= ssfdc->map_len); in ssfdcr_readsect()
383 block_address = ssfdc->logic_block_map[block_address]; in ssfdcr_readsect()
386 block_address); in ssfdcr_readsect()
388 if (block_address < 0xffff) { in ssfdcr_readsect()
391 sect_no = (unsigned long)block_address * sectors_per_block + in ssfdcr_readsect()