• Home
  • Raw
  • Download

Lines Matching refs:block_address

202 	int block_address, parity;  in get_logical_address()  local
213 block_address = ((int)oob_buf[offset[j]] << 8) | in get_logical_address()
217 if ((block_address & ~0x7FF) == 0x1000) { in get_logical_address()
218 parity = block_address & 0x01; in get_logical_address()
219 block_address &= 0x7FF; in get_logical_address()
220 block_address >>= 1; in get_logical_address()
222 if (get_parity(block_address, 10) != parity) { in get_logical_address()
225 block_address); in get_logical_address()
234 block_address = -2; in get_logical_address()
237 block_address); in get_logical_address()
239 return block_address; in get_logical_address()
247 int ret, block_address, phys_block; in build_logical_block_map() local
267 block_address = get_logical_address(oob_buf); in build_logical_block_map()
270 if (block_address >= 0 && in build_logical_block_map()
271 block_address < MAX_LOGIC_BLK_PER_ZONE) { in build_logical_block_map()
275 block_address += zone_index * MAX_LOGIC_BLK_PER_ZONE; in build_logical_block_map()
276 ssfdc->logic_block_map[block_address] = in build_logical_block_map()
281 phys_block, block_address, zone_index); in build_logical_block_map()
373 int sectors_per_block, offset, block_address; in ssfdcr_readsect() local
377 block_address = (int)(logic_sect_no / sectors_per_block); in ssfdcr_readsect()
381 block_address); in ssfdcr_readsect()
383 if (block_address >= ssfdc->map_len) in ssfdcr_readsect()
386 block_address = ssfdc->logic_block_map[block_address]; in ssfdcr_readsect()
389 block_address); in ssfdcr_readsect()
391 if (block_address < 0xffff) { in ssfdcr_readsect()
394 sect_no = (unsigned long)block_address * sectors_per_block + in ssfdcr_readsect()