Lines Matching refs:fake_storep

626 static unsigned char * fake_storep;	/* ramdisk storage */  variable
674 return fake_storep + lba * scsi_debug_sector_size; in fake_store()
2389 fake_storep + (block * scsi_debug_sector_size), in do_device_access()
2396 fake_storep, rest * scsi_debug_sector_size, in do_device_access()
2418 res = !memcmp(fake_storep + (block * lb_size), arr, in comp_write_worker()
2423 res = memcmp(fake_storep, arr + ((num - rest) * lb_size), in comp_write_worker()
2428 memcpy(fake_storep + (block * lb_size), arr, (num - rest) * lb_size); in comp_write_worker()
2430 memcpy(fake_storep, arr + ((num - rest) * lb_size), in comp_write_worker()
2851 memset(fake_storep + in unmap_region()
3006 memset(fake_storep + (lba * scsi_debug_sector_size), 0, in resp_write_same()
3010 ret = fetch_to_dev_buffer(scp, fake_storep + in resp_write_same()
3026 memcpy(fake_storep + ((lba + i) * scsi_debug_sector_size), in resp_write_same()
3027 fake_storep + (lba * scsi_debug_sector_size), in resp_write_same()
3192 fake_storep_hold = fake_storep; in resp_comp_write()
3193 fake_storep = arr; in resp_comp_write()
3195 fake_storep = fake_storep_hold; in resp_comp_write()
4383 if ((0 == n) && (NULL == fake_storep)) { in fake_rw_store()
4388 fake_storep = vmalloc(sz); in fake_rw_store()
4389 if (NULL == fake_storep) { in fake_rw_store()
4394 memset(fake_storep, 0, sz); in fake_rw_store()
4868 fake_storep = vmalloc(sz); in scsi_debug_init()
4869 if (NULL == fake_storep) { in scsi_debug_init()
4873 memset(fake_storep, 0, sz); in scsi_debug_init()
4875 sdebug_build_parts(fake_storep, sz); in scsi_debug_init()
4976 vfree(fake_storep); in scsi_debug_init()
4996 vfree(fake_storep); in scsi_debug_exit()