Lines Matching refs:hpnt
895 struct Scsi_Host *hpnt; in sdebug_max_tgts_luns() local
899 hpnt = sdbg_host->shost; in sdebug_max_tgts_luns()
900 if ((hpnt->this_id >= 0) && in sdebug_max_tgts_luns()
901 (sdebug_num_tgts > hpnt->this_id)) in sdebug_max_tgts_luns()
902 hpnt->max_id = sdebug_num_tgts + 1; in sdebug_max_tgts_luns()
904 hpnt->max_id = sdebug_num_tgts; in sdebug_max_tgts_luns()
906 hpnt->max_lun = SCSI_W_LUN_REPORT_LUNS + 1; in sdebug_max_tgts_luns()
7446 struct Scsi_Host *hpnt; in sdebug_driver_probe() local
7455 hpnt = scsi_host_alloc(&sdebug_driver_template, sizeof(sdbg_host)); in sdebug_driver_probe()
7456 if (NULL == hpnt) { in sdebug_driver_probe()
7470 hpnt->nr_hw_queues = submit_queues; in sdebug_driver_probe()
7472 hpnt->host_tagset = 1; in sdebug_driver_probe()
7474 sdbg_host->shost = hpnt; in sdebug_driver_probe()
7475 *((struct sdebug_host_info **)hpnt->hostdata) = sdbg_host; in sdebug_driver_probe()
7476 if ((hpnt->this_id >= 0) && (sdebug_num_tgts > hpnt->this_id)) in sdebug_driver_probe()
7477 hpnt->max_id = sdebug_num_tgts + 1; in sdebug_driver_probe()
7479 hpnt->max_id = sdebug_num_tgts; in sdebug_driver_probe()
7481 hpnt->max_lun = SCSI_W_LUN_REPORT_LUNS + 1; in sdebug_driver_probe()
7511 scsi_host_set_prot(hpnt, hprot); in sdebug_driver_probe()
7524 scsi_host_set_guard(hpnt, SHOST_DIX_GUARD_IP); in sdebug_driver_probe()
7526 scsi_host_set_guard(hpnt, SHOST_DIX_GUARD_CRC); in sdebug_driver_probe()
7532 error = scsi_add_host(hpnt, &sdbg_host->dev); in sdebug_driver_probe()
7536 scsi_host_put(hpnt); in sdebug_driver_probe()
7538 scsi_scan_host(hpnt); in sdebug_driver_probe()