Lines Matching refs:hpnt
690 struct Scsi_Host *hpnt; in sdebug_max_tgts_luns() local
694 hpnt = sdbg_host->shost; in sdebug_max_tgts_luns()
695 if ((hpnt->this_id >= 0) && in sdebug_max_tgts_luns()
696 (scsi_debug_num_tgts > hpnt->this_id)) in sdebug_max_tgts_luns()
697 hpnt->max_id = scsi_debug_num_tgts + 1; in sdebug_max_tgts_luns()
699 hpnt->max_id = scsi_debug_num_tgts; in sdebug_max_tgts_luns()
701 hpnt->max_lun = SAM2_WLUN_REPORT_LUNS; in sdebug_max_tgts_luns()
5335 struct Scsi_Host *hpnt; in sdebug_driver_probe() local
5343 hpnt = scsi_host_alloc(&sdebug_driver_template, sizeof(sdbg_host)); in sdebug_driver_probe()
5344 if (NULL == hpnt) { in sdebug_driver_probe()
5350 sdbg_host->shost = hpnt; in sdebug_driver_probe()
5351 *((struct sdebug_host_info **)hpnt->hostdata) = sdbg_host; in sdebug_driver_probe()
5352 if ((hpnt->this_id >= 0) && (scsi_debug_num_tgts > hpnt->this_id)) in sdebug_driver_probe()
5353 hpnt->max_id = scsi_debug_num_tgts + 1; in sdebug_driver_probe()
5355 hpnt->max_id = scsi_debug_num_tgts; in sdebug_driver_probe()
5356 hpnt->max_lun = SAM2_WLUN_REPORT_LUNS; /* = scsi_debug_max_luns; */ in sdebug_driver_probe()
5386 scsi_host_set_prot(hpnt, host_prot); in sdebug_driver_probe()
5398 scsi_host_set_guard(hpnt, SHOST_DIX_GUARD_IP); in sdebug_driver_probe()
5400 scsi_host_set_guard(hpnt, SHOST_DIX_GUARD_CRC); in sdebug_driver_probe()
5414 error = scsi_add_host(hpnt, &sdbg_host->dev); in sdebug_driver_probe()
5418 scsi_host_put(hpnt); in sdebug_driver_probe()
5420 scsi_scan_host(hpnt); in sdebug_driver_probe()