hostdata 82 arch/powerpc/platforms/powermac/low_i2c.c void *hostdata; hostdata 385 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_host_kw *host = bus->hostdata; hostdata 392 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_host_kw *host = bus->hostdata; hostdata 399 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_host_kw *host = bus->hostdata; hostdata 578 arch/powerpc/platforms/powermac/low_i2c.c bus->hostdata = host; hostdata 675 arch/powerpc/platforms/powermac/low_i2c.c struct adb_request *req = bus->hostdata; hostdata 811 arch/powerpc/platforms/powermac/low_i2c.c bus->hostdata = bus + 1; hostdata 841 arch/powerpc/platforms/powermac/low_i2c.c struct smu_i2c_cmd *cmd = bus->hostdata; hostdata 934 arch/powerpc/platforms/powermac/low_i2c.c bus->hostdata = bus + 1; hostdata 4539 drivers/ata/libata-scsi.c *(struct ata_port **)&shost->hostdata[0] = ap; hostdata 207 drivers/bus/hisi_lpc.c static u32 hisi_lpc_comm_in(void *hostdata, unsigned long pio, size_t dwidth) hostdata 209 drivers/bus/hisi_lpc.c struct hisi_lpc_dev *lpcdev = hostdata; hostdata 240 drivers/bus/hisi_lpc.c static void hisi_lpc_comm_out(void *hostdata, unsigned long pio, hostdata 243 drivers/bus/hisi_lpc.c struct hisi_lpc_dev *lpcdev = hostdata; hostdata 273 drivers/bus/hisi_lpc.c static u32 hisi_lpc_comm_ins(void *hostdata, unsigned long pio, void *buffer, hostdata 276 drivers/bus/hisi_lpc.c struct hisi_lpc_dev *lpcdev = hostdata; hostdata 311 drivers/bus/hisi_lpc.c static void hisi_lpc_comm_outs(void *hostdata, unsigned long pio, hostdata 315 drivers/bus/hisi_lpc.c struct hisi_lpc_dev *lpcdev = hostdata; hostdata 623 drivers/bus/hisi_lpc.c range->hostdata = lpcdev; hostdata 700 drivers/firewire/sbp2.c container_of((void *)tgt, struct Scsi_Host, hostdata[0]); hostdata 724 drivers/firewire/sbp2.c container_of((void *)tgt, struct Scsi_Host, hostdata[0]); hostdata 747 drivers/firewire/sbp2.c container_of((void *)tgt, struct Scsi_Host, hostdata[0]); hostdata 862 drivers/firewire/sbp2.c shost = container_of((void *)tgt, struct Scsi_Host, hostdata[0]); hostdata 1138 drivers/firewire/sbp2.c tgt = (struct sbp2_target *)shost->hostdata; hostdata 1216 drivers/firewire/sbp2.c container_of((void *)tgt, struct Scsi_Host, hostdata[0]); hostdata 1444 drivers/firewire/sbp2.c struct sbp2_logical_unit *lu = cmd->device->hostdata; hostdata 1493 drivers/firewire/sbp2.c struct sbp2_logical_unit *lu = sdev->hostdata; hostdata 1515 drivers/firewire/sbp2.c struct sbp2_logical_unit *lu = sdev->hostdata; hostdata 1547 drivers/firewire/sbp2.c struct sbp2_logical_unit *lu = cmd->device->hostdata; hostdata 1572 drivers/firewire/sbp2.c lu = sdev->hostdata; hostdata 213 drivers/infiniband/ulp/srp/ib_srp.c return (struct srp_target_port *) host->hostdata; hostdata 1312 drivers/message/fusion/mptctl.c vdevice = sdev->hostdata; hostdata 1426 drivers/message/fusion/mptctl.c vdevice = sdev->hostdata; hostdata 1898 drivers/message/fusion/mptctl.c VirtTarget *vtarget = starget->hostdata; hostdata 217 drivers/message/fusion/mptfc.c if (ready == DID_NO_CONNECT || !SCpnt->device->hostdata hostdata 224 drivers/message/fusion/mptfc.c ioc->active, SCpnt->device->hostdata)); hostdata 472 drivers/message/fusion/mptfc.c vtarget = ri->starget->hostdata; hostdata 520 drivers/message/fusion/mptfc.c kfree(starget->hostdata); hostdata 521 drivers/message/fusion/mptfc.c starget->hostdata = NULL; hostdata 540 drivers/message/fusion/mptfc.c starget->hostdata = vtarget; hostdata 555 drivers/message/fusion/mptfc.c starget->hostdata = NULL; hostdata 623 drivers/message/fusion/mptfc.c sdev->hostdata = vdevice; hostdata 624 drivers/message/fusion/mptfc.c vtarget = starget->hostdata; hostdata 648 drivers/message/fusion/mptfc.c VirtDevice *vdevice = SCpnt->device->hostdata; hostdata 1097 drivers/message/fusion/mptfc.c vtarget = starget->hostdata; hostdata 1152 drivers/message/fusion/mptfc.c vtarget = starget->hostdata; hostdata 367 drivers/message/fusion/mptsas.c return ((MPT_SCSI_HOST *)shost->hostdata)->ioc; hostdata 373 drivers/message/fusion/mptsas.c return ((MPT_SCSI_HOST *)shost->hostdata)->ioc; hostdata 764 drivers/message/fusion/mptsas.c vtarget = starget->hostdata; hostdata 973 drivers/message/fusion/mptsas.c vdevice = sdev->hostdata; hostdata 1690 drivers/message/fusion/mptsas.c VirtDevice *vdevice = sdev->hostdata; hostdata 1788 drivers/message/fusion/mptsas.c starget->hostdata = vtarget; hostdata 1803 drivers/message/fusion/mptsas.c if (!starget->hostdata) hostdata 1806 drivers/message/fusion/mptsas.c vtarget = starget->hostdata; hostdata 1836 drivers/message/fusion/mptsas.c kfree(starget->hostdata); hostdata 1837 drivers/message/fusion/mptsas.c starget->hostdata = NULL; hostdata 1860 drivers/message/fusion/mptsas.c vdevice->vtarget = starget->hostdata; hostdata 1891 drivers/message/fusion/mptsas.c sdev->hostdata = vdevice; hostdata 1900 drivers/message/fusion/mptsas.c VirtDevice *vdevice = SCpnt->device->hostdata; hostdata 1957 drivers/message/fusion/mptsas.c vdevice = sc->device->hostdata; hostdata 2215 drivers/message/fusion/mptsas.c MPT_ADAPTER *ioc = ((MPT_SCSI_HOST *) shost->hostdata)->ioc; hostdata 3744 drivers/message/fusion/mptsas.c vdevice = sdev->hostdata; hostdata 4440 drivers/message/fusion/mptsas.c vtarget = starget->hostdata; hostdata 4499 drivers/message/fusion/mptsas.c vtarget = starget->hostdata; hostdata 4660 drivers/message/fusion/mptsas.c vdevice = sdev->hostdata; hostdata 4875 drivers/message/fusion/mptsas.c vdevice = sc->device->hostdata; hostdata 633 drivers/message/fusion/mptscsih.c VirtDevice *vdevice = sc->device->hostdata; hostdata 729 drivers/message/fusion/mptscsih.c vdevice = sc->device->hostdata; hostdata 750 drivers/message/fusion/mptscsih.c sc->device->hostdata; hostdata 1318 drivers/message/fusion/mptscsih.c VirtDevice *vdevice = SCpnt->device->hostdata; hostdata 1707 drivers/message/fusion/mptscsih.c vdevice = SCpnt->device->hostdata; hostdata 1825 drivers/message/fusion/mptscsih.c vdevice = SCpnt->device->hostdata; hostdata 1888 drivers/message/fusion/mptscsih.c vdevice = SCpnt->device->hostdata; hostdata 2292 drivers/message/fusion/mptscsih.c vtarget = starget->hostdata; hostdata 2293 drivers/message/fusion/mptscsih.c vdevice = sdev->hostdata; hostdata 2301 drivers/message/fusion/mptscsih.c sdev->hostdata = NULL; hostdata 2322 drivers/message/fusion/mptscsih.c vtarget = starget->hostdata; hostdata 2361 drivers/message/fusion/mptscsih.c vtarget = starget->hostdata; hostdata 2362 drivers/message/fusion/mptscsih.c vdevice = sdev->hostdata; hostdata 2416 drivers/message/fusion/mptscsih.c vdevice = sc->device->hostdata; hostdata 417 drivers/message/fusion/mptspi.c starget->hostdata = vtarget; hostdata 459 drivers/message/fusion/mptspi.c kfree(starget->hostdata); hostdata 460 drivers/message/fusion/mptspi.c starget->hostdata = NULL; hostdata 686 drivers/message/fusion/mptspi.c VirtTarget *vtarget = scsi_target(sdev)->hostdata; hostdata 736 drivers/message/fusion/mptspi.c sdev->hostdata = vdevice; hostdata 739 drivers/message/fusion/mptspi.c vtarget = starget->hostdata; hostdata 752 drivers/message/fusion/mptspi.c VirtTarget *vtarget = scsi_target(sdev)->hostdata; hostdata 780 drivers/message/fusion/mptspi.c VirtDevice *vdevice = SCpnt->device->hostdata; hostdata 805 drivers/message/fusion/mptspi.c VirtTarget *vtarget = starget->hostdata; hostdata 806 drivers/message/fusion/mptspi.c VirtDevice *vdevice = sdev->hostdata; hostdata 1064 drivers/message/fusion/mptspi.c VirtTarget *vtarget = starget->hostdata; hostdata 1130 drivers/message/fusion/mptspi.c VirtTarget *vtarget = starget->hostdata; hostdata 1194 drivers/message/fusion/mptspi.c (struct _MPT_SCSI_HOST *)dev_to_shost(starget->dev.parent)->hostdata; hostdata 616 drivers/s390/scsi/zfcp_dbf.c (struct zfcp_adapter *) sdev->host->hostdata[0]; hostdata 367 drivers/s390/scsi/zfcp_dbf.h scmd->device->host->hostdata[0]; hostdata 424 drivers/s390/scsi/zfcp_dbf.h sdev->host->hostdata[0]; hostdata 971 drivers/s390/scsi/zfcp_fc.c adapter = (struct zfcp_adapter *) shost->hostdata[0]; hostdata 1055 drivers/s390/scsi/zfcp_fc.c adapter = (struct zfcp_adapter *)shost->hostdata[0]; hostdata 117 drivers/s390/scsi/zfcp_scsi.c (struct zfcp_adapter *) sdev->host->hostdata[0]; hostdata 170 drivers/s390/scsi/zfcp_scsi.c (struct zfcp_adapter *) scsi_host->hostdata[0]; hostdata 350 drivers/s390/scsi/zfcp_scsi.c (struct zfcp_adapter *)shost->hostdata[0]; hostdata 406 drivers/s390/scsi/zfcp_scsi.c (struct zfcp_adapter *)shost->hostdata[0]; hostdata 483 drivers/s390/scsi/zfcp_scsi.c adapter->scsi_host->hostdata[0] = (unsigned long) adapter; hostdata 598 drivers/s390/scsi/zfcp_scsi.c adapter = (struct zfcp_adapter *)host->hostdata[0]; hostdata 631 drivers/s390/scsi/zfcp_scsi.c adapter = (struct zfcp_adapter *)shost->hostdata[0]; hostdata 650 drivers/s390/scsi/zfcp_scsi.c (struct zfcp_adapter *)shost->hostdata[0]; hostdata 685 drivers/s390/scsi/zfcp_scsi.c (struct zfcp_adapter *)shost->hostdata[0]; hostdata 571 drivers/s390/scsi/zfcp_sysfs.c adapter = (struct zfcp_adapter *) scsi_host->hostdata[0]; hostdata 596 drivers/s390/scsi/zfcp_sysfs.c adapter = (struct zfcp_adapter *) scsi_host->hostdata[0]; hostdata 647 drivers/s390/scsi/zfcp_sysfs.c ((struct zfcp_adapter *) scsi_host->hostdata[0])->qdio; hostdata 159 drivers/scsi/3w-9xxx.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; hostdata 1703 drivers/scsi/3w-9xxx.c tw_dev = (TW_Device_Extension *)sdev->host->hostdata; hostdata 1728 drivers/scsi/3w-9xxx.c tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; hostdata 1755 drivers/scsi/3w-9xxx.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; hostdata 1963 drivers/scsi/3w-9xxx.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; hostdata 2038 drivers/scsi/3w-9xxx.c tw_dev = (TW_Device_Extension *)host->hostdata; hostdata 2163 drivers/scsi/3w-9xxx.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; hostdata 2199 drivers/scsi/3w-9xxx.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; hostdata 2229 drivers/scsi/3w-9xxx.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; hostdata 104 drivers/scsi/3w-sas.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)shost->hostdata; hostdata 135 drivers/scsi/3w-sas.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)shost->hostdata; hostdata 164 drivers/scsi/3w-sas.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; hostdata 1413 drivers/scsi/3w-sas.c tw_dev = (TW_Device_Extension *)sdev->host->hostdata; hostdata 1436 drivers/scsi/3w-sas.c tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; hostdata 1463 drivers/scsi/3w-sas.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; hostdata 1525 drivers/scsi/3w-sas.c tw_dev = (TW_Device_Extension *)host->hostdata; hostdata 1721 drivers/scsi/3w-sas.c tw_dev = (TW_Device_Extension *)host->hostdata; hostdata 1764 drivers/scsi/3w-sas.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; hostdata 1794 drivers/scsi/3w-sas.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; hostdata 494 drivers/scsi/3w-xxxx.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; hostdata 1350 drivers/scsi/3w-xxxx.c tw_dev = (TW_Device_Extension *)sdev->host->hostdata; hostdata 1376 drivers/scsi/3w-xxxx.c tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; hostdata 1930 drivers/scsi/3w-xxxx.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; hostdata 2223 drivers/scsi/3w-xxxx.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; hostdata 2282 drivers/scsi/3w-xxxx.c tw_dev = (TW_Device_Extension *)host->hostdata; hostdata 2374 drivers/scsi/3w-xxxx.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; hostdata 232 drivers/scsi/53c700.c NCR_700_offset_period_to_sxfer(struct NCR_700_Host_Parameters *hostdata, hostdata 237 drivers/scsi/53c700.c __u8 min_xferp = (hostdata->chip710 hostdata 239 drivers/scsi/53c700.c __u8 max_offset = (hostdata->chip710 hostdata 245 drivers/scsi/53c700.c if(period < hostdata->min_period) { hostdata 247 drivers/scsi/53c700.c period = hostdata->min_period; hostdata 249 drivers/scsi/53c700.c XFERP = (period*4 * hostdata->sync_clock)/1000 - 4; hostdata 264 drivers/scsi/53c700.c struct NCR_700_Host_Parameters *hostdata = hostdata 265 drivers/scsi/53c700.c (struct NCR_700_Host_Parameters *)SDp->host->hostdata[0]; hostdata 267 drivers/scsi/53c700.c return NCR_700_offset_period_to_sxfer(hostdata, hostdata 274 drivers/scsi/53c700.c struct NCR_700_Host_Parameters *hostdata, struct device *dev) hostdata 294 drivers/scsi/53c700.c hostdata->msgin = memory + MSGIN_OFFSET; hostdata 295 drivers/scsi/53c700.c hostdata->msgout = memory + MSGOUT_OFFSET; hostdata 296 drivers/scsi/53c700.c hostdata->status = memory + STATUS_OFFSET; hostdata 297 drivers/scsi/53c700.c hostdata->slots = (struct NCR_700_command_slot *)(memory + SLOTS_OFFSET); hostdata 298 drivers/scsi/53c700.c hostdata->dev = dev; hostdata 322 drivers/scsi/53c700.c memset(hostdata->slots, 0, sizeof(struct NCR_700_command_slot) hostdata 325 drivers/scsi/53c700.c dma_addr_t offset = (dma_addr_t)((unsigned long)&hostdata->slots[j].SG[0] hostdata 326 drivers/scsi/53c700.c - (unsigned long)&hostdata->slots[0].SG[0]); hostdata 327 drivers/scsi/53c700.c hostdata->slots[j].pSG = (struct NCR_700_SG_List *)((unsigned long)(pSlots + offset)); hostdata 329 drivers/scsi/53c700.c hostdata->free_list = &hostdata->slots[j]; hostdata 331 drivers/scsi/53c700.c hostdata->slots[j-1].ITL_forw = &hostdata->slots[j]; hostdata 332 drivers/scsi/53c700.c hostdata->slots[j].state = NCR_700_SLOT_FREE; hostdata 342 drivers/scsi/53c700.c script_patch_32(hostdata->dev, script, MessageLocation, hostdata 344 drivers/scsi/53c700.c script_patch_32(hostdata->dev, script, StatusAddress, hostdata 346 drivers/scsi/53c700.c script_patch_32(hostdata->dev, script, ReceiveMsgAddress, hostdata 349 drivers/scsi/53c700.c hostdata->script = script; hostdata 350 drivers/scsi/53c700.c hostdata->pScript = pScript; hostdata 351 drivers/scsi/53c700.c dma_sync_single_for_device(hostdata->dev, pScript, sizeof(SCRIPT), DMA_TO_DEVICE); hostdata 352 drivers/scsi/53c700.c hostdata->state = NCR_700_HOST_FREE; hostdata 353 drivers/scsi/53c700.c hostdata->cmd = NULL; hostdata 358 drivers/scsi/53c700.c host->unique_id = (unsigned long)hostdata->base; hostdata 359 drivers/scsi/53c700.c hostdata->eh_complete = NULL; hostdata 360 drivers/scsi/53c700.c host->hostdata[0] = (unsigned long)hostdata; hostdata 363 drivers/scsi/53c700.c if (hostdata->chip710) hostdata 364 drivers/scsi/53c700.c hostdata->rev = (NCR_700_readb(host, CTEST8_REG)>>4) & 0x0f; hostdata 366 drivers/scsi/53c700.c hostdata->rev = (NCR_700_readb(host, CTEST7_REG)>>4) & 0x0f; hostdata 367 drivers/scsi/53c700.c hostdata->fast = (NCR_700_readb(host, CTEST9_REG) == 0); hostdata 373 drivers/scsi/53c700.c hostdata->chip710 ? "53c710" : hostdata 374 drivers/scsi/53c700.c (hostdata->fast ? "53c700-66" : "53c700"), hostdata 375 drivers/scsi/53c700.c hostdata->rev, hostdata->differential ? hostdata 386 drivers/scsi/53c700.c spi_signalling(host) = hostdata->differential ? SPI_SIGNAL_HVD : hostdata 395 drivers/scsi/53c700.c struct NCR_700_Host_Parameters *hostdata = hostdata 396 drivers/scsi/53c700.c (struct NCR_700_Host_Parameters *)host->hostdata[0]; hostdata 398 drivers/scsi/53c700.c dma_free_attrs(hostdata->dev, TOTAL_MEM_SIZE, hostdata->script, hostdata 399 drivers/scsi/53c700.c hostdata->pScript, DMA_ATTR_NON_CONSISTENT); hostdata 423 drivers/scsi/53c700.c struct NCR_700_Host_Parameters *hostdata = hostdata 424 drivers/scsi/53c700.c (struct NCR_700_Host_Parameters *)host->hostdata[0]; hostdata 428 drivers/scsi/53c700.c if(hostdata->chip710) { hostdata 436 drivers/scsi/53c700.c if(hostdata->fast) hostdata 493 drivers/scsi/53c700.c find_empty_slot(struct NCR_700_Host_Parameters *hostdata) hostdata 495 drivers/scsi/53c700.c struct NCR_700_command_slot *slot = hostdata->free_list; hostdata 499 drivers/scsi/53c700.c if(hostdata->command_slot_count != NCR_700_COMMAND_SLOTS_PER_HOST) hostdata 500 drivers/scsi/53c700.c printk(KERN_ERR "SLOTS FULL, but count is %d, should be %d\n", hostdata->command_slot_count, NCR_700_COMMAND_SLOTS_PER_HOST); hostdata 509 drivers/scsi/53c700.c hostdata->free_list = slot->ITL_forw; hostdata 519 drivers/scsi/53c700.c hostdata->command_slot_count++; hostdata 526 drivers/scsi/53c700.c struct NCR_700_Host_Parameters *hostdata) hostdata 538 drivers/scsi/53c700.c slot->ITL_forw = hostdata->free_list; hostdata 539 drivers/scsi/53c700.c hostdata->free_list = slot; hostdata 540 drivers/scsi/53c700.c hostdata->command_slot_count--; hostdata 547 drivers/scsi/53c700.c save_for_reselection(struct NCR_700_Host_Parameters *hostdata, hostdata 557 drivers/scsi/53c700.c hostdata->state = NCR_700_HOST_FREE; hostdata 558 drivers/scsi/53c700.c hostdata->cmd = NULL; hostdata 562 drivers/scsi/53c700.c NCR_700_unmap(struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, hostdata 571 drivers/scsi/53c700.c NCR_700_scsi_done(struct NCR_700_Host_Parameters *hostdata, hostdata 574 drivers/scsi/53c700.c hostdata->state = NCR_700_HOST_FREE; hostdata 575 drivers/scsi/53c700.c hostdata->cmd = NULL; hostdata 581 drivers/scsi/53c700.c dma_unmap_single(hostdata->dev, slot->pCmd, hostdata 586 drivers/scsi/53c700.c dma_unmap_single(hostdata->dev, slot->dma_handle, hostdata 595 drivers/scsi/53c700.c NCR_700_unmap(hostdata, SCp, slot); hostdata 597 drivers/scsi/53c700.c free_slot(slot, hostdata); hostdata 628 drivers/scsi/53c700.c struct NCR_700_Host_Parameters *hostdata = hostdata 629 drivers/scsi/53c700.c (struct NCR_700_Host_Parameters *)host->hostdata[0]; hostdata 631 drivers/scsi/53c700.c __u8 min_xferp = (hostdata->chip710 ? NCR_710_MIN_XFERP : NCR_700_MIN_XFERP); hostdata 633 drivers/scsi/53c700.c if(hostdata->chip710) { hostdata 637 drivers/scsi/53c700.c switch (hostdata->burst_length) { hostdata 654 drivers/scsi/53c700.c hostdata->dcntl_extra |= COMPAT_700_MODE; hostdata 656 drivers/scsi/53c700.c NCR_700_writeb(hostdata->dcntl_extra, host, DCNTL_REG); hostdata 657 drivers/scsi/53c700.c NCR_700_writeb(burst_length | hostdata->dmode_extra, hostdata 659 drivers/scsi/53c700.c NCR_700_writeb(burst_disable | hostdata->ctest7_extra | hostdata 660 drivers/scsi/53c700.c (hostdata->differential ? DIFF : 0), hostdata 666 drivers/scsi/53c700.c NCR_700_writeb(BURST_LENGTH_8 | hostdata->dmode_extra, hostdata 668 drivers/scsi/53c700.c NCR_700_writeb(hostdata->differential ? hostdata 670 drivers/scsi/53c700.c if(hostdata->fast) { hostdata 690 drivers/scsi/53c700.c if(hostdata->clock > 75) { hostdata 691 drivers/scsi/53c700.c printk(KERN_ERR "53c700: Clock speed %dMHz is too high: 75Mhz is the maximum this chip can be driven at\n", hostdata->clock); hostdata 696 drivers/scsi/53c700.c NCR_700_writeb(ASYNC_DIV_3_0 | hostdata->dcntl_extra, host, DCNTL_REG); hostdata 697 drivers/scsi/53c700.c hostdata->sync_clock = hostdata->clock/2; hostdata 698 drivers/scsi/53c700.c } else if(hostdata->clock > 50 && hostdata->clock <= 75) { hostdata 702 drivers/scsi/53c700.c NCR_700_writeb(ASYNC_DIV_3_0 | hostdata->dcntl_extra, host, DCNTL_REG); hostdata 703 drivers/scsi/53c700.c hostdata->sync_clock = hostdata->clock*2; hostdata 704 drivers/scsi/53c700.c hostdata->sync_clock /= 3; hostdata 706 drivers/scsi/53c700.c } else if(hostdata->clock > 37 && hostdata->clock <= 50) { hostdata 710 drivers/scsi/53c700.c NCR_700_writeb(ASYNC_DIV_2_0 | hostdata->dcntl_extra, host, DCNTL_REG); hostdata 711 drivers/scsi/53c700.c hostdata->sync_clock = hostdata->clock; hostdata 712 drivers/scsi/53c700.c } else if(hostdata->clock > 25 && hostdata->clock <=37) { hostdata 716 drivers/scsi/53c700.c NCR_700_writeb(ASYNC_DIV_1_5 | hostdata->dcntl_extra, host, DCNTL_REG); hostdata 717 drivers/scsi/53c700.c hostdata->sync_clock = hostdata->clock; hostdata 721 drivers/scsi/53c700.c NCR_700_writeb(ASYNC_DIV_1_0 | hostdata->dcntl_extra, host, DCNTL_REG); hostdata 723 drivers/scsi/53c700.c hostdata->sync_clock = hostdata->clock; hostdata 729 drivers/scsi/53c700.c min_period = 1000*(4+min_xferp)/(4*hostdata->sync_clock); hostdata 730 drivers/scsi/53c700.c hostdata->min_period = NCR_700_MIN_PERIOD; hostdata 732 drivers/scsi/53c700.c hostdata->min_period = min_period; hostdata 738 drivers/scsi/53c700.c struct NCR_700_Host_Parameters *hostdata = hostdata 739 drivers/scsi/53c700.c (struct NCR_700_Host_Parameters *)host->hostdata[0]; hostdata 740 drivers/scsi/53c700.c if(hostdata->chip710) { hostdata 765 drivers/scsi/53c700.c struct NCR_700_Host_Parameters *hostdata, hostdata 776 drivers/scsi/53c700.c switch(hostdata->msgin[2]) { hostdata 780 drivers/scsi/53c700.c __u8 period = hostdata->msgin[3]; hostdata 781 drivers/scsi/53c700.c __u8 offset = hostdata->msgin[4]; hostdata 806 drivers/scsi/53c700.c hostdata->msgout[0] = A_REJECT_MSG; hostdata 807 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, hostdata->msgout, 1, DMA_TO_DEVICE); hostdata 808 drivers/scsi/53c700.c script_patch_16(hostdata->dev, hostdata->script, hostdata 812 drivers/scsi/53c700.c resume_offset = hostdata->pScript + Ent_SendMessageWithATN; hostdata 819 drivers/scsi/53c700.c hostdata->msgout[0] = A_REJECT_MSG; hostdata 820 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, hostdata->msgout, 1, DMA_TO_DEVICE); hostdata 821 drivers/scsi/53c700.c script_patch_16(hostdata->dev, hostdata->script, MessageCount, hostdata 823 drivers/scsi/53c700.c resume_offset = hostdata->pScript + Ent_SendMessageWithATN; hostdata 831 drivers/scsi/53c700.c spi_print_msg(hostdata->msgin); hostdata 834 drivers/scsi/53c700.c hostdata->msgout[0] = A_REJECT_MSG; hostdata 835 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, hostdata->msgout, 1, DMA_TO_DEVICE); hostdata 836 drivers/scsi/53c700.c script_patch_16(hostdata->dev, hostdata->script, MessageCount, hostdata 840 drivers/scsi/53c700.c resume_offset = hostdata->pScript + Ent_SendMessageWithATN; hostdata 847 drivers/scsi/53c700.c process_message(struct Scsi_Host *host, struct NCR_700_Host_Parameters *hostdata, hostdata 862 drivers/scsi/53c700.c spi_print_msg(hostdata->msgin); hostdata 866 drivers/scsi/53c700.c switch(hostdata->msgin[0]) { hostdata 869 drivers/scsi/53c700.c resume_offset = process_extended_message(host, hostdata, SCp, hostdata 886 drivers/scsi/53c700.c hostdata->tag_negotiated &= ~(1<<scmd_id(SCp)); hostdata 907 drivers/scsi/53c700.c pun, lun, hostdata->msgin[1], hostdata 916 drivers/scsi/53c700.c spi_print_msg(hostdata->msgin); hostdata 919 drivers/scsi/53c700.c hostdata->msgout[0] = A_REJECT_MSG; hostdata 920 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, hostdata->msgout, 1, DMA_TO_DEVICE); hostdata 921 drivers/scsi/53c700.c script_patch_16(hostdata->dev, hostdata->script, MessageCount, hostdata 925 drivers/scsi/53c700.c resume_offset = hostdata->pScript + Ent_SendMessageWithATN; hostdata 931 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, hostdata->msgin, MSG_ARRAY_SIZE, DMA_FROM_DEVICE); hostdata 938 drivers/scsi/53c700.c struct NCR_700_Host_Parameters *hostdata) hostdata 950 drivers/scsi/53c700.c hostdata->status[0])); hostdata 957 drivers/scsi/53c700.c if(status_byte(hostdata->status[0]) == CHECK_CONDITION || hostdata 958 drivers/scsi/53c700.c status_byte(hostdata->status[0]) == COMMAND_TERMINATED) { hostdata 966 drivers/scsi/53c700.c NCR_700_scsi_done(hostdata, SCp, hostdata->status[0]); hostdata 973 drivers/scsi/53c700.c SCp, hostdata->status[0]); hostdata 982 drivers/scsi/53c700.c NCR_700_unmap(hostdata, SCp, slot); hostdata 983 drivers/scsi/53c700.c dma_unmap_single(hostdata->dev, slot->pCmd, hostdata 1000 drivers/scsi/53c700.c cmnd[7] = hostdata->status[0]; hostdata 1004 drivers/scsi/53c700.c slot->pCmd = dma_map_single(hostdata->dev, cmnd, MAX_COMMAND_SIZE, DMA_TO_DEVICE); hostdata 1005 drivers/scsi/53c700.c slot->dma_handle = dma_map_single(hostdata->dev, SCp->sense_buffer, SCSI_SENSE_BUFFERSIZE, DMA_FROM_DEVICE); hostdata 1010 drivers/scsi/53c700.c slot->resume_offset = hostdata->pScript; hostdata 1011 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, slot->SG, sizeof(slot->SG[0])*2, DMA_TO_DEVICE); hostdata 1012 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, SCp->sense_buffer, SCSI_SENSE_BUFFERSIZE, DMA_FROM_DEVICE); hostdata 1017 drivers/scsi/53c700.c hostdata->state = NCR_700_HOST_FREE; hostdata 1018 drivers/scsi/53c700.c hostdata->cmd = NULL; hostdata 1042 drivers/scsi/53c700.c NCR_700_scsi_done(hostdata, SCp, hostdata->status[0]); hostdata 1062 drivers/scsi/53c700.c hostdata->msgin[0], hostdata->msgin[1]); hostdata 1073 drivers/scsi/53c700.c save_for_reselection(hostdata, SCp, dsp); hostdata 1078 drivers/scsi/53c700.c __u8 reselection_id = hostdata->reselection_id; hostdata 1081 drivers/scsi/53c700.c lun = hostdata->msgin[0] & 0x1f; hostdata 1083 drivers/scsi/53c700.c hostdata->reselection_id = 0xff; hostdata 1093 drivers/scsi/53c700.c if(hostdata->msgin[1] == A_SIMPLE_TAG_MSG) { hostdata 1096 drivers/scsi/53c700.c SCp = scsi_host_find_tag(SDp->host, hostdata->msgin[2]); hostdata 1099 drivers/scsi/53c700.c host->host_no, reselection_id, lun, hostdata->msgin[2]); hostdata 1106 drivers/scsi/53c700.c hostdata->msgin[2], slot, slot->tag); hostdata 1108 drivers/scsi/53c700.c struct NCR_700_Device_Parameters *p = SDp->hostdata; hostdata 1122 drivers/scsi/53c700.c hostdata->msgin[0], hostdata->msgin[1], hostdata 1123 drivers/scsi/53c700.c hostdata->msgin[2]); hostdata 1125 drivers/scsi/53c700.c if(hostdata->state != NCR_700_HOST_BUSY) hostdata 1129 drivers/scsi/53c700.c hostdata->cmd = slot->cmnd; hostdata 1132 drivers/scsi/53c700.c script_patch_32_abs(hostdata->dev, hostdata->script, hostdata 1134 drivers/scsi/53c700.c script_patch_16(hostdata->dev, hostdata->script, hostdata 1136 drivers/scsi/53c700.c script_patch_32_abs(hostdata->dev, hostdata->script, hostdata 1145 drivers/scsi/53c700.c NCR_700_writeb(NCR_700_get_SXFER(hostdata->cmd->device), hostdata 1147 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, hostdata->msgin, hostdata 1149 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, hostdata->msgout, hostdata 1153 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, slot->cmnd->cmnd, hostdata 1177 drivers/scsi/53c700.c host->host_no, reselection_id, lun, dsp, dsp - hostdata->pScript, hostdata->state, hostdata->command_slot_count); hostdata 1181 drivers/scsi/53c700.c __u32 SG = (__u32)bS_to_cpu(hostdata->script[A_SGScriptStartAddress_used[0]]); hostdata 1185 drivers/scsi/53c700.c if(SG >= to32bit(&hostdata->slots[i].pSG[0]) hostdata 1186 drivers/scsi/53c700.c && SG <= to32bit(&hostdata->slots[i].pSG[NCR_700_SG_SEGMENTS])) hostdata 1189 drivers/scsi/53c700.c printk(KERN_INFO "IDENTIFIED SG segment as being %08x in slot %p, cmd %p, slot->resume_offset=%08x\n", SG, &hostdata->slots[i], hostdata->slots[i].cmnd, hostdata->slots[i].resume_offset); hostdata 1190 drivers/scsi/53c700.c SCp = hostdata->slots[i].cmnd; hostdata 1198 drivers/scsi/53c700.c hostdata->cmd = NULL; hostdata 1201 drivers/scsi/53c700.c if(hostdata->reselection_id == 0xff) { hostdata 1207 drivers/scsi/53c700.c reselection_id = hostdata->reselection_id; hostdata 1214 drivers/scsi/53c700.c hostdata->reselection_id = reselection_id; hostdata 1216 drivers/scsi/53c700.c hostdata->msgin[1] = 0; hostdata 1217 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, hostdata->msgin, hostdata 1219 drivers/scsi/53c700.c if(hostdata->tag_negotiated & (1<<reselection_id)) { hostdata 1220 drivers/scsi/53c700.c resume_offset = hostdata->pScript + Ent_GetReselectionWithTag; hostdata 1222 drivers/scsi/53c700.c resume_offset = hostdata->pScript + Ent_GetReselectionData; hostdata 1230 drivers/scsi/53c700.c resume_offset = process_message(host, hostdata, SCp, hostdata 1236 drivers/scsi/53c700.c NCR_700_phase[j], dsp - hostdata->pScript); hostdata 1248 drivers/scsi/53c700.c host->host_no, pun, lun, dsps & 0xfff, dsp, dsp - hostdata->pScript); hostdata 1252 drivers/scsi/53c700.c host->host_no, pun, lun, dsps, dsp - hostdata->pScript); hostdata 1271 drivers/scsi/53c700.c struct NCR_700_Host_Parameters *hostdata = hostdata 1272 drivers/scsi/53c700.c (struct NCR_700_Host_Parameters *)host->hostdata[0]; hostdata 1273 drivers/scsi/53c700.c struct scsi_cmnd *SCp = hostdata->cmd; hostdata 1277 drivers/scsi/53c700.c id = NCR_700_readb(host, hostdata->chip710 ? hostdata 1292 drivers/scsi/53c700.c hostdata->reselection_id = id = bitmap_to_number(id); hostdata 1296 drivers/scsi/53c700.c if(hostdata->state == NCR_700_HOST_BUSY && SCp != NULL) { hostdata 1299 drivers/scsi/53c700.c DEBUG((" ID %d WARNING: RESELECTION OF BUSY HOST, saving cmd %p, slot %p, addr %x [%04x], resume %x!\n", id, hostdata->cmd, slot, dsp, dsp - hostdata->pScript, resume_offset)); hostdata 1301 drivers/scsi/53c700.c switch(dsp - hostdata->pScript) { hostdata 1304 drivers/scsi/53c700.c save_for_reselection(hostdata, SCp, Ent_Disconnect2 + hostdata->pScript); hostdata 1308 drivers/scsi/53c700.c save_for_reselection(hostdata, SCp, Ent_Disconnect4 + hostdata->pScript); hostdata 1312 drivers/scsi/53c700.c save_for_reselection(hostdata, SCp, Ent_Disconnect6 + hostdata->pScript); hostdata 1316 drivers/scsi/53c700.c save_for_reselection(hostdata, SCp, Ent_Disconnect8 + hostdata->pScript); hostdata 1320 drivers/scsi/53c700.c process_script_interrupt(A_GOOD_STATUS_AFTER_STATUS, dsp, SCp, host, hostdata); hostdata 1328 drivers/scsi/53c700.c hostdata->state = NCR_700_HOST_BUSY; hostdata 1329 drivers/scsi/53c700.c hostdata->cmd = NULL; hostdata 1331 drivers/scsi/53c700.c hostdata->msgin[1] = 0; hostdata 1332 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, hostdata->msgin, MSG_ARRAY_SIZE, hostdata 1337 drivers/scsi/53c700.c resume_offset = hostdata->pScript + Ent_SelectedAsTarget; hostdata 1338 drivers/scsi/53c700.c } else if(hostdata->tag_negotiated & (1<<id)) { hostdata 1339 drivers/scsi/53c700.c resume_offset = hostdata->pScript + Ent_GetReselectionWithTag; hostdata 1341 drivers/scsi/53c700.c resume_offset = hostdata->pScript + Ent_GetReselectionData; hostdata 1348 drivers/scsi/53c700.c const struct NCR_700_Host_Parameters *hostdata hostdata 1349 drivers/scsi/53c700.c = (struct NCR_700_Host_Parameters *)host->hostdata[0]; hostdata 1350 drivers/scsi/53c700.c if(hostdata->chip710) { hostdata 1359 drivers/scsi/53c700.c const struct NCR_700_Host_Parameters *hostdata hostdata 1360 drivers/scsi/53c700.c = (struct NCR_700_Host_Parameters *)host->hostdata[0]; hostdata 1361 drivers/scsi/53c700.c if(hostdata->chip710) { hostdata 1380 drivers/scsi/53c700.c struct NCR_700_Host_Parameters *hostdata = hostdata 1381 drivers/scsi/53c700.c (struct NCR_700_Host_Parameters *)SCp->device->host->hostdata[0]; hostdata 1385 drivers/scsi/53c700.c if(hostdata->state != NCR_700_HOST_FREE) { hostdata 1395 drivers/scsi/53c700.c hostdata->state = NCR_700_HOST_BUSY; hostdata 1396 drivers/scsi/53c700.c hostdata->cmd = SCp; hostdata 1401 drivers/scsi/53c700.c hostdata->msgout[0] = NCR_700_identify((SCp->cmnd[0] != REQUEST_SENSE && hostdata 1416 drivers/scsi/53c700.c if((hostdata->tag_negotiated & (1<<scmd_id(SCp))) hostdata 1419 drivers/scsi/53c700.c count += spi_populate_tag_msg(&hostdata->msgout[count], SCp); hostdata 1422 drivers/scsi/53c700.c if(hostdata->fast && hostdata 1424 drivers/scsi/53c700.c count += spi_populate_sync_msg(&hostdata->msgout[count], hostdata 1430 drivers/scsi/53c700.c script_patch_16(hostdata->dev, hostdata->script, MessageCount, count); hostdata 1433 drivers/scsi/53c700.c script_patch_ID(hostdata->dev, hostdata->script, hostdata 1436 drivers/scsi/53c700.c script_patch_32_abs(hostdata->dev, hostdata->script, CommandAddress, hostdata 1438 drivers/scsi/53c700.c script_patch_16(hostdata->dev, hostdata->script, CommandCount, hostdata 1442 drivers/scsi/53c700.c script_patch_32_abs(hostdata->dev, hostdata->script, hostdata 1447 drivers/scsi/53c700.c slot->resume_offset = hostdata->pScript; hostdata 1449 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, hostdata->msgout, count, DMA_TO_DEVICE); hostdata 1450 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, hostdata->msgin, MSG_ARRAY_SIZE, hostdata 1452 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, SCp->cmnd, SCp->cmd_len, DMA_TO_DEVICE); hostdata 1453 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, hostdata->status, 1, DMA_FROM_DEVICE); hostdata 1468 drivers/scsi/53c700.c struct NCR_700_Host_Parameters *hostdata = hostdata 1469 drivers/scsi/53c700.c (struct NCR_700_Host_Parameters *)host->hostdata[0]; hostdata 1487 drivers/scsi/53c700.c struct scsi_cmnd *SCp = hostdata->cmd; hostdata 1491 drivers/scsi/53c700.c state = hostdata->state; hostdata 1492 drivers/scsi/53c700.c SCp = hostdata->cmd; hostdata 1511 drivers/scsi/53c700.c (dsp - (__u32)(hostdata->pScript))/4, hostdata 1523 drivers/scsi/53c700.c hostdata->state = NCR_700_HOST_BUSY; hostdata 1526 drivers/scsi/53c700.c host->host_no, SCp, SCp == NULL ? NULL : SCp->host_scribble, dsp, dsp - hostdata->pScript); hostdata 1538 drivers/scsi/53c700.c &hostdata->slots[i]; hostdata 1546 drivers/scsi/53c700.c free_slot(slot, hostdata); hostdata 1561 drivers/scsi/53c700.c hostdata->state = NCR_700_HOST_FREE; hostdata 1562 drivers/scsi/53c700.c hostdata->cmd = NULL; hostdata 1564 drivers/scsi/53c700.c if(hostdata->eh_complete != NULL) hostdata 1565 drivers/scsi/53c700.c complete(hostdata->eh_complete); hostdata 1570 drivers/scsi/53c700.c NCR_700_scsi_done(hostdata, SCp, DID_NO_CONNECT<<16); hostdata 1575 drivers/scsi/53c700.c if(dsp == Ent_SendMessage + 8 + hostdata->pScript) { hostdata 1580 drivers/scsi/53c700.c int count = (hostdata->script[Ent_SendMessage/4] & 0xffffff) - ((NCR_700_readl(host, DBC_REG) & 0xffffff) + NCR_700_data_residual(host)); hostdata 1581 drivers/scsi/53c700.c printk("scsi%d (%d:%d) PHASE MISMATCH IN SEND MESSAGE %d remain, return %p[%04x], phase %s\n", host->host_no, pun, lun, count, (void *)temp, temp - hostdata->pScript, sbcl_to_string(NCR_700_readb(host, SBCL_REG))); hostdata 1583 drivers/scsi/53c700.c resume_offset = hostdata->pScript + Ent_SendMessagePhaseMismatch; hostdata 1629 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, slot->SG, sizeof(slot->SG), DMA_TO_DEVICE); hostdata 1632 drivers/scsi/53c700.c resume_offset = hostdata->pScript + Ent_MsgInDuringData; hostdata 1638 drivers/scsi/53c700.c host->host_no, pun, lun, dsp - hostdata->pScript, sbcl_to_string(sbcl)); hostdata 1645 drivers/scsi/53c700.c NCR_700_scsi_done(hostdata, SCp, DID_ERROR<<16); hostdata 1649 drivers/scsi/53c700.c NCR_700_scsi_done(hostdata, SCp, DID_ERROR<<16); hostdata 1653 drivers/scsi/53c700.c resume_offset = process_script_interrupt(dsps, dsp, SCp, host, hostdata); hostdata 1658 drivers/scsi/53c700.c dsp, dsp - hostdata->pScript); hostdata 1659 drivers/scsi/53c700.c NCR_700_scsi_done(hostdata, SCp, DID_ERROR<<16); hostdata 1663 drivers/scsi/53c700.c NCR_700_scsi_done(hostdata, SCp, DID_ERROR<<16); hostdata 1695 drivers/scsi/53c700.c if(hostdata->state != NCR_700_HOST_BUSY) { hostdata 1697 drivers/scsi/53c700.c host->host_no, resume_offset, resume_offset - hostdata->pScript); hostdata 1698 drivers/scsi/53c700.c hostdata->state = NCR_700_HOST_BUSY; hostdata 1710 drivers/scsi/53c700.c if(hostdata->state == NCR_700_HOST_FREE) { hostdata 1716 drivers/scsi/53c700.c int j = (i + hostdata->saved_slot_position) hostdata 1719 drivers/scsi/53c700.c if(hostdata->slots[j].state != NCR_700_SLOT_QUEUED) hostdata 1721 drivers/scsi/53c700.c if(NCR_700_start_command(hostdata->slots[j].cmnd)) { hostdata 1723 drivers/scsi/53c700.c host->host_no, &hostdata->slots[j], hostdata 1724 drivers/scsi/53c700.c hostdata->slots[j].cmnd)); hostdata 1725 drivers/scsi/53c700.c hostdata->saved_slot_position = j + 1; hostdata 1739 drivers/scsi/53c700.c struct NCR_700_Host_Parameters *hostdata = hostdata 1740 drivers/scsi/53c700.c (struct NCR_700_Host_Parameters *)SCp->device->host->hostdata[0]; hostdata 1745 drivers/scsi/53c700.c if(hostdata->command_slot_count >= NCR_700_COMMAND_SLOTS_PER_HOST) { hostdata 1758 drivers/scsi/53c700.c && (!(hostdata->tag_negotiated & (1<<scmd_id(SCp))) hostdata 1774 drivers/scsi/53c700.c slot = find_empty_slot(hostdata); hostdata 1788 drivers/scsi/53c700.c && (hostdata->tag_negotiated &(1<<scmd_id(SCp))) == 0 hostdata 1791 drivers/scsi/53c700.c hostdata->tag_negotiated |= (1<<scmd_id(SCp)); hostdata 1802 drivers/scsi/53c700.c && (hostdata->tag_negotiated &(1<<scmd_id(SCp)))) { hostdata 1804 drivers/scsi/53c700.c hostdata->tag_negotiated &= ~(1<<scmd_id(SCp)); hostdata 1807 drivers/scsi/53c700.c if ((hostdata->tag_negotiated & (1<<scmd_id(SCp))) && hostdata 1813 drivers/scsi/53c700.c struct NCR_700_Device_Parameters *p = SCp->device->hostdata; hostdata 1881 drivers/scsi/53c700.c dma_cache_sync(hostdata->dev, slot->SG, sizeof(slot->SG), DMA_TO_DEVICE); hostdata 1887 drivers/scsi/53c700.c slot->pCmd = dma_map_single(hostdata->dev, SCp->cmnd, hostdata 1929 drivers/scsi/53c700.c struct NCR_700_Host_Parameters *hostdata = hostdata 1930 drivers/scsi/53c700.c (struct NCR_700_Host_Parameters *)SCp->device->host->hostdata[0]; hostdata 1940 drivers/scsi/53c700.c while (hostdata->eh_complete != NULL) { hostdata 1946 drivers/scsi/53c700.c hostdata->eh_complete = &complete; hostdata 1954 drivers/scsi/53c700.c hostdata->eh_complete = NULL; hostdata 1956 drivers/scsi/53c700.c if(hostdata->fast) hostdata 1967 drivers/scsi/53c700.c struct NCR_700_Host_Parameters *hostdata = hostdata 1968 drivers/scsi/53c700.c (struct NCR_700_Host_Parameters *)SHp->hostdata[0]; hostdata 1970 drivers/scsi/53c700.c if(!hostdata->fast) hostdata 1973 drivers/scsi/53c700.c if(period < hostdata->min_period) hostdata 1974 drivers/scsi/53c700.c period = hostdata->min_period; hostdata 1986 drivers/scsi/53c700.c struct NCR_700_Host_Parameters *hostdata = hostdata 1987 drivers/scsi/53c700.c (struct NCR_700_Host_Parameters *)SHp->hostdata[0]; hostdata 1988 drivers/scsi/53c700.c int max_offset = hostdata->chip710 hostdata 1991 drivers/scsi/53c700.c if(!hostdata->fast) hostdata 1998 drivers/scsi/53c700.c if(spi_offset(STp) == 0 && (spi_period(STp) < hostdata->min_period || hostdata 2000 drivers/scsi/53c700.c spi_period(STp) = hostdata->min_period; hostdata 2011 drivers/scsi/53c700.c SDp->hostdata = kzalloc(sizeof(struct NCR_700_Device_Parameters), hostdata 2014 drivers/scsi/53c700.c if (!SDp->hostdata) hostdata 2023 drivers/scsi/53c700.c struct NCR_700_Host_Parameters *hostdata = hostdata 2024 drivers/scsi/53c700.c (struct NCR_700_Host_Parameters *)SDp->host->hostdata[0]; hostdata 2032 drivers/scsi/53c700.c if(hostdata->fast) { hostdata 2046 drivers/scsi/53c700.c kfree(SDp->hostdata); hostdata 2047 drivers/scsi/53c700.c SDp->hostdata = NULL; hostdata 110 drivers/scsi/53c700.h struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; hostdata 112 drivers/scsi/53c700.h return hostdata->cmnd; hostdata 118 drivers/scsi/53c700.h struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; hostdata 120 drivers/scsi/53c700.h hostdata->depth = depth; hostdata 125 drivers/scsi/53c700.h struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; hostdata 127 drivers/scsi/53c700.h return hostdata->depth; hostdata 258 drivers/scsi/53c700.h #define bE (hostdata->force_le_on_be ? 0 : 3) hostdata 259 drivers/scsi/53c700.h #define bSWAP (hostdata->force_le_on_be) hostdata 260 drivers/scsi/53c700.h #define bEBus (!hostdata->force_le_on_be) hostdata 483 drivers/scsi/53c700.h const struct NCR_700_Host_Parameters *hostdata hostdata 484 drivers/scsi/53c700.h = (struct NCR_700_Host_Parameters *)host->hostdata[0]; hostdata 486 drivers/scsi/53c700.h return ioread8(hostdata->base + (reg^bE)); hostdata 492 drivers/scsi/53c700.h const struct NCR_700_Host_Parameters *hostdata hostdata 493 drivers/scsi/53c700.h = (struct NCR_700_Host_Parameters *)host->hostdata[0]; hostdata 494 drivers/scsi/53c700.h __u32 value = bEBus ? ioread32be(hostdata->base + reg) : hostdata 495 drivers/scsi/53c700.h ioread32(hostdata->base + reg); hostdata 507 drivers/scsi/53c700.h const struct NCR_700_Host_Parameters *hostdata hostdata 508 drivers/scsi/53c700.h = (struct NCR_700_Host_Parameters *)host->hostdata[0]; hostdata 510 drivers/scsi/53c700.h iowrite8(value, hostdata->base + (reg^bE)); hostdata 516 drivers/scsi/53c700.h const struct NCR_700_Host_Parameters *hostdata hostdata 517 drivers/scsi/53c700.h = (struct NCR_700_Host_Parameters *)host->hostdata[0]; hostdata 524 drivers/scsi/53c700.h bEBus ? iowrite32be(value, hostdata->base + reg): hostdata 525 drivers/scsi/53c700.h iowrite32(value, hostdata->base + reg); hostdata 149 drivers/scsi/BusLogic.c (struct blogic_adapter *) host->hostdata; hostdata 2316 drivers/scsi/BusLogic.c (struct blogic_adapter *) dev->host->hostdata; hostdata 2459 drivers/scsi/BusLogic.c myadapter = (struct blogic_adapter *) host->hostdata; hostdata 3000 drivers/scsi/BusLogic.c (struct blogic_adapter *) SCpnt->device->host->hostdata; hostdata 3024 drivers/scsi/BusLogic.c (struct blogic_adapter *) command->device->host->hostdata; hostdata 3247 drivers/scsi/BusLogic.c (struct blogic_adapter *) command->device->host->hostdata; hostdata 3388 drivers/scsi/BusLogic.c (struct blogic_adapter *) sdev->host->hostdata; hostdata 3463 drivers/scsi/BusLogic.c (struct blogic_adapter *) shost->hostdata; hostdata 3475 drivers/scsi/BusLogic.c struct blogic_adapter *adapter = (struct blogic_adapter *) shost->hostdata; hostdata 197 drivers/scsi/NCR5380.c static int NCR5380_poll_politely2(struct NCR5380_hostdata *hostdata, hostdata 202 drivers/scsi/NCR5380.c unsigned long n = hostdata->poll_loops; hostdata 286 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 335 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 360 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 362 drivers/scsi/NCR5380.c return hostdata->info; hostdata 381 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 388 drivers/scsi/NCR5380.c hostdata->host = instance; hostdata 389 drivers/scsi/NCR5380.c hostdata->id_mask = 1 << instance->this_id; hostdata 390 drivers/scsi/NCR5380.c hostdata->id_higher_mask = 0; hostdata 391 drivers/scsi/NCR5380.c for (i = hostdata->id_mask; i <= 0x80; i <<= 1) hostdata 392 drivers/scsi/NCR5380.c if (i > hostdata->id_mask) hostdata 393 drivers/scsi/NCR5380.c hostdata->id_higher_mask |= i; hostdata 395 drivers/scsi/NCR5380.c hostdata->busy[i] = 0; hostdata 396 drivers/scsi/NCR5380.c hostdata->dma_len = 0; hostdata 398 drivers/scsi/NCR5380.c spin_lock_init(&hostdata->lock); hostdata 399 drivers/scsi/NCR5380.c hostdata->connected = NULL; hostdata 400 drivers/scsi/NCR5380.c hostdata->sensing = NULL; hostdata 401 drivers/scsi/NCR5380.c INIT_LIST_HEAD(&hostdata->autosense); hostdata 402 drivers/scsi/NCR5380.c INIT_LIST_HEAD(&hostdata->unissued); hostdata 403 drivers/scsi/NCR5380.c INIT_LIST_HEAD(&hostdata->disconnected); hostdata 405 drivers/scsi/NCR5380.c hostdata->flags = flags; hostdata 407 drivers/scsi/NCR5380.c INIT_WORK(&hostdata->main_task, NCR5380_main); hostdata 408 drivers/scsi/NCR5380.c hostdata->work_q = alloc_workqueue("ncr5380_%d", hostdata 411 drivers/scsi/NCR5380.c if (!hostdata->work_q) hostdata 414 drivers/scsi/NCR5380.c snprintf(hostdata->info, sizeof(hostdata->info), hostdata 416 drivers/scsi/NCR5380.c instance->hostt->name, instance->irq, hostdata->io_port, hostdata 417 drivers/scsi/NCR5380.c hostdata->base, instance->can_queue, instance->cmd_per_lun, hostdata 419 drivers/scsi/NCR5380.c hostdata->flags & FLAG_DMA_FIXUP ? "DMA_FIXUP " : "", hostdata 420 drivers/scsi/NCR5380.c hostdata->flags & FLAG_NO_PSEUDO_DMA ? "NO_PSEUDO_DMA " : "", hostdata 421 drivers/scsi/NCR5380.c hostdata->flags & FLAG_TOSHIBA_DELAY ? "TOSHIBA_DELAY " : ""); hostdata 441 drivers/scsi/NCR5380.c hostdata->poll_loops = NCR5380_REG_POLL_TIME * accesses_per_ms / 2; hostdata 462 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 471 drivers/scsi/NCR5380.c NCR5380_poll_politely(hostdata, hostdata 485 drivers/scsi/NCR5380.c if (hostdata->flags & FLAG_TOSHIBA_DELAY) hostdata 507 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 509 drivers/scsi/NCR5380.c cancel_work_sync(&hostdata->main_task); hostdata 510 drivers/scsi/NCR5380.c destroy_workqueue(hostdata->work_q); hostdata 522 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 526 drivers/scsi/NCR5380.c if (hostdata->sensing == cmd) { hostdata 529 drivers/scsi/NCR5380.c scsi_eh_restore_cmnd(cmd, &hostdata->ses); hostdata 531 drivers/scsi/NCR5380.c scsi_eh_restore_cmnd(cmd, &hostdata->ses); hostdata 534 drivers/scsi/NCR5380.c hostdata->sensing = NULL; hostdata 553 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 573 drivers/scsi/NCR5380.c spin_lock_irqsave(&hostdata->lock, flags); hostdata 583 drivers/scsi/NCR5380.c list_add(&ncmd->list, &hostdata->unissued); hostdata 585 drivers/scsi/NCR5380.c list_add_tail(&ncmd->list, &hostdata->unissued); hostdata 587 drivers/scsi/NCR5380.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 593 drivers/scsi/NCR5380.c queue_work(hostdata->work_q, &hostdata->main_task); hostdata 599 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 602 drivers/scsi/NCR5380.c if (list_empty(&hostdata->disconnected) && hostdata 603 drivers/scsi/NCR5380.c list_empty(&hostdata->unissued) && hostdata 604 drivers/scsi/NCR5380.c list_empty(&hostdata->autosense) && hostdata 605 drivers/scsi/NCR5380.c !hostdata->connected && hostdata 606 drivers/scsi/NCR5380.c !hostdata->selecting) { hostdata 624 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 628 drivers/scsi/NCR5380.c if (hostdata->sensing || list_empty(&hostdata->autosense)) { hostdata 629 drivers/scsi/NCR5380.c list_for_each_entry(ncmd, &hostdata->unissued, list) { hostdata 632 drivers/scsi/NCR5380.c cmd, scmd_id(cmd), hostdata->busy[scmd_id(cmd)], cmd->device->lun); hostdata 634 drivers/scsi/NCR5380.c if (!(hostdata->busy[scmd_id(cmd)] & (1 << cmd->device->lun))) { hostdata 643 drivers/scsi/NCR5380.c ncmd = list_first_entry(&hostdata->autosense, hostdata 649 drivers/scsi/NCR5380.c scsi_eh_prep_cmnd(cmd, &hostdata->ses, NULL, 0, ~0); hostdata 650 drivers/scsi/NCR5380.c hostdata->sensing = cmd; hostdata 658 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 661 drivers/scsi/NCR5380.c if (hostdata->sensing == cmd) { hostdata 662 drivers/scsi/NCR5380.c scsi_eh_restore_cmnd(cmd, &hostdata->ses); hostdata 663 drivers/scsi/NCR5380.c list_add(&ncmd->list, &hostdata->autosense); hostdata 664 drivers/scsi/NCR5380.c hostdata->sensing = NULL; hostdata 666 drivers/scsi/NCR5380.c list_add(&ncmd->list, &hostdata->unissued); hostdata 680 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = hostdata 682 drivers/scsi/NCR5380.c struct Scsi_Host *instance = hostdata->host; hostdata 688 drivers/scsi/NCR5380.c spin_lock_irq(&hostdata->lock); hostdata 689 drivers/scsi/NCR5380.c while (!hostdata->connected && !hostdata->selecting) { hostdata 719 drivers/scsi/NCR5380.c if (hostdata->connected && !hostdata->dma_len) { hostdata 724 drivers/scsi/NCR5380.c if (!hostdata->connected) hostdata 725 drivers/scsi/NCR5380.c NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); hostdata 726 drivers/scsi/NCR5380.c spin_unlock_irq(&hostdata->lock); hostdata 742 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 749 drivers/scsi/NCR5380.c if (hostdata->read_overruns) { hostdata 750 drivers/scsi/NCR5380.c p = hostdata->connected->SCp.phase; hostdata 764 drivers/scsi/NCR5380.c if ((sun3scsi_dma_finish(rq_data_dir(hostdata->connected->request)))) { hostdata 784 drivers/scsi/NCR5380.c transferred = hostdata->dma_len - NCR5380_dma_residual(hostdata); hostdata 785 drivers/scsi/NCR5380.c hostdata->dma_len = 0; hostdata 787 drivers/scsi/NCR5380.c data = (unsigned char **)&hostdata->connected->SCp.ptr; hostdata 788 drivers/scsi/NCR5380.c count = &hostdata->connected->SCp.this_residual; hostdata 792 drivers/scsi/NCR5380.c if (hostdata->read_overruns) { hostdata 796 drivers/scsi/NCR5380.c cnt = toPIO = hostdata->read_overruns; hostdata 852 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 857 drivers/scsi/NCR5380.c spin_lock_irqsave(&hostdata->lock, flags); hostdata 875 drivers/scsi/NCR5380.c if (hostdata->connected) { hostdata 877 drivers/scsi/NCR5380.c queue_work(hostdata->work_q, &hostdata->main_task); hostdata 882 drivers/scsi/NCR5380.c } else if ((NCR5380_read(CURRENT_SCSI_DATA_REG) & hostdata->id_mask) && hostdata 890 drivers/scsi/NCR5380.c if (!hostdata->connected) { hostdata 892 drivers/scsi/NCR5380.c queue_work(hostdata->work_q, &hostdata->main_task); hostdata 894 drivers/scsi/NCR5380.c if (!hostdata->connected) hostdata 895 drivers/scsi/NCR5380.c NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); hostdata 920 drivers/scsi/NCR5380.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 951 drivers/scsi/NCR5380.c __releases(&hostdata->lock) __acquires(&hostdata->lock) hostdata 953 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 974 drivers/scsi/NCR5380.c hostdata->selecting = cmd; hostdata 987 drivers/scsi/NCR5380.c NCR5380_write(OUTPUT_DATA_REG, hostdata->id_mask); hostdata 994 drivers/scsi/NCR5380.c spin_unlock_irq(&hostdata->lock); hostdata 995 drivers/scsi/NCR5380.c err = NCR5380_poll_politely2(hostdata, MODE_REG, MR_ARBITRATE, 0, hostdata 998 drivers/scsi/NCR5380.c spin_lock_irq(&hostdata->lock); hostdata 1003 drivers/scsi/NCR5380.c if (!hostdata->selecting) { hostdata 1014 drivers/scsi/NCR5380.c spin_unlock_irq(&hostdata->lock); hostdata 1021 drivers/scsi/NCR5380.c (NCR5380_read(CURRENT_SCSI_DATA_REG) & hostdata->id_higher_mask) || hostdata 1025 drivers/scsi/NCR5380.c spin_lock_irq(&hostdata->lock); hostdata 1041 drivers/scsi/NCR5380.c if (hostdata->flags & FLAG_TOSHIBA_DELAY) hostdata 1046 drivers/scsi/NCR5380.c spin_lock_irq(&hostdata->lock); hostdata 1052 drivers/scsi/NCR5380.c if (!hostdata->selecting) { hostdata 1065 drivers/scsi/NCR5380.c NCR5380_write(OUTPUT_DATA_REG, hostdata->id_mask | (1 << scmd_id(cmd))); hostdata 1083 drivers/scsi/NCR5380.c spin_unlock_irq(&hostdata->lock); hostdata 1121 drivers/scsi/NCR5380.c err = NCR5380_poll_politely(hostdata, STATUS_REG, SR_BSY, SR_BSY, hostdata 1125 drivers/scsi/NCR5380.c spin_lock_irq(&hostdata->lock); hostdata 1133 drivers/scsi/NCR5380.c spin_lock_irq(&hostdata->lock); hostdata 1137 drivers/scsi/NCR5380.c if (!hostdata->selecting) hostdata 1167 drivers/scsi/NCR5380.c err = NCR5380_poll_politely(hostdata, STATUS_REG, SR_REQ, SR_REQ, HZ); hostdata 1168 drivers/scsi/NCR5380.c spin_lock_irq(&hostdata->lock); hostdata 1174 drivers/scsi/NCR5380.c if (!hostdata->selecting) { hostdata 1198 drivers/scsi/NCR5380.c hostdata->connected = cmd; hostdata 1199 drivers/scsi/NCR5380.c hostdata->busy[cmd->device->id] |= 1 << cmd->device->lun; hostdata 1210 drivers/scsi/NCR5380.c if (!hostdata->selecting) hostdata 1212 drivers/scsi/NCR5380.c hostdata->selecting = NULL; hostdata 1245 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 1264 drivers/scsi/NCR5380.c if (NCR5380_poll_politely(hostdata, STATUS_REG, SR_REQ, SR_REQ, HZ) < 0) hostdata 1309 drivers/scsi/NCR5380.c if (NCR5380_poll_politely(hostdata, hostdata 1368 drivers/scsi/NCR5380.c struct NCR5380_hostdata __maybe_unused *hostdata = shost_priv(instance); hostdata 1391 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 1409 drivers/scsi/NCR5380.c rc = NCR5380_poll_politely(hostdata, STATUS_REG, SR_REQ, SR_REQ, 10 * HZ); hostdata 1420 drivers/scsi/NCR5380.c rc = NCR5380_poll_politely(hostdata, STATUS_REG, SR_REQ, 0, 3 * HZ); hostdata 1467 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 1479 drivers/scsi/NCR5380.c hostdata->connected->SCp.phase = p; hostdata 1482 drivers/scsi/NCR5380.c if (hostdata->read_overruns) hostdata 1483 drivers/scsi/NCR5380.c c -= hostdata->read_overruns; hostdata 1484 drivers/scsi/NCR5380.c else if (hostdata->flags & FLAG_DMA_FIXUP) hostdata 1500 drivers/scsi/NCR5380.c if (!(hostdata->flags & FLAG_LATE_DMA_SETUP)) { hostdata 1505 drivers/scsi/NCR5380.c result = NCR5380_dma_recv_setup(hostdata, d, c); hostdata 1507 drivers/scsi/NCR5380.c result = NCR5380_dma_send_setup(hostdata, d, c); hostdata 1534 drivers/scsi/NCR5380.c if (hostdata->flags & FLAG_LATE_DMA_SETUP) { hostdata 1539 drivers/scsi/NCR5380.c result = NCR5380_dma_recv_setup(hostdata, d, c); hostdata 1541 drivers/scsi/NCR5380.c result = NCR5380_dma_send_setup(hostdata, d, c); hostdata 1550 drivers/scsi/NCR5380.c hostdata->dma_len = result; hostdata 1555 drivers/scsi/NCR5380.c hostdata->dma_len = c; hostdata 1591 drivers/scsi/NCR5380.c if (hostdata->flags & FLAG_DMA_FIXUP) { hostdata 1608 drivers/scsi/NCR5380.c if (NCR5380_poll_politely(hostdata, BUS_AND_STATUS_REG, hostdata 1613 drivers/scsi/NCR5380.c if (NCR5380_poll_politely(hostdata, STATUS_REG, hostdata 1624 drivers/scsi/NCR5380.c if (NCR5380_poll_politely2(hostdata, hostdata 1655 drivers/scsi/NCR5380.c __releases(&hostdata->lock) __acquires(&hostdata->lock) hostdata 1657 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 1670 drivers/scsi/NCR5380.c while ((cmd = hostdata->connected)) { hostdata 1688 drivers/scsi/NCR5380.c count = sun3scsi_dma_xfer_len(hostdata, cmd); hostdata 1692 drivers/scsi/NCR5380.c sun3scsi_dma_send_setup(hostdata, hostdata 1695 drivers/scsi/NCR5380.c sun3scsi_dma_recv_setup(hostdata, hostdata 1726 drivers/scsi/NCR5380.c hostdata->connected = NULL; hostdata 1727 drivers/scsi/NCR5380.c hostdata->busy[scmd_id(cmd)] &= ~(1 << cmd->device->lun); hostdata 1754 drivers/scsi/NCR5380.c transfersize = NCR5380_dma_xfer_len(hostdata, cmd); hostdata 1803 drivers/scsi/NCR5380.c hostdata->connected = NULL; hostdata 1804 drivers/scsi/NCR5380.c hostdata->busy[scmd_id(cmd)] &= ~(1 << cmd->device->lun); hostdata 1818 drivers/scsi/NCR5380.c &hostdata->autosense); hostdata 1834 drivers/scsi/NCR5380.c switch (hostdata->last_message) { hostdata 1839 drivers/scsi/NCR5380.c hostdata->busy[cmd->device->id] |= (1 << (cmd->device->lun & 0xFF)); hostdata 1848 drivers/scsi/NCR5380.c hostdata->connected = NULL; hostdata 1849 drivers/scsi/NCR5380.c list_add(&ncmd->list, &hostdata->disconnected); hostdata 1888 drivers/scsi/NCR5380.c spin_unlock_irq(&hostdata->lock); hostdata 1926 drivers/scsi/NCR5380.c spin_lock_irq(&hostdata->lock); hostdata 1927 drivers/scsi/NCR5380.c if (!hostdata->connected) hostdata 1954 drivers/scsi/NCR5380.c hostdata->last_message = msgout; hostdata 1957 drivers/scsi/NCR5380.c hostdata->connected = NULL; hostdata 1958 drivers/scsi/NCR5380.c hostdata->busy[scmd_id(cmd)] &= ~(1 << cmd->device->lun); hostdata 1987 drivers/scsi/NCR5380.c spin_unlock_irq(&hostdata->lock); hostdata 1988 drivers/scsi/NCR5380.c NCR5380_poll_politely(hostdata, STATUS_REG, SR_REQ, SR_REQ, HZ); hostdata 1989 drivers/scsi/NCR5380.c spin_lock_irq(&hostdata->lock); hostdata 2006 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 2020 drivers/scsi/NCR5380.c target_mask = NCR5380_read(CURRENT_SCSI_DATA_REG) & ~(hostdata->id_mask); hostdata 2037 drivers/scsi/NCR5380.c if (NCR5380_poll_politely(hostdata, hostdata 2049 drivers/scsi/NCR5380.c if (NCR5380_poll_politely(hostdata, hostdata 2101 drivers/scsi/NCR5380.c list_for_each_entry(ncmd, &hostdata->disconnected, list) { hostdata 2125 drivers/scsi/NCR5380.c hostdata->busy[target] &= ~(1 << lun); hostdata 2135 drivers/scsi/NCR5380.c count = sun3scsi_dma_xfer_len(hostdata, tmp); hostdata 2139 drivers/scsi/NCR5380.c sun3scsi_dma_send_setup(hostdata, hostdata 2142 drivers/scsi/NCR5380.c sun3scsi_dma_recv_setup(hostdata, hostdata 2154 drivers/scsi/NCR5380.c hostdata->connected = tmp; hostdata 2226 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 2230 drivers/scsi/NCR5380.c spin_lock_irqsave(&hostdata->lock, flags); hostdata 2238 drivers/scsi/NCR5380.c if (list_del_cmd(&hostdata->unissued, cmd)) { hostdata 2246 drivers/scsi/NCR5380.c if (hostdata->selecting == cmd) { hostdata 2249 drivers/scsi/NCR5380.c hostdata->selecting = NULL; hostdata 2255 drivers/scsi/NCR5380.c if (list_del_cmd(&hostdata->disconnected, cmd)) { hostdata 2267 drivers/scsi/NCR5380.c if (hostdata->connected == cmd) { hostdata 2269 drivers/scsi/NCR5380.c hostdata->connected = NULL; hostdata 2270 drivers/scsi/NCR5380.c hostdata->dma_len = 0; hostdata 2282 drivers/scsi/NCR5380.c if (list_del_cmd(&hostdata->autosense, cmd)) { hostdata 2292 drivers/scsi/NCR5380.c hostdata->busy[scmd_id(cmd)] &= ~(1 << cmd->device->lun); hostdata 2296 drivers/scsi/NCR5380.c queue_work(hostdata->work_q, &hostdata->main_task); hostdata 2298 drivers/scsi/NCR5380.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 2306 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 2321 drivers/scsi/NCR5380.c if (hostdata->selecting) { hostdata 2322 drivers/scsi/NCR5380.c hostdata->selecting->result = DID_RESET << 16; hostdata 2323 drivers/scsi/NCR5380.c complete_cmd(instance, hostdata->selecting); hostdata 2324 drivers/scsi/NCR5380.c hostdata->selecting = NULL; hostdata 2327 drivers/scsi/NCR5380.c list_for_each_entry(ncmd, &hostdata->disconnected, list) { hostdata 2333 drivers/scsi/NCR5380.c INIT_LIST_HEAD(&hostdata->disconnected); hostdata 2335 drivers/scsi/NCR5380.c list_for_each_entry(ncmd, &hostdata->autosense, list) { hostdata 2340 drivers/scsi/NCR5380.c INIT_LIST_HEAD(&hostdata->autosense); hostdata 2342 drivers/scsi/NCR5380.c if (hostdata->connected) { hostdata 2343 drivers/scsi/NCR5380.c set_host_byte(hostdata->connected, DID_RESET); hostdata 2344 drivers/scsi/NCR5380.c complete_cmd(instance, hostdata->connected); hostdata 2345 drivers/scsi/NCR5380.c hostdata->connected = NULL; hostdata 2349 drivers/scsi/NCR5380.c hostdata->busy[i] = 0; hostdata 2350 drivers/scsi/NCR5380.c hostdata->dma_len = 0; hostdata 2352 drivers/scsi/NCR5380.c queue_work(hostdata->work_q, &hostdata->main_task); hostdata 2366 drivers/scsi/NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 2370 drivers/scsi/NCR5380.c spin_lock_irqsave(&hostdata->lock, flags); hostdata 2378 drivers/scsi/NCR5380.c list_for_each_entry(ncmd, &hostdata->unissued, list) { hostdata 2384 drivers/scsi/NCR5380.c INIT_LIST_HEAD(&hostdata->unissued); hostdata 2389 drivers/scsi/NCR5380.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 285 drivers/scsi/NCR5380.h static inline int NCR5380_poll_politely(struct NCR5380_hostdata *hostdata, hostdata 292 drivers/scsi/NCR5380.h return NCR5380_poll_politely2(hostdata, reg, bit, val, hostdata 304 drivers/scsi/NCR5380.h static inline int NCR5380_dma_xfer_none(struct NCR5380_hostdata *hostdata, hostdata 310 drivers/scsi/NCR5380.h static inline int NCR5380_dma_setup_none(struct NCR5380_hostdata *hostdata, hostdata 316 drivers/scsi/NCR5380.h static inline int NCR5380_dma_residual_none(struct NCR5380_hostdata *hostdata) hostdata 919 drivers/scsi/a100u2w.c host = (struct orc_host *) cmd->device->host->hostdata; hostdata 947 drivers/scsi/a100u2w.c host = (struct orc_host *) cmd->device->host->hostdata; hostdata 962 drivers/scsi/a100u2w.c host = (struct orc_host *) cmd->device->host->hostdata; hostdata 976 drivers/scsi/a100u2w.c host = (struct orc_host *) cmd->device->host->hostdata; hostdata 1060 drivers/scsi/a100u2w.c struct orc_host *host = (struct orc_host *)shost->hostdata; hostdata 1118 drivers/scsi/a100u2w.c host = (struct orc_host *)shost->hostdata; hostdata 1201 drivers/scsi/a100u2w.c struct orc_host *host = (struct orc_host *)shost->hostdata; hostdata 39 drivers/scsi/a4000t.c struct NCR_700_Host_Parameters *hostdata; hostdata 50 drivers/scsi/a4000t.c hostdata = kzalloc(sizeof(struct NCR_700_Host_Parameters), hostdata 52 drivers/scsi/a4000t.c if (!hostdata) { hostdata 60 drivers/scsi/a4000t.c hostdata->base = ZTWO_VADDR(scsi_addr); hostdata 61 drivers/scsi/a4000t.c hostdata->clock = 50; hostdata 62 drivers/scsi/a4000t.c hostdata->chip710 = 1; hostdata 63 drivers/scsi/a4000t.c hostdata->dmode_extra = DMODE_FC2; hostdata 64 drivers/scsi/a4000t.c hostdata->dcntl_extra = EA_710; hostdata 67 drivers/scsi/a4000t.c host = NCR_700_detect(&a4000t_scsi_driver_template, hostdata, hostdata 92 drivers/scsi/a4000t.c kfree(hostdata); hostdata 101 drivers/scsi/a4000t.c struct NCR_700_Host_Parameters *hostdata = shost_priv(host); hostdata 106 drivers/scsi/a4000t.c kfree(hostdata); hostdata 575 drivers/scsi/aacraid/aachba.c dev = (struct aac_dev *)scsicmd->device->host->hostdata; hostdata 611 drivers/scsi/aacraid/aachba.c struct fsa_dev_info *fsa_dev_ptr = ((struct aac_dev *)(scsicmd->device->host->hostdata))->fsa_dev; hostdata 737 drivers/scsi/aacraid/aachba.c if ((fibptr = aac_fib_alloc((struct aac_dev *)scsicmd->device->host->hostdata))) { hostdata 775 drivers/scsi/aacraid/aachba.c struct fsa_dev_info *fsa_dev_ptr = ((struct aac_dev *)(scsicmd->device->host->hostdata))->fsa_dev; hostdata 997 drivers/scsi/aacraid/aachba.c dev = (struct aac_dev *)scsicmd->device->host->hostdata; hostdata 1107 drivers/scsi/aacraid/aachba.c dev = (struct aac_dev *)scsicmd->device->host->hostdata; hostdata 1521 drivers/scsi/aacraid/aachba.c dev = (struct aac_dev *)cmd->device->host->hostdata; hostdata 1635 drivers/scsi/aacraid/aachba.c dev = (struct aac_dev *)cmd->device->host->hostdata; hostdata 2415 drivers/scsi/aacraid/aachba.c dev = (struct aac_dev *)scsicmd->device->host->hostdata; hostdata 2517 drivers/scsi/aacraid/aachba.c dev = (struct aac_dev *)scsicmd->device->host->hostdata; hostdata 2718 drivers/scsi/aacraid/aachba.c aac = (struct aac_dev *)sdev->host->hostdata; hostdata 2784 drivers/scsi/aacraid/aachba.c struct aac_dev *aac = (struct aac_dev *)sdev->host->hostdata; hostdata 2849 drivers/scsi/aacraid/aachba.c struct aac_dev *dev = (struct aac_dev *)host->hostdata; hostdata 3833 drivers/scsi/aacraid/aachba.c dev = (struct aac_dev *)scsicmd->device->host->hostdata; hostdata 258 drivers/scsi/aacraid/linit.c struct aac_dev *dev = (struct aac_dev *)shost->hostdata; hostdata 390 drivers/scsi/aacraid/linit.c struct aac_dev *aac = (struct aac_dev *)sdev->host->hostdata; hostdata 514 drivers/scsi/aacraid/linit.c struct aac_dev *aac = (struct aac_dev *)(sdev->host->hostdata); hostdata 555 drivers/scsi/aacraid/linit.c struct aac_dev *aac = (struct aac_dev *)(sdev->host->hostdata); hostdata 576 drivers/scsi/aacraid/linit.c struct aac_dev *aac = (struct aac_dev *)(sdev->host->hostdata); hostdata 611 drivers/scsi/aacraid/linit.c struct aac_dev *dev = (struct aac_dev *)sdev->host->hostdata; hostdata 671 drivers/scsi/aacraid/linit.c struct aac_dev * aac = (struct aac_dev *)host->hostdata; hostdata 888 drivers/scsi/aacraid/linit.c struct aac_dev * aac = (struct aac_dev *)host->hostdata; hostdata 946 drivers/scsi/aacraid/linit.c struct aac_dev * aac = (struct aac_dev *)host->hostdata; hostdata 1005 drivers/scsi/aacraid/linit.c struct aac_dev * aac = (struct aac_dev *)host->hostdata; hostdata 1058 drivers/scsi/aacraid/linit.c struct aac_dev * aac = (struct aac_dev *)host->hostdata; hostdata 1201 drivers/scsi/aacraid/linit.c struct aac_dev *dev = (struct aac_dev *)sdev->host->hostdata; hostdata 1218 drivers/scsi/aacraid/linit.c struct aac_dev *dev = (struct aac_dev*)class_to_shost(device)->hostdata; hostdata 1237 drivers/scsi/aacraid/linit.c struct aac_dev *dev = (struct aac_dev*)class_to_shost(device)->hostdata; hostdata 1259 drivers/scsi/aacraid/linit.c struct aac_dev *dev = (struct aac_dev*)class_to_shost(cdev)->hostdata; hostdata 1285 drivers/scsi/aacraid/linit.c struct aac_dev *dev = (struct aac_dev*)class_to_shost(device)->hostdata; hostdata 1299 drivers/scsi/aacraid/linit.c struct aac_dev *dev = (struct aac_dev*)class_to_shost(device)->hostdata; hostdata 1313 drivers/scsi/aacraid/linit.c struct aac_dev *dev = (struct aac_dev*)class_to_shost(device)->hostdata; hostdata 1333 drivers/scsi/aacraid/linit.c struct aac_dev *dev = (struct aac_dev*)class_to_shost(device)->hostdata; hostdata 1385 drivers/scsi/aacraid/linit.c struct aac_dev *dev = (struct aac_dev*)class_to_shost(device)->hostdata; hostdata 1662 drivers/scsi/aacraid/linit.c aac = (struct aac_dev *)shost->hostdata; hostdata 1872 drivers/scsi/aacraid/linit.c struct aac_dev *aac = (struct aac_dev *)shost->hostdata; hostdata 1891 drivers/scsi/aacraid/linit.c struct aac_dev *aac = (struct aac_dev *)shost->hostdata; hostdata 1926 drivers/scsi/aacraid/linit.c __aac_shutdown((struct aac_dev *)shost->hostdata); hostdata 1932 drivers/scsi/aacraid/linit.c struct aac_dev *aac = (struct aac_dev *)shost->hostdata; hostdata 509 drivers/scsi/aha152x.c #define HOSTDATA(shpnt) ((struct aha152x_hostdata *) &shpnt->hostdata) hostdata 1300 drivers/scsi/aha152x.c struct Scsi_Host *shost = container_of((void *)hd, struct Scsi_Host, hostdata); hostdata 3341 drivers/scsi/aha152x.c struct Scsi_Host *shost = container_of((void *)hd, struct Scsi_Host, hostdata); hostdata 86 drivers/scsi/aha1740.c #define HOSTDATA(host) ((struct aha1740_hostdata *) &host->hostdata) hostdata 559 drivers/scsi/aic7xxx/aic79xx_osm.c ahd = *(struct ahd_softc **)host->hostdata; hostdata 582 drivers/scsi/aic7xxx/aic79xx_osm.c ahd = *(struct ahd_softc **)cmd->device->host->hostdata; hostdata 597 drivers/scsi/aic7xxx/aic79xx_osm.c *((struct ahd_softc **)dev_to_shost(&starget->dev)->hostdata); hostdata 611 drivers/scsi/aic7xxx/aic79xx_osm.c *((struct ahd_softc **)dev_to_shost(&starget->dev)->hostdata); hostdata 675 drivers/scsi/aic7xxx/aic79xx_osm.c *((struct ahd_softc **)sdev->host->hostdata); hostdata 705 drivers/scsi/aic7xxx/aic79xx_osm.c ahd = *((struct ahd_softc **)sdev->host->hostdata); hostdata 734 drivers/scsi/aic7xxx/aic79xx_osm.c ahd = *((struct ahd_softc **)sdev->host->hostdata); hostdata 798 drivers/scsi/aic7xxx/aic79xx_osm.c ahd = *(struct ahd_softc **)cmd->device->host->hostdata; hostdata 886 drivers/scsi/aic7xxx/aic79xx_osm.c ahd = *(struct ahd_softc **)cmd->device->host->hostdata; hostdata 1236 drivers/scsi/aic7xxx/aic79xx_osm.c *((struct ahd_softc **)host->hostdata) = ahd; hostdata 1531 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)sdev->host->hostdata); hostdata 2168 drivers/scsi/aic7xxx/aic79xx_osm.c ahd = *(struct ahd_softc **)cmd->device->host->hostdata; hostdata 2389 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); hostdata 2403 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); hostdata 2456 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); hostdata 2491 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); hostdata 2533 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); hostdata 2572 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); hostdata 2612 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); hostdata 2648 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); hostdata 2684 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); hostdata 2728 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); hostdata 2778 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); hostdata 2807 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata; hostdata 210 drivers/scsi/aic7xxx/aic79xx_proc.c struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata; hostdata 276 drivers/scsi/aic7xxx/aic79xx_proc.c struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata; hostdata 503 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc = *(struct ahc_softc **)host->hostdata; hostdata 528 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc = *(struct ahc_softc **)cmd->device->host->hostdata; hostdata 547 drivers/scsi/aic7xxx/aic7xxx_osm.c *((struct ahc_softc **)dev_to_shost(&starget->dev)->hostdata); hostdata 561 drivers/scsi/aic7xxx/aic7xxx_osm.c *((struct ahc_softc **)dev_to_shost(&starget->dev)->hostdata); hostdata 643 drivers/scsi/aic7xxx/aic7xxx_osm.c *((struct ahc_softc **)sdev->host->hostdata); hostdata 676 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc = *((struct ahc_softc **)sdev->host->hostdata); hostdata 707 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc = *((struct ahc_softc **)sdev->host->hostdata); hostdata 778 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc = *(struct ahc_softc **)cmd->device->host->hostdata; hostdata 1099 drivers/scsi/aic7xxx/aic7xxx_osm.c *((struct ahc_softc **)host->hostdata) = ahc; hostdata 1395 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_softc *ahc = *((struct ahc_softc **)sdev->host->hostdata); hostdata 2070 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc = *(struct ahc_softc **)cmd->device->host->hostdata; hostdata 2332 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); hostdata 2346 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); hostdata 2390 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); hostdata 2418 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); hostdata 2456 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); hostdata 2484 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); hostdata 2512 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; hostdata 190 drivers/scsi/aic7xxx/aic7xxx_proc.c struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; hostdata 291 drivers/scsi/aic7xxx/aic7xxx_proc.c struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; hostdata 71 drivers/scsi/arcmsr/arcmsr_attr.c struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; hostdata 118 drivers/scsi/arcmsr/arcmsr_attr.c struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; hostdata 166 drivers/scsi/arcmsr/arcmsr_attr.c struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; hostdata 274 drivers/scsi/arcmsr/arcmsr_attr.c (struct AdapterControlBlock *) host->hostdata; hostdata 286 drivers/scsi/arcmsr/arcmsr_attr.c (struct AdapterControlBlock *) host->hostdata; hostdata 298 drivers/scsi/arcmsr/arcmsr_attr.c (struct AdapterControlBlock *) host->hostdata; hostdata 310 drivers/scsi/arcmsr/arcmsr_attr.c (struct AdapterControlBlock *) host->hostdata; hostdata 322 drivers/scsi/arcmsr/arcmsr_attr.c (struct AdapterControlBlock *) host->hostdata; hostdata 335 drivers/scsi/arcmsr/arcmsr_attr.c (struct AdapterControlBlock *) host->hostdata; hostdata 348 drivers/scsi/arcmsr/arcmsr_attr.c (struct AdapterControlBlock *) host->hostdata; hostdata 361 drivers/scsi/arcmsr/arcmsr_attr.c (struct AdapterControlBlock *) host->hostdata; hostdata 374 drivers/scsi/arcmsr/arcmsr_attr.c (struct AdapterControlBlock *) host->hostdata; hostdata 972 drivers/scsi/arcmsr/arcmsr_hba.c acb = (struct AdapterControlBlock *) host->hostdata; hostdata 1078 drivers/scsi/arcmsr/arcmsr_hba.c (struct AdapterControlBlock *)host->hostdata; hostdata 1099 drivers/scsi/arcmsr/arcmsr_hba.c (struct AdapterControlBlock *)host->hostdata; hostdata 1590 drivers/scsi/arcmsr/arcmsr_hba.c (struct AdapterControlBlock *) host->hostdata; hostdata 1647 drivers/scsi/arcmsr/arcmsr_hba.c (struct AdapterControlBlock *)host->hostdata; hostdata 3092 drivers/scsi/arcmsr/arcmsr_hba.c struct AdapterControlBlock *acb = (struct AdapterControlBlock *) host->hostdata; hostdata 4372 drivers/scsi/arcmsr/arcmsr_hba.c acb = (struct AdapterControlBlock *) cmd->device->host->hostdata; hostdata 4436 drivers/scsi/arcmsr/arcmsr_hba.c (struct AdapterControlBlock *)cmd->device->host->hostdata; hostdata 4476 drivers/scsi/arcmsr/arcmsr_hba.c (struct AdapterControlBlock *) host->hostdata; hostdata 2470 drivers/scsi/arm/acornscsi.c AS_Host *host = (AS_Host *)SCpnt->device->host->hostdata; hostdata 2646 drivers/scsi/arm/acornscsi.c AS_Host *host = (AS_Host *) SCpnt->device->host->hostdata; hostdata 2727 drivers/scsi/arm/acornscsi.c AS_Host *host = (AS_Host *)SCpnt->device->host->hostdata; hostdata 2798 drivers/scsi/arm/acornscsi.c host = (AS_Host *)instance->hostdata; hostdata 2910 drivers/scsi/arm/acornscsi.c ashost = (AS_Host *)host->hostdata; hostdata 2963 drivers/scsi/arm/acornscsi.c AS_Host *ashost = (AS_Host *)host->hostdata; hostdata 116 drivers/scsi/arm/arxescsi.c struct arxescsi_info *info = (struct arxescsi_info *)host->hostdata; hostdata 214 drivers/scsi/arm/arxescsi.c struct arxescsi_info *info = (struct arxescsi_info *)host->hostdata; hostdata 228 drivers/scsi/arm/arxescsi.c info = (struct arxescsi_info *)host->hostdata; hostdata 276 drivers/scsi/arm/arxescsi.c info = (struct arxescsi_info *)host->hostdata; hostdata 17 drivers/scsi/arm/cumana_1.c #define priv(host) ((struct NCR5380_hostdata *)(host)->hostdata) hostdata 18 drivers/scsi/arm/cumana_1.c #define NCR5380_read(reg) cumanascsi_read(hostdata, reg) hostdata 19 drivers/scsi/arm/cumana_1.c #define NCR5380_write(reg, value) cumanascsi_write(hostdata, reg, value) hostdata 44 drivers/scsi/arm/cumana_1.c static inline int cumanascsi_pwrite(struct NCR5380_hostdata *hostdata, hostdata 48 drivers/scsi/arm/cumana_1.c u8 __iomem *base = hostdata->io; hostdata 49 drivers/scsi/arm/cumana_1.c u8 __iomem *dma = hostdata->pdma_io + 0x2000; hostdata 104 drivers/scsi/arm/cumana_1.c writeb(hostdata->ctrl | 0x40, base + CTRL); hostdata 111 drivers/scsi/arm/cumana_1.c static inline int cumanascsi_pread(struct NCR5380_hostdata *hostdata, hostdata 115 drivers/scsi/arm/cumana_1.c u8 __iomem *base = hostdata->io; hostdata 116 drivers/scsi/arm/cumana_1.c u8 __iomem *dma = hostdata->pdma_io + 0x2000; hostdata 170 drivers/scsi/arm/cumana_1.c writeb(hostdata->ctrl | 0x40, base + CTRL); hostdata 177 drivers/scsi/arm/cumana_1.c static int cumanascsi_dma_xfer_len(struct NCR5380_hostdata *hostdata, hostdata 183 drivers/scsi/arm/cumana_1.c static u8 cumanascsi_read(struct NCR5380_hostdata *hostdata, hostdata 186 drivers/scsi/arm/cumana_1.c u8 __iomem *base = hostdata->io; hostdata 193 drivers/scsi/arm/cumana_1.c hostdata->ctrl = 0x40; hostdata 199 drivers/scsi/arm/cumana_1.c static void cumanascsi_write(struct NCR5380_hostdata *hostdata, hostdata 202 drivers/scsi/arm/cumana_1.c u8 __iomem *base = hostdata->io; hostdata 208 drivers/scsi/arm/cumana_1.c hostdata->ctrl = 0x40; hostdata 121 drivers/scsi/arm/cumana_2.c struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; hostdata 157 drivers/scsi/arm/cumana_2.c struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; hostdata 209 drivers/scsi/arm/cumana_2.c struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; hostdata 282 drivers/scsi/arm/cumana_2.c struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; hostdata 296 drivers/scsi/arm/cumana_2.c struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; hostdata 340 drivers/scsi/arm/cumana_2.c info = (struct cumanascsi2_info *)host->hostdata; hostdata 397 drivers/scsi/arm/cumana_2.c info = (struct cumanascsi2_info *)host->hostdata; hostdata 471 drivers/scsi/arm/cumana_2.c struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; hostdata 120 drivers/scsi/arm/eesox.c struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; hostdata 158 drivers/scsi/arm/eesox.c struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; hostdata 353 drivers/scsi/arm/eesox.c struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; hostdata 369 drivers/scsi/arm/eesox.c struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; hostdata 381 drivers/scsi/arm/eesox.c struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; hostdata 426 drivers/scsi/arm/eesox.c info = (struct eesoxscsi_info *)host->hostdata; hostdata 442 drivers/scsi/arm/eesox.c struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; hostdata 451 drivers/scsi/arm/eesox.c struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; hostdata 515 drivers/scsi/arm/eesox.c info = (struct eesoxscsi_info *)host->hostdata; hostdata 593 drivers/scsi/arm/eesox.c struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; hostdata 2209 drivers/scsi/arm/fas216.c FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; hostdata 2258 drivers/scsi/arm/fas216.c FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; hostdata 2276 drivers/scsi/arm/fas216.c FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; hostdata 2426 drivers/scsi/arm/fas216.c FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; hostdata 2479 drivers/scsi/arm/fas216.c FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; hostdata 2560 drivers/scsi/arm/fas216.c FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; hostdata 2660 drivers/scsi/arm/fas216.c FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; hostdata 2843 drivers/scsi/arm/fas216.c FAS216_Info *info = (FAS216_Info *)host->hostdata; hostdata 2886 drivers/scsi/arm/fas216.c FAS216_Info *info = (FAS216_Info *)host->hostdata; hostdata 2937 drivers/scsi/arm/fas216.c FAS216_Info *info = (FAS216_Info *)host->hostdata; hostdata 2954 drivers/scsi/arm/fas216.c FAS216_Info *info = (FAS216_Info *)host->hostdata; hostdata 18 drivers/scsi/arm/oak.c #define priv(host) ((struct NCR5380_hostdata *)(host)->hostdata) hostdata 20 drivers/scsi/arm/oak.c #define NCR5380_read(reg) readb(hostdata->io + ((reg) << 2)) hostdata 21 drivers/scsi/arm/oak.c #define NCR5380_write(reg, value) writeb(value, hostdata->io + ((reg) << 2)) hostdata 41 drivers/scsi/arm/oak.c static inline int oakscsi_pwrite(struct NCR5380_hostdata *hostdata, hostdata 44 drivers/scsi/arm/oak.c u8 __iomem *base = hostdata->io; hostdata 56 drivers/scsi/arm/oak.c static inline int oakscsi_pread(struct NCR5380_hostdata *hostdata, hostdata 59 drivers/scsi/arm/oak.c u8 __iomem *base = hostdata->io; hostdata 101 drivers/scsi/arm/powertec.c struct powertec_info *info = (struct powertec_info *)host->hostdata; hostdata 131 drivers/scsi/arm/powertec.c struct powertec_info *info = (struct powertec_info *)host->hostdata; hostdata 172 drivers/scsi/arm/powertec.c struct powertec_info *info = (struct powertec_info *)host->hostdata; hostdata 184 drivers/scsi/arm/powertec.c struct powertec_info *info = (struct powertec_info *)host->hostdata; hostdata 241 drivers/scsi/arm/powertec.c info = (struct powertec_info *)host->hostdata; hostdata 257 drivers/scsi/arm/powertec.c struct powertec_info *info = (struct powertec_info *)host->hostdata; hostdata 324 drivers/scsi/arm/powertec.c info = (struct powertec_info *)host->hostdata; hostdata 400 drivers/scsi/arm/powertec.c struct powertec_info *info = (struct powertec_info *)host->hostdata; hostdata 184 drivers/scsi/atari_scsi.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 213 drivers/scsi/atari_scsi.c atari_dma_residual = hostdata->dma_len - hostdata 273 drivers/scsi/atari_scsi.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 308 drivers/scsi/atari_scsi.c atari_dma_residual = hostdata->dma_len - transferred; hostdata 320 drivers/scsi/atari_scsi.c hostdata->dma_len - atari_dma_residual); hostdata 425 drivers/scsi/atari_scsi.c static unsigned long atari_scsi_dma_setup(struct NCR5380_hostdata *hostdata, hostdata 432 drivers/scsi/atari_scsi.c hostdata->host->host_no, data, addr, count, dir); hostdata 489 drivers/scsi/atari_scsi.c static inline int atari_scsi_dma_recv_setup(struct NCR5380_hostdata *hostdata, hostdata 492 drivers/scsi/atari_scsi.c return atari_scsi_dma_setup(hostdata, data, count, 0); hostdata 495 drivers/scsi/atari_scsi.c static inline int atari_scsi_dma_send_setup(struct NCR5380_hostdata *hostdata, hostdata 498 drivers/scsi/atari_scsi.c return atari_scsi_dma_setup(hostdata, data, count, 1); hostdata 501 drivers/scsi/atari_scsi.c static int atari_scsi_dma_residual(struct NCR5380_hostdata *hostdata) hostdata 542 drivers/scsi/atari_scsi.c static int atari_scsi_dma_xfer_len(struct NCR5380_hostdata *hostdata, hostdata 833 drivers/scsi/atari_scsi.c struct NCR5380_hostdata *hostdata = hostdata 836 drivers/scsi/atari_scsi.c hostdata->read_overruns = 4; hostdata 130 drivers/scsi/atp870u.c struct atp_unit *dev = (struct atp_unit *)&host->hostdata; hostdata 603 drivers/scsi/atp870u.c dev = (struct atp_unit *)&host->hostdata; hostdata 973 drivers/scsi/atp870u.c struct atp_unit *dev = (struct atp_unit *)&host->hostdata; hostdata 1190 drivers/scsi/atp870u.c struct atp_unit *atp_dev = (struct atp_unit *)&host->hostdata; hostdata 1204 drivers/scsi/atp870u.c struct atp_unit *atp_dev = (struct atp_unit *)&host->hostdata; hostdata 1593 drivers/scsi/atp870u.c dev = (struct atp_unit *)&host->hostdata; hostdata 32 drivers/scsi/bfa/bfad_attr.c im_port = (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 58 drivers/scsi/bfa/bfad_attr.c im_port = (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 84 drivers/scsi/bfa/bfad_attr.c im_port = (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 103 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 117 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 149 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 186 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 205 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 242 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 259 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 312 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 357 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 444 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 709 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 723 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 737 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 817 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 831 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 848 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 869 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 883 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 897 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 917 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 86 drivers/scsi/bfa/bfad_im.c itnim_data = cmnd->device->hostdata; hostdata 119 drivers/scsi/bfa/bfad_im.c itnim_data = cmnd->device->hostdata; hostdata 173 drivers/scsi/bfa/bfad_im.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 194 drivers/scsi/bfa/bfad_im.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 295 drivers/scsi/bfa/bfad_im.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 296 drivers/scsi/bfa/bfad_im.c struct bfad_itnim_data_s *itnim_data = cmnd->device->hostdata; hostdata 373 drivers/scsi/bfa/bfad_im.c (struct bfad_im_port_s *) shost->hostdata[0]; hostdata 413 drivers/scsi/bfa/bfad_im.c sdev->hostdata = NULL; hostdata 985 drivers/scsi/bfa/bfad_im.c sdev->hostdata = rport->dd_data; hostdata 1206 drivers/scsi/bfa/bfad_im.c (struct bfad_im_port_s *) cmnd->device->host->hostdata[0]; hostdata 1208 drivers/scsi/bfa/bfad_im.c struct bfad_itnim_data_s *itnim_data = cmnd->device->hostdata; hostdata 42 drivers/scsi/bvme6000_scsi.c struct NCR_700_Host_Parameters *hostdata; hostdata 47 drivers/scsi/bvme6000_scsi.c hostdata = kzalloc(sizeof(struct NCR_700_Host_Parameters), GFP_KERNEL); hostdata 48 drivers/scsi/bvme6000_scsi.c if (!hostdata) { hostdata 55 drivers/scsi/bvme6000_scsi.c hostdata->base = (void __iomem *)BVME_NCR53C710_BASE; hostdata 56 drivers/scsi/bvme6000_scsi.c hostdata->clock = 40; /* XXX - depends on the CPU clock! */ hostdata 57 drivers/scsi/bvme6000_scsi.c hostdata->chip710 = 1; hostdata 58 drivers/scsi/bvme6000_scsi.c hostdata->dmode_extra = DMODE_FC2; hostdata 59 drivers/scsi/bvme6000_scsi.c hostdata->dcntl_extra = EA_710; hostdata 60 drivers/scsi/bvme6000_scsi.c hostdata->ctest7_extra = CTEST7_TT1; hostdata 63 drivers/scsi/bvme6000_scsi.c host = NCR_700_detect(&bvme6000_scsi_driver_template, hostdata, hostdata 87 drivers/scsi/bvme6000_scsi.c kfree(hostdata); hostdata 96 drivers/scsi/bvme6000_scsi.c struct NCR_700_Host_Parameters *hostdata = shost_priv(host); hostdata 100 drivers/scsi/bvme6000_scsi.c kfree(hostdata); hostdata 84 drivers/scsi/csiostor/csio_init.h return container_of((void *)ln, struct Scsi_Host, hostdata[0]); hostdata 1568 drivers/scsi/csiostor/csio_scsi.c struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata); hostdata 1780 drivers/scsi/csiostor/csio_scsi.c struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata); hostdata 1918 drivers/scsi/csiostor/csio_scsi.c struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata); hostdata 2063 drivers/scsi/csiostor/csio_scsi.c struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata); hostdata 2229 drivers/scsi/csiostor/csio_scsi.c sdev->hostdata = *((struct csio_lnode **)(rport->dd_data)); hostdata 2244 drivers/scsi/csiostor/csio_scsi.c sdev->hostdata = NULL; hostdata 255 drivers/scsi/cxlflash/lunmgt.c sdev->hostdata = lli; hostdata 264 drivers/scsi/cxlflash/lunmgt.c sdev->hostdata = NULL; hostdata 3114 drivers/scsi/cxlflash/main.c sdev->hostdata ? "superpipe" : "legacy"); hostdata 636 drivers/scsi/cxlflash/superpipe.c struct llun_info *lli = sdev->hostdata; hostdata 896 drivers/scsi/cxlflash/superpipe.c struct llun_info *lli = sdev->hostdata; hostdata 1323 drivers/scsi/cxlflash/superpipe.c struct llun_info *lli = sdev->hostdata; hostdata 1656 drivers/scsi/cxlflash/superpipe.c struct llun_info *lli = sdev->hostdata; hostdata 1777 drivers/scsi/cxlflash/superpipe.c struct llun_info *lli = sdev->hostdata; hostdata 1844 drivers/scsi/cxlflash/superpipe.c struct llun_info *lli = sdev->hostdata; hostdata 1967 drivers/scsi/cxlflash/superpipe.c struct llun_info *lli = sdev->hostdata; hostdata 2054 drivers/scsi/cxlflash/superpipe.c struct llun_info *lli = sdev->hostdata; hostdata 510 drivers/scsi/cxlflash/vlun.c struct llun_info *lli = sdev->hostdata; hostdata 628 drivers/scsi/cxlflash/vlun.c struct llun_info *lli = sdev->hostdata; hostdata 735 drivers/scsi/cxlflash/vlun.c struct llun_info *lli = sdev->hostdata; hostdata 977 drivers/scsi/cxlflash/vlun.c struct llun_info *lli = sdev->hostdata; hostdata 1195 drivers/scsi/cxlflash/vlun.c struct llun_info *lli = sdev->hostdata; hostdata 984 drivers/scsi/dc395x.c (struct AdapterCtlBlk *)cmd->device->host->hostdata; hostdata 1068 drivers/scsi/dc395x.c acb = (struct AdapterCtlBlk *)sdev->host->hostdata; hostdata 1199 drivers/scsi/dc395x.c (struct AdapterCtlBlk *)cmd->device->host->hostdata; hostdata 1265 drivers/scsi/dc395x.c (struct AdapterCtlBlk *)cmd->device->host->hostdata; hostdata 3796 drivers/scsi/dc395x.c struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)scsi_device->host->hostdata; hostdata 3816 drivers/scsi/dc395x.c struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)scsi_device->host->hostdata; hostdata 4308 drivers/scsi/dc395x.c struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)host->hostdata; hostdata 4511 drivers/scsi/dc395x.c struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)host->hostdata; hostdata 4694 drivers/scsi/dc395x.c acb = (struct AdapterCtlBlk*)scsi_host->hostdata; hostdata 4735 drivers/scsi/dc395x.c struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)(scsi_host->hostdata); hostdata 25 drivers/scsi/dmx3191d.c #define NCR5380_read(reg) inb(hostdata->base + (reg)) hostdata 26 drivers/scsi/dmx3191d.c #define NCR5380_write(reg, value) outb(value, hostdata->base + (reg)) hostdata 62 drivers/scsi/dmx3191d.c struct NCR5380_hostdata *hostdata; hostdata 81 drivers/scsi/dmx3191d.c hostdata = shost_priv(shost); hostdata 82 drivers/scsi/dmx3191d.c hostdata->base = io; hostdata 119 drivers/scsi/dmx3191d.c struct NCR5380_hostdata *hostdata = shost_priv(shost); hostdata 120 drivers/scsi/dmx3191d.c unsigned long io = hostdata->base; hostdata 413 drivers/scsi/dpt_i2o.c pHba = (adpt_hba *) host->hostdata[0]; hostdata 441 drivers/scsi/dpt_i2o.c pHba = (adpt_hba*)cmd->device->host->hostdata[0]; hostdata 452 drivers/scsi/dpt_i2o.c if((pDev = (struct adpt_device*) (cmd->device->hostdata)) == NULL) { hostdata 465 drivers/scsi/dpt_i2o.c cmd->device->hostdata = pDev; hostdata 537 drivers/scsi/dpt_i2o.c pHba = (adpt_hba *) host->hostdata[0]; hostdata 645 drivers/scsi/dpt_i2o.c pHba = (adpt_hba*) cmd->device->host->hostdata[0]; hostdata 647 drivers/scsi/dpt_i2o.c if ((dptdevice = (void*) (cmd->device->hostdata)) == NULL) { hostdata 687 drivers/scsi/dpt_i2o.c struct adpt_device* d = cmd->device->hostdata; hostdata 689 drivers/scsi/dpt_i2o.c pHba = (void*) cmd->device->host->hostdata[0]; hostdata 731 drivers/scsi/dpt_i2o.c pHba = (adpt_hba*)cmd->device->host->hostdata[0]; hostdata 759 drivers/scsi/dpt_i2o.c pHba = (adpt_hba*)cmd->device->host->hostdata[0]; hostdata 2321 drivers/scsi/dpt_i2o.c host->hostdata[0] = (unsigned long)pHba; hostdata 2360 drivers/scsi/dpt_i2o.c pHba = (adpt_hba*) cmd->device->host->hostdata[0]; hostdata 2454 drivers/scsi/dpt_i2o.c ((struct adpt_device*)(cmd->device->hostdata))->tid, cmd->cmnd[0]); hostdata 968 drivers/scsi/esas2r/esas2r.h int esas2r_ioctl_handler(void *hostdata, unsigned int cmd, void __user *arg); hostdata 285 drivers/scsi/esas2r/esas2r_init.c a = (struct esas2r_adapter *)host->hostdata; hostdata 647 drivers/scsi/esas2r/esas2r_init.c struct esas2r_adapter *a = (struct esas2r_adapter *)host->hostdata; hostdata 671 drivers/scsi/esas2r/esas2r_init.c struct esas2r_adapter *a = (struct esas2r_adapter *)host->hostdata; hostdata 1273 drivers/scsi/esas2r/esas2r_ioctl.c int esas2r_ioctl_handler(void *hostdata, unsigned int cmd, void __user *arg) hostdata 1281 drivers/scsi/esas2r/esas2r_ioctl.c esas2r_log(ESAS2R_LOG_DEBG, "ioctl (%p, %x, %p)", hostdata, cmd, arg); hostdata 1337 drivers/scsi/esas2r/esas2r_ioctl.c a = (struct esas2r_adapter *)hostdata; hostdata 1530 drivers/scsi/esas2r/esas2r_ioctl.c return esas2r_ioctl_handler(sd->host->hostdata, cmd, arg); hostdata 65 drivers/scsi/esas2r/esas2r_main.c return (struct esas2r_adapter *)host->hostdata; hostdata 396 drivers/scsi/esas2r/esas2r_main.c memset(host->hostdata, 0, host_alloc_size); hostdata 398 drivers/scsi/esas2r/esas2r_main.c a = (struct esas2r_adapter *)host->hostdata; hostdata 441 drivers/scsi/esas2r/esas2r_main.c host->hostdata); hostdata 522 drivers/scsi/esas2r/esas2r_main.c struct esas2r_adapter *a = (struct esas2r_adapter *)host->hostdata; hostdata 625 drivers/scsi/esas2r/esas2r_main.c return esas2r_ioctl_handler(esas2r_proc_host->hostdata, hostdata 650 drivers/scsi/esas2r/esas2r_main.c struct esas2r_adapter *a = (struct esas2r_adapter *)sh->hostdata; hostdata 705 drivers/scsi/esas2r/esas2r_main.c struct esas2r_adapter *a = (struct esas2r_adapter *)sh->hostdata; hostdata 815 drivers/scsi/esas2r/esas2r_main.c (struct esas2r_adapter *)cmd->device->host->hostdata; hostdata 976 drivers/scsi/esas2r/esas2r_main.c (struct esas2r_adapter *)cmd->device->host->hostdata; hostdata 1063 drivers/scsi/esas2r/esas2r_main.c (struct esas2r_adapter *)cmd->device->host->hostdata; hostdata 1105 drivers/scsi/esas2r/esas2r_main.c (struct esas2r_adapter *)cmd->device->host->hostdata; hostdata 708 drivers/scsi/esp_scsi.c struct esp_lun_data *lp = dev->hostdata; hostdata 904 drivers/scsi/esp_scsi.c esp_free_lun_tag(ent, dev->hostdata); hostdata 953 drivers/scsi/esp_scsi.c struct esp_lun_data *lp = dev->hostdata; hostdata 1206 drivers/scsi/esp_scsi.c lp = dev->hostdata; hostdata 1259 drivers/scsi/esp_scsi.c esp_free_lun_tag(ent, cmd->device->hostdata); hostdata 2041 drivers/scsi/esp_scsi.c esp_free_lun_tag(ent, cmd->device->hostdata); hostdata 2054 drivers/scsi/esp_scsi.c struct esp_lun_data *lp = dev->hostdata; hostdata 2460 drivers/scsi/esp_scsi.c dev->hostdata = lp; hostdata 2491 drivers/scsi/esp_scsi.c struct esp_lun_data *lp = dev->hostdata; hostdata 2494 drivers/scsi/esp_scsi.c dev->hostdata = NULL; hostdata 265 drivers/scsi/fdomain.c hostdata); hostdata 39 drivers/scsi/g_NCR5380.c ioread8(hostdata->io + hostdata->offset + (reg)) hostdata 41 drivers/scsi/g_NCR5380.c iowrite8(value, hostdata->io + hostdata->offset + (reg)) hostdata 117 drivers/scsi/g_NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 129 drivers/scsi/g_NCR5380.c NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); hostdata 130 drivers/scsi/g_NCR5380.c NCR5380_write(OUTPUT_DATA_REG, hostdata->id_mask); hostdata 151 drivers/scsi/g_NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 234 drivers/scsi/g_NCR5380.c struct NCR5380_hostdata *hostdata; hostdata 319 drivers/scsi/g_NCR5380.c hostdata = shost_priv(instance); hostdata 321 drivers/scsi/g_NCR5380.c hostdata->board = board; hostdata 322 drivers/scsi/g_NCR5380.c hostdata->io = iomem; hostdata 323 drivers/scsi/g_NCR5380.c hostdata->region_size = region_size; hostdata 326 drivers/scsi/g_NCR5380.c hostdata->io_port = base; hostdata 327 drivers/scsi/g_NCR5380.c hostdata->io_width = 1; /* 8-bit PDMA by default */ hostdata 328 drivers/scsi/g_NCR5380.c hostdata->offset = 0; hostdata 336 drivers/scsi/g_NCR5380.c hostdata->io_port += 8; hostdata 337 drivers/scsi/g_NCR5380.c hostdata->c400_ctl_status = 0; hostdata 338 drivers/scsi/g_NCR5380.c hostdata->c400_blk_cnt = 1; hostdata 339 drivers/scsi/g_NCR5380.c hostdata->c400_host_buf = 4; hostdata 342 drivers/scsi/g_NCR5380.c hostdata->io_width = 2; /* 16-bit PDMA */ hostdata 346 drivers/scsi/g_NCR5380.c hostdata->c400_ctl_status = 9; hostdata 347 drivers/scsi/g_NCR5380.c hostdata->c400_blk_cnt = 10; hostdata 348 drivers/scsi/g_NCR5380.c hostdata->c400_host_buf = 8; hostdata 352 drivers/scsi/g_NCR5380.c hostdata->base = base; hostdata 353 drivers/scsi/g_NCR5380.c hostdata->offset = NCR53C400_mem_base; hostdata 356 drivers/scsi/g_NCR5380.c hostdata->c400_ctl_status = 0x100; hostdata 357 drivers/scsi/g_NCR5380.c hostdata->c400_blk_cnt = 0x101; hostdata 358 drivers/scsi/g_NCR5380.c hostdata->c400_host_buf = 0x104; hostdata 385 drivers/scsi/g_NCR5380.c NCR5380_write(hostdata->c400_ctl_status, CSR_BASE); hostdata 468 drivers/scsi/g_NCR5380.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 469 drivers/scsi/g_NCR5380.c void __iomem *iomem = hostdata->io; hostdata 470 drivers/scsi/g_NCR5380.c unsigned long io_port = hostdata->io_port; hostdata 471 drivers/scsi/g_NCR5380.c unsigned long base = hostdata->base; hostdata 472 drivers/scsi/g_NCR5380.c unsigned long region_size = hostdata->region_size; hostdata 493 drivers/scsi/g_NCR5380.c static void wait_for_53c80_access(struct NCR5380_hostdata *hostdata) hostdata 498 drivers/scsi/g_NCR5380.c if (hostdata->board == BOARD_DTC3181E) hostdata 500 drivers/scsi/g_NCR5380.c if (NCR5380_read(hostdata->c400_ctl_status) & CSR_53C80_REG) hostdata 504 drivers/scsi/g_NCR5380.c scmd_printk(KERN_ERR, hostdata->connected, hostdata 506 drivers/scsi/g_NCR5380.c NCR5380_write(hostdata->c400_ctl_status, CSR_RESET); hostdata 507 drivers/scsi/g_NCR5380.c NCR5380_write(hostdata->c400_ctl_status, CSR_BASE); hostdata 519 drivers/scsi/g_NCR5380.c static inline int generic_NCR5380_precv(struct NCR5380_hostdata *hostdata, hostdata 525 drivers/scsi/g_NCR5380.c NCR5380_write(hostdata->c400_ctl_status, CSR_BASE | CSR_TRANS_DIR); hostdata 526 drivers/scsi/g_NCR5380.c NCR5380_write(hostdata->c400_blk_cnt, len / 128); hostdata 531 drivers/scsi/g_NCR5380.c if (NCR5380_poll_politely(hostdata, hostdata->c400_ctl_status, hostdata 535 drivers/scsi/g_NCR5380.c if (NCR5380_poll_politely2(hostdata, hostdata->c400_ctl_status, hostdata 537 drivers/scsi/g_NCR5380.c hostdata->c400_ctl_status, hostdata 540 drivers/scsi/g_NCR5380.c NCR5380_read(hostdata->c400_ctl_status) & CSR_HOST_BUF_NOT_RDY) hostdata 544 drivers/scsi/g_NCR5380.c if (hostdata->io_port && hostdata->io_width == 2) hostdata 545 drivers/scsi/g_NCR5380.c insw(hostdata->io_port + hostdata->c400_host_buf, hostdata 547 drivers/scsi/g_NCR5380.c else if (hostdata->io_port) hostdata 548 drivers/scsi/g_NCR5380.c insb(hostdata->io_port + hostdata->c400_host_buf, hostdata 552 drivers/scsi/g_NCR5380.c hostdata->io + NCR53C400_host_buffer, 128); hostdata 560 drivers/scsi/g_NCR5380.c NCR5380_write(hostdata->c400_ctl_status, CSR_RESET); hostdata 561 drivers/scsi/g_NCR5380.c NCR5380_write(hostdata->c400_ctl_status, CSR_BASE); hostdata 563 drivers/scsi/g_NCR5380.c wait_for_53c80_access(hostdata); hostdata 565 drivers/scsi/g_NCR5380.c if (residual == 0 && NCR5380_poll_politely(hostdata, BUS_AND_STATUS_REG, hostdata 569 drivers/scsi/g_NCR5380.c scmd_printk(KERN_ERR, hostdata->connected, "%s: End of DMA timeout\n", hostdata 572 drivers/scsi/g_NCR5380.c hostdata->pdma_residual = residual; hostdata 586 drivers/scsi/g_NCR5380.c static inline int generic_NCR5380_psend(struct NCR5380_hostdata *hostdata, hostdata 592 drivers/scsi/g_NCR5380.c NCR5380_write(hostdata->c400_ctl_status, CSR_BASE); hostdata 593 drivers/scsi/g_NCR5380.c NCR5380_write(hostdata->c400_blk_cnt, len / 128); hostdata 596 drivers/scsi/g_NCR5380.c if (NCR5380_poll_politely2(hostdata, hostdata->c400_ctl_status, hostdata 598 drivers/scsi/g_NCR5380.c hostdata->c400_ctl_status, hostdata 601 drivers/scsi/g_NCR5380.c NCR5380_read(hostdata->c400_ctl_status) & CSR_HOST_BUF_NOT_RDY) { hostdata 610 drivers/scsi/g_NCR5380.c if (start >= len && NCR5380_read(hostdata->c400_blk_cnt) == 0) hostdata 613 drivers/scsi/g_NCR5380.c if (NCR5380_read(hostdata->c400_ctl_status) & CSR_GATED_53C80_IRQ) { hostdata 623 drivers/scsi/g_NCR5380.c if (hostdata->io_port && hostdata->io_width == 2) hostdata 624 drivers/scsi/g_NCR5380.c outsw(hostdata->io_port + hostdata->c400_host_buf, hostdata 626 drivers/scsi/g_NCR5380.c else if (hostdata->io_port) hostdata 627 drivers/scsi/g_NCR5380.c outsb(hostdata->io_port + hostdata->c400_host_buf, hostdata 630 drivers/scsi/g_NCR5380.c memcpy_toio(hostdata->io + NCR53C400_host_buffer, hostdata 639 drivers/scsi/g_NCR5380.c NCR5380_write(hostdata->c400_ctl_status, CSR_RESET); hostdata 640 drivers/scsi/g_NCR5380.c NCR5380_write(hostdata->c400_ctl_status, CSR_BASE); hostdata 642 drivers/scsi/g_NCR5380.c wait_for_53c80_access(hostdata); hostdata 645 drivers/scsi/g_NCR5380.c if (NCR5380_poll_politely(hostdata, TARGET_COMMAND_REG, hostdata 648 drivers/scsi/g_NCR5380.c scmd_printk(KERN_ERR, hostdata->connected, hostdata 651 drivers/scsi/g_NCR5380.c if (NCR5380_poll_politely(hostdata, BUS_AND_STATUS_REG, hostdata 654 drivers/scsi/g_NCR5380.c scmd_printk(KERN_ERR, hostdata->connected, "%s: End of DMA timeout\n", hostdata 658 drivers/scsi/g_NCR5380.c hostdata->pdma_residual = residual; hostdata 663 drivers/scsi/g_NCR5380.c static int generic_NCR5380_dma_xfer_len(struct NCR5380_hostdata *hostdata, hostdata 668 drivers/scsi/g_NCR5380.c if (hostdata->flags & FLAG_NO_PSEUDO_DMA) hostdata 676 drivers/scsi/g_NCR5380.c if (hostdata->board == BOARD_DTC3181E && hostdata 683 drivers/scsi/g_NCR5380.c static int generic_NCR5380_dma_residual(struct NCR5380_hostdata *hostdata) hostdata 685 drivers/scsi/g_NCR5380.c return hostdata->pdma_residual; hostdata 936 drivers/scsi/hisi_sas/hisi_sas_main.c sas_phy->ha = (struct sas_ha_struct *)hisi_hba->shost->hostdata; hostdata 674 drivers/scsi/hpsa.c hdev = sdev->hostdata; hostdata 707 drivers/scsi/hpsa.c hdev = sdev->hostdata; hostdata 729 drivers/scsi/hpsa.c hdev = sdev->hostdata; hostdata 757 drivers/scsi/hpsa.c hdev = sdev->hostdata; hostdata 780 drivers/scsi/hpsa.c hdev = sdev->hostdata; hostdata 814 drivers/scsi/hpsa.c hdev = sdev->hostdata; hostdata 2120 drivers/scsi/hpsa.c sdev->hostdata = sd; hostdata 2122 drivers/scsi/hpsa.c sdev->hostdata = NULL; hostdata 2133 drivers/scsi/hpsa.c sd = sdev->hostdata; hostdata 2159 drivers/scsi/hpsa.c hdev = sdev->hostdata; hostdata 2570 drivers/scsi/hpsa.c dev = cmd->device->hostdata; hostdata 4802 drivers/scsi/hpsa.c struct hpsa_scsi_dev_t *dev = cmd->device->hostdata; hostdata 4823 drivers/scsi/hpsa.c struct hpsa_scsi_dev_t *dev = cmd->device->hostdata; hostdata 4891 drivers/scsi/hpsa.c if (!cmd->device->hostdata) hostdata 5021 drivers/scsi/hpsa.c if (!c->scsi_cmd->device->hostdata) hostdata 5076 drivers/scsi/hpsa.c struct hpsa_scsi_dev_t *dev = cmd->device->hostdata; hostdata 5535 drivers/scsi/hpsa.c struct hpsa_scsi_dev_t *dev = cmd->device->hostdata; hostdata 5576 drivers/scsi/hpsa.c dev = cmd->device->hostdata; hostdata 5637 drivers/scsi/hpsa.c dev = cmd->device->hostdata; hostdata 5762 drivers/scsi/hpsa.c struct hpsa_scsi_dev_t *logical_drive = sdev->hostdata; hostdata 5809 drivers/scsi/hpsa.c sh->hostdata[0] = (unsigned long) h; hostdata 5987 drivers/scsi/hpsa.c dev = scsicmd->device->hostdata; hostdata 850 drivers/scsi/hptiop.c struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata; hostdata 1001 drivers/scsi/hptiop.c struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata; hostdata 1101 drivers/scsi/hptiop.c struct hptiop_hba * hba = (struct hptiop_hba *)scp->device->host->hostdata; hostdata 1112 drivers/scsi/hptiop.c struct hptiop_hba *hba = (struct hptiop_hba *)sdev->host->hostdata; hostdata 1129 drivers/scsi/hptiop.c struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata; hostdata 1325 drivers/scsi/hptiop.c hba = (struct hptiop_hba *)host->hostdata; hostdata 1510 drivers/scsi/hptiop.c struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata; hostdata 1553 drivers/scsi/hptiop.c struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata; hostdata 1632 drivers/scsi/ibmvscsi/ibmvfc.c vfc_cmd->cancel_key = cpu_to_be32((unsigned long)cmnd->device->hostdata); hostdata 1983 drivers/scsi/ibmvscsi/ibmvfc.c tmf->cancel_key = cpu_to_be32((unsigned long)sdev->hostdata); hostdata 2188 drivers/scsi/ibmvscsi/ibmvfc.c tmf->cancel_key = cpu_to_be32((unsigned long)sdev->hostdata); hostdata 2189 drivers/scsi/ibmvscsi/ibmvfc.c tmf->my_cancel_key = cpu_to_be32((unsigned long)starget->hostdata); hostdata 2313 drivers/scsi/ibmvscsi/ibmvfc.c tmf->cancel_key = cpu_to_be32((unsigned long)sdev->hostdata); hostdata 2337 drivers/scsi/ibmvscsi/ibmvfc.c rc = ibmvfc_wait_for_ops(vhost, sdev->hostdata, ibmvfc_match_key); hostdata 2346 drivers/scsi/ibmvscsi/ibmvfc.c rc = ibmvfc_wait_for_ops(vhost, sdev->hostdata, ibmvfc_match_key); hostdata 2841 drivers/scsi/ibmvscsi/ibmvfc.c sdev->hostdata = (void *)(unsigned long)vhost->task_set++; hostdata 2863 drivers/scsi/ibmvscsi/ibmvfc.c starget->hostdata = (void *)(unsigned long)vhost->task_set++; hostdata 110 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata); hostdata 125 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = hostdata 127 drivers/scsi/ibmvscsi/ibmvscsi.c vio_disable_interrupts(to_vio_dev(hostdata->dev)); hostdata 128 drivers/scsi/ibmvscsi/ibmvscsi.c tasklet_schedule(&hostdata->srp_task); hostdata 141 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata, hostdata 145 drivers/scsi/ibmvscsi/ibmvscsi.c struct vio_dev *vdev = to_vio_dev(hostdata->dev); hostdata 146 drivers/scsi/ibmvscsi/ibmvscsi.c free_irq(vdev->irq, (void *)hostdata); hostdata 147 drivers/scsi/ibmvscsi/ibmvscsi.c tasklet_kill(&hostdata->srp_task); hostdata 153 drivers/scsi/ibmvscsi/ibmvscsi.c dma_unmap_single(hostdata->dev, hostdata 194 drivers/scsi/ibmvscsi/ibmvscsi.c static int ibmvscsi_send_crq(struct ibmvscsi_host_data *hostdata, hostdata 197 drivers/scsi/ibmvscsi/ibmvscsi.c struct vio_dev *vdev = to_vio_dev(hostdata->dev); hostdata 213 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = (struct ibmvscsi_host_data *)data; hostdata 214 drivers/scsi/ibmvscsi/ibmvscsi.c struct vio_dev *vdev = to_vio_dev(hostdata->dev); hostdata 220 drivers/scsi/ibmvscsi/ibmvscsi.c while ((crq = crq_queue_next_crq(&hostdata->queue)) != NULL) { hostdata 221 drivers/scsi/ibmvscsi/ibmvscsi.c ibmvscsi_handle_crq(crq, hostdata); hostdata 227 drivers/scsi/ibmvscsi/ibmvscsi.c crq = crq_queue_next_crq(&hostdata->queue); hostdata 230 drivers/scsi/ibmvscsi/ibmvscsi.c ibmvscsi_handle_crq(crq, hostdata); hostdata 260 drivers/scsi/ibmvscsi/ibmvscsi.c static void set_adapter_info(struct ibmvscsi_host_data *hostdata) hostdata 262 drivers/scsi/ibmvscsi/ibmvscsi.c memset(&hostdata->madapter_info, 0x00, hostdata 263 drivers/scsi/ibmvscsi/ibmvscsi.c sizeof(hostdata->madapter_info)); hostdata 265 drivers/scsi/ibmvscsi/ibmvscsi.c dev_info(hostdata->dev, "SRP_VERSION: %s\n", SRP_VERSION); hostdata 266 drivers/scsi/ibmvscsi/ibmvscsi.c strcpy(hostdata->madapter_info.srp_version, SRP_VERSION); hostdata 268 drivers/scsi/ibmvscsi/ibmvscsi.c strncpy(hostdata->madapter_info.partition_name, partition_name, hostdata 269 drivers/scsi/ibmvscsi/ibmvscsi.c sizeof(hostdata->madapter_info.partition_name)); hostdata 271 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->madapter_info.partition_number = hostdata 274 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->madapter_info.mad_version = cpu_to_be32(SRP_MAD_VERSION_1); hostdata 275 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->madapter_info.os_type = cpu_to_be32(SRP_MAD_OS_LINUX); hostdata 285 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata) hostdata 288 drivers/scsi/ibmvscsi/ibmvscsi.c struct vio_dev *vdev = to_vio_dev(hostdata->dev); hostdata 301 drivers/scsi/ibmvscsi/ibmvscsi.c set_adapter_info(hostdata); hostdata 309 drivers/scsi/ibmvscsi/ibmvscsi.c dev_warn(hostdata->dev, "Partner adapter not ready\n"); hostdata 311 drivers/scsi/ibmvscsi/ibmvscsi.c dev_warn(hostdata->dev, "couldn't register crq--rc 0x%x\n", rc); hostdata 326 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata, hostdata 331 drivers/scsi/ibmvscsi/ibmvscsi.c struct vio_dev *vdev = to_vio_dev(hostdata->dev); hostdata 339 drivers/scsi/ibmvscsi/ibmvscsi.c queue->msg_token = dma_map_single(hostdata->dev, queue->msgs, hostdata 343 drivers/scsi/ibmvscsi/ibmvscsi.c if (dma_mapping_error(hostdata->dev, queue->msg_token)) hostdata 347 drivers/scsi/ibmvscsi/ibmvscsi.c set_adapter_info(hostdata); hostdata 355 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata); hostdata 359 drivers/scsi/ibmvscsi/ibmvscsi.c dev_warn(hostdata->dev, "Partner adapter not ready\n"); hostdata 362 drivers/scsi/ibmvscsi/ibmvscsi.c dev_warn(hostdata->dev, "Error %d opening adapter\n", rc); hostdata 369 drivers/scsi/ibmvscsi/ibmvscsi.c tasklet_init(&hostdata->srp_task, (void *)ibmvscsi_task, hostdata 370 drivers/scsi/ibmvscsi/ibmvscsi.c (unsigned long)hostdata); hostdata 374 drivers/scsi/ibmvscsi/ibmvscsi.c 0, "ibmvscsi", (void *)hostdata) != 0) { hostdata 375 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "couldn't register irq 0x%x\n", hostdata 382 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "Error %d enabling interrupts!!!\n", rc); hostdata 389 drivers/scsi/ibmvscsi/ibmvscsi.c tasklet_kill(&hostdata->srp_task); hostdata 397 drivers/scsi/ibmvscsi/ibmvscsi.c dma_unmap_single(hostdata->dev, hostdata 413 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata) hostdata 416 drivers/scsi/ibmvscsi/ibmvscsi.c struct vio_dev *vdev = to_vio_dev(hostdata->dev); hostdata 426 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "Error %d enabling adapter\n", rc); hostdata 442 drivers/scsi/ibmvscsi/ibmvscsi.c int size, struct ibmvscsi_host_data *hostdata) hostdata 453 drivers/scsi/ibmvscsi/ibmvscsi.c dma_alloc_coherent(hostdata->dev, hostdata 470 drivers/scsi/ibmvscsi/ibmvscsi.c evt->hostdata = hostdata; hostdata 486 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata) hostdata 493 drivers/scsi/ibmvscsi/ibmvscsi.c dma_free_coherent(hostdata->dev, hostdata 500 drivers/scsi/ibmvscsi/ibmvscsi.c dev_warn(hostdata->dev, "releasing event pool with %d " hostdata 503 drivers/scsi/ibmvscsi/ibmvscsi.c dma_free_coherent(hostdata->dev, hostdata 536 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(evt->hostdata->dev, "Freeing invalid event_struct %p " hostdata 541 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(evt->hostdata->dev, "Freeing event_struct %p " hostdata 780 drivers/scsi/ibmvscsi/ibmvscsi.c static void purge_requests(struct ibmvscsi_host_data *hostdata, int error_code) hostdata 785 drivers/scsi/ibmvscsi/ibmvscsi.c spin_lock_irqsave(hostdata->host->host_lock, flags); hostdata 786 drivers/scsi/ibmvscsi/ibmvscsi.c while (!list_empty(&hostdata->sent)) { hostdata 787 drivers/scsi/ibmvscsi/ibmvscsi.c evt = list_first_entry(&hostdata->sent, struct srp_event_struct, list); hostdata 791 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 795 drivers/scsi/ibmvscsi/ibmvscsi.c evt->hostdata->dev); hostdata 801 drivers/scsi/ibmvscsi/ibmvscsi.c free_event_struct(&evt->hostdata->pool, evt); hostdata 802 drivers/scsi/ibmvscsi/ibmvscsi.c spin_lock_irqsave(hostdata->host->host_lock, flags); hostdata 804 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 811 drivers/scsi/ibmvscsi/ibmvscsi.c static void ibmvscsi_reset_host(struct ibmvscsi_host_data *hostdata) hostdata 813 drivers/scsi/ibmvscsi/ibmvscsi.c scsi_block_requests(hostdata->host); hostdata 814 drivers/scsi/ibmvscsi/ibmvscsi.c atomic_set(&hostdata->request_limit, 0); hostdata 816 drivers/scsi/ibmvscsi/ibmvscsi.c purge_requests(hostdata, DID_ERROR); hostdata 817 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->action = IBMVSCSI_HOST_ACTION_RESET; hostdata 818 drivers/scsi/ibmvscsi/ibmvscsi.c wake_up(&hostdata->work_wait_q); hostdata 830 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = evt_struct->hostdata; hostdata 832 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "Command timed out (%x). Resetting connection\n", hostdata 835 drivers/scsi/ibmvscsi/ibmvscsi.c ibmvscsi_reset_host(hostdata); hostdata 852 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata, hostdata 869 drivers/scsi/ibmvscsi/ibmvscsi.c atomic_dec_if_positive(&hostdata->request_limit); hostdata 899 drivers/scsi/ibmvscsi/ibmvscsi.c list_for_each_entry(tmp_evt, &hostdata->sent, list) { hostdata 916 drivers/scsi/ibmvscsi/ibmvscsi.c list_add_tail(&evt_struct->list, &hostdata->sent); hostdata 924 drivers/scsi/ibmvscsi/ibmvscsi.c rc = ibmvscsi_send_crq(hostdata, be64_to_cpu(crq_as_u64[0]), hostdata 936 drivers/scsi/ibmvscsi/ibmvscsi.c dev_warn(hostdata->dev, "send warning. " hostdata 940 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "send error %d\n", rc); hostdata 942 drivers/scsi/ibmvscsi/ibmvscsi.c atomic_inc(&hostdata->request_limit); hostdata 949 drivers/scsi/ibmvscsi/ibmvscsi.c unmap_cmd_data(&evt_struct->iu.srp.cmd, evt_struct, hostdata->dev); hostdata 951 drivers/scsi/ibmvscsi/ibmvscsi.c free_event_struct(&hostdata->pool, evt_struct); hostdata 953 drivers/scsi/ibmvscsi/ibmvscsi.c atomic_inc(&hostdata->request_limit); hostdata 957 drivers/scsi/ibmvscsi/ibmvscsi.c unmap_cmd_data(&evt_struct->iu.srp.cmd, evt_struct, hostdata->dev); hostdata 965 drivers/scsi/ibmvscsi/ibmvscsi.c free_event_struct(&hostdata->pool, evt_struct); hostdata 983 drivers/scsi/ibmvscsi/ibmvscsi.c dev_warn(evt_struct->hostdata->dev, hostdata 995 drivers/scsi/ibmvscsi/ibmvscsi.c evt_struct->hostdata->dev); hostdata 1029 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(cmnd->device->host); hostdata 1034 drivers/scsi/ibmvscsi/ibmvscsi.c evt_struct = get_event_struct(&hostdata->pool); hostdata 1045 drivers/scsi/ibmvscsi/ibmvscsi.c if (!map_data_for_srp_cmd(cmnd, evt_struct, srp_cmd, hostdata->dev)) { hostdata 1049 drivers/scsi/ibmvscsi/ibmvscsi.c free_event_struct(&hostdata->pool, evt_struct); hostdata 1074 drivers/scsi/ibmvscsi/ibmvscsi.c return ibmvscsi_send_srp_event(evt_struct, hostdata, 0); hostdata 1090 drivers/scsi/ibmvscsi/ibmvscsi.c static int map_persist_bufs(struct ibmvscsi_host_data *hostdata) hostdata 1093 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->caps_addr = dma_map_single(hostdata->dev, &hostdata->caps, hostdata 1094 drivers/scsi/ibmvscsi/ibmvscsi.c sizeof(hostdata->caps), DMA_BIDIRECTIONAL); hostdata 1096 drivers/scsi/ibmvscsi/ibmvscsi.c if (dma_mapping_error(hostdata->dev, hostdata->caps_addr)) { hostdata 1097 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "Unable to map capabilities buffer!\n"); hostdata 1101 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->adapter_info_addr = dma_map_single(hostdata->dev, hostdata 1102 drivers/scsi/ibmvscsi/ibmvscsi.c &hostdata->madapter_info, hostdata 1103 drivers/scsi/ibmvscsi/ibmvscsi.c sizeof(hostdata->madapter_info), hostdata 1105 drivers/scsi/ibmvscsi/ibmvscsi.c if (dma_mapping_error(hostdata->dev, hostdata->adapter_info_addr)) { hostdata 1106 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "Unable to map adapter info buffer!\n"); hostdata 1107 drivers/scsi/ibmvscsi/ibmvscsi.c dma_unmap_single(hostdata->dev, hostdata->caps_addr, hostdata 1108 drivers/scsi/ibmvscsi/ibmvscsi.c sizeof(hostdata->caps), DMA_BIDIRECTIONAL); hostdata 1121 drivers/scsi/ibmvscsi/ibmvscsi.c static void unmap_persist_bufs(struct ibmvscsi_host_data *hostdata) hostdata 1123 drivers/scsi/ibmvscsi/ibmvscsi.c dma_unmap_single(hostdata->dev, hostdata->caps_addr, hostdata 1124 drivers/scsi/ibmvscsi/ibmvscsi.c sizeof(hostdata->caps), DMA_BIDIRECTIONAL); hostdata 1126 drivers/scsi/ibmvscsi/ibmvscsi.c dma_unmap_single(hostdata->dev, hostdata->adapter_info_addr, hostdata 1127 drivers/scsi/ibmvscsi/ibmvscsi.c sizeof(hostdata->madapter_info), DMA_BIDIRECTIONAL); hostdata 1139 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = evt_struct->hostdata; hostdata 1144 drivers/scsi/ibmvscsi/ibmvscsi.c dev_info(hostdata->dev, "SRP_LOGIN_REJ reason %u\n", hostdata 1147 drivers/scsi/ibmvscsi/ibmvscsi.c atomic_set(&hostdata->request_limit, -1); hostdata 1150 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "Invalid login response typecode 0x%02x!\n", hostdata 1153 drivers/scsi/ibmvscsi/ibmvscsi.c atomic_set(&hostdata->request_limit, -1); hostdata 1157 drivers/scsi/ibmvscsi/ibmvscsi.c dev_info(hostdata->dev, "SRP_LOGIN succeeded\n"); hostdata 1158 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->client_migrated = 0; hostdata 1164 drivers/scsi/ibmvscsi/ibmvscsi.c atomic_set(&hostdata->request_limit, hostdata 1168 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->action = IBMVSCSI_HOST_ACTION_UNBLOCK; hostdata 1169 drivers/scsi/ibmvscsi/ibmvscsi.c wake_up(&hostdata->work_wait_q); hostdata 1178 drivers/scsi/ibmvscsi/ibmvscsi.c static int send_srp_login(struct ibmvscsi_host_data *hostdata) hostdata 1183 drivers/scsi/ibmvscsi/ibmvscsi.c struct srp_event_struct *evt_struct = get_event_struct(&hostdata->pool); hostdata 1196 drivers/scsi/ibmvscsi/ibmvscsi.c spin_lock_irqsave(hostdata->host->host_lock, flags); hostdata 1201 drivers/scsi/ibmvscsi/ibmvscsi.c atomic_set(&hostdata->request_limit, 0); hostdata 1203 drivers/scsi/ibmvscsi/ibmvscsi.c rc = ibmvscsi_send_srp_event(evt_struct, hostdata, login_timeout * 2); hostdata 1204 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 1205 drivers/scsi/ibmvscsi/ibmvscsi.c dev_info(hostdata->dev, "sent SRP login\n"); hostdata 1217 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = evt_struct->hostdata; hostdata 1220 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "error 0x%X getting capabilities info\n", hostdata 1223 drivers/scsi/ibmvscsi/ibmvscsi.c if (hostdata->caps.migration.common.server_support != hostdata 1225 drivers/scsi/ibmvscsi/ibmvscsi.c dev_info(hostdata->dev, "Partition migration not supported\n"); hostdata 1228 drivers/scsi/ibmvscsi/ibmvscsi.c if (hostdata->caps.reserve.common.server_support == hostdata 1230 drivers/scsi/ibmvscsi/ibmvscsi.c dev_info(hostdata->dev, "Client reserve enabled\n"); hostdata 1232 drivers/scsi/ibmvscsi/ibmvscsi.c dev_info(hostdata->dev, "Client reserve not supported\n"); hostdata 1236 drivers/scsi/ibmvscsi/ibmvscsi.c send_srp_login(hostdata); hostdata 1244 drivers/scsi/ibmvscsi/ibmvscsi.c static void send_mad_capabilities(struct ibmvscsi_host_data *hostdata) hostdata 1249 drivers/scsi/ibmvscsi/ibmvscsi.c struct device_node *of_node = hostdata->dev->of_node; hostdata 1252 drivers/scsi/ibmvscsi/ibmvscsi.c evt_struct = get_event_struct(&hostdata->pool); hostdata 1261 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->caps.flags = cpu_to_be32(CAP_LIST_SUPPORTED); hostdata 1262 drivers/scsi/ibmvscsi/ibmvscsi.c if (hostdata->client_migrated) hostdata 1263 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->caps.flags |= cpu_to_be32(CLIENT_MIGRATED); hostdata 1265 drivers/scsi/ibmvscsi/ibmvscsi.c strlcpy(hostdata->caps.name, dev_name(&hostdata->host->shost_gendev), hostdata 1266 drivers/scsi/ibmvscsi/ibmvscsi.c sizeof(hostdata->caps.name)); hostdata 1269 drivers/scsi/ibmvscsi/ibmvscsi.c location = location ? location : dev_name(hostdata->dev); hostdata 1270 drivers/scsi/ibmvscsi/ibmvscsi.c strlcpy(hostdata->caps.loc, location, sizeof(hostdata->caps.loc)); hostdata 1273 drivers/scsi/ibmvscsi/ibmvscsi.c req->buffer = cpu_to_be64(hostdata->caps_addr); hostdata 1275 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->caps.migration.common.cap_type = hostdata 1277 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->caps.migration.common.length = hostdata 1278 drivers/scsi/ibmvscsi/ibmvscsi.c cpu_to_be16(sizeof(hostdata->caps.migration)); hostdata 1279 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->caps.migration.common.server_support = hostdata 1281 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->caps.migration.ecl = cpu_to_be32(1); hostdata 1284 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->caps.reserve.common.cap_type = hostdata 1286 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->caps.reserve.common.length = hostdata 1287 drivers/scsi/ibmvscsi/ibmvscsi.c cpu_to_be16(sizeof(hostdata->caps.reserve)); hostdata 1288 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->caps.reserve.common.server_support = hostdata 1290 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->caps.reserve.type = hostdata 1293 drivers/scsi/ibmvscsi/ibmvscsi.c cpu_to_be16(sizeof(hostdata->caps)); hostdata 1295 drivers/scsi/ibmvscsi/ibmvscsi.c req->common.length = cpu_to_be16(sizeof(hostdata->caps) - hostdata 1296 drivers/scsi/ibmvscsi/ibmvscsi.c sizeof(hostdata->caps.reserve)); hostdata 1298 drivers/scsi/ibmvscsi/ibmvscsi.c spin_lock_irqsave(hostdata->host->host_lock, flags); hostdata 1299 drivers/scsi/ibmvscsi/ibmvscsi.c if (ibmvscsi_send_srp_event(evt_struct, hostdata, info_timeout * 2)) hostdata 1300 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "couldn't send CAPABILITIES_REQ!\n"); hostdata 1301 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 1313 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = evt_struct->hostdata; hostdata 1317 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "fast_fail not supported in server\n"); hostdata 1319 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "fast_fail request failed\n"); hostdata 1321 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "error 0x%X enabling fast_fail\n", status); hostdata 1323 drivers/scsi/ibmvscsi/ibmvscsi.c send_mad_capabilities(hostdata); hostdata 1332 drivers/scsi/ibmvscsi/ibmvscsi.c static int enable_fast_fail(struct ibmvscsi_host_data *hostdata) hostdata 1340 drivers/scsi/ibmvscsi/ibmvscsi.c send_mad_capabilities(hostdata); hostdata 1344 drivers/scsi/ibmvscsi/ibmvscsi.c evt_struct = get_event_struct(&hostdata->pool); hostdata 1354 drivers/scsi/ibmvscsi/ibmvscsi.c spin_lock_irqsave(hostdata->host->host_lock, flags); hostdata 1355 drivers/scsi/ibmvscsi/ibmvscsi.c rc = ibmvscsi_send_srp_event(evt_struct, hostdata, info_timeout * 2); hostdata 1356 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 1369 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = evt_struct->hostdata; hostdata 1372 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "error %d getting adapter info\n", hostdata 1375 drivers/scsi/ibmvscsi/ibmvscsi.c dev_info(hostdata->dev, "host srp version: %s, " hostdata 1377 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->madapter_info.srp_version, hostdata 1378 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->madapter_info.partition_name, hostdata 1379 drivers/scsi/ibmvscsi/ibmvscsi.c be32_to_cpu(hostdata->madapter_info.partition_number), hostdata 1380 drivers/scsi/ibmvscsi/ibmvscsi.c be32_to_cpu(hostdata->madapter_info.os_type), hostdata 1381 drivers/scsi/ibmvscsi/ibmvscsi.c be32_to_cpu(hostdata->madapter_info.port_max_txu[0])); hostdata 1383 drivers/scsi/ibmvscsi/ibmvscsi.c if (hostdata->madapter_info.port_max_txu[0]) hostdata 1384 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->host->max_sectors = hostdata 1385 drivers/scsi/ibmvscsi/ibmvscsi.c be32_to_cpu(hostdata->madapter_info.port_max_txu[0]) >> 9; hostdata 1387 drivers/scsi/ibmvscsi/ibmvscsi.c if (be32_to_cpu(hostdata->madapter_info.os_type) == SRP_MAD_OS_AIX && hostdata 1388 drivers/scsi/ibmvscsi/ibmvscsi.c strcmp(hostdata->madapter_info.srp_version, "1.6a") <= 0) { hostdata 1389 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "host (Ver. %s) doesn't support large transfers\n", hostdata 1390 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->madapter_info.srp_version); hostdata 1391 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "limiting scatterlists to %d\n", hostdata 1393 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->host->sg_tablesize = MAX_INDIRECT_BUFS; hostdata 1396 drivers/scsi/ibmvscsi/ibmvscsi.c if (be32_to_cpu(hostdata->madapter_info.os_type) == SRP_MAD_OS_AIX) { hostdata 1397 drivers/scsi/ibmvscsi/ibmvscsi.c enable_fast_fail(hostdata); hostdata 1402 drivers/scsi/ibmvscsi/ibmvscsi.c send_srp_login(hostdata); hostdata 1414 drivers/scsi/ibmvscsi/ibmvscsi.c static void send_mad_adapter_info(struct ibmvscsi_host_data *hostdata) hostdata 1420 drivers/scsi/ibmvscsi/ibmvscsi.c evt_struct = get_event_struct(&hostdata->pool); hostdata 1432 drivers/scsi/ibmvscsi/ibmvscsi.c req->common.length = cpu_to_be16(sizeof(hostdata->madapter_info)); hostdata 1433 drivers/scsi/ibmvscsi/ibmvscsi.c req->buffer = cpu_to_be64(hostdata->adapter_info_addr); hostdata 1435 drivers/scsi/ibmvscsi/ibmvscsi.c spin_lock_irqsave(hostdata->host->host_lock, flags); hostdata 1436 drivers/scsi/ibmvscsi/ibmvscsi.c if (ibmvscsi_send_srp_event(evt_struct, hostdata, info_timeout * 2)) hostdata 1437 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "couldn't send ADAPTER_INFO_REQ!\n"); hostdata 1438 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 1445 drivers/scsi/ibmvscsi/ibmvscsi.c static void init_adapter(struct ibmvscsi_host_data *hostdata) hostdata 1447 drivers/scsi/ibmvscsi/ibmvscsi.c send_mad_adapter_info(hostdata); hostdata 1471 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(cmd->device->host); hostdata 1484 drivers/scsi/ibmvscsi/ibmvscsi.c spin_lock_irqsave(hostdata->host->host_lock, flags); hostdata 1488 drivers/scsi/ibmvscsi/ibmvscsi.c list_for_each_entry(tmp_evt, &hostdata->sent, list) { hostdata 1496 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 1500 drivers/scsi/ibmvscsi/ibmvscsi.c evt = get_event_struct(&hostdata->pool); hostdata 1502 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 1525 drivers/scsi/ibmvscsi/ibmvscsi.c rsp_rc = ibmvscsi_send_srp_event(evt, hostdata, abort_timeout * 2); hostdata 1530 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 1532 drivers/scsi/ibmvscsi/ibmvscsi.c spin_lock_irqsave(hostdata->host->host_lock, flags); hostdata 1535 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 1574 drivers/scsi/ibmvscsi/ibmvscsi.c spin_lock_irqsave(hostdata->host->host_lock, flags); hostdata 1576 drivers/scsi/ibmvscsi/ibmvscsi.c list_for_each_entry(tmp_evt, &hostdata->sent, list) { hostdata 1584 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 1596 drivers/scsi/ibmvscsi/ibmvscsi.c found_evt->hostdata->dev); hostdata 1597 drivers/scsi/ibmvscsi/ibmvscsi.c free_event_struct(&found_evt->hostdata->pool, found_evt); hostdata 1598 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 1599 drivers/scsi/ibmvscsi/ibmvscsi.c atomic_inc(&hostdata->request_limit); hostdata 1610 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(cmd->device->host); hostdata 1620 drivers/scsi/ibmvscsi/ibmvscsi.c spin_lock_irqsave(hostdata->host->host_lock, flags); hostdata 1623 drivers/scsi/ibmvscsi/ibmvscsi.c evt = get_event_struct(&hostdata->pool); hostdata 1625 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 1647 drivers/scsi/ibmvscsi/ibmvscsi.c rsp_rc = ibmvscsi_send_srp_event(evt, hostdata, reset_timeout * 2); hostdata 1652 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 1654 drivers/scsi/ibmvscsi/ibmvscsi.c spin_lock_irqsave(hostdata->host->host_lock, flags); hostdata 1657 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 1694 drivers/scsi/ibmvscsi/ibmvscsi.c spin_lock_irqsave(hostdata->host->host_lock, flags); hostdata 1695 drivers/scsi/ibmvscsi/ibmvscsi.c list_for_each_entry_safe(tmp_evt, pos, &hostdata->sent, list) { hostdata 1701 drivers/scsi/ibmvscsi/ibmvscsi.c tmp_evt->hostdata->dev); hostdata 1702 drivers/scsi/ibmvscsi/ibmvscsi.c free_event_struct(&tmp_evt->hostdata->pool, hostdata 1704 drivers/scsi/ibmvscsi/ibmvscsi.c atomic_inc(&hostdata->request_limit); hostdata 1711 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 1722 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(cmd->device->host); hostdata 1724 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "Resetting connection due to error recovery\n"); hostdata 1726 drivers/scsi/ibmvscsi/ibmvscsi.c ibmvscsi_reset_host(hostdata); hostdata 1730 drivers/scsi/ibmvscsi/ibmvscsi.c atomic_read(&hostdata->request_limit) < 2;) { hostdata 1735 drivers/scsi/ibmvscsi/ibmvscsi.c if (atomic_read(&hostdata->request_limit) <= 0) hostdata 1748 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata) hostdata 1759 drivers/scsi/ibmvscsi/ibmvscsi.c dev_info(hostdata->dev, "partner initialized\n"); hostdata 1761 drivers/scsi/ibmvscsi/ibmvscsi.c rc = ibmvscsi_send_crq(hostdata, 0xC002000000000000LL, 0); hostdata 1764 drivers/scsi/ibmvscsi/ibmvscsi.c init_adapter(hostdata); hostdata 1766 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "Unable to send init rsp. rc=%ld\n", rc); hostdata 1771 drivers/scsi/ibmvscsi/ibmvscsi.c dev_info(hostdata->dev, "partner initialization complete\n"); hostdata 1774 drivers/scsi/ibmvscsi/ibmvscsi.c init_adapter(hostdata); hostdata 1777 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "unknown crq message type: %d\n", crq->format); hostdata 1781 drivers/scsi/ibmvscsi/ibmvscsi.c scsi_block_requests(hostdata->host); hostdata 1782 drivers/scsi/ibmvscsi/ibmvscsi.c atomic_set(&hostdata->request_limit, 0); hostdata 1785 drivers/scsi/ibmvscsi/ibmvscsi.c dev_info(hostdata->dev, "Re-enabling adapter!\n"); hostdata 1786 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->client_migrated = 1; hostdata 1787 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->action = IBMVSCSI_HOST_ACTION_REENABLE; hostdata 1788 drivers/scsi/ibmvscsi/ibmvscsi.c purge_requests(hostdata, DID_REQUEUE); hostdata 1789 drivers/scsi/ibmvscsi/ibmvscsi.c wake_up(&hostdata->work_wait_q); hostdata 1791 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "Virtual adapter failed rc %d!\n", hostdata 1793 drivers/scsi/ibmvscsi/ibmvscsi.c ibmvscsi_reset_host(hostdata); hostdata 1799 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "got an invalid message type 0x%02x\n", hostdata 1808 drivers/scsi/ibmvscsi/ibmvscsi.c if (!valid_event_struct(&hostdata->pool, evt_struct)) { hostdata 1809 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "returned correlation_token 0x%p is invalid!\n", hostdata 1815 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "received duplicate correlation_token 0x%p!\n", hostdata 1822 drivers/scsi/ibmvscsi/ibmvscsi.c &hostdata->request_limit); hostdata 1831 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "returned done() is NULL; not running it!\n"); hostdata 1837 drivers/scsi/ibmvscsi/ibmvscsi.c spin_lock_irqsave(evt_struct->hostdata->host->host_lock, flags); hostdata 1839 drivers/scsi/ibmvscsi/ibmvscsi.c free_event_struct(&evt_struct->hostdata->pool, evt_struct); hostdata 1840 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(evt_struct->hostdata->host->host_lock, flags); hostdata 1888 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(shost); hostdata 1891 drivers/scsi/ibmvscsi/ibmvscsi.c len = snprintf(buf, sizeof(hostdata->caps.loc), "%s\n", hostdata 1892 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->caps.loc); hostdata 1908 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(shost); hostdata 1911 drivers/scsi/ibmvscsi/ibmvscsi.c len = snprintf(buf, sizeof(hostdata->caps.name), "%s\n", hostdata 1912 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->caps.name); hostdata 1928 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(shost); hostdata 1932 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->madapter_info.srp_version); hostdata 1949 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(shost); hostdata 1953 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->madapter_info.partition_name); hostdata 1970 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(shost); hostdata 1974 drivers/scsi/ibmvscsi/ibmvscsi.c be32_to_cpu(hostdata->madapter_info.partition_number)); hostdata 1990 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(shost); hostdata 1994 drivers/scsi/ibmvscsi/ibmvscsi.c be32_to_cpu(hostdata->madapter_info.mad_version)); hostdata 2010 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(shost); hostdata 2014 drivers/scsi/ibmvscsi/ibmvscsi.c be32_to_cpu(hostdata->madapter_info.os_type)); hostdata 2042 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(shost); hostdata 2044 drivers/scsi/ibmvscsi/ibmvscsi.c dev_info(hostdata->dev, "Initiating adapter reset!\n"); hostdata 2045 drivers/scsi/ibmvscsi/ibmvscsi.c ibmvscsi_reset_host(hostdata); hostdata 2104 drivers/scsi/ibmvscsi/ibmvscsi.c static void ibmvscsi_do_work(struct ibmvscsi_host_data *hostdata) hostdata 2110 drivers/scsi/ibmvscsi/ibmvscsi.c spin_lock_irqsave(hostdata->host->host_lock, flags); hostdata 2111 drivers/scsi/ibmvscsi/ibmvscsi.c switch (hostdata->action) { hostdata 2116 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 2117 drivers/scsi/ibmvscsi/ibmvscsi.c rc = ibmvscsi_reset_crq_queue(&hostdata->queue, hostdata); hostdata 2118 drivers/scsi/ibmvscsi/ibmvscsi.c spin_lock_irqsave(hostdata->host->host_lock, flags); hostdata 2120 drivers/scsi/ibmvscsi/ibmvscsi.c rc = ibmvscsi_send_crq(hostdata, 0xC001000000000000LL, 0); hostdata 2121 drivers/scsi/ibmvscsi/ibmvscsi.c vio_enable_interrupts(to_vio_dev(hostdata->dev)); hostdata 2125 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 2126 drivers/scsi/ibmvscsi/ibmvscsi.c rc = ibmvscsi_reenable_crq_queue(&hostdata->queue, hostdata); hostdata 2127 drivers/scsi/ibmvscsi/ibmvscsi.c spin_lock_irqsave(hostdata->host->host_lock, flags); hostdata 2129 drivers/scsi/ibmvscsi/ibmvscsi.c rc = ibmvscsi_send_crq(hostdata, 0xC001000000000000LL, 0); hostdata 2133 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 2137 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->action = IBMVSCSI_HOST_ACTION_NONE; hostdata 2140 drivers/scsi/ibmvscsi/ibmvscsi.c atomic_set(&hostdata->request_limit, -1); hostdata 2141 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(hostdata->dev, "error after %s\n", action); hostdata 2143 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 2145 drivers/scsi/ibmvscsi/ibmvscsi.c scsi_unblock_requests(hostdata->host); hostdata 2148 drivers/scsi/ibmvscsi/ibmvscsi.c static int __ibmvscsi_work_to_do(struct ibmvscsi_host_data *hostdata) hostdata 2152 drivers/scsi/ibmvscsi/ibmvscsi.c switch (hostdata->action) { hostdata 2165 drivers/scsi/ibmvscsi/ibmvscsi.c static int ibmvscsi_work_to_do(struct ibmvscsi_host_data *hostdata) hostdata 2170 drivers/scsi/ibmvscsi/ibmvscsi.c spin_lock_irqsave(hostdata->host->host_lock, flags); hostdata 2171 drivers/scsi/ibmvscsi/ibmvscsi.c rc = __ibmvscsi_work_to_do(hostdata); hostdata 2172 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(hostdata->host->host_lock, flags); hostdata 2179 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = data; hostdata 2185 drivers/scsi/ibmvscsi/ibmvscsi.c rc = wait_event_interruptible(hostdata->work_wait_q, hostdata 2186 drivers/scsi/ibmvscsi/ibmvscsi.c ibmvscsi_work_to_do(hostdata)); hostdata 2193 drivers/scsi/ibmvscsi/ibmvscsi.c ibmvscsi_do_work(hostdata); hostdata 2204 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata; hostdata 2214 drivers/scsi/ibmvscsi/ibmvscsi.c host = scsi_host_alloc(&driver_template, sizeof(*hostdata)); hostdata 2221 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata = shost_priv(host); hostdata 2222 drivers/scsi/ibmvscsi/ibmvscsi.c memset(hostdata, 0x00, sizeof(*hostdata)); hostdata 2223 drivers/scsi/ibmvscsi/ibmvscsi.c INIT_LIST_HEAD(&hostdata->sent); hostdata 2224 drivers/scsi/ibmvscsi/ibmvscsi.c init_waitqueue_head(&hostdata->work_wait_q); hostdata 2225 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->host = host; hostdata 2226 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->dev = dev; hostdata 2227 drivers/scsi/ibmvscsi/ibmvscsi.c atomic_set(&hostdata->request_limit, -1); hostdata 2228 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->host->max_sectors = IBMVSCSI_MAX_SECTORS_DEFAULT; hostdata 2230 drivers/scsi/ibmvscsi/ibmvscsi.c if (map_persist_bufs(hostdata)) { hostdata 2235 drivers/scsi/ibmvscsi/ibmvscsi.c hostdata->work_thread = kthread_run(ibmvscsi_work, hostdata, "%s_%d", hostdata 2238 drivers/scsi/ibmvscsi/ibmvscsi.c if (IS_ERR(hostdata->work_thread)) { hostdata 2240 drivers/scsi/ibmvscsi/ibmvscsi.c PTR_ERR(hostdata->work_thread)); hostdata 2244 drivers/scsi/ibmvscsi/ibmvscsi.c rc = ibmvscsi_init_crq_queue(&hostdata->queue, hostdata, max_events); hostdata 2249 drivers/scsi/ibmvscsi/ibmvscsi.c if (initialize_event_pool(&hostdata->pool, max_events, hostdata) != 0) { hostdata 2263 drivers/scsi/ibmvscsi/ibmvscsi.c if (scsi_add_host(hostdata->host, hostdata->dev)) hostdata 2267 drivers/scsi/ibmvscsi/ibmvscsi.c memcpy(ids.port_id, hostdata->madapter_info.partition_name, hostdata 2278 drivers/scsi/ibmvscsi/ibmvscsi.c if (ibmvscsi_send_crq(hostdata, 0xC001000000000000LL, 0) == 0 hostdata 2288 drivers/scsi/ibmvscsi/ibmvscsi.c atomic_read(&hostdata->request_limit) < 2;) { hostdata 2294 drivers/scsi/ibmvscsi/ibmvscsi.c if (atomic_read(&hostdata->request_limit) > 0) hostdata 2298 drivers/scsi/ibmvscsi/ibmvscsi.c dev_set_drvdata(&vdev->dev, hostdata); hostdata 2300 drivers/scsi/ibmvscsi/ibmvscsi.c list_add_tail(&hostdata->host_list, &ibmvscsi_head); hostdata 2305 drivers/scsi/ibmvscsi/ibmvscsi.c scsi_remove_host(hostdata->host); hostdata 2307 drivers/scsi/ibmvscsi/ibmvscsi.c release_event_pool(&hostdata->pool, hostdata); hostdata 2309 drivers/scsi/ibmvscsi/ibmvscsi.c ibmvscsi_release_crq_queue(&hostdata->queue, hostdata, max_events); hostdata 2311 drivers/scsi/ibmvscsi/ibmvscsi.c kthread_stop(hostdata->work_thread); hostdata 2313 drivers/scsi/ibmvscsi/ibmvscsi.c unmap_persist_bufs(hostdata); hostdata 2322 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = dev_get_drvdata(&vdev->dev); hostdata 2324 drivers/scsi/ibmvscsi/ibmvscsi.c srp_remove_host(hostdata->host); hostdata 2325 drivers/scsi/ibmvscsi/ibmvscsi.c scsi_remove_host(hostdata->host); hostdata 2327 drivers/scsi/ibmvscsi/ibmvscsi.c purge_requests(hostdata, DID_ERROR); hostdata 2328 drivers/scsi/ibmvscsi/ibmvscsi.c release_event_pool(&hostdata->pool, hostdata); hostdata 2330 drivers/scsi/ibmvscsi/ibmvscsi.c ibmvscsi_release_crq_queue(&hostdata->queue, hostdata, hostdata 2333 drivers/scsi/ibmvscsi/ibmvscsi.c kthread_stop(hostdata->work_thread); hostdata 2334 drivers/scsi/ibmvscsi/ibmvscsi.c unmap_persist_bufs(hostdata); hostdata 2337 drivers/scsi/ibmvscsi/ibmvscsi.c list_del(&hostdata->host_list); hostdata 2340 drivers/scsi/ibmvscsi/ibmvscsi.c scsi_host_put(hostdata->host); hostdata 2354 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = dev_get_drvdata(dev); hostdata 2355 drivers/scsi/ibmvscsi/ibmvscsi.c vio_disable_interrupts(to_vio_dev(hostdata->dev)); hostdata 2356 drivers/scsi/ibmvscsi/ibmvscsi.c tasklet_schedule(&hostdata->srp_task); hostdata 57 drivers/scsi/ibmvscsi/ibmvscsi.h struct ibmvscsi_host_data *hostdata; hostdata 60 drivers/scsi/imm.c return *(imm_struct **)&host->hostdata; hostdata 1241 drivers/scsi/imm.c *(imm_struct **)&host->hostdata = dev; hostdata 2512 drivers/scsi/initio.c r = initio_isr((struct initio_host *)dev->hostdata); hostdata 2615 drivers/scsi/initio.c struct initio_host *host = (struct initio_host *) cmd->device->host->hostdata; hostdata 2642 drivers/scsi/initio.c host = (struct initio_host *) cmnd->device->host->hostdata; hostdata 2670 drivers/scsi/initio.c host = (struct initio_host *) sdev->host->hostdata; hostdata 2839 drivers/scsi/initio.c host = (struct initio_host *)shost->hostdata; hostdata 2939 drivers/scsi/initio.c struct initio_host *s = (struct initio_host *)host->hostdata; hostdata 3462 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; hostdata 3496 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; hostdata 3530 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; hostdata 3553 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; hostdata 3588 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; hostdata 3644 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; hostdata 3673 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; hostdata 3724 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; hostdata 3761 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; hostdata 3785 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; hostdata 4076 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; hostdata 4151 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; hostdata 4175 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; hostdata 4199 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; hostdata 4258 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; hostdata 4447 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; hostdata 4490 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata; hostdata 4495 drivers/scsi/ipr.c res = (struct ipr_resource_entry *)sdev->hostdata; hostdata 4517 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata; hostdata 4523 drivers/scsi/ipr.c res = (struct ipr_resource_entry *)sdev->hostdata; hostdata 4551 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata; hostdata 4558 drivers/scsi/ipr.c res = (struct ipr_resource_entry *)sdev->hostdata; hostdata 4591 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata; hostdata 4597 drivers/scsi/ipr.c res = (struct ipr_resource_entry *)sdev->hostdata; hostdata 4627 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata; hostdata 4633 drivers/scsi/ipr.c res = (struct ipr_resource_entry *)sdev->hostdata; hostdata 4662 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata; hostdata 4668 drivers/scsi/ipr.c res = (struct ipr_resource_entry *)sdev->hostdata; hostdata 4690 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata; hostdata 4696 drivers/scsi/ipr.c res = (struct ipr_resource_entry *)sdev->hostdata; hostdata 4775 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) shost->hostdata; hostdata 4803 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) shost->hostdata; hostdata 4811 drivers/scsi/ipr.c starget->hostdata = NULL; hostdata 4828 drivers/scsi/ipr.c starget->hostdata = sata_port; hostdata 4849 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = starget->hostdata; hostdata 4851 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) shost->hostdata; hostdata 4865 drivers/scsi/ipr.c starget->hostdata = NULL; hostdata 4880 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) sdev->host->hostdata; hostdata 4906 drivers/scsi/ipr.c ioa_cfg = (struct ipr_ioa_cfg *) sdev->host->hostdata; hostdata 4909 drivers/scsi/ipr.c res = (struct ipr_resource_entry *) sdev->hostdata; hostdata 4913 drivers/scsi/ipr.c sdev->hostdata = NULL; hostdata 4931 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) sdev->host->hostdata; hostdata 4938 drivers/scsi/ipr.c res = sdev->hostdata; hostdata 4989 drivers/scsi/ipr.c sata_port = sdev->sdev_target->hostdata; hostdata 5017 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) sdev->host->hostdata; hostdata 5022 drivers/scsi/ipr.c sdev->hostdata = NULL; hostdata 5031 drivers/scsi/ipr.c sdev->hostdata = res; hostdata 5173 drivers/scsi/ipr.c ioa_cfg = (struct ipr_ioa_cfg *) cmd->device->host->hostdata; hostdata 5329 drivers/scsi/ipr.c ioa_cfg = (struct ipr_ioa_cfg *) scsi_cmd->device->host->hostdata; hostdata 5330 drivers/scsi/ipr.c res = scsi_cmd->device->hostdata; hostdata 5385 drivers/scsi/ipr.c ioa_cfg = (struct ipr_ioa_cfg *) cmd->device->host->hostdata; hostdata 5386 drivers/scsi/ipr.c res = cmd->device->hostdata; hostdata 5502 drivers/scsi/ipr.c ioa_cfg = (struct ipr_ioa_cfg *)scsi_cmd->device->host->hostdata; hostdata 5503 drivers/scsi/ipr.c res = scsi_cmd->device->hostdata; hostdata 5580 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) shost->hostdata; hostdata 5607 drivers/scsi/ipr.c ioa_cfg = (struct ipr_ioa_cfg *) scsi_cmd->device->host->hostdata; hostdata 6035 drivers/scsi/ipr.c struct ipr_resource_entry *res = scsi_cmd->device->hostdata; hostdata 6181 drivers/scsi/ipr.c struct ipr_resource_entry *res = scsi_cmd->device->hostdata; hostdata 6281 drivers/scsi/ipr.c struct ipr_resource_entry *res = ipr_cmd->scsi_cmd->device->hostdata; hostdata 6404 drivers/scsi/ipr.c struct ipr_resource_entry *res = scsi_cmd->device->hostdata; hostdata 6558 drivers/scsi/ipr.c ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; hostdata 6561 drivers/scsi/ipr.c res = scsi_cmd->device->hostdata; hostdata 6693 drivers/scsi/ipr.c res = (struct ipr_resource_entry *)sdev->hostdata; hostdata 6716 drivers/scsi/ipr.c ioa_cfg = (struct ipr_ioa_cfg *) host->hostdata; hostdata 10170 drivers/scsi/ipr.c ioa_cfg = (struct ipr_ioa_cfg *)host->hostdata; hostdata 788 drivers/scsi/ips.c ha = (ips_ha_t *) SC->device->host->hostdata; hostdata 852 drivers/scsi/ips.c ha = (ips_ha_t *) SC->device->host->hostdata; hostdata 1045 drivers/scsi/ips.c ha = (ips_ha_t *) SC->device->host->hostdata; hostdata 1143 drivers/scsi/ips.c ips_ha_t *ha = (ips_ha_t *) sdev->host->hostdata; hostdata 1435 drivers/scsi/ips.c ha = (ips_ha_t *) ips_sh[i]->hostdata; hostdata 1457 drivers/scsi/ips.c ha = (ips_ha_t *) ips_sh[i]->hostdata; hostdata 60 drivers/scsi/ips.h #define IPS_HA(x) ((ips_ha_t *) x->hostdata) hostdata 90 drivers/scsi/lasi700.c struct NCR_700_Host_Parameters *hostdata; hostdata 93 drivers/scsi/lasi700.c hostdata = kzalloc(sizeof(*hostdata), GFP_KERNEL); hostdata 94 drivers/scsi/lasi700.c if (!hostdata) { hostdata 99 drivers/scsi/lasi700.c hostdata->dev = &dev->dev; hostdata 101 drivers/scsi/lasi700.c hostdata->base = ioremap_nocache(base, 0x100); hostdata 102 drivers/scsi/lasi700.c hostdata->differential = 0; hostdata 105 drivers/scsi/lasi700.c hostdata->clock = LASI700_CLOCK; hostdata 106 drivers/scsi/lasi700.c hostdata->force_le_on_be = 1; hostdata 108 drivers/scsi/lasi700.c hostdata->clock = LASI710_CLOCK; hostdata 109 drivers/scsi/lasi700.c hostdata->force_le_on_be = 0; hostdata 110 drivers/scsi/lasi700.c hostdata->chip710 = 1; hostdata 111 drivers/scsi/lasi700.c hostdata->dmode_extra = DMODE_FC2; hostdata 112 drivers/scsi/lasi700.c hostdata->burst_length = 8; hostdata 115 drivers/scsi/lasi700.c host = NCR_700_detect(&lasi700_template, hostdata, &dev->dev); hostdata 134 drivers/scsi/lasi700.c iounmap(hostdata->base); hostdata 135 drivers/scsi/lasi700.c kfree(hostdata); hostdata 143 drivers/scsi/lasi700.c struct NCR_700_Host_Parameters *hostdata = hostdata 144 drivers/scsi/lasi700.c (struct NCR_700_Host_Parameters *)host->hostdata[0]; hostdata 149 drivers/scsi/lasi700.c iounmap(hostdata->base); hostdata 150 drivers/scsi/lasi700.c kfree(hostdata); hostdata 446 drivers/scsi/libsas/sas_init.c kfree(phy->hostdata); hostdata 447 drivers/scsi/libsas/sas_init.c phy->hostdata = NULL; hostdata 475 drivers/scsi/libsas/sas_init.c phy->hostdata = d; hostdata 484 drivers/scsi/libsas/sas_init.c struct sas_phy_data *d = phy->hostdata; hostdata 511 drivers/scsi/libsas/sas_init.c struct sas_phy_data *d = phy->hostdata; hostdata 832 drivers/scsi/libsas/sas_scsi_host.c starget->hostdata = found_dev; hostdata 916 drivers/scsi/libsas/sas_scsi_host.c struct domain_device *found_dev = starget->hostdata; hostdata 921 drivers/scsi/libsas/sas_scsi_host.c starget->hostdata = NULL; hostdata 1227 drivers/scsi/lpfc/lpfc.h return container_of((void *) vport, struct Scsi_Host, hostdata[0]); hostdata 150 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 588 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 608 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 620 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 632 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 669 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 692 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 710 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 729 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 748 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 766 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; hostdata 786 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 805 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 839 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 861 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 889 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 1014 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 1043 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; hostdata 1067 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 1102 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 1125 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 1336 drivers/scsi/lpfc/lpfc_attr.c ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 1439 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 1634 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 1713 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 1747 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 1947 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 1975 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 2003 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 2031 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 2059 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 2087 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 2114 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 2140 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 2165 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 2244 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 2263 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 2282 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 2309 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 2372 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\ hostdata 2398 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\ hostdata 2504 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\ hostdata 2537 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\ hostdata 2562 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\ hostdata 2658 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\ hostdata 2774 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 2832 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 2857 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 2931 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 2951 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 2996 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 3020 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 3064 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 3087 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 3127 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 3151 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 3198 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 3222 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 3259 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 3393 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 3441 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 3548 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *) shost->hostdata)->phba; hostdata 3559 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *) shost->hostdata)->phba; hostdata 3573 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *) shost->hostdata)->phba; hostdata 3610 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 4072 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 4148 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 4186 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 4340 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 4423 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 4514 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 4693 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; hostdata 4768 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 4835 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; hostdata 4912 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; hostdata 4984 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; hostdata 5042 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; hostdata 5161 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; hostdata 5268 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; hostdata 5878 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; hostdata 6148 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 6208 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 6374 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; hostdata 6387 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 6400 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 6432 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 6475 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 6544 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 6579 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 6700 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 6789 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 6906 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_rport_data *rdata = rport->hostdata; \ hostdata 4292 drivers/scsi/lpfc/lpfc_init.c vport = (struct lpfc_vport *) shost->hostdata; hostdata 4433 drivers/scsi/lpfc/lpfc_init.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 4477 drivers/scsi/lpfc/lpfc_init.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; hostdata 4510 drivers/scsi/lpfc/lpfc_init.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 12033 drivers/scsi/lpfc/lpfc_init.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 12143 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 12186 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 12332 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 12378 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 12439 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 12851 drivers/scsi/lpfc/lpfc_init.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 12949 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 12993 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 13138 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 13184 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 13240 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 13308 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 13344 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 13380 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 13418 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 13455 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 13488 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; hostdata 75 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *)sdev->host->hostdata; hostdata 78 drivers/scsi/lpfc/lpfc_scsi.c return ((struct lpfc_device_data *)sdev->hostdata)->rport_data; hostdata 80 drivers/scsi/lpfc/lpfc_scsi.c return (struct lpfc_rport_data *)sdev->hostdata; hostdata 151 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 3233 drivers/scsi/lpfc/lpfc_scsi.c scsi_cmnd->device->hostdata)->oas_enabled) { hostdata 3236 drivers/scsi/lpfc/lpfc_scsi.c scsi_cmnd->device->hostdata)->priority; hostdata 3413 drivers/scsi/lpfc/lpfc_scsi.c scsi_cmnd->device->hostdata)->oas_enabled) hostdata 4382 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *) host->hostdata; hostdata 4499 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 4717 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 5215 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 5286 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 5364 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 5456 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; hostdata 5499 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata; hostdata 5543 drivers/scsi/lpfc/lpfc_scsi.c sdev->hostdata = device_data; hostdata 5545 drivers/scsi/lpfc/lpfc_scsi.c sdev->hostdata = rport->dd_data; hostdata 5613 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata; hostdata 5637 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata; hostdata 5640 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_device_data *device_data = sdev->hostdata; hostdata 5650 drivers/scsi/lpfc/lpfc_scsi.c sdev->hostdata = NULL; hostdata 299 drivers/scsi/lpfc/lpfc_vport.c struct lpfc_vport *pport = (struct lpfc_vport *) shost->hostdata; hostdata 89 drivers/scsi/mac53c94.c state = (struct fsc_state *) cmd->device->host->hostdata; hostdata 107 drivers/scsi/mac53c94.c struct fsc_state *state = (struct fsc_state *) cmd->device->host->hostdata; hostdata 439 drivers/scsi/mac53c94.c state = (struct fsc_state *) host->hostdata; hostdata 38 drivers/scsi/mac_scsi.c #define NCR5380_read(reg) in_8(hostdata->io + ((reg) << 4)) hostdata 39 drivers/scsi/mac_scsi.c #define NCR5380_write(reg, value) out_8(hostdata->io + ((reg) << 4), value) hostdata 272 drivers/scsi/mac_scsi.c static inline void write_ctrl_reg(struct NCR5380_hostdata *hostdata, u32 value) hostdata 274 drivers/scsi/mac_scsi.c out_be32(hostdata->io + (CTRL_REG << 4), value); hostdata 277 drivers/scsi/mac_scsi.c static inline int macscsi_pread(struct NCR5380_hostdata *hostdata, hostdata 280 drivers/scsi/mac_scsi.c u8 __iomem *s = hostdata->pdma_io + (INPUT_DATA_REG << 4); hostdata 284 drivers/scsi/mac_scsi.c hostdata->pdma_residual = len; hostdata 286 drivers/scsi/mac_scsi.c while (!NCR5380_poll_politely(hostdata, BUS_AND_STATUS_REG, hostdata 292 drivers/scsi/mac_scsi.c write_ctrl_reg(hostdata, CTRL_HANDSHAKE_MODE | hostdata 295 drivers/scsi/mac_scsi.c bytes = mac_pdma_recv(s, d, min(hostdata->pdma_residual, 512)); hostdata 299 drivers/scsi/mac_scsi.c hostdata->pdma_residual -= bytes; hostdata 302 drivers/scsi/mac_scsi.c if (hostdata->pdma_residual == 0) hostdata 305 drivers/scsi/mac_scsi.c if (NCR5380_poll_politely2(hostdata, STATUS_REG, SR_REQ, SR_REQ, hostdata 308 drivers/scsi/mac_scsi.c scmd_printk(KERN_DEBUG, hostdata->connected, hostdata 319 drivers/scsi/mac_scsi.c dsprintk(NDEBUG_PSEUDO_DMA, hostdata->host, hostdata 321 drivers/scsi/mac_scsi.c NCR5380_dprint(NDEBUG_PSEUDO_DMA, hostdata->host); hostdata 326 drivers/scsi/mac_scsi.c scmd_printk(KERN_ERR, hostdata->connected, hostdata 328 drivers/scsi/mac_scsi.c NCR5380_dprint(NDEBUG_PSEUDO_DMA, hostdata->host); hostdata 332 drivers/scsi/mac_scsi.c write_ctrl_reg(hostdata, CTRL_INTERRUPTS_ENABLE); hostdata 336 drivers/scsi/mac_scsi.c static inline int macscsi_pwrite(struct NCR5380_hostdata *hostdata, hostdata 340 drivers/scsi/mac_scsi.c u8 __iomem *d = hostdata->pdma_io + (OUTPUT_DATA_REG << 4); hostdata 343 drivers/scsi/mac_scsi.c hostdata->pdma_residual = len; hostdata 345 drivers/scsi/mac_scsi.c while (!NCR5380_poll_politely(hostdata, BUS_AND_STATUS_REG, hostdata 351 drivers/scsi/mac_scsi.c write_ctrl_reg(hostdata, CTRL_HANDSHAKE_MODE | hostdata 354 drivers/scsi/mac_scsi.c bytes = mac_pdma_send(s, d, min(hostdata->pdma_residual, 512)); hostdata 358 drivers/scsi/mac_scsi.c hostdata->pdma_residual -= bytes; hostdata 361 drivers/scsi/mac_scsi.c if (hostdata->pdma_residual == 0) { hostdata 362 drivers/scsi/mac_scsi.c if (NCR5380_poll_politely(hostdata, TARGET_COMMAND_REG, hostdata 366 drivers/scsi/mac_scsi.c scmd_printk(KERN_ERR, hostdata->connected, hostdata 373 drivers/scsi/mac_scsi.c if (NCR5380_poll_politely2(hostdata, STATUS_REG, SR_REQ, SR_REQ, hostdata 376 drivers/scsi/mac_scsi.c scmd_printk(KERN_DEBUG, hostdata->connected, hostdata 387 drivers/scsi/mac_scsi.c dsprintk(NDEBUG_PSEUDO_DMA, hostdata->host, hostdata 389 drivers/scsi/mac_scsi.c NCR5380_dprint(NDEBUG_PSEUDO_DMA, hostdata->host); hostdata 394 drivers/scsi/mac_scsi.c scmd_printk(KERN_ERR, hostdata->connected, hostdata 396 drivers/scsi/mac_scsi.c NCR5380_dprint(NDEBUG_PSEUDO_DMA, hostdata->host); hostdata 400 drivers/scsi/mac_scsi.c write_ctrl_reg(hostdata, CTRL_INTERRUPTS_ENABLE); hostdata 404 drivers/scsi/mac_scsi.c static int macscsi_dma_xfer_len(struct NCR5380_hostdata *hostdata, hostdata 407 drivers/scsi/mac_scsi.c if (hostdata->flags & FLAG_NO_PSEUDO_DMA || hostdata 414 drivers/scsi/mac_scsi.c static int macscsi_dma_residual(struct NCR5380_hostdata *hostdata) hostdata 416 drivers/scsi/mac_scsi.c return hostdata->pdma_residual; hostdata 444 drivers/scsi/mac_scsi.c struct NCR5380_hostdata *hostdata; hostdata 482 drivers/scsi/mac_scsi.c hostdata = shost_priv(instance); hostdata 483 drivers/scsi/mac_scsi.c hostdata->base = pio_mem->start; hostdata 484 drivers/scsi/mac_scsi.c hostdata->io = (u8 __iomem *)pio_mem->start; hostdata 487 drivers/scsi/mac_scsi.c hostdata->pdma_io = (u8 __iomem *)pdma_mem->start; hostdata 376 drivers/scsi/megaraid.c adapter = (adapter_t *)scmd->device->host->hostdata; hostdata 1853 drivers/scsi/megaraid.c adapter = (adapter_t *)host->hostdata; hostdata 1873 drivers/scsi/megaraid.c adapter = (adapter_t *)cmd->device->host->hostdata; hostdata 1894 drivers/scsi/megaraid.c adapter = (adapter_t *)cmd->device->host->hostdata; hostdata 2805 drivers/scsi/megaraid.c adapter = (adapter_t *)sdev->host->hostdata; hostdata 4245 drivers/scsi/megaraid.c adapter = (adapter_t *)host->hostdata; hostdata 4548 drivers/scsi/megaraid.c adapter_t *adapter = (adapter_t *)host->hostdata; hostdata 4583 drivers/scsi/megaraid.c adapter_t *adapter = (adapter_t *)host->hostdata; hostdata 200 drivers/scsi/megaraid/mega_common.h #define SCP2HOSTDATA(scp) SCP2HOST(scp)->hostdata // to soft state hostdata 206 drivers/scsi/megaraid/mega_common.h #define SCSIHOST2ADAP(host) (((caddr_t *)(host->hostdata))[0]) hostdata 1764 drivers/scsi/megaraid/megaraid_sas_base.c scmd->device->host->hostdata; hostdata 1794 drivers/scsi/megaraid/megaraid_sas_base.c mr_device_priv_data = scmd->device->hostdata; hostdata 1871 drivers/scsi/megaraid/megaraid_sas_base.c mr_device_priv_data = sdev->hostdata; hostdata 1938 drivers/scsi/megaraid/megaraid_sas_base.c instance = (struct megasas_instance *)sdev->host->hostdata; hostdata 1966 drivers/scsi/megaraid/megaraid_sas_base.c mr_device_priv_data = sdev->hostdata; hostdata 2099 drivers/scsi/megaraid/megaraid_sas_base.c sdev->hostdata = mr_device_priv_data; hostdata 2108 drivers/scsi/megaraid/megaraid_sas_base.c kfree(sdev->hostdata); hostdata 2109 drivers/scsi/megaraid/megaraid_sas_base.c sdev->hostdata = NULL; hostdata 2833 drivers/scsi/megaraid/megaraid_sas_base.c instance = (struct megasas_instance *)scmd->device->host->hostdata; hostdata 2870 drivers/scsi/megaraid/megaraid_sas_base.c instance = (struct megasas_instance *)scmd->device->host->hostdata; hostdata 2940 drivers/scsi/megaraid/megaraid_sas_base.c instance = (struct megasas_instance *)scmd->device->host->hostdata; hostdata 2997 drivers/scsi/megaraid/megaraid_sas_base.c instance = (struct megasas_instance *)scmd->device->host->hostdata; hostdata 3031 drivers/scsi/megaraid/megaraid_sas_base.c instance = (struct megasas_instance *)scmd->device->host->hostdata; hostdata 3053 drivers/scsi/megaraid/megaraid_sas_base.c instance = (struct megasas_instance *)scmd->device->host->hostdata; hostdata 3168 drivers/scsi/megaraid/megaraid_sas_base.c (struct megasas_instance *) shost->hostdata; hostdata 3187 drivers/scsi/megaraid/megaraid_sas_base.c (struct megasas_instance *) shost->hostdata; hostdata 3232 drivers/scsi/megaraid/megaraid_sas_base.c (struct megasas_instance *) shost->hostdata; hostdata 3244 drivers/scsi/megaraid/megaraid_sas_base.c (struct megasas_instance *) shost->hostdata; hostdata 3279 drivers/scsi/megaraid/megaraid_sas_base.c (struct megasas_instance *) shost->hostdata; hostdata 3296 drivers/scsi/megaraid/megaraid_sas_base.c struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata; hostdata 3306 drivers/scsi/megaraid/megaraid_sas_base.c struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata; hostdata 3316 drivers/scsi/megaraid/megaraid_sas_base.c struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata; hostdata 3326 drivers/scsi/megaraid/megaraid_sas_base.c struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata; hostdata 3359 drivers/scsi/megaraid/megaraid_sas_base.c (struct megasas_instance *)shost->hostdata; hostdata 3370 drivers/scsi/megaraid/megaraid_sas_base.c (struct megasas_instance *)shost->hostdata; hostdata 4446 drivers/scsi/megaraid/megaraid_sas_base.c mr_device_priv_data = sdev->hostdata; hostdata 7324 drivers/scsi/megaraid/megaraid_sas_base.c instance = (struct megasas_instance *)host->hostdata; hostdata 2853 drivers/scsi/megaraid/megaraid_sas_fusion.c mrdev_priv = scp->device->hostdata; hostdata 3094 drivers/scsi/megaraid/megaraid_sas_fusion.c mr_device_priv_data = scmd->device->hostdata; hostdata 3222 drivers/scsi/megaraid/megaraid_sas_fusion.c mr_device_priv_data = scp->device->hostdata; hostdata 4553 drivers/scsi/megaraid/megaraid_sas_fusion.c instance = (struct megasas_instance *)scmd->device->host->hostdata; hostdata 4585 drivers/scsi/megaraid/megaraid_sas_fusion.c instance = (struct megasas_instance *)sdev->host->hostdata; hostdata 4620 drivers/scsi/megaraid/megaraid_sas_fusion.c mr_device_priv_data = scmd->device->hostdata; hostdata 4622 drivers/scsi/megaraid/megaraid_sas_fusion.c instance = (struct megasas_instance *)scmd->device->host->hostdata; hostdata 4701 drivers/scsi/megaraid/megaraid_sas_fusion.c mr_device_priv_data = scmd->device->hostdata; hostdata 4703 drivers/scsi/megaraid/megaraid_sas_fusion.c instance = (struct megasas_instance *)scmd->device->host->hostdata; hostdata 4804 drivers/scsi/megaraid/megaraid_sas_fusion.c instance = (struct megasas_instance *)shost->hostdata; hostdata 1636 drivers/scsi/mesh.c ms = (struct mesh_state *) cmd->device->host->hostdata; hostdata 1689 drivers/scsi/mesh.c struct mesh_state *ms = (struct mesh_state *) cmd->device->host->hostdata; hostdata 1706 drivers/scsi/mesh.c struct mesh_state *ms = (struct mesh_state *) cmd->device->host->hostdata; hostdata 1890 drivers/scsi/mesh.c ms = (struct mesh_state *) mesh_host->hostdata; hostdata 593 drivers/scsi/mpt3sas/mpt3sas_ctl.c priv_data = scmd->device->hostdata; hostdata 3464 drivers/scsi/mpt3sas/mpt3sas_ctl.c sas_device_priv_data = sdev->hostdata; hostdata 3565 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_DEVICE *sas_device_priv_data = sdev->hostdata; hostdata 3587 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_DEVICE *sas_device_priv_data = sdev->hostdata; hostdata 3607 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_DEVICE *sas_device_priv_data = sdev->hostdata; hostdata 3619 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_DEVICE *sas_device_priv_data = sdev->hostdata; hostdata 1532 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = sdev->hostdata; hostdata 1603 drivers/scsi/mpt3sas/mpt3sas_scsih.c starget->hostdata = sas_target_priv_data; hostdata 1686 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_target_priv_data = starget->hostdata; hostdata 1743 drivers/scsi/mpt3sas/mpt3sas_scsih.c starget->hostdata = NULL; hostdata 1775 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_target_priv_data = starget->hostdata; hostdata 1778 drivers/scsi/mpt3sas/mpt3sas_scsih.c sdev->hostdata = sas_device_priv_data; hostdata 1842 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (!sdev->hostdata) hostdata 1846 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_target_priv_data = starget->hostdata; hostdata 1876 drivers/scsi/mpt3sas/mpt3sas_scsih.c kfree(sdev->hostdata); hostdata 1877 drivers/scsi/mpt3sas/mpt3sas_scsih.c sdev->hostdata = NULL; hostdata 2243 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = sdev->hostdata; hostdata 2609 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = sdev->hostdata; hostdata 2637 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = sdev->hostdata; hostdata 2790 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_TARGET *priv_target = starget->hostdata; hostdata 2882 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = scmd->device->hostdata; hostdata 2949 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_TARGET *target_priv_data = starget->hostdata; hostdata 2955 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = scmd->device->hostdata; hostdata 3028 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_TARGET *target_priv_data = starget->hostdata; hostdata 3034 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = scmd->device->hostdata; hostdata 3361 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = sdev->hostdata; hostdata 3389 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = sdev->hostdata; hostdata 3414 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = sdev->hostdata; hostdata 3446 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = sdev->hostdata; hostdata 3627 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device->starget->hostdata) { hostdata 3628 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_target_priv_data = sas_device->starget->hostdata; hostdata 3637 drivers/scsi/mpt3sas/mpt3sas_scsih.c pcie_device->starget->hostdata) { hostdata 3638 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_target_priv_data = pcie_device->starget->hostdata; hostdata 4326 drivers/scsi/mpt3sas/mpt3sas_scsih.c raid_device->starget->hostdata) { hostdata 4328 drivers/scsi/mpt3sas/mpt3sas_scsih.c raid_device->starget->hostdata; hostdata 4492 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_DEVICE *priv = scmd->device->hostdata; hostdata 4657 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = scmd->device->hostdata; hostdata 4839 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_TARGET *priv_target = starget->hostdata; hostdata 5148 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_target_priv_data = starget->hostdata; hostdata 5237 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = scmd->device->hostdata; hostdata 5972 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_target_priv_data = starget->hostdata; hostdata 6195 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (sas_device->starget && sas_device->starget->hostdata) { hostdata 6196 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_target_priv_data = sas_device->starget->hostdata; hostdata 6532 drivers/scsi/mpt3sas/mpt3sas_scsih.c target_priv_data = sas_device->starget->hostdata; hostdata 6673 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (pcie_device->starget && pcie_device->starget->hostdata) { hostdata 6674 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_target_priv_data = pcie_device->starget->hostdata; hostdata 6757 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_target_priv_data = starget->hostdata; hostdata 7245 drivers/scsi/mpt3sas/mpt3sas_scsih.c target_priv_data = pcie_device->starget->hostdata; hostdata 7416 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = sdev->hostdata; hostdata 7796 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_target_priv_data = starget->hostdata; hostdata 7831 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (sas_device->starget && sas_device->starget->hostdata) { hostdata 7833 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_target_priv_data = starget->hostdata; hostdata 7876 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (sas_device->starget && sas_device->starget->hostdata) { hostdata 7878 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_target_priv_data = starget->hostdata; hostdata 8366 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = sdev->hostdata; hostdata 8405 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (starget && starget->hostdata) { hostdata 8406 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_target_priv_data = starget->hostdata; hostdata 8577 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (starget && starget->hostdata) { hostdata 8578 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_target_priv_data = starget->hostdata; hostdata 8692 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (starget && starget->hostdata) { hostdata 8693 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_target_priv_data = starget->hostdata; hostdata 9775 drivers/scsi/mpt3sas/mpt3sas_scsih.c raid_device->starget->hostdata; hostdata 41 drivers/scsi/mvme16x_scsi.c struct NCR_700_Host_Parameters *hostdata; hostdata 52 drivers/scsi/mvme16x_scsi.c hostdata = kzalloc(sizeof(struct NCR_700_Host_Parameters), GFP_KERNEL); hostdata 53 drivers/scsi/mvme16x_scsi.c if (hostdata == NULL) { hostdata 60 drivers/scsi/mvme16x_scsi.c hostdata->base = (void __iomem *)0xfff47000UL; hostdata 61 drivers/scsi/mvme16x_scsi.c hostdata->clock = 50; /* XXX - depends on the CPU clock! */ hostdata 62 drivers/scsi/mvme16x_scsi.c hostdata->chip710 = 1; hostdata 63 drivers/scsi/mvme16x_scsi.c hostdata->dmode_extra = DMODE_FC2; hostdata 64 drivers/scsi/mvme16x_scsi.c hostdata->dcntl_extra = EA_710; hostdata 65 drivers/scsi/mvme16x_scsi.c hostdata->ctest7_extra = CTEST7_TT1; hostdata 68 drivers/scsi/mvme16x_scsi.c host = NCR_700_detect(&mvme16x_scsi_driver_template, hostdata, hostdata 101 drivers/scsi/mvme16x_scsi.c kfree(hostdata); hostdata 109 drivers/scsi/mvme16x_scsi.c struct NCR_700_Host_Parameters *hostdata = shost_priv(host); hostdata 121 drivers/scsi/mvme16x_scsi.c kfree(hostdata); hostdata 94 drivers/scsi/mvsas/mv_init.c sas_phy->ha = (struct sas_ha_struct *)mvi->shost->hostdata; hostdata 702 drivers/scsi/mvumi.c mhba = (struct mvumi_hba *) scmd->device->host->hostdata; hostdata 2008 drivers/scsi/mvumi.c mhba = (struct mvumi_hba *) sdev->host->hostdata; hostdata 2091 drivers/scsi/mvumi.c mhba = (struct mvumi_hba *) shost->hostdata; hostdata 416 drivers/scsi/myrb.c old = sdev->hostdata; hostdata 1435 drivers/scsi/myrb.c ldev_info = sdev->hostdata; hostdata 1661 drivers/scsi/myrb.c sdev->hostdata = kzalloc(sizeof(*ldev_info), GFP_KERNEL); hostdata 1662 drivers/scsi/myrb.c if (!sdev->hostdata) hostdata 1667 drivers/scsi/myrb.c memcpy(sdev->hostdata, ldev_info, hostdata 1727 drivers/scsi/myrb.c sdev->hostdata = pdev_info; hostdata 1760 drivers/scsi/myrb.c ldev_info = sdev->hostdata; hostdata 1774 drivers/scsi/myrb.c kfree(sdev->hostdata); hostdata 1796 drivers/scsi/myrb.c if (!sdev->hostdata) hostdata 1800 drivers/scsi/myrb.c struct myrb_ldev_info *ldev_info = sdev->hostdata; hostdata 1810 drivers/scsi/myrb.c struct myrb_pdev_state *pdev_info = sdev->hostdata; hostdata 1853 drivers/scsi/myrb.c pdev_info = sdev->hostdata; hostdata 1908 drivers/scsi/myrb.c struct myrb_ldev_info *ldev_info = sdev->hostdata; hostdata 2291 drivers/scsi/myrb.c struct myrb_ldev_info *ldev_info = sdev->hostdata; hostdata 858 drivers/scsi/myrs.c if (sdev && sdev->hostdata && hostdata 860 drivers/scsi/myrs.c struct myrs_pdev_info *pdev_info = sdev->hostdata; hostdata 944 drivers/scsi/myrs.c if (!sdev->hostdata) hostdata 948 drivers/scsi/myrs.c struct myrs_ldev_info *ldev_info = sdev->hostdata; hostdata 961 drivers/scsi/myrs.c pdev_info = sdev->hostdata; hostdata 994 drivers/scsi/myrs.c struct myrs_pdev_info *pdev_info = sdev->hostdata; hostdata 1010 drivers/scsi/myrs.c struct myrs_ldev_info *ldev_info = sdev->hostdata; hostdata 1036 drivers/scsi/myrs.c struct myrs_pdev_info *pdev_info = sdev->hostdata; hostdata 1040 drivers/scsi/myrs.c struct myrs_ldev_info *ldev_info = sdev->hostdata; hostdata 1063 drivers/scsi/myrs.c if (!sdev->hostdata) hostdata 1069 drivers/scsi/myrs.c ldev_info = sdev->hostdata; hostdata 1094 drivers/scsi/myrs.c ldev_info = sdev->hostdata; hostdata 1126 drivers/scsi/myrs.c ldev_info = sdev->hostdata; hostdata 1199 drivers/scsi/myrs.c ldev_info = sdev->hostdata; hostdata 1227 drivers/scsi/myrs.c ldev_info = sdev->hostdata; hostdata 1597 drivers/scsi/myrs.c if (!scmd->device->hostdata) { hostdata 1612 drivers/scsi/myrs.c struct myrs_ldev_info *ldev_info = sdev->hostdata; hostdata 1641 drivers/scsi/myrs.c struct myrs_ldev_info *ldev_info = sdev->hostdata; hostdata 1687 drivers/scsi/myrs.c struct myrs_ldev_info *ldev_info = sdev->hostdata; hostdata 1816 drivers/scsi/myrs.c sdev->hostdata = NULL; hostdata 1826 drivers/scsi/myrs.c sdev->hostdata = ldev_info; hostdata 1880 drivers/scsi/myrs.c sdev->hostdata = NULL; hostdata 1884 drivers/scsi/myrs.c sdev->hostdata = pdev_info; hostdata 1907 drivers/scsi/myrs.c ldev_info = sdev->hostdata; hostdata 1919 drivers/scsi/myrs.c kfree(sdev->hostdata); hostdata 1983 drivers/scsi/myrs.c struct myrs_ldev_info *ldev_info = sdev->hostdata; hostdata 2008 drivers/scsi/myrs.c struct myrs_ldev_info *ldev_info = sdev->hostdata; hostdata 2155 drivers/scsi/myrs.c ldev_info = sdev->hostdata; hostdata 7958 drivers/scsi/ncr53c8xx.c struct ncb *np = ((struct host_data *) host->hostdata)->ncb; hostdata 7968 drivers/scsi/ncr53c8xx.c struct ncb *np = ((struct host_data *) host->hostdata)->ncb; hostdata 8022 drivers/scsi/ncr53c8xx.c struct ncb *np = ((struct host_data *) cmd->device->host->hostdata)->ncb; hostdata 8065 drivers/scsi/ncr53c8xx.c struct host_data *host_data = (struct host_data *)shost->hostdata; hostdata 8106 drivers/scsi/ncr53c8xx.c struct ncb *np = ((struct host_data *) cmd->device->host->hostdata)->ncb; hostdata 8133 drivers/scsi/ncr53c8xx.c struct ncb *np = ((struct host_data *) cmd->device->host->hostdata)->ncb; hostdata 8241 drivers/scsi/ncr53c8xx.c struct host_data *host_data = (struct host_data *)host->hostdata; hostdata 8318 drivers/scsi/ncr53c8xx.c host_data = (struct host_data *) instance->hostdata; hostdata 8530 drivers/scsi/ncr53c8xx.c struct ncb *np = ((struct host_data *)shost->hostdata)->ncb; hostdata 8546 drivers/scsi/ncr53c8xx.c struct ncb *np = ((struct host_data *)shost->hostdata)->ncb; hostdata 8562 drivers/scsi/ncr53c8xx.c struct ncb *np = ((struct host_data *)shost->hostdata)->ncb; hostdata 8577 drivers/scsi/ncr53c8xx.c struct ncb *np = ((struct host_data *)shost->hostdata)->ncb; hostdata 357 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; hostdata 378 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; hostdata 395 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; hostdata 413 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; hostdata 444 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; hostdata 575 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; hostdata 799 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; hostdata 853 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; hostdata 899 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; hostdata 1443 drivers/scsi/nsp32.c data = (nsp32_hw_data *)host->hostdata; hostdata 1512 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; hostdata 1550 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; hostdata 1708 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; hostdata 1781 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; hostdata 1857 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; hostdata 1925 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; hostdata 2220 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; hostdata 2567 drivers/scsi/nsp32.c data = (nsp32_hw_data *)host->hostdata; hostdata 2771 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)host->hostdata; hostdata 2800 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)shpnt->hostdata; hostdata 2811 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; hostdata 2883 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)host->hostdata; hostdata 3294 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)host->hostdata; hostdata 179 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; hostdata 194 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; hostdata 369 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; hostdata 449 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; hostdata 506 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; hostdata 582 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; hostdata 621 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; hostdata 721 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; hostdata 820 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; hostdata 918 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; hostdata 973 drivers/scsi/pcmcia/nsp_cs.c data = (nsp_hw_data *)info->host->hostdata; hostdata 1326 drivers/scsi/pcmcia/nsp_cs.c memcpy(host->hostdata, data_b, sizeof(nsp_hw_data)); hostdata 1327 drivers/scsi/pcmcia/nsp_cs.c data = (nsp_hw_data *)host->hostdata; hostdata 1333 drivers/scsi/pcmcia/nsp_cs.c nsp_dbg(NSP_DEBUG_INIT, "irq=%d,%d", data_b->IrqNumber, ((nsp_hw_data *)host->hostdata)->IrqNumber); hostdata 1362 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)shpnt->hostdata; hostdata 1376 drivers/scsi/pcmcia/nsp_cs.c data = (nsp_hw_data *)host->hostdata; hostdata 1482 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; hostdata 1491 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; hostdata 1659 drivers/scsi/pcmcia/nsp_cs.c data = (nsp_hw_data *)info->host->hostdata; hostdata 1691 drivers/scsi/pcmcia/nsp_cs.c data = (nsp_hw_data *)info->host->hostdata; hostdata 1713 drivers/scsi/pcmcia/nsp_cs.c data = (nsp_hw_data *)info->host->hostdata; hostdata 14 drivers/scsi/pcmcia/nsp_message.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; hostdata 55 drivers/scsi/pcmcia/nsp_message.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; hostdata 352 drivers/scsi/pcmcia/sym53c500_cs.c (struct sym53c500_data *)dev->hostdata; hostdata 531 drivers/scsi/pcmcia/sym53c500_cs.c (struct sym53c500_data *)SChost->hostdata; hostdata 546 drivers/scsi/pcmcia/sym53c500_cs.c (struct sym53c500_data *)SCpnt->device->host->hostdata; hostdata 619 drivers/scsi/pcmcia/sym53c500_cs.c (struct sym53c500_data *)SHp->hostdata; hostdata 631 drivers/scsi/pcmcia/sym53c500_cs.c (struct sym53c500_data *)SHp->hostdata; hostdata 752 drivers/scsi/pcmcia/sym53c500_cs.c data = (struct sym53c500_data *)host->hostdata; hostdata 136 drivers/scsi/pm8001/pm8001_init.c sas_phy->ha = (struct sas_ha_struct *)pm8001_ha->shost->hostdata; hostdata 187 drivers/scsi/pmcraid.c scsi_dev->hostdata = res; hostdata 212 drivers/scsi/pmcraid.c struct pmcraid_resource_entry *res = scsi_dev->hostdata; hostdata 262 drivers/scsi/pmcraid.c res = (struct pmcraid_resource_entry *)scsi_dev->hostdata; hostdata 267 drivers/scsi/pmcraid.c scsi_dev->hostdata = NULL; hostdata 2479 drivers/scsi/pmcraid.c struct pmcraid_resource_entry *res = scsi_cmd->device->hostdata; hostdata 2514 drivers/scsi/pmcraid.c struct pmcraid_resource_entry *res = cmd->scsi_cmd->device->hostdata; hostdata 2586 drivers/scsi/pmcraid.c struct pmcraid_resource_entry *res = scsi_cmd->device->hostdata; hostdata 2713 drivers/scsi/pmcraid.c (struct pmcraid_instance *)scsi_cmd->device->host->hostdata; hostdata 2714 drivers/scsi/pmcraid.c res = scsi_cmd->device->hostdata; hostdata 2866 drivers/scsi/pmcraid.c res = cmd->scsi_cmd->device->hostdata; hostdata 2954 drivers/scsi/pmcraid.c (struct pmcraid_instance *)scsi_cmd->device->host->hostdata; hostdata 2959 drivers/scsi/pmcraid.c res = scsi_cmd->device->hostdata; hostdata 3005 drivers/scsi/pmcraid.c cancel_cmd->res = cmd->scsi_cmd->device->hostdata; hostdata 3068 drivers/scsi/pmcraid.c (struct pmcraid_instance *)(scmd->device->host->hostdata); hostdata 3338 drivers/scsi/pmcraid.c (struct pmcraid_instance *)scsi_cmd->device->host->hostdata; hostdata 3341 drivers/scsi/pmcraid.c res = scsi_cmd->device->hostdata; hostdata 4000 drivers/scsi/pmcraid.c (struct pmcraid_instance *)shost->hostdata; hostdata 4031 drivers/scsi/pmcraid.c pinstance = (struct pmcraid_instance *)shost->hostdata; hostdata 4088 drivers/scsi/pmcraid.c (struct pmcraid_instance *)shost->hostdata; hostdata 5060 drivers/scsi/pmcraid.c (struct pmcraid_instance *)host->hostdata; hostdata 5737 drivers/scsi/pmcraid.c pinstance = (struct pmcraid_instance *)host->hostdata; hostdata 50 drivers/scsi/ppa.c return *(ppa_struct **)&host->hostdata; hostdata 1110 drivers/scsi/ppa.c *(ppa_struct **)&host->hostdata = dev; hostdata 670 drivers/scsi/qla1280.c ha = (struct scsi_qla_host *)host->hostdata; hostdata 697 drivers/scsi/qla1280.c struct scsi_qla_host *ha = (struct scsi_qla_host *)host->hostdata; hostdata 833 drivers/scsi/qla1280.c ha = (struct scsi_qla_host *)(CMD_HOST(cmd)->hostdata); hostdata 1191 drivers/scsi/qla1280.c ha = (struct scsi_qla_host *)device->host->hostdata; hostdata 3963 drivers/scsi/qla1280.c ha = (struct scsi_qla_host *)host->hostdata; hostdata 4183 drivers/scsi/qla1280.c ha = (struct scsi_qla_host *)host->hostdata; hostdata 4321 drivers/scsi/qla1280.c struct scsi_qla_host *ha = (struct scsi_qla_host *)host->hostdata; hostdata 804 drivers/scsi/qla2xxx/qla_os.c fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata; hostdata 928 drivers/scsi/qla2xxx/qla_os.c fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata; hostdata 1381 drivers/scsi/qla2xxx/qla_os.c fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata; hostdata 1485 drivers/scsi/qla2xxx/qla_os.c fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata; hostdata 1824 drivers/scsi/qla2xxx/qla_os.c sdev->hostdata = *(fc_port_t **)rport->dd_data; hostdata 1845 drivers/scsi/qla2xxx/qla_os.c sdev->hostdata = NULL; hostdata 7122 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = (scsi_qla_host_t *)shost->hostdata; hostdata 4076 drivers/scsi/qla4xxx/ql4_os.c struct ddb_entry *ddb_entry = cmd->device->hostdata; hostdata 9044 drivers/scsi/qla4xxx/ql4_os.c sdev->hostdata = ddb; hostdata 9254 drivers/scsi/qla4xxx/ql4_os.c struct ddb_entry *ddb_entry = cmd->device->hostdata; hostdata 9323 drivers/scsi/qla4xxx/ql4_os.c struct ddb_entry *ddb_entry = cmd->device->hostdata; hostdata 103 drivers/scsi/qlogicfas408.h #define get_priv_by_cmd(x) (struct qlogicfas408_priv *)&((x)->device->host->hostdata[0]) hostdata 104 drivers/scsi/qlogicfas408.h #define get_priv_by_host(x) (struct qlogicfas408_priv *)&((x)->hostdata[0]) hostdata 328 drivers/scsi/qlogicpti.c struct qlogicpti *qpti = (struct qlogicpti *) host->hostdata; hostdata 849 drivers/scsi/qlogicpti.c struct qlogicpti *qpti = (struct qlogicpti *) host->hostdata; hostdata 1019 drivers/scsi/qlogicpti.c struct qlogicpti *qpti = (struct qlogicpti *) host->hostdata; hostdata 1230 drivers/scsi/qlogicpti.c struct qlogicpti *qpti = (struct qlogicpti *) host->hostdata; hostdata 1268 drivers/scsi/qlogicpti.c struct qlogicpti *qpti = (struct qlogicpti *) host->hostdata; hostdata 3742 drivers/scsi/scsi_debug.c devip = (struct sdebug_dev_info *)scp->device->hostdata; hostdata 3875 drivers/scsi/scsi_debug.c (struct sdebug_dev_info *)sdp->hostdata; hostdata 3887 drivers/scsi/scsi_debug.c sdp->hostdata = devip; hostdata 3897 drivers/scsi/scsi_debug.c (struct sdebug_dev_info *)sdp->hostdata; hostdata 3905 drivers/scsi/scsi_debug.c sdp->hostdata = NULL; hostdata 3945 drivers/scsi/scsi_debug.c cmnd->device->hostdata; hostdata 3985 drivers/scsi/scsi_debug.c sqcp->a_cmnd->device->hostdata; hostdata 4042 drivers/scsi/scsi_debug.c (struct sdebug_dev_info *)sdp->hostdata; hostdata 5547 drivers/scsi/scsi_debug.c devip = (struct sdebug_dev_info *)sdev->hostdata; hostdata 5635 drivers/scsi/scsi_debug.c devip = (struct sdebug_dev_info *)sdp->hostdata; hostdata 5806 drivers/scsi/scsi_debug.c *((struct sdebug_host_info **)hpnt->hostdata) = sdbg_host; hostdata 216 drivers/scsi/scsi_scan.c u64 lun, void *hostdata) hostdata 251 drivers/scsi/scsi_scan.c sdev->hostdata = hostdata; hostdata 1047 drivers/scsi/scsi_scan.c void *hostdata) hostdata 1078 drivers/scsi/scsi_scan.c sdev = scsi_alloc_sdev(starget, lun, hostdata); hostdata 1461 drivers/scsi/scsi_scan.c uint id, u64 lun, void *hostdata) hostdata 1480 drivers/scsi/scsi_scan.c scsi_probe_and_add_lun(starget, lun, NULL, &sdev, 1, hostdata); hostdata 41 drivers/scsi/sgiwd93.c #define host_to_hostdata(host) ((struct ip22_hostdata *)((host)->hostdata)) hostdata 289 drivers/scsi/sgiwd93.c struct ip22_hostdata *hdata = (struct ip22_hostdata *) host->hostdata; hostdata 89 drivers/scsi/sim710.c struct NCR_700_Host_Parameters *hostdata = hostdata 96 drivers/scsi/sim710.c if(hostdata == NULL) { hostdata 108 drivers/scsi/sim710.c hostdata->base = ioport_map(base_addr, 64); hostdata 109 drivers/scsi/sim710.c hostdata->differential = differential; hostdata 110 drivers/scsi/sim710.c hostdata->clock = clock; hostdata 111 drivers/scsi/sim710.c hostdata->chip710 = 1; hostdata 112 drivers/scsi/sim710.c hostdata->burst_length = 8; hostdata 115 drivers/scsi/sim710.c if((host = NCR_700_detect(&sim710_driver_template, hostdata, dev)) hostdata 138 drivers/scsi/sim710.c kfree(hostdata); hostdata 146 drivers/scsi/sim710.c struct NCR_700_Host_Parameters *hostdata = hostdata 147 drivers/scsi/sim710.c (struct NCR_700_Host_Parameters *)host->hostdata[0]; hostdata 151 drivers/scsi/sim710.c kfree(hostdata); hostdata 1402 drivers/scsi/smartpqi/smartpqi.h void *hostdata = shost_priv(shost); hostdata 1404 drivers/scsi/smartpqi/smartpqi.h return *((struct pqi_ctrl_info **)hostdata); hostdata 2659 drivers/scsi/smartpqi/smartpqi_init.c device = io_request->scmd->device->hostdata; hostdata 2669 drivers/scsi/smartpqi/smartpqi_init.c device = sdev->hostdata; hostdata 2753 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_scsi_dev *device = scmd->device->hostdata; hostdata 5050 drivers/scsi/smartpqi/smartpqi_init.c device = scmd->device->hostdata; hostdata 5109 drivers/scsi/smartpqi/smartpqi_init.c device = scmd->device->hostdata; hostdata 5308 drivers/scsi/smartpqi/smartpqi_init.c device = scmd->device->hostdata; hostdata 5327 drivers/scsi/smartpqi/smartpqi_init.c device = scmd->device->hostdata; hostdata 5477 drivers/scsi/smartpqi/smartpqi_init.c scsi_device = scmd->device->hostdata; hostdata 5737 drivers/scsi/smartpqi/smartpqi_init.c device = scmd->device->hostdata; hostdata 5792 drivers/scsi/smartpqi/smartpqi_init.c sdev->hostdata = device; hostdata 6248 drivers/scsi/smartpqi/smartpqi_init.c device = sdev->hostdata; hostdata 6286 drivers/scsi/smartpqi/smartpqi_init.c device = sdev->hostdata; hostdata 6320 drivers/scsi/smartpqi/smartpqi_init.c device = sdev->hostdata; hostdata 6398 drivers/scsi/smartpqi/smartpqi_init.c device = sdev->hostdata; hostdata 6424 drivers/scsi/smartpqi/smartpqi_init.c device = sdev->hostdata; hostdata 6448 drivers/scsi/smartpqi/smartpqi_init.c device = sdev->hostdata; hostdata 6522 drivers/scsi/smartpqi/smartpqi_init.c shost->hostdata[0] = (unsigned long)ctrl_info; hostdata 59 drivers/scsi/sni_53c710.c struct NCR_700_Host_Parameters *hostdata; hostdata 68 drivers/scsi/sni_53c710.c hostdata = kzalloc(sizeof(*hostdata), GFP_KERNEL); hostdata 69 drivers/scsi/sni_53c710.c if (!hostdata) hostdata 72 drivers/scsi/sni_53c710.c hostdata->dev = &dev->dev; hostdata 74 drivers/scsi/sni_53c710.c hostdata->base = ioremap_nocache(base, 0x100); hostdata 75 drivers/scsi/sni_53c710.c hostdata->differential = 0; hostdata 77 drivers/scsi/sni_53c710.c hostdata->clock = SNIRM710_CLOCK; hostdata 78 drivers/scsi/sni_53c710.c hostdata->force_le_on_be = 1; hostdata 79 drivers/scsi/sni_53c710.c hostdata->chip710 = 1; hostdata 80 drivers/scsi/sni_53c710.c hostdata->burst_length = 4; hostdata 82 drivers/scsi/sni_53c710.c host = NCR_700_detect(&snirm710_template, hostdata, &dev->dev); hostdata 101 drivers/scsi/sni_53c710.c iounmap(hostdata->base); hostdata 102 drivers/scsi/sni_53c710.c kfree(hostdata); hostdata 109 drivers/scsi/sni_53c710.c struct NCR_700_Host_Parameters *hostdata = hostdata 110 drivers/scsi/sni_53c710.c (struct NCR_700_Host_Parameters *)host->hostdata[0]; hostdata 115 drivers/scsi/sni_53c710.c iounmap(hostdata->base); hostdata 116 drivers/scsi/sni_53c710.c kfree(hostdata); hostdata 608 drivers/scsi/stex.c hba = (struct st_hba *) &host->hostdata[0]; hostdata 1249 drivers/scsi/stex.c struct st_hba *hba = (struct st_hba *)host->hostdata; hostdata 1443 drivers/scsi/stex.c hba = (struct st_hba *) &cmd->device->host->hostdata[0]; hostdata 1678 drivers/scsi/stex.c hba = (struct st_hba *)host->hostdata; hostdata 46 drivers/scsi/sun3_scsi.c #define NCR5380_read(reg) in_8(hostdata->io + (reg)) hostdata 47 drivers/scsi/sun3_scsi.c #define NCR5380_write(reg, value) out_8(hostdata->io + (reg), value) hostdata 220 drivers/scsi/sun3_scsi.c static int sun3scsi_dma_setup(struct NCR5380_hostdata *hostdata, hostdata 273 drivers/scsi/sun3_scsi.c shost_printk(KERN_ERR, hostdata->host, hostdata 276 drivers/scsi/sun3_scsi.c NCR5380_dprint(NDEBUG_DMA, hostdata->host); hostdata 311 drivers/scsi/sun3_scsi.c static int sun3scsi_dma_count(struct NCR5380_hostdata *hostdata, hostdata 317 drivers/scsi/sun3_scsi.c static inline int sun3scsi_dma_recv_setup(struct NCR5380_hostdata *hostdata, hostdata 320 drivers/scsi/sun3_scsi.c return sun3scsi_dma_setup(hostdata, data, count, 0); hostdata 323 drivers/scsi/sun3_scsi.c static inline int sun3scsi_dma_send_setup(struct NCR5380_hostdata *hostdata, hostdata 326 drivers/scsi/sun3_scsi.c return sun3scsi_dma_setup(hostdata, data, count, 1); hostdata 329 drivers/scsi/sun3_scsi.c static int sun3scsi_dma_residual(struct NCR5380_hostdata *hostdata) hostdata 334 drivers/scsi/sun3_scsi.c static int sun3scsi_dma_xfer_len(struct NCR5380_hostdata *hostdata, hostdata 513 drivers/scsi/sun3_scsi.c struct NCR5380_hostdata *hostdata; hostdata 588 drivers/scsi/sun3_scsi.c hostdata = shost_priv(instance); hostdata 589 drivers/scsi/sun3_scsi.c hostdata->base = mem->start; hostdata 590 drivers/scsi/sun3_scsi.c hostdata->io = ioaddr; hostdata 646 drivers/scsi/sun3_scsi.c struct NCR5380_hostdata *hostdata = shost_priv(instance); hostdata 647 drivers/scsi/sun3_scsi.c void __iomem *ioaddr = hostdata->io; hostdata 215 drivers/scsi/sym53c8xx_2/sym_glue.h return ((struct sym_data *)host->hostdata)->ncb; hostdata 87 drivers/scsi/wd33c93.c #define optimum_sx_per(hostdata) (hostdata)->sx_table[1].period_ns hostdata 369 drivers/scsi/wd33c93.c struct WD33C93_hostdata *hostdata; hostdata 372 drivers/scsi/wd33c93.c hostdata = (struct WD33C93_hostdata *) cmd->device->host->hostdata; hostdata 438 drivers/scsi/wd33c93.c spin_lock_irq(&hostdata->lock); hostdata 440 drivers/scsi/wd33c93.c if (!(hostdata->input_Q) || (cmd->cmnd[0] == REQUEST_SENSE)) { hostdata 441 drivers/scsi/wd33c93.c cmd->host_scribble = (uchar *) hostdata->input_Q; hostdata 442 drivers/scsi/wd33c93.c hostdata->input_Q = cmd; hostdata 444 drivers/scsi/wd33c93.c for (tmp = (struct scsi_cmnd *) hostdata->input_Q; hostdata 458 drivers/scsi/wd33c93.c spin_unlock_irq(&hostdata->lock); hostdata 477 drivers/scsi/wd33c93.c struct WD33C93_hostdata *hostdata = hostdata 478 drivers/scsi/wd33c93.c (struct WD33C93_hostdata *) instance->hostdata; hostdata 479 drivers/scsi/wd33c93.c const wd33c93_regs regs = hostdata->regs; hostdata 483 drivers/scsi/wd33c93.c if (hostdata->selecting || hostdata->connected) { hostdata 493 drivers/scsi/wd33c93.c cmd = (struct scsi_cmnd *) hostdata->input_Q; hostdata 496 drivers/scsi/wd33c93.c if (!(hostdata->busy[cmd->device->id] & hostdata 515 drivers/scsi/wd33c93.c hostdata->input_Q = (struct scsi_cmnd *) cmd->host_scribble; hostdata 518 drivers/scsi/wd33c93.c hostdata->cmd_cnt[cmd->device->id]++; hostdata 554 drivers/scsi/wd33c93.c if (hostdata->disconnect == DIS_NEVER) hostdata 556 drivers/scsi/wd33c93.c if (hostdata->disconnect == DIS_ALWAYS) hostdata 560 drivers/scsi/wd33c93.c if (hostdata->disconnected_Q) /* other commands disconnected? */ hostdata 562 drivers/scsi/wd33c93.c if (!(hostdata->input_Q)) /* input_Q empty? */ hostdata 564 drivers/scsi/wd33c93.c for (prev = (struct scsi_cmnd *) hostdata->input_Q; prev; hostdata 568 drivers/scsi/wd33c93.c for (prev = (struct scsi_cmnd *) hostdata->input_Q; prev; hostdata 581 drivers/scsi/wd33c93.c hostdata->disc_allowed_cnt[cmd->device->id]++; hostdata 590 drivers/scsi/wd33c93.c hostdata->sync_xfer[cmd->device->id]); hostdata 591 drivers/scsi/wd33c93.c hostdata->busy[cmd->device->id] |= (1 << (cmd->device->lun & 0xFF)); hostdata 593 drivers/scsi/wd33c93.c if ((hostdata->level2 == L2_NONE) || hostdata 594 drivers/scsi/wd33c93.c (hostdata->sync_stat[cmd->device->id] == SS_UNSET)) { hostdata 604 drivers/scsi/wd33c93.c hostdata->selecting = cmd; hostdata 618 drivers/scsi/wd33c93.c if (hostdata->sync_stat[cmd->device->id] == SS_UNSET) hostdata 619 drivers/scsi/wd33c93.c hostdata->sync_stat[cmd->device->id] = SS_FIRST; hostdata 620 drivers/scsi/wd33c93.c hostdata->state = S_SELECTING; hostdata 633 drivers/scsi/wd33c93.c hostdata->connected = cmd; hostdata 655 drivers/scsi/wd33c93.c if ((cmd->SCp.phase == 0) && (hostdata->no_dma == 0)) { hostdata 656 drivers/scsi/wd33c93.c if (hostdata->dma_setup(cmd, hostdata 664 drivers/scsi/wd33c93.c CTRL_IDI | CTRL_EDI | hostdata->dma_mode); hostdata 665 drivers/scsi/wd33c93.c hostdata->dma = D_DMA_RUNNING; hostdata 670 drivers/scsi/wd33c93.c hostdata->state = S_RUNNING_LEVEL2; hostdata 687 drivers/scsi/wd33c93.c int data_in_dir, struct WD33C93_hostdata *hostdata) hostdata 724 drivers/scsi/wd33c93.c struct WD33C93_hostdata *hostdata; hostdata 727 drivers/scsi/wd33c93.c hostdata = (struct WD33C93_hostdata *) cmd->device->host->hostdata; hostdata 747 drivers/scsi/wd33c93.c hostdata->sync_xfer[cmd->device->id]); hostdata 753 drivers/scsi/wd33c93.c if (hostdata->no_dma || hostdata->dma_setup(cmd, data_in_dir)) { hostdata 755 drivers/scsi/wd33c93.c hostdata->pio_cnt++; hostdata 758 drivers/scsi/wd33c93.c cmd->SCp.this_residual, data_in_dir, hostdata); hostdata 775 drivers/scsi/wd33c93.c hostdata->dma_cnt++; hostdata 777 drivers/scsi/wd33c93.c write_wd33c93(regs, WD_CONTROL, CTRL_IDI | CTRL_EDI | hostdata->dma_mode); hostdata 780 drivers/scsi/wd33c93.c if ((hostdata->level2 >= L2_DATA) || hostdata 781 drivers/scsi/wd33c93.c (hostdata->level2 == L2_BASIC && cmd->SCp.phase == 0)) { hostdata 784 drivers/scsi/wd33c93.c hostdata->state = S_RUNNING_LEVEL2; hostdata 788 drivers/scsi/wd33c93.c hostdata->dma = D_DMA_RUNNING; hostdata 795 drivers/scsi/wd33c93.c struct WD33C93_hostdata *hostdata = hostdata 796 drivers/scsi/wd33c93.c (struct WD33C93_hostdata *) instance->hostdata; hostdata 797 drivers/scsi/wd33c93.c const wd33c93_regs regs = hostdata->regs; hostdata 806 drivers/scsi/wd33c93.c spin_lock_irqsave(&hostdata->lock, flags); hostdata 809 drivers/scsi/wd33c93.c hostdata->int_cnt++; hostdata 812 drivers/scsi/wd33c93.c cmd = (struct scsi_cmnd *) hostdata->connected; /* assume we're connected */ hostdata 832 drivers/scsi/wd33c93.c if (hostdata->dma == D_DMA_RUNNING) { hostdata 835 drivers/scsi/wd33c93.c hostdata->dma_stop(cmd->device->host, cmd, 1); hostdata 836 drivers/scsi/wd33c93.c hostdata->dma = D_DMA_OFF; hostdata 849 drivers/scsi/wd33c93.c if (hostdata->state == S_RUNNING_LEVEL2) hostdata 850 drivers/scsi/wd33c93.c hostdata->connected = NULL; hostdata 852 drivers/scsi/wd33c93.c cmd = (struct scsi_cmnd *) hostdata->selecting; /* get a valid cmd */ hostdata 853 drivers/scsi/wd33c93.c hostdata->selecting = NULL; hostdata 857 drivers/scsi/wd33c93.c hostdata->busy[cmd->device->id] &= ~(1 << (cmd->device->lun & 0xff)); hostdata 858 drivers/scsi/wd33c93.c hostdata->state = S_UNCONNECTED; hostdata 871 drivers/scsi/wd33c93.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 884 drivers/scsi/wd33c93.c hostdata->connected = cmd = hostdata 885 drivers/scsi/wd33c93.c (struct scsi_cmnd *) hostdata->selecting; hostdata 886 drivers/scsi/wd33c93.c hostdata->selecting = NULL; hostdata 890 drivers/scsi/wd33c93.c hostdata->outgoing_msg[0] = IDENTIFY(0, cmd->device->lun); hostdata 892 drivers/scsi/wd33c93.c hostdata->outgoing_msg[0] |= 0x40; hostdata 894 drivers/scsi/wd33c93.c if (hostdata->sync_stat[cmd->device->id] == SS_FIRST) { hostdata 896 drivers/scsi/wd33c93.c hostdata->sync_stat[cmd->device->id] = SS_WAITING; hostdata 904 drivers/scsi/wd33c93.c hostdata->outgoing_msg[1] = EXTENDED_MESSAGE; hostdata 905 drivers/scsi/wd33c93.c hostdata->outgoing_msg[2] = 3; hostdata 906 drivers/scsi/wd33c93.c hostdata->outgoing_msg[3] = EXTENDED_SDTR; hostdata 907 drivers/scsi/wd33c93.c if (hostdata->no_sync & (1 << cmd->device->id)) { hostdata 908 drivers/scsi/wd33c93.c calc_sync_msg(hostdata->default_sx_per, 0, hostdata 909 drivers/scsi/wd33c93.c 0, hostdata->outgoing_msg + 4); hostdata 911 drivers/scsi/wd33c93.c calc_sync_msg(optimum_sx_per(hostdata), hostdata 913 drivers/scsi/wd33c93.c hostdata->fast, hostdata 914 drivers/scsi/wd33c93.c hostdata->outgoing_msg + 4); hostdata 916 drivers/scsi/wd33c93.c hostdata->outgoing_len = 6; hostdata 918 drivers/scsi/wd33c93.c ucp = hostdata->outgoing_msg + 1; hostdata 923 drivers/scsi/wd33c93.c hostdata->outgoing_len = 1; hostdata 925 drivers/scsi/wd33c93.c hostdata->state = S_CONNECTED; hostdata 926 drivers/scsi/wd33c93.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 936 drivers/scsi/wd33c93.c if (hostdata->state != S_RUNNING_LEVEL2) hostdata 937 drivers/scsi/wd33c93.c hostdata->state = S_CONNECTED; hostdata 938 drivers/scsi/wd33c93.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 948 drivers/scsi/wd33c93.c if (hostdata->state != S_RUNNING_LEVEL2) hostdata 949 drivers/scsi/wd33c93.c hostdata->state = S_CONNECTED; hostdata 950 drivers/scsi/wd33c93.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 960 drivers/scsi/wd33c93.c hostdata); hostdata 961 drivers/scsi/wd33c93.c hostdata->state = S_CONNECTED; hostdata 962 drivers/scsi/wd33c93.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 971 drivers/scsi/wd33c93.c if (hostdata->level2 >= L2_BASIC) { hostdata 974 drivers/scsi/wd33c93.c hostdata->state = S_RUNNING_LEVEL2; hostdata 978 drivers/scsi/wd33c93.c hostdata->state = S_CONNECTED; hostdata 980 drivers/scsi/wd33c93.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 992 drivers/scsi/wd33c93.c hostdata->incoming_msg[hostdata->incoming_ptr] = msg; hostdata 993 drivers/scsi/wd33c93.c if (hostdata->incoming_msg[0] == EXTENDED_MESSAGE) hostdata 996 drivers/scsi/wd33c93.c hostdata->incoming_ptr = 0; hostdata 1004 drivers/scsi/wd33c93.c hostdata->state = S_PRE_CMP_DISC; hostdata 1010 drivers/scsi/wd33c93.c hostdata->state = S_CONNECTED; hostdata 1015 drivers/scsi/wd33c93.c if (hostdata->level2 >= L2_BASIC) { hostdata 1018 drivers/scsi/wd33c93.c hostdata->state = S_RUNNING_LEVEL2; hostdata 1021 drivers/scsi/wd33c93.c hostdata->state = S_CONNECTED; hostdata 1029 drivers/scsi/wd33c93.c hostdata->state = S_PRE_TMP_DISC; hostdata 1037 drivers/scsi/wd33c93.c if (hostdata->sync_stat[cmd->device->id] == SS_WAITING) { hostdata 1038 drivers/scsi/wd33c93.c hostdata->sync_stat[cmd->device->id] = SS_SET; hostdata 1040 drivers/scsi/wd33c93.c hostdata->sync_xfer[cmd->device->id] = hostdata 1041 drivers/scsi/wd33c93.c calc_sync_xfer(hostdata->default_sx_per hostdata 1042 drivers/scsi/wd33c93.c / 4, 0, 0, hostdata->sx_table); hostdata 1045 drivers/scsi/wd33c93.c hostdata->state = S_CONNECTED; hostdata 1051 drivers/scsi/wd33c93.c ucp = hostdata->incoming_msg; hostdata 1054 drivers/scsi/wd33c93.c printk("%02x", ucp[hostdata->incoming_ptr]); hostdata 1058 drivers/scsi/wd33c93.c if ((hostdata->incoming_ptr >= 2) && hostdata 1059 drivers/scsi/wd33c93.c (hostdata->incoming_ptr == (ucp[1] + 1))) { hostdata 1064 drivers/scsi/wd33c93.c id = calc_sync_xfer(hostdata-> hostdata 1066 drivers/scsi/wd33c93.c 0, hostdata->sx_table); hostdata 1067 drivers/scsi/wd33c93.c if (hostdata->sync_stat[cmd->device->id] != hostdata 1080 drivers/scsi/wd33c93.c hostdata->outgoing_msg[0] = hostdata 1082 drivers/scsi/wd33c93.c hostdata->outgoing_msg[1] = 3; hostdata 1083 drivers/scsi/wd33c93.c hostdata->outgoing_msg[2] = hostdata 1085 drivers/scsi/wd33c93.c calc_sync_msg(hostdata-> hostdata 1087 drivers/scsi/wd33c93.c 0, hostdata->outgoing_msg + 3); hostdata 1088 drivers/scsi/wd33c93.c hostdata->outgoing_len = 5; hostdata 1092 drivers/scsi/wd33c93.c hostdata->fast, hostdata 1093 drivers/scsi/wd33c93.c hostdata->sx_table); hostdata 1096 drivers/scsi/wd33c93.c 0, hostdata->sx_table); hostdata 1098 drivers/scsi/wd33c93.c hostdata->sync_xfer[cmd->device->id] = id; hostdata 1101 drivers/scsi/wd33c93.c hostdata->sync_xfer[cmd->device->id]); hostdata 1103 drivers/scsi/wd33c93.c hostdata->sync_stat[cmd->device->id] = hostdata 1107 drivers/scsi/wd33c93.c hostdata->state = S_CONNECTED; hostdata 1112 drivers/scsi/wd33c93.c hostdata->outgoing_msg[0] = hostdata 1114 drivers/scsi/wd33c93.c hostdata->outgoing_msg[1] = 2; hostdata 1115 drivers/scsi/wd33c93.c hostdata->outgoing_msg[2] = hostdata 1117 drivers/scsi/wd33c93.c hostdata->outgoing_msg[3] = 0; /* 8 bit transfer width */ hostdata 1118 drivers/scsi/wd33c93.c hostdata->outgoing_len = 4; hostdata 1121 drivers/scsi/wd33c93.c hostdata->state = S_CONNECTED; hostdata 1128 drivers/scsi/wd33c93.c hostdata->outgoing_msg[0] = hostdata 1130 drivers/scsi/wd33c93.c hostdata->outgoing_len = 1; hostdata 1133 drivers/scsi/wd33c93.c hostdata->state = S_CONNECTED; hostdata 1136 drivers/scsi/wd33c93.c hostdata->incoming_ptr = 0; hostdata 1142 drivers/scsi/wd33c93.c hostdata->incoming_ptr++; hostdata 1144 drivers/scsi/wd33c93.c hostdata->state = S_CONNECTED; hostdata 1151 drivers/scsi/wd33c93.c hostdata->outgoing_msg[0] = MESSAGE_REJECT; hostdata 1152 drivers/scsi/wd33c93.c hostdata->outgoing_len = 1; hostdata 1154 drivers/scsi/wd33c93.c hostdata->state = S_CONNECTED; hostdata 1156 drivers/scsi/wd33c93.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 1173 drivers/scsi/wd33c93.c hostdata->connected = NULL; hostdata 1174 drivers/scsi/wd33c93.c hostdata->busy[cmd->device->id] &= ~(1 << (cmd->device->lun & 0xff)); hostdata 1175 drivers/scsi/wd33c93.c hostdata->state = S_UNCONNECTED; hostdata 1191 drivers/scsi/wd33c93.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 1197 drivers/scsi/wd33c93.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 1205 drivers/scsi/wd33c93.c hostdata->state = S_RUNNING_LEVEL2; hostdata 1208 drivers/scsi/wd33c93.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 1228 drivers/scsi/wd33c93.c if (hostdata->outgoing_len == 0) { hostdata 1229 drivers/scsi/wd33c93.c hostdata->outgoing_len = 1; hostdata 1230 drivers/scsi/wd33c93.c hostdata->outgoing_msg[0] = NOP; hostdata 1232 drivers/scsi/wd33c93.c transfer_pio(regs, hostdata->outgoing_msg, hostdata 1233 drivers/scsi/wd33c93.c hostdata->outgoing_len, DATA_OUT_DIR, hostdata); hostdata 1234 drivers/scsi/wd33c93.c DB(DB_INTR, printk("%02x", hostdata->outgoing_msg[0])) hostdata 1235 drivers/scsi/wd33c93.c hostdata->outgoing_len = 0; hostdata 1236 drivers/scsi/wd33c93.c hostdata->state = S_CONNECTED; hostdata 1237 drivers/scsi/wd33c93.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 1257 drivers/scsi/wd33c93.c hostdata->state = S_UNCONNECTED; hostdata 1258 drivers/scsi/wd33c93.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 1262 drivers/scsi/wd33c93.c hostdata->connected = NULL; hostdata 1263 drivers/scsi/wd33c93.c hostdata->busy[cmd->device->id] &= ~(1 << (cmd->device->lun & 0xff)); hostdata 1264 drivers/scsi/wd33c93.c hostdata->state = S_UNCONNECTED; hostdata 1276 drivers/scsi/wd33c93.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 1290 drivers/scsi/wd33c93.c hostdata->state = S_UNCONNECTED; hostdata 1292 drivers/scsi/wd33c93.c switch (hostdata->state) { hostdata 1294 drivers/scsi/wd33c93.c hostdata->connected = NULL; hostdata 1295 drivers/scsi/wd33c93.c hostdata->busy[cmd->device->id] &= ~(1 << (cmd->device->lun & 0xff)); hostdata 1296 drivers/scsi/wd33c93.c hostdata->state = S_UNCONNECTED; hostdata 1310 drivers/scsi/wd33c93.c cmd->host_scribble = (uchar *) hostdata->disconnected_Q; hostdata 1311 drivers/scsi/wd33c93.c hostdata->disconnected_Q = cmd; hostdata 1312 drivers/scsi/wd33c93.c hostdata->connected = NULL; hostdata 1313 drivers/scsi/wd33c93.c hostdata->state = S_UNCONNECTED; hostdata 1316 drivers/scsi/wd33c93.c hostdata->disc_done_cnt[cmd->device->id]++; hostdata 1322 drivers/scsi/wd33c93.c hostdata->state = S_UNCONNECTED; hostdata 1328 drivers/scsi/wd33c93.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 1343 drivers/scsi/wd33c93.c if (hostdata->level2 <= L2_NONE) { hostdata 1345 drivers/scsi/wd33c93.c if (hostdata->selecting) { hostdata 1346 drivers/scsi/wd33c93.c cmd = (struct scsi_cmnd *) hostdata->selecting; hostdata 1347 drivers/scsi/wd33c93.c hostdata->selecting = NULL; hostdata 1348 drivers/scsi/wd33c93.c hostdata->busy[cmd->device->id] &= ~(1 << (cmd->device->lun & 0xff)); hostdata 1350 drivers/scsi/wd33c93.c (uchar *) hostdata->input_Q; hostdata 1351 drivers/scsi/wd33c93.c hostdata->input_Q = cmd; hostdata 1359 drivers/scsi/wd33c93.c hostdata->busy[cmd->device->id] &= hostdata 1362 drivers/scsi/wd33c93.c (uchar *) hostdata->input_Q; hostdata 1363 drivers/scsi/wd33c93.c hostdata->input_Q = cmd; hostdata 1387 drivers/scsi/wd33c93.c if (hostdata->level2 < L2_RESELECT) hostdata 1440 drivers/scsi/wd33c93.c cmd = (struct scsi_cmnd *) hostdata->disconnected_Q; hostdata 1455 drivers/scsi/wd33c93.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 1464 drivers/scsi/wd33c93.c hostdata->disconnected_Q = hostdata 1466 drivers/scsi/wd33c93.c hostdata->connected = cmd; hostdata 1478 drivers/scsi/wd33c93.c if (hostdata->level2 >= L2_RESELECT) { hostdata 1482 drivers/scsi/wd33c93.c hostdata->state = S_RUNNING_LEVEL2; hostdata 1484 drivers/scsi/wd33c93.c hostdata->state = S_CONNECTED; hostdata 1486 drivers/scsi/wd33c93.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 1491 drivers/scsi/wd33c93.c spin_unlock_irqrestore(&hostdata->lock, flags); hostdata 1501 drivers/scsi/wd33c93.c struct WD33C93_hostdata *hostdata = hostdata 1502 drivers/scsi/wd33c93.c (struct WD33C93_hostdata *) instance->hostdata; hostdata 1503 drivers/scsi/wd33c93.c const wd33c93_regs regs = hostdata->regs; hostdata 1527 drivers/scsi/wd33c93.c instance->this_id | hostdata->clock_freq); hostdata 1530 drivers/scsi/wd33c93.c calc_sync_xfer(hostdata->default_sx_per / 4, hostdata 1531 drivers/scsi/wd33c93.c DEFAULT_SX_OFF, 0, hostdata->sx_table)); hostdata 1543 drivers/scsi/wd33c93.c hostdata->microcode = read_wd33c93(regs, WD_CDB_1); hostdata 1545 drivers/scsi/wd33c93.c hostdata->chip = C_WD33C93; hostdata 1550 drivers/scsi/wd33c93.c hostdata->chip = C_WD33C93B; hostdata 1553 drivers/scsi/wd33c93.c hostdata->chip = C_WD33C93A; hostdata 1555 drivers/scsi/wd33c93.c hostdata->chip = C_UNKNOWN_CHIP; hostdata 1557 drivers/scsi/wd33c93.c if (hostdata->chip != C_WD33C93B) /* Fast SCSI unavailable */ hostdata 1558 drivers/scsi/wd33c93.c hostdata->fast = 0; hostdata 1568 drivers/scsi/wd33c93.c struct WD33C93_hostdata *hostdata; hostdata 1573 drivers/scsi/wd33c93.c hostdata = (struct WD33C93_hostdata *) instance->hostdata; hostdata 1578 drivers/scsi/wd33c93.c hostdata->dma_stop(instance, NULL, 0); hostdata 1580 drivers/scsi/wd33c93.c hostdata->busy[i] = 0; hostdata 1581 drivers/scsi/wd33c93.c hostdata->sync_xfer[i] = hostdata 1583 drivers/scsi/wd33c93.c 0, hostdata->sx_table); hostdata 1584 drivers/scsi/wd33c93.c hostdata->sync_stat[i] = SS_UNSET; /* using default sync values */ hostdata 1586 drivers/scsi/wd33c93.c hostdata->input_Q = NULL; hostdata 1587 drivers/scsi/wd33c93.c hostdata->selecting = NULL; hostdata 1588 drivers/scsi/wd33c93.c hostdata->connected = NULL; hostdata 1589 drivers/scsi/wd33c93.c hostdata->disconnected_Q = NULL; hostdata 1590 drivers/scsi/wd33c93.c hostdata->state = S_UNCONNECTED; hostdata 1591 drivers/scsi/wd33c93.c hostdata->dma = D_DMA_OFF; hostdata 1592 drivers/scsi/wd33c93.c hostdata->incoming_ptr = 0; hostdata 1593 drivers/scsi/wd33c93.c hostdata->outgoing_len = 0; hostdata 1606 drivers/scsi/wd33c93.c struct WD33C93_hostdata *hostdata; hostdata 1613 drivers/scsi/wd33c93.c hostdata = (struct WD33C93_hostdata *) instance->hostdata; hostdata 1614 drivers/scsi/wd33c93.c regs = hostdata->regs; hostdata 1621 drivers/scsi/wd33c93.c tmp = (struct scsi_cmnd *) hostdata->input_Q; hostdata 1628 drivers/scsi/wd33c93.c hostdata->input_Q = hostdata 1654 drivers/scsi/wd33c93.c if (hostdata->connected == cmd) { hostdata 1662 drivers/scsi/wd33c93.c if (hostdata->dma == D_DMA_RUNNING) { hostdata 1663 drivers/scsi/wd33c93.c hostdata->dma_stop(instance, cmd, 0); hostdata 1664 drivers/scsi/wd33c93.c hostdata->dma = D_DMA_OFF; hostdata 1702 drivers/scsi/wd33c93.c hostdata->busy[cmd->device->id] &= ~(1 << (cmd->device->lun & 0xff)); hostdata 1703 drivers/scsi/wd33c93.c hostdata->connected = NULL; hostdata 1704 drivers/scsi/wd33c93.c hostdata->state = S_UNCONNECTED; hostdata 1721 drivers/scsi/wd33c93.c tmp = (struct scsi_cmnd *) hostdata->disconnected_Q; hostdata 1930 drivers/scsi/wd33c93.c struct WD33C93_hostdata *hostdata; hostdata 1939 drivers/scsi/wd33c93.c hostdata = (struct WD33C93_hostdata *) instance->hostdata; hostdata 1941 drivers/scsi/wd33c93.c hostdata->regs = regs; hostdata 1942 drivers/scsi/wd33c93.c hostdata->clock_freq = set_clk_freq(clock_freq, &i); hostdata 1943 drivers/scsi/wd33c93.c calc_sx_table(i, hostdata->sx_table); hostdata 1944 drivers/scsi/wd33c93.c hostdata->dma_setup = setup; hostdata 1945 drivers/scsi/wd33c93.c hostdata->dma_stop = stop; hostdata 1946 drivers/scsi/wd33c93.c hostdata->dma_bounce_buffer = NULL; hostdata 1947 drivers/scsi/wd33c93.c hostdata->dma_bounce_len = 0; hostdata 1949 drivers/scsi/wd33c93.c hostdata->busy[i] = 0; hostdata 1950 drivers/scsi/wd33c93.c hostdata->sync_xfer[i] = hostdata 1952 drivers/scsi/wd33c93.c 0, hostdata->sx_table); hostdata 1953 drivers/scsi/wd33c93.c hostdata->sync_stat[i] = SS_UNSET; /* using default sync values */ hostdata 1955 drivers/scsi/wd33c93.c hostdata->cmd_cnt[i] = 0; hostdata 1956 drivers/scsi/wd33c93.c hostdata->disc_allowed_cnt[i] = 0; hostdata 1957 drivers/scsi/wd33c93.c hostdata->disc_done_cnt[i] = 0; hostdata 1960 drivers/scsi/wd33c93.c hostdata->input_Q = NULL; hostdata 1961 drivers/scsi/wd33c93.c hostdata->selecting = NULL; hostdata 1962 drivers/scsi/wd33c93.c hostdata->connected = NULL; hostdata 1963 drivers/scsi/wd33c93.c hostdata->disconnected_Q = NULL; hostdata 1964 drivers/scsi/wd33c93.c hostdata->state = S_UNCONNECTED; hostdata 1965 drivers/scsi/wd33c93.c hostdata->dma = D_DMA_OFF; hostdata 1966 drivers/scsi/wd33c93.c hostdata->level2 = L2_BASIC; hostdata 1967 drivers/scsi/wd33c93.c hostdata->disconnect = DIS_ADAPTIVE; hostdata 1968 drivers/scsi/wd33c93.c hostdata->args = DEBUG_DEFAULTS; hostdata 1969 drivers/scsi/wd33c93.c hostdata->incoming_ptr = 0; hostdata 1970 drivers/scsi/wd33c93.c hostdata->outgoing_len = 0; hostdata 1971 drivers/scsi/wd33c93.c hostdata->default_sx_per = DEFAULT_SX_PER; hostdata 1972 drivers/scsi/wd33c93.c hostdata->no_dma = 0; /* default is DMA enabled */ hostdata 1975 drivers/scsi/wd33c93.c hostdata->proc = PR_VERSION | PR_INFO | PR_STATISTICS | hostdata 1978 drivers/scsi/wd33c93.c hostdata->dma_cnt = 0; hostdata 1979 drivers/scsi/wd33c93.c hostdata->pio_cnt = 0; hostdata 1980 drivers/scsi/wd33c93.c hostdata->int_cnt = 0; hostdata 1985 drivers/scsi/wd33c93.c hostdata->clock_freq = set_clk_freq(val, &val); hostdata 1986 drivers/scsi/wd33c93.c calc_sx_table(val, hostdata->sx_table); hostdata 1990 drivers/scsi/wd33c93.c hostdata->no_sync = val; hostdata 1993 drivers/scsi/wd33c93.c hostdata->no_dma = (val == -1) ? 1 : val; hostdata 1996 drivers/scsi/wd33c93.c hostdata->default_sx_per = hostdata 1997 drivers/scsi/wd33c93.c hostdata->sx_table[round_period((unsigned int) val, hostdata 1998 drivers/scsi/wd33c93.c hostdata->sx_table)].period_ns; hostdata 2002 drivers/scsi/wd33c93.c hostdata->disconnect = val; hostdata 2004 drivers/scsi/wd33c93.c hostdata->disconnect = DIS_ADAPTIVE; hostdata 2008 drivers/scsi/wd33c93.c hostdata->level2 = val; hostdata 2011 drivers/scsi/wd33c93.c hostdata->args = val & DB_MASK; hostdata 2014 drivers/scsi/wd33c93.c hostdata->dma_mode = val ? CTRL_BURST:CTRL_DMA; hostdata 2016 drivers/scsi/wd33c93.c if (WD33C93_FS_16_20 == hostdata->clock_freq /* divisor 4 */ hostdata 2018 drivers/scsi/wd33c93.c hostdata->fast = !!val; hostdata 2026 drivers/scsi/wd33c93.c hostdata->proc = val; hostdata 2029 drivers/scsi/wd33c93.c spin_lock_irq(&hostdata->lock); hostdata 2031 drivers/scsi/wd33c93.c spin_unlock_irq(&hostdata->lock); hostdata 2035 drivers/scsi/wd33c93.c (hostdata->chip == C_WD33C93) ? "WD33c93" : (hostdata->chip == hostdata 2037 drivers/scsi/wd33c93.c "WD33c93A" : (hostdata->chip == hostdata 2039 drivers/scsi/wd33c93.c hostdata->microcode, hostdata->no_sync, hostdata->no_dma); hostdata 2041 drivers/scsi/wd33c93.c printk(" debug_flags=0x%02x\n", hostdata->args); hostdata 2059 drivers/scsi/wd33c93.c hd = (struct WD33C93_hostdata *) instance->hostdata; hostdata 2129 drivers/scsi/wd33c93.c hd = (struct WD33C93_hostdata *) instance->hostdata; hostdata 27 drivers/scsi/wd33c93.h #define DB(f,a) if (hostdata->args & (f)) a; hostdata 833 drivers/scsi/xen-scsifront.c info = (struct vscsifrnt_info *)host->hostdata; hostdata 79 drivers/scsi/zorro7xx.c struct NCR_700_Host_Parameters *hostdata; hostdata 98 drivers/scsi/zorro7xx.c hostdata = kzalloc(sizeof(struct NCR_700_Host_Parameters), GFP_KERNEL); hostdata 99 drivers/scsi/zorro7xx.c if (!hostdata) { hostdata 106 drivers/scsi/zorro7xx.c hostdata->base = ioremap(ioaddr, zorro_resource_len(z)); hostdata 108 drivers/scsi/zorro7xx.c hostdata->base = ZTWO_VADDR(ioaddr); hostdata 110 drivers/scsi/zorro7xx.c hostdata->clock = 50; hostdata 111 drivers/scsi/zorro7xx.c hostdata->chip710 = 1; hostdata 114 drivers/scsi/zorro7xx.c hostdata->ctest7_extra = CTEST7_TT1; hostdata 119 drivers/scsi/zorro7xx.c host = NCR_700_detect(&zorro7xx_scsi_driver_template, hostdata, hostdata 146 drivers/scsi/zorro7xx.c iounmap(hostdata->base); hostdata 147 drivers/scsi/zorro7xx.c kfree(hostdata); hostdata 157 drivers/scsi/zorro7xx.c struct NCR_700_Host_Parameters *hostdata = shost_priv(host); hostdata 162 drivers/scsi/zorro7xx.c kfree(hostdata); hostdata 122 drivers/staging/rts5208/rtsx.h return container_of((void *)dev, struct Scsi_Host, hostdata); hostdata 127 drivers/staging/rts5208/rtsx.h return (struct rtsx_dev *)host->hostdata; hostdata 305 drivers/staging/unisys/visorhba/visorhba_main.c (struct visorhba_devdata *)scsidev->host->hostdata; hostdata 376 drivers/staging/unisys/visorhba/visorhba_main.c vdisk = scsidev->hostdata; hostdata 403 drivers/staging/unisys/visorhba/visorhba_main.c vdisk = scsidev->hostdata; hostdata 431 drivers/staging/unisys/visorhba/visorhba_main.c vdisk = scsidev->hostdata; hostdata 514 drivers/staging/unisys/visorhba/visorhba_main.c (struct visorhba_devdata *)scsihost->hostdata; hostdata 600 drivers/staging/unisys/visorhba/visorhba_main.c if (scsidev->hostdata) hostdata 604 drivers/staging/unisys/visorhba/visorhba_main.c devdata = (struct visorhba_devdata *)scsihost->hostdata; hostdata 613 drivers/staging/unisys/visorhba/visorhba_main.c scsidev->hostdata = vdisk; hostdata 628 drivers/staging/unisys/visorhba/visorhba_main.c vdisk = scsidev->hostdata; hostdata 629 drivers/staging/unisys/visorhba/visorhba_main.c scsidev->hostdata = NULL; hostdata 805 drivers/staging/unisys/visorhba/visorhba_main.c vdisk = scsidev->hostdata; hostdata 883 drivers/staging/unisys/visorhba/visorhba_main.c vdisk = scsidev->hostdata; hostdata 1079 drivers/staging/unisys/visorhba/visorhba_main.c devdata = (struct visorhba_devdata *)scsihost->hostdata; hostdata 337 drivers/target/loopback/tcm_loop.c *((struct tcm_loop_hba **)sh->hostdata) = tl_hba; hostdata 335 drivers/usb/image/microtek.c struct mts_desc* desc = (struct mts_desc*)(srb->device->host->hostdata[0]); hostdata 346 drivers/usb/image/microtek.c struct mts_desc* desc = (struct mts_desc*)(srb->device->host->hostdata[0]); hostdata 568 drivers/usb/image/microtek.c struct mts_desc* desc = (struct mts_desc*)(srb->device->host->hostdata[0]); hostdata 767 drivers/usb/image/microtek.c new_desc->host->hostdata[0] = (unsigned long)new_desc; hostdata 121 drivers/usb/storage/uas.c err = uas_submit_urbs(cmnd, cmnd->device->hostdata); hostdata 146 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = cmnd->device->hostdata; hostdata 249 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (void *)cmnd->device->hostdata; hostdata 270 drivers/usb/storage/uas.c err = uas_submit_urbs(cmnd, cmnd->device->hostdata); hostdata 303 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; hostdata 398 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (void *)cmnd->device->hostdata; hostdata 540 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = cmnd->device->hostdata; hostdata 640 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = sdev->hostdata; hostdata 726 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (void *)cmnd->device->hostdata; hostdata 764 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = sdev->hostdata; hostdata 808 drivers/usb/storage/uas.c dev_to_shost(starget->dev.parent)->hostdata; hostdata 819 drivers/usb/storage/uas.c (struct uas_dev_info *)sdev->host->hostdata; hostdata 821 drivers/usb/storage/uas.c sdev->hostdata = devinfo; hostdata 840 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = sdev->hostdata; hostdata 1003 drivers/usb/storage/uas.c devinfo = (struct uas_dev_info *)shost->hostdata; hostdata 1097 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; hostdata 1122 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; hostdata 1148 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; hostdata 1166 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; hostdata 1188 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; hostdata 1222 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; hostdata 154 drivers/usb/storage/usb.h return container_of((void *) us, struct Scsi_Host, hostdata); hostdata 157 drivers/usb/storage/usb.h return (struct us_data *) host->hostdata; hostdata 1755 include/linux/libata.h return *(struct ata_port **)&host->hostdata[0]; hostdata 26 include/linux/logic_pio.h void *hostdata; hostdata 31 include/linux/logic_pio.h u32 (*in)(void *hostdata, unsigned long addr, size_t dwidth); hostdata 32 include/linux/logic_pio.h void (*out)(void *hostdata, unsigned long addr, u32 val, hostdata 34 include/linux/logic_pio.h u32 (*ins)(void *hostdata, unsigned long addr, void *buffer, hostdata 36 include/linux/logic_pio.h void (*outs)(void *hostdata, unsigned long addr, const void *buffer, hostdata 406 include/scsi/libsas.h #define SHOST_TO_SAS_HA(_shost) (*(struct sas_ha_struct **)(_shost)->hostdata) hostdata 410 include/scsi/libsas.h return starget->hostdata; hostdata 131 include/scsi/scsi_device.h void *hostdata; /* available to low-level driver */ hostdata 313 include/scsi/scsi_device.h void *hostdata; /* available to low-level driver */ hostdata 330 include/scsi/scsi_device.h uint, uint, u64, void *hostdata); hostdata 699 include/scsi/scsi_host.h unsigned long hostdata[0] /* Used for storage of host specific stuff */ hostdata 711 include/scsi/scsi_host.h return (void *)shost->hostdata; hostdata 84 include/scsi/scsi_transport_sas.h void *hostdata; hostdata 241 lib/logic_pio.c ret = entry->ops->in(entry->hostdata, \ hostdata 257 lib/logic_pio.c entry->ops->out(entry->hostdata, \ hostdata 273 lib/logic_pio.c entry->ops->ins(entry->hostdata, \ hostdata 290 lib/logic_pio.c entry->ops->outs(entry->hostdata, \