Lines Matching refs:sdebug_store_sectors

565 static unsigned int sdebug_store_sectors;  variable
672 lba = do_div(lba, sdebug_store_sectors); in fake_store()
679 sector = do_div(sector, sdebug_store_sectors); in dif_store()
1208 if (sdebug_store_sectors > 0x400) { in inquiry_evpd_b0()
1209 arr[4] = (sdebug_store_sectors >> 24) & 0xff; in inquiry_evpd_b0()
1210 arr[5] = (sdebug_store_sectors >> 16) & 0xff; in inquiry_evpd_b0()
1211 arr[6] = (sdebug_store_sectors >> 8) & 0xff; in inquiry_evpd_b0()
1212 arr[7] = sdebug_store_sectors & 0xff; in inquiry_evpd_b0()
1509 return sdebug_store_sectors; in get_sdebug_capacity()
2350 if (num > sdebug_store_sectors) { in check_device_access_params()
2384 block = do_div(lba, sdebug_store_sectors); in do_device_access()
2385 if (block + num > sdebug_store_sectors) in do_device_access()
2386 rest = block + num - sdebug_store_sectors; in do_device_access()
2411 u32 store_blks = sdebug_store_sectors; in comp_write_worker()
2480 const void *dif_store_end = dif_storep + sdebug_store_sectors; in dif_copy_prot()
2622 if (num > sdebug_store_sectors) { in resp_read_dt0()
2819 end = min_t(sector_t, sdebug_store_sectors, map_index_to_lba(next)); in map_state()
2935 if (num > sdebug_store_sectors) { in resp_write_dt0()
3175 if (num > sdebug_store_sectors) { in resp_comp_write()
3907 num_sectors = (int)sdebug_store_sectors; in sdebug_build_parts()
4659 sdebug_store_sectors); in map_show()
4847 sdebug_store_sectors = sz / scsi_debug_sector_size; in scsi_debug_init()
4881 dif_size = sdebug_store_sectors * sizeof(struct sd_dif_tuple); in scsi_debug_init()
4915 map_size = lba_to_map_index(sdebug_store_sectors - 1) + 1; in scsi_debug_init()