Lines Matching defs:sht
222 const struct scsi_host_template *sht = shost->hostt;
226 sht->info ? sht->info(shost) : sht->name);
381 * @sht: pointer to scsi host template
392 struct Scsi_Host *scsi_host_alloc(const struct scsi_host_template *sht, int privsize)
436 shost->hostt = sht;
437 shost->this_id = sht->this_id;
438 shost->can_queue = sht->can_queue;
439 shost->sg_tablesize = sht->sg_tablesize;
440 shost->sg_prot_tablesize = sht->sg_prot_tablesize;
441 shost->cmd_per_lun = sht->cmd_per_lun;
442 shost->no_write_same = sht->no_write_same;
443 shost->host_tagset = sht->host_tagset;
444 shost->queuecommand_may_block = sht->queuecommand_may_block;
446 if (shost_eh_deadline == -1 || !sht->eh_host_reset_handler)
456 if (sht->supported_mode == MODE_UNKNOWN)
460 shost->active_mode = sht->supported_mode;
462 if (sht->max_host_blocked)
463 shost->max_host_blocked = sht->max_host_blocked;
471 if (sht->max_sectors)
472 shost->max_sectors = sht->max_sectors;
476 if (sht->max_segment_size)
477 shost->max_segment_size = sht->max_segment_size;
484 if (sht->dma_boundary)
485 shost->dma_boundary = sht->dma_boundary;
489 if (sht->virt_boundary_mask)
490 shost->virt_boundary_mask = sht->virt_boundary_mask;
502 shost->shost_dev.groups = sht->shost_groups;