Searched refs:sdkp (Results 1 – 4 of 4) sorted by relevance
117 static void sd_read_capacity(struct scsi_disk *sdkp, unsigned char *buffer);138 static void sd_set_flush_flag(struct scsi_disk *sdkp) in sd_set_flush_flag() argument142 if (sdkp->WCE) { in sd_set_flush_flag()144 if (sdkp->DPOFUA) in sd_set_flush_flag()148 blk_queue_flush(sdkp->disk->queue, flush); in sd_set_flush_flag()156 struct scsi_disk *sdkp = to_scsi_disk(dev); in cache_type_store() local157 struct scsi_device *sdp = sdkp->device; in cache_type_store()173 sdkp->cache_override = 1; in cache_type_store()175 sdkp->cache_override = 0; in cache_type_store()189 wce = (ct & 0x02) && !sdkp->write_prot ? 1 : 0; in cache_type_store()[all …]
41 void sd_dif_config_host(struct scsi_disk *sdkp) in sd_dif_config_host() argument43 struct scsi_device *sdp = sdkp->device; in sd_dif_config_host()44 struct gendisk *disk = sdkp->disk; in sd_dif_config_host()45 u8 type = sdkp->protection_type; in sd_dif_config_host()62 if (scsi_host_get_guard(sdkp->device->host) & SHOST_DIX_GUARD_IP) { in sd_dif_config_host()76 sd_printk(KERN_NOTICE, sdkp, in sd_dif_config_host()82 if (!sdkp->ATO) in sd_dif_config_host()90 sd_printk(KERN_NOTICE, sdkp, "DIF application tag size %u\n", in sd_dif_config_host()118 struct scsi_disk *sdkp; in sd_dif_prepare() local122 sdkp = scsi_disk(scmd->request->rq_disk); in sd_dif_prepare()[all …]
113 if ((sdkp)->first_scan) \
525 struct scsi_disk *sdkp; in last_sector_hacks() local554 sdkp = scsi_disk(disk); in last_sector_hacks()555 if (!sdkp) in last_sector_hacks()557 if (sector + 1 != sdkp->capacity) in last_sector_hacks()