Lines Matching refs:adapt

4227 		if (ha->adapt) {  in ips_free()
4230 sizeof (IPS_IO_CMD), ha->adapt, in ips_free()
4231 ha->adapt->hw_status_start); in ips_free()
4232 ha->adapt = NULL; in ips_free()
4386 ha->dummy->ccsar = cpu_to_le32(ha->adapt->hw_status_start in ips_init_scb()
4397 scb->cmd.basic_io.ccsar = cpu_to_le32(ha->adapt->hw_status_start in ips_init_scb()
5143 ha->adapt->p_status_start = ha->adapt->status; in ips_statinit()
5144 ha->adapt->p_status_end = ha->adapt->status + IPS_MAX_CMDS; in ips_statinit()
5145 ha->adapt->p_status_tail = ha->adapt->status; in ips_statinit()
5147 phys_status_start = ha->adapt->hw_status_start; in ips_statinit()
5155 ha->adapt->hw_status_tail = phys_status_start; in ips_statinit()
5174 ha->adapt->p_status_start = ha->adapt->status; in ips_statinit_memio()
5175 ha->adapt->p_status_end = ha->adapt->status + IPS_MAX_CMDS; in ips_statinit_memio()
5176 ha->adapt->p_status_tail = ha->adapt->status; in ips_statinit_memio()
5178 phys_status_start = ha->adapt->hw_status_start; in ips_statinit_memio()
5185 ha->adapt->hw_status_tail = phys_status_start; in ips_statinit_memio()
5202 if (ha->adapt->p_status_tail != ha->adapt->p_status_end) { in ips_statupd_copperhead()
5203 ha->adapt->p_status_tail++; in ips_statupd_copperhead()
5204 ha->adapt->hw_status_tail += sizeof (IPS_STATUS); in ips_statupd_copperhead()
5206 ha->adapt->p_status_tail = ha->adapt->p_status_start; in ips_statupd_copperhead()
5207 ha->adapt->hw_status_tail = ha->adapt->hw_status_start; in ips_statupd_copperhead()
5210 outl(ha->adapt->hw_status_tail, in ips_statupd_copperhead()
5213 return (ha->adapt->p_status_tail->value); in ips_statupd_copperhead()
5230 if (ha->adapt->p_status_tail != ha->adapt->p_status_end) { in ips_statupd_copperhead_memio()
5231 ha->adapt->p_status_tail++; in ips_statupd_copperhead_memio()
5232 ha->adapt->hw_status_tail += sizeof (IPS_STATUS); in ips_statupd_copperhead_memio()
5234 ha->adapt->p_status_tail = ha->adapt->p_status_start; in ips_statupd_copperhead_memio()
5235 ha->adapt->hw_status_tail = ha->adapt->hw_status_start; in ips_statupd_copperhead_memio()
5238 writel(ha->adapt->hw_status_tail, ha->mem_ptr + IPS_REG_SQTR); in ips_statupd_copperhead_memio()
5240 return (ha->adapt->p_status_tail->value); in ips_statupd_copperhead_memio()
6945 ha->adapt = dma_alloc_coherent(&pci_dev->dev, in ips_init_phase1()
6948 if (!ha->adapt) { in ips_init_phase1()
6953 ha->adapt->hw_status_start = dma_address; in ips_init_phase1()
6954 ha->dummy = (void *) (ha->adapt + 1); in ips_init_phase1()