Lines Matching refs:host
180 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_scsi_done()
195 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_queuecommand_lck()
367 unsigned int host_id = SCpnt->device->host->this_id; in nsphw_start_selection()
368 unsigned int base = SCpnt->device->host->io_port; in nsphw_start_selection()
370 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsphw_start_selection()
450 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_analyze_sdtr()
506 unsigned int base = SCpnt->device->host->io_port; in nsp_start_timer()
507 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_start_timer()
520 unsigned int base = SCpnt->device->host->io_port; in nsp_negate_signal()
549 unsigned int base = SCpnt->device->host->io_port; in nsp_expect_signal()
582 unsigned int base = SCpnt->device->host->io_port; in nsp_xfer()
583 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_xfer()
622 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_dataphase_bypass()
654 unsigned int base = SCpnt->device->host->io_port; in nsp_reselected()
655 unsigned int host_id = SCpnt->device->host->this_id; in nsp_reselected()
693 unsigned int base = SCpnt->device->host->io_port; in nsp_fifo_count()
720 unsigned int base = SCpnt->device->host->io_port; in nsp_pio_read()
721 unsigned long mmio_base = SCpnt->device->host->base; in nsp_pio_read()
722 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_pio_read()
819 unsigned int base = SCpnt->device->host->io_port; in nsp_pio_write()
820 unsigned long mmio_base = SCpnt->device->host->base; in nsp_pio_write()
821 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_pio_write()
916 unsigned int base = SCpnt->device->host->io_port; in nsp_nexus()
919 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_nexus()
971 ((scsi_info_t *)dev_id)->host != NULL ) { in nspintr()
974 data = (nsp_hw_data *)info->host->hostdata; in nspintr()
1316 struct Scsi_Host *host; /* registered host structure */ in nsp_detect() local
1320 host = scsi_host_alloc(&nsp_driver_template, sizeof(nsp_hw_data)); in nsp_detect()
1321 if (host == NULL) { in nsp_detect()
1326 memcpy(host->hostdata, data_b, sizeof(nsp_hw_data)); in nsp_detect()
1327 data = (nsp_hw_data *)host->hostdata; in nsp_detect()
1328 data->ScsiInfo->host = host; in nsp_detect()
1333 …nsp_dbg(NSP_DEBUG_INIT, "irq=%d,%d", data_b->IrqNumber, ((nsp_hw_data *)host->hostdata)->IrqNumber… in nsp_detect()
1335 host->unique_id = data->BaseAddress; in nsp_detect()
1336 host->io_port = data->BaseAddress; in nsp_detect()
1337 host->n_io_port = data->NumAddress; in nsp_detect()
1338 host->irq = data->IrqNumber; in nsp_detect()
1339 host->base = data->MmioAddress; in nsp_detect()
1346 host->io_port, host->io_port + host->n_io_port - 1, in nsp_detect()
1347 host->base, in nsp_detect()
1348 host->irq); in nsp_detect()
1354 return host; /* detect done. */ in nsp_detect()
1367 static int nsp_show_info(struct seq_file *m, struct Scsi_Host *host) in nsp_show_info() argument
1375 hostno = host->host_no; in nsp_show_info()
1376 data = (nsp_hw_data *)host->hostdata; in nsp_show_info()
1381 seq_printf(m, "IRQ: %d\n", host->irq); in nsp_show_info()
1382 …seq_printf(m, "IO: 0x%lx-0x%lx\n", host->io_port, host->io_port + host->n_io_po… in nsp_show_info()
1383 …seq_printf(m, "MMIO(virtual address): 0x%lx-0x%lx\n", host->base, host->base + data->MmioLength - … in nsp_show_info()
1384 seq_printf(m, "sg_tablesize: %d\n", host->sg_tablesize); in nsp_show_info()
1413 if (id == host->this_id) { in nsp_show_info()
1482 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_eh_bus_reset()
1491 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_eh_host_reset()
1582 struct Scsi_Host *host; in nsp_cs_config() local
1625 host = nsp_detect(&nsp_driver_template); in nsp_cs_config()
1627 if (host == NULL) { in nsp_cs_config()
1633 ret = scsi_add_host (host, NULL); in nsp_cs_config()
1637 scsi_scan_host(host); in nsp_cs_config()
1639 info->host = host; in nsp_cs_config()
1656 if (info->host == NULL) { in nsp_cs_release()
1659 data = (nsp_hw_data *)info->host->hostdata; in nsp_cs_release()
1665 if (info->host != NULL) { in nsp_cs_release()
1666 scsi_remove_host(info->host); in nsp_cs_release()
1676 if (info->host != NULL) { in nsp_cs_release()
1677 scsi_host_put(info->host); in nsp_cs_release()
1688 if (info->host != NULL) { in nsp_cs_suspend()
1691 data = (nsp_hw_data *)info->host->hostdata; in nsp_cs_suspend()
1710 if (info->host != NULL) { in nsp_cs_resume()
1713 data = (nsp_hw_data *)info->host->hostdata; in nsp_cs_resume()