Lines Matching refs:host

179 	nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata;  in nsp_scsi_done()
194 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_queuecommand_lck()
366 unsigned int host_id = SCpnt->device->host->this_id; in nsphw_start_selection()
367 unsigned int base = SCpnt->device->host->io_port; in nsphw_start_selection()
369 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsphw_start_selection()
449 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_analyze_sdtr()
505 unsigned int base = SCpnt->device->host->io_port; in nsp_start_timer()
506 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_start_timer()
519 unsigned int base = SCpnt->device->host->io_port; in nsp_negate_signal()
548 unsigned int base = SCpnt->device->host->io_port; in nsp_expect_signal()
581 unsigned int base = SCpnt->device->host->io_port; in nsp_xfer()
582 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_xfer()
621 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_dataphase_bypass()
653 unsigned int base = SCpnt->device->host->io_port; in nsp_reselected()
654 unsigned int host_id = SCpnt->device->host->this_id; in nsp_reselected()
692 unsigned int base = SCpnt->device->host->io_port; in nsp_fifo_count()
719 unsigned int base = SCpnt->device->host->io_port; in nsp_pio_read()
720 unsigned long mmio_base = SCpnt->device->host->base; in nsp_pio_read()
721 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_pio_read()
818 unsigned int base = SCpnt->device->host->io_port; in nsp_pio_write()
819 unsigned long mmio_base = SCpnt->device->host->base; in nsp_pio_write()
820 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_pio_write()
915 unsigned int base = SCpnt->device->host->io_port; in nsp_nexus()
918 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_nexus()
970 ((scsi_info_t *)dev_id)->host != NULL ) { in nspintr()
973 data = (nsp_hw_data *)info->host->hostdata; in nspintr()
1315 struct Scsi_Host *host; /* registered host structure */ in nsp_detect() local
1319 host = scsi_host_alloc(&nsp_driver_template, sizeof(nsp_hw_data)); in nsp_detect()
1320 if (host == NULL) { in nsp_detect()
1325 memcpy(host->hostdata, data_b, sizeof(nsp_hw_data)); in nsp_detect()
1326 data = (nsp_hw_data *)host->hostdata; in nsp_detect()
1327 data->ScsiInfo->host = host; in nsp_detect()
1332 …nsp_dbg(NSP_DEBUG_INIT, "irq=%d,%d", data_b->IrqNumber, ((nsp_hw_data *)host->hostdata)->IrqNumber… in nsp_detect()
1334 host->unique_id = data->BaseAddress; in nsp_detect()
1335 host->io_port = data->BaseAddress; in nsp_detect()
1336 host->n_io_port = data->NumAddress; in nsp_detect()
1337 host->irq = data->IrqNumber; in nsp_detect()
1338 host->base = data->MmioAddress; in nsp_detect()
1345 host->io_port, host->io_port + host->n_io_port - 1, in nsp_detect()
1346 host->base, in nsp_detect()
1347 host->irq); in nsp_detect()
1353 return host; /* detect done. */ in nsp_detect()
1366 static int nsp_show_info(struct seq_file *m, struct Scsi_Host *host) in nsp_show_info() argument
1374 hostno = host->host_no; in nsp_show_info()
1375 data = (nsp_hw_data *)host->hostdata; in nsp_show_info()
1380 seq_printf(m, "IRQ: %d\n", host->irq); in nsp_show_info()
1381 …seq_printf(m, "IO: 0x%lx-0x%lx\n", host->io_port, host->io_port + host->n_io_po… in nsp_show_info()
1382 …seq_printf(m, "MMIO(virtual address): 0x%lx-0x%lx\n", host->base, host->base + data->MmioLength - … in nsp_show_info()
1383 seq_printf(m, "sg_tablesize: %d\n", host->sg_tablesize); in nsp_show_info()
1412 if (id == host->this_id) { in nsp_show_info()
1481 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_eh_bus_reset()
1490 nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; in nsp_eh_host_reset()
1581 struct Scsi_Host *host; in nsp_cs_config() local
1624 host = nsp_detect(&nsp_driver_template); in nsp_cs_config()
1626 if (host == NULL) { in nsp_cs_config()
1632 ret = scsi_add_host (host, NULL); in nsp_cs_config()
1636 scsi_scan_host(host); in nsp_cs_config()
1638 info->host = host; in nsp_cs_config()
1655 if (info->host == NULL) { in nsp_cs_release()
1658 data = (nsp_hw_data *)info->host->hostdata; in nsp_cs_release()
1664 if (info->host != NULL) { in nsp_cs_release()
1665 scsi_remove_host(info->host); in nsp_cs_release()
1675 if (info->host != NULL) { in nsp_cs_release()
1676 scsi_host_put(info->host); in nsp_cs_release()
1687 if (info->host != NULL) { in nsp_cs_suspend()
1690 data = (nsp_hw_data *)info->host->hostdata; in nsp_cs_suspend()
1709 if (info->host != NULL) { in nsp_cs_resume()
1712 data = (nsp_hw_data *)info->host->hostdata; in nsp_cs_resume()