Home
last modified time | relevance | path

Searched refs:sdkp (Results 1 – 6 of 6) sorted by relevance

/Linux-v6.6/drivers/scsi/
Dsd_zbc.c76 static int sd_zbc_parse_report(struct scsi_disk *sdkp, const u8 buf[64], in sd_zbc_parse_report() argument
79 struct scsi_device *sdp = sdkp->device; in sd_zbc_parse_report()
98 if (sdkp->zone_starting_lba_gran) { in sd_zbc_parse_report()
99 gran = logical_to_sectors(sdp, sdkp->zone_starting_lba_gran); in sd_zbc_parse_report()
101 sd_printk(KERN_ERR, sdkp, in sd_zbc_parse_report()
124 if (sdkp->rev_wp_offset) in sd_zbc_parse_report()
125 sdkp->rev_wp_offset[idx] = sd_zbc_get_zone_wp_offset(&zone); in sd_zbc_parse_report()
144 static int sd_zbc_do_report_zones(struct scsi_disk *sdkp, unsigned char *buf, in sd_zbc_do_report_zones() argument
148 struct scsi_device *sdp = sdkp->device; in sd_zbc_do_report_zones()
169 sd_printk(KERN_ERR, sdkp, in sd_zbc_do_report_zones()
[all …]
Dsd.c108 static void sd_read_capacity(struct scsi_disk *sdkp, unsigned char *buffer);
121 static void sd_set_flush_flag(struct scsi_disk *sdkp) in sd_set_flush_flag() argument
125 if (sdkp->WCE) { in sd_set_flush_flag()
127 if (sdkp->DPOFUA) in sd_set_flush_flag()
131 blk_queue_write_cache(sdkp->disk->queue, wc, fua); in sd_set_flush_flag()
139 struct scsi_disk *sdkp = to_scsi_disk(dev); in cache_type_store() local
140 struct scsi_device *sdp = sdkp->device; in cache_type_store()
156 sdkp->cache_override = 1; in cache_type_store()
158 sdkp->cache_override = 0; in cache_type_store()
166 wce = (ct & 0x02) && !sdkp->write_prot ? 1 : 0; in cache_type_store()
[all …]
Dsd_dif.c27 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()
50 if (scsi_host_get_guard(sdkp->device->host) & SHOST_DIX_GUARD_IP) { in sd_dif_config_host()
68 if (!sdkp->ATO) in sd_dif_config_host()
77 sd_first_printk(KERN_NOTICE, sdkp, in sd_dif_config_host()
Dsd.h238 static inline int sd_is_zoned(struct scsi_disk *sdkp) in sd_is_zoned() argument
240 return sdkp->zoned == 1 || sdkp->device->type == TYPE_ZBC; in sd_is_zoned()
245 void sd_zbc_free_zone_info(struct scsi_disk *sdkp);
246 int sd_zbc_read_zones(struct scsi_disk *sdkp, u8 buf[SD_BUF_SIZE]);
247 int sd_zbc_revalidate_zones(struct scsi_disk *sdkp);
260 static inline void sd_zbc_free_zone_info(struct scsi_disk *sdkp) {} in sd_zbc_free_zone_info() argument
262 static inline int sd_zbc_read_zones(struct scsi_disk *sdkp, u8 buf[SD_BUF_SIZE]) in sd_zbc_read_zones() argument
267 static inline int sd_zbc_revalidate_zones(struct scsi_disk *sdkp) in sd_zbc_revalidate_zones() argument
296 void sd_print_sense_hdr(struct scsi_disk *sdkp, struct scsi_sense_hdr *sshdr);
297 void sd_print_result(const struct scsi_disk *sdkp, const char *msg, int result);
/Linux-v6.6/Documentation/block/
Dwriteback_cache_control.rst74 blk_queue_write_cache(sdkp->disk->queue, true, false);
82 blk_queue_write_cache(sdkp->disk->queue, true, true);
/Linux-v6.6/drivers/usb/storage/
Dtransport.c527 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()