Lines Matching refs:sdebug_store_sectors

568 static unsigned int sdebug_store_sectors;  variable
675 lba = do_div(lba, sdebug_store_sectors); in fake_store()
682 sector = do_div(sector, sdebug_store_sectors); in dif_store()
1211 if (sdebug_store_sectors > 0x400) { in inquiry_evpd_b0()
1212 arr[4] = (sdebug_store_sectors >> 24) & 0xff; in inquiry_evpd_b0()
1213 arr[5] = (sdebug_store_sectors >> 16) & 0xff; in inquiry_evpd_b0()
1214 arr[6] = (sdebug_store_sectors >> 8) & 0xff; in inquiry_evpd_b0()
1215 arr[7] = sdebug_store_sectors & 0xff; in inquiry_evpd_b0()
1511 return sdebug_store_sectors; in get_sdebug_capacity()
2352 if (num > sdebug_store_sectors) { in check_device_access_params()
2382 block = do_div(lba, sdebug_store_sectors); in do_device_access()
2383 if (block + num > sdebug_store_sectors) in do_device_access()
2384 rest = block + num - sdebug_store_sectors; in do_device_access()
2409 u32 store_blks = sdebug_store_sectors; in comp_write_worker()
2477 const void *dif_store_end = dif_storep + sdebug_store_sectors; in dif_copy_prot()
2619 if (num > sdebug_store_sectors) { in resp_read_dt0()
2816 end = min_t(sector_t, sdebug_store_sectors, map_index_to_lba(next)); in map_state()
2932 if (num > sdebug_store_sectors) { in resp_write_dt0()
3172 if (num > sdebug_store_sectors) { in resp_comp_write()
3902 num_sectors = (int)sdebug_store_sectors; in sdebug_build_parts()
4659 sdebug_store_sectors); in map_show()
4844 sdebug_store_sectors = sz / scsi_debug_sector_size; in scsi_debug_init()
4878 dif_size = sdebug_store_sectors * sizeof(struct sd_dif_tuple); in scsi_debug_init()
4910 map_size = lba_to_map_index(sdebug_store_sectors - 1) + 1; in scsi_debug_init()