Lines Matching refs:sdebug_store_sectors
677 static unsigned int sdebug_store_sectors; variable
740 lba = do_div(lba, sdebug_store_sectors); in fake_store()
747 sector = sector_div(sector, sdebug_store_sectors); in dif_store()
1330 if (sdebug_store_sectors > 0x400) in inquiry_vpd_b0()
1331 put_unaligned_be32(sdebug_store_sectors, arr + 4); in inquiry_vpd_b0()
1639 return sdebug_store_sectors; in get_sdebug_capacity()
2466 if (num > sdebug_store_sectors) { in check_device_access_params()
2497 block = do_div(lba, sdebug_store_sectors); in do_device_access()
2498 if (block + num > sdebug_store_sectors) in do_device_access()
2499 rest = block + num - sdebug_store_sectors; in do_device_access()
2524 u32 store_blks = sdebug_store_sectors; in comp_write_worker()
2592 const void *dif_store_end = dif_storep + sdebug_store_sectors; in dif_copy_prot()
2737 if (unlikely(num > sdebug_store_sectors)) { in resp_read_dt0()
2926 end = min_t(sector_t, sdebug_store_sectors, map_index_to_lba(next)); in map_state()
3041 if (unlikely(num > sdebug_store_sectors)) { in resp_write_dt0()
3449 if (num > sdebug_store_sectors) { in resp_comp_write()
4250 num_sectors = (int)sdebug_store_sectors; in sdebug_build_parts()
5180 sdebug_store_sectors); in map_show()
5391 sdebug_store_sectors = sz / sdebug_sector_size; in scsi_debug_init()
5425 dif_size = sdebug_store_sectors * sizeof(struct t10_pi_tuple); in scsi_debug_init()
5458 map_size = lba_to_map_index(sdebug_store_sectors - 1) + 1; in scsi_debug_init()