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()
5776 struct Scsi_Host *hpnt; in sdebug_driver_probe() local
5785 hpnt = scsi_host_alloc(&sdebug_driver_template, sizeof(sdbg_host)); in sdebug_driver_probe()
5786 if (NULL == hpnt) { in sdebug_driver_probe()
5798 hpnt->nr_hw_queues = submit_queues; in sdebug_driver_probe()
5800 sdbg_host->shost = hpnt; in sdebug_driver_probe()
5801 *((struct sdebug_host_info **)hpnt->hostdata) = sdbg_host; in sdebug_driver_probe()
5802 if ((hpnt->this_id >= 0) && (sdebug_num_tgts > hpnt->this_id)) in sdebug_driver_probe()
5803 hpnt->max_id = sdebug_num_tgts + 1; in sdebug_driver_probe()
5805 hpnt->max_id = sdebug_num_tgts; in sdebug_driver_probe()
5807 hpnt->max_lun = SCSI_W_LUN_REPORT_LUNS + 1; in sdebug_driver_probe()
5837 scsi_host_set_prot(hpnt, hprot); in sdebug_driver_probe()
5850 scsi_host_set_guard(hpnt, SHOST_DIX_GUARD_IP); in sdebug_driver_probe()
5852 scsi_host_set_guard(hpnt, SHOST_DIX_GUARD_CRC); in sdebug_driver_probe()
5858 error = scsi_add_host(hpnt, &sdbg_host->dev); in sdebug_driver_probe()
5862 scsi_host_put(hpnt); in sdebug_driver_probe()
5864 scsi_scan_host(hpnt); in sdebug_driver_probe()