Lines Matching refs:fake_storep
629 static unsigned char * fake_storep; /* ramdisk storage */ variable
677 return fake_storep + lba * scsi_debug_sector_size; in fake_store()
2387 fake_storep + (block * scsi_debug_sector_size), in do_device_access()
2394 fake_storep, rest * scsi_debug_sector_size, in do_device_access()
2416 res = !memcmp(fake_storep + (block * lb_size), arr, in comp_write_worker()
2421 res = memcmp(fake_storep, arr + ((num - rest) * lb_size), in comp_write_worker()
2426 memcpy(fake_storep + (block * lb_size), arr, (num - rest) * lb_size); in comp_write_worker()
2428 memcpy(fake_storep, arr + ((num - rest) * lb_size), in comp_write_worker()
2848 memset(fake_storep + in unmap_region()
3003 memset(fake_storep + (lba * scsi_debug_sector_size), 0, in resp_write_same()
3007 ret = fetch_to_dev_buffer(scp, fake_storep + in resp_write_same()
3023 memcpy(fake_storep + ((lba + i) * scsi_debug_sector_size), in resp_write_same()
3024 fake_storep + (lba * scsi_debug_sector_size), in resp_write_same()
3189 fake_storep_hold = fake_storep; in resp_comp_write()
3190 fake_storep = arr; in resp_comp_write()
3192 fake_storep = fake_storep_hold; in resp_comp_write()
4384 if ((0 == n) && (NULL == fake_storep)) { in fake_rw_store()
4389 fake_storep = vmalloc(sz); in fake_rw_store()
4390 if (NULL == fake_storep) { in fake_rw_store()
4394 memset(fake_storep, 0, sz); in fake_rw_store()
4865 fake_storep = vmalloc(sz); in scsi_debug_init()
4866 if (NULL == fake_storep) { in scsi_debug_init()
4870 memset(fake_storep, 0, sz); in scsi_debug_init()
4872 sdebug_build_parts(fake_storep, sz); in scsi_debug_init()
4967 vfree(fake_storep); in scsi_debug_init()
4985 vfree(fake_storep); in scsi_debug_exit()