Lines Matching refs:hpnt

907 	struct Scsi_Host *hpnt;  in sdebug_max_tgts_luns()  local
911 hpnt = sdbg_host->shost; in sdebug_max_tgts_luns()
912 if ((hpnt->this_id >= 0) && in sdebug_max_tgts_luns()
913 (sdebug_num_tgts > hpnt->this_id)) in sdebug_max_tgts_luns()
914 hpnt->max_id = sdebug_num_tgts + 1; in sdebug_max_tgts_luns()
916 hpnt->max_id = sdebug_num_tgts; in sdebug_max_tgts_luns()
918 hpnt->max_lun = SCSI_W_LUN_REPORT_LUNS + 1; in sdebug_max_tgts_luns()
7811 struct Scsi_Host *hpnt; in sdebug_driver_probe() local
7821 hpnt = scsi_host_alloc(&sdebug_driver_template, sizeof(sdbg_host)); in sdebug_driver_probe()
7822 if (NULL == hpnt) { in sdebug_driver_probe()
7836 hpnt->nr_hw_queues = submit_queues; in sdebug_driver_probe()
7838 hpnt->host_tagset = 1; in sdebug_driver_probe()
7841 if (hpnt->nr_hw_queues == 1 || (poll_queues < 1)) { in sdebug_driver_probe()
7843 my_name, poll_queues, hpnt->nr_hw_queues); in sdebug_driver_probe()
7861 hpnt->nr_maps = 3; in sdebug_driver_probe()
7863 sdbg_host->shost = hpnt; in sdebug_driver_probe()
7864 *((struct sdebug_host_info **)hpnt->hostdata) = sdbg_host; in sdebug_driver_probe()
7865 if ((hpnt->this_id >= 0) && (sdebug_num_tgts > hpnt->this_id)) in sdebug_driver_probe()
7866 hpnt->max_id = sdebug_num_tgts + 1; in sdebug_driver_probe()
7868 hpnt->max_id = sdebug_num_tgts; in sdebug_driver_probe()
7870 hpnt->max_lun = SCSI_W_LUN_REPORT_LUNS + 1; in sdebug_driver_probe()
7900 scsi_host_set_prot(hpnt, hprot); in sdebug_driver_probe()
7913 scsi_host_set_guard(hpnt, SHOST_DIX_GUARD_IP); in sdebug_driver_probe()
7915 scsi_host_set_guard(hpnt, SHOST_DIX_GUARD_CRC); in sdebug_driver_probe()
7921 error = scsi_add_host(hpnt, &sdbg_host->dev); in sdebug_driver_probe()
7925 scsi_host_put(hpnt); in sdebug_driver_probe()
7927 scsi_scan_host(hpnt); in sdebug_driver_probe()