Lines Matching refs:hpnt
747 struct Scsi_Host *hpnt; in sdebug_max_tgts_luns() local
751 hpnt = sdbg_host->shost; in sdebug_max_tgts_luns()
752 if ((hpnt->this_id >= 0) && in sdebug_max_tgts_luns()
753 (sdebug_num_tgts > hpnt->this_id)) in sdebug_max_tgts_luns()
754 hpnt->max_id = sdebug_num_tgts + 1; in sdebug_max_tgts_luns()
756 hpnt->max_id = sdebug_num_tgts; in sdebug_max_tgts_luns()
758 hpnt->max_lun = SCSI_W_LUN_REPORT_LUNS + 1; in sdebug_max_tgts_luns()
5781 struct Scsi_Host *hpnt; in sdebug_driver_probe() local
5790 hpnt = scsi_host_alloc(&sdebug_driver_template, sizeof(sdbg_host)); in sdebug_driver_probe()
5791 if (NULL == hpnt) { in sdebug_driver_probe()
5803 hpnt->nr_hw_queues = submit_queues; in sdebug_driver_probe()
5805 sdbg_host->shost = hpnt; in sdebug_driver_probe()
5806 *((struct sdebug_host_info **)hpnt->hostdata) = sdbg_host; in sdebug_driver_probe()
5807 if ((hpnt->this_id >= 0) && (sdebug_num_tgts > hpnt->this_id)) in sdebug_driver_probe()
5808 hpnt->max_id = sdebug_num_tgts + 1; in sdebug_driver_probe()
5810 hpnt->max_id = sdebug_num_tgts; in sdebug_driver_probe()
5812 hpnt->max_lun = SCSI_W_LUN_REPORT_LUNS + 1; in sdebug_driver_probe()
5842 scsi_host_set_prot(hpnt, hprot); in sdebug_driver_probe()
5855 scsi_host_set_guard(hpnt, SHOST_DIX_GUARD_IP); in sdebug_driver_probe()
5857 scsi_host_set_guard(hpnt, SHOST_DIX_GUARD_CRC); in sdebug_driver_probe()
5863 error = scsi_add_host(hpnt, &sdbg_host->dev); in sdebug_driver_probe()
5867 scsi_host_put(hpnt); in sdebug_driver_probe()
5869 scsi_scan_host(hpnt); in sdebug_driver_probe()