Searched refs:sdkp (Results 1 – 6 of 6) sorted by relevance
/linux-6.1.9/drivers/scsi/ |
D | sd_zbc.c | 73 static int sd_zbc_parse_report(struct scsi_disk *sdkp, const u8 buf[64], in sd_zbc_parse_report() argument 76 struct scsi_device *sdp = sdkp->device; in sd_zbc_parse_report() 95 if (sdkp->zone_starting_lba_gran) { in sd_zbc_parse_report() 96 gran = logical_to_sectors(sdp, sdkp->zone_starting_lba_gran); in sd_zbc_parse_report() 98 sd_printk(KERN_ERR, sdkp, in sd_zbc_parse_report() 121 if (sdkp->rev_wp_offset) in sd_zbc_parse_report() 122 sdkp->rev_wp_offset[idx] = sd_zbc_get_zone_wp_offset(&zone); in sd_zbc_parse_report() 141 static int sd_zbc_do_report_zones(struct scsi_disk *sdkp, unsigned char *buf, in sd_zbc_do_report_zones() argument 145 struct scsi_device *sdp = sdkp->device; in sd_zbc_do_report_zones() 164 sd_printk(KERN_ERR, sdkp, in sd_zbc_do_report_zones() [all …]
|
D | sd.c | 119 static void sd_read_capacity(struct scsi_disk *sdkp, unsigned char *buffer); 133 static void sd_set_flush_flag(struct scsi_disk *sdkp) in sd_set_flush_flag() argument 137 if (sdkp->WCE) { in sd_set_flush_flag() 139 if (sdkp->DPOFUA) in sd_set_flush_flag() 143 blk_queue_write_cache(sdkp->disk->queue, wc, fua); in sd_set_flush_flag() 151 struct scsi_disk *sdkp = to_scsi_disk(dev); in cache_type_store() local 152 struct scsi_device *sdp = sdkp->device; in cache_type_store() 168 sdkp->cache_override = 1; in cache_type_store() 170 sdkp->cache_override = 0; in cache_type_store() 178 wce = (ct & 0x02) && !sdkp->write_prot ? 1 : 0; in cache_type_store() [all …]
|
D | sd_dif.c | 27 void sd_dif_config_host(struct scsi_disk *sdkp) in sd_dif_config_host() argument 29 struct scsi_device *sdp = sdkp->device; in sd_dif_config_host() 30 struct gendisk *disk = sdkp->disk; in sd_dif_config_host() 31 u8 type = sdkp->protection_type; in sd_dif_config_host() 48 if (scsi_host_get_guard(sdkp->device->host) & SHOST_DIX_GUARD_IP) { in sd_dif_config_host() 66 if (!sdkp->ATO) in sd_dif_config_host() 75 sd_printk(KERN_NOTICE, sdkp, in sd_dif_config_host()
|
D | sd.h | 237 static inline int sd_is_zoned(struct scsi_disk *sdkp) in sd_is_zoned() argument 239 return sdkp->zoned == 1 || sdkp->device->type == TYPE_ZBC; in sd_is_zoned() 244 void sd_zbc_free_zone_info(struct scsi_disk *sdkp); 245 int sd_zbc_read_zones(struct scsi_disk *sdkp, u8 buf[SD_BUF_SIZE]); 246 int sd_zbc_revalidate_zones(struct scsi_disk *sdkp); 259 static inline void sd_zbc_free_zone_info(struct scsi_disk *sdkp) {} in sd_zbc_free_zone_info() argument 261 static inline int sd_zbc_read_zones(struct scsi_disk *sdkp, u8 buf[SD_BUF_SIZE]) in sd_zbc_read_zones() argument 266 static inline int sd_zbc_revalidate_zones(struct scsi_disk *sdkp) in sd_zbc_revalidate_zones() argument 295 void sd_print_sense_hdr(struct scsi_disk *sdkp, struct scsi_sense_hdr *sshdr); 296 void sd_print_result(const struct scsi_disk *sdkp, const char *msg, int result);
|
/linux-6.1.9/Documentation/block/ |
D | writeback_cache_control.rst | 74 blk_queue_write_cache(sdkp->disk->queue, true, false); 82 blk_queue_write_cache(sdkp->disk->queue, true, true);
|
/linux-6.1.9/drivers/usb/storage/ |
D | transport.c | 527 struct scsi_disk *sdkp; in last_sector_hacks() local 557 sdkp = scsi_disk(disk); in last_sector_hacks() 558 if (!sdkp) in last_sector_hacks() 560 if (sector + 1 != sdkp->capacity) in last_sector_hacks()
|