Lines Matching refs:dif_storep
627 static struct sd_dif_tuple *dif_storep; /* protection info */ variable
681 return dif_storep + sector; in dif_store()
2480 const void *dif_store_end = dif_storep + sdebug_store_sectors; in dif_copy_prot()
2484 resid = sectors * sizeof(*dif_storep); in dif_copy_prot()
2507 memcpy(paddr + len - rest, dif_storep, rest); in dif_copy_prot()
2509 memcpy(dif_storep, paddr + len - rest, rest); in dif_copy_prot()
2512 sector += len / sizeof(*dif_storep); in dif_copy_prot()
2856 if (dif_storep) { in unmap_region()
2857 memset(dif_storep + lba, 0xff, in unmap_region()
2858 sizeof(*dif_storep) * in unmap_region()
4882 dif_storep = vmalloc(dif_size); in scsi_debug_init()
4885 dif_storep); in scsi_debug_init()
4887 if (dif_storep == NULL) { in scsi_debug_init()
4893 memset(dif_storep, 0xff, dif_size); in scsi_debug_init()
4974 if (dif_storep) in scsi_debug_init()
4975 vfree(dif_storep); in scsi_debug_init()
4993 if (dif_storep) in scsi_debug_exit()
4994 vfree(dif_storep); in scsi_debug_exit()