Lines Matching refs:fake_storep

689 static unsigned char *fake_storep;	/* ramdisk storage */  variable
742 return fake_storep + lba * sdebug_sector_size; in fake_store()
2502 fake_storep + (block * sdebug_sector_size), in do_device_access()
2509 fake_storep, rest * sdebug_sector_size, in do_device_access()
2531 res = !memcmp(fake_storep + (block * lb_size), arr, in comp_write_worker()
2536 res = memcmp(fake_storep, arr + ((num - rest) * lb_size), in comp_write_worker()
2541 memcpy(fake_storep + (block * lb_size), arr, (num - rest) * lb_size); in comp_write_worker()
2543 memcpy(fake_storep, arr + ((num - rest) * lb_size), in comp_write_worker()
2957 memset(fake_storep + in unmap_region()
3283 memset(fake_storep + lba_off, 0, sdebug_sector_size); in resp_write_same()
3286 ret = fetch_to_dev_buffer(scp, fake_storep + lba_off, in resp_write_same()
3300 memcpy(fake_storep + ((lba + i) * sdebug_sector_size), in resp_write_same()
3301 fake_storep + lba_off, in resp_write_same()
3466 fake_storep_hold = fake_storep; in resp_comp_write()
3467 fake_storep = arr; in resp_comp_write()
3469 fake_storep = fake_storep_hold; in resp_comp_write()
4861 if ((0 == n) && (NULL == fake_storep)) { in fake_rw_store()
4866 fake_storep = vzalloc(sz); in fake_rw_store()
4867 if (NULL == fake_storep) { in fake_rw_store()
5412 fake_storep = vzalloc(sz); in scsi_debug_init()
5413 if (NULL == fake_storep) { in scsi_debug_init()
5419 sdebug_build_parts(fake_storep, sz); in scsi_debug_init()
5516 vfree(fake_storep); in scsi_debug_init()
5536 vfree(fake_storep); in scsi_debug_exit()