Lines Matching refs:hd

115 	hostdata *hd = SD(sh);  in eata_pio_release()  local
125 if (hd->pdev) in eata_pio_release()
126 pci_dev_put(hd->pdev); in eata_pio_release()
162 hostdata *hd; in eata_pio_int_handler() local
181 hd = SD(sh); in eata_pio_int_handler()
183 cp = &hd->ccb[0]; in eata_pio_int_handler()
246 while ((stat & HA_SDRQ) || ((stat & HA_SMORE) && hd->moresupport)); in eata_pio_int_handler()
259 hd->devflags |= (1 << cp->cp_id); in eata_pio_int_handler()
260 } else if (hd->devflags & (1 << cp->cp_id)) in eata_pio_int_handler()
308 hostdata *hd; in eata_pio_queue_lck() local
314 hd = HD(cmd); in eata_pio_queue_lck()
322 if (hd->ccb[y].status != FREE) { in eata_pio_queue_lck()
332 cp = &hd->ccb[y]; in eata_pio_queue_lck()
348 cp->Interpret = (cmd->device->id == hd->hostid); in eata_pio_queue_lck()
364 cmd->host_scribble = (char *) &hd->ccb[y]; in eata_pio_queue_lck()
392 outsw(base + HA_RDATA, cp, hd->cplen); in eata_pio_queue_lck()
394 for (x = 0; x < hd->cppadlen; x++) in eata_pio_queue_lck()
663 hostdata *hd; in register_pio_HBA() local
706 hd = SD(sh); in register_pio_HBA()
708 memset(hd->ccb, 0, (sizeof(struct eata_ccb) * be16_to_cpu(gc->queuesiz))); in register_pio_HBA()
709 memset(hd->reads, 0, sizeof(hd->reads)); in register_pio_HBA()
738 hd->bustype = IS_PCI; in register_pio_HBA()
740 hd->bustype = IS_EISA; in register_pio_HBA()
742 hd->bustype = IS_ISA; in register_pio_HBA()
745 hd->bustype = IS_PCI; in register_pio_HBA()
747 hd->bustype = IS_EISA; in register_pio_HBA()
749 hd->bustype = IS_ISA; in register_pio_HBA()
768 hd->channel = 0; in register_pio_HBA()
770 hd->pdev = pci_dev_get(pdev); /* Keep a PCI reference */ in register_pio_HBA()
776 hd->primary = 0; in register_pio_HBA()
778 hd->primary = 1; in register_pio_HBA()
780 hd->next = NULL; /* build a linked list of all HBAs */ in register_pio_HBA()
781 hd->prev = last_HBA; in register_pio_HBA()
782 if (hd->prev != NULL) in register_pio_HBA()
783 SD(hd->prev)->next = sh; in register_pio_HBA()