Lines Matching defs:host
5 * Simulate a host adapter with 2 disks attached. Do a lot of checking
111 /* With these defaults, this driver will make 1 host with 1 target
317 int si_idx; /* sdeb_store_info (per host) xarray index */
323 /* There is an xarray of pointers to this struct's objects, one per host */
751 static int sdebug_host_max_queue; /* per host */
761 static int sdebug_num_tgts = DEF_NUM_TGTS; /* targets per host */
795 /* Following enum: 0: no zbc, def; 1: host aware; 2: host managed */
835 static bool sdeb_zbc_in_use; /* true for host-aware and host-managed disks */
1892 * total disk capacity, set RC BASIS = 1 for host-managed ZBC devices.
2895 /* For host-managed, reads cannot cross zone types boundaries */
4287 * "cd /sys/class/scsi_host/host<n> ; echo '- - 49409' > scan"
4288 * where <n> is a host number. If there are multiple targets in a host then
5110 sdbg_host = shost_to_sdebug_host(sdev->host);
5143 sdp->host->host_no, sdp->channel, sdp->id, sdp->lun);
5154 sdp->host->host_no, sdp->channel, sdp->id, sdp->lun);
5155 if (sdp->host->max_cmd_len != SDEBUG_MAX_CMD_LEN)
5156 sdp->host->max_cmd_len = SDEBUG_MAX_CMD_LEN;
5176 sdp->host->host_no, sdp->channel, sdp->id, sdp->lun);
5303 struct Scsi_Host *shost = sdp->host;
5329 struct sdebug_host_info *sdbg_host = shost_to_sdebug_host(sdp->host);
5354 struct sdebug_host_info *sdbg_host = shost_to_sdebug_host(sdp->host);
5370 "%s: %d device(s) found in host\n", __func__, k);
5781 MODULE_PARM_DESC(add_host, "add n hosts, in sysfs if negative remove host(s) (def=1)");
5782 MODULE_PARM_DESC(ato, "application tag ownership: 0=disk 1=host (def=1)");
5795 "host max # of queued cmds (0 to max(def) [max_queue fixed equal for !0])");
5816 MODULE_PARM_DESC(num_tgts, "number of targets per host to simulate(def=1)");
5842 MODULE_PARM_DESC(zbc, "'none' [0]; 'aware' [1]; 'managed' [2] (def=0). Can have 'host-' prefix");
5867 static int scsi_debug_write_info(struct Scsi_Host *host, char *buffer,
5915 * same for each scsi_debug host (if more than one). Some of the counters
5917 static int scsi_debug_show_info(struct seq_file *m, struct Scsi_Host *host)
5933 seq_printf(m, "RESETs: device=%d, target=%d, bus=%d, host=%d\n",
5956 blk_mq_tagset_busy_iter(&host->tag_set, sdebug_submit_queue_iter,
5964 seq_printf(m, "this host_no=%d\n", host->host_no);
6713 [BLK_ZONED_HA] = "host-aware",
6714 [BLK_ZONED_HM] = "host-managed",
6906 pr_warn("fixing max submit queue depth to host max queue depth, %d\n",
6911 * check for host managed zoned block device specified with
7032 pr_info("built %d host(s)\n", sdebug_num_hosts);
7734 * following should give the same answer for each host.
7802 pr_info("host protection%s%s%s%s%s%s%s\n",