Lines Matching defs:hpnt
900 struct Scsi_Host *hpnt;
904 hpnt = sdbg_host->shost;
905 if ((hpnt->this_id >= 0) &&
906 (sdebug_num_tgts > hpnt->this_id))
907 hpnt->max_id = sdebug_num_tgts + 1;
909 hpnt->max_id = sdebug_num_tgts;
911 hpnt->max_lun = SCSI_W_LUN_REPORT_LUNS + 1;
7711 struct Scsi_Host *hpnt;
7721 hpnt = scsi_host_alloc(&sdebug_driver_template, 0);
7722 if (NULL == hpnt) {
7736 hpnt->nr_hw_queues = submit_queues;
7738 hpnt->host_tagset = 1;
7741 if (hpnt->nr_hw_queues == 1 || (poll_queues < 1)) {
7743 my_name, poll_queues, hpnt->nr_hw_queues);
7761 hpnt->nr_maps = 3;
7763 sdbg_host->shost = hpnt;
7764 if ((hpnt->this_id >= 0) && (sdebug_num_tgts > hpnt->this_id))
7765 hpnt->max_id = sdebug_num_tgts + 1;
7767 hpnt->max_id = sdebug_num_tgts;
7769 hpnt->max_lun = SCSI_W_LUN_REPORT_LUNS + 1;
7799 scsi_host_set_prot(hpnt, hprot);
7812 scsi_host_set_guard(hpnt, SHOST_DIX_GUARD_IP);
7814 scsi_host_set_guard(hpnt, SHOST_DIX_GUARD_CRC);
7820 error = scsi_add_host(hpnt, &sdbg_host->dev);
7824 scsi_host_put(hpnt);
7826 scsi_scan_host(hpnt);