Lines Matching refs:dregs

135 static volatile struct sun3_dma_regs *dregs;  variable
165 dregs->udc_addr = UDC_CSR; in sun3_udc_read()
167 ret = dregs->udc_data; in sun3_udc_read()
175 dregs->udc_addr = reg; in sun3_udc_write()
177 dregs->udc_data = val; in sun3_udc_write()
237 dregs = (struct sun3_dma_regs *)(((unsigned char *)ioaddr) + 8); in sun3scsi_detect()
295 dregs->csr = 0; in sun3scsi_detect()
297 dregs->csr = CSR_SCSI | CSR_FIFO | CSR_INTR; in sun3scsi_detect()
299 dregs->fifo_count = 0; in sun3scsi_detect()
375 unsigned short csr = dregs->csr; in scsi_sun3_intr()
440 dregs->fifo_count = 0; in sun3scsi_dma_setup()
444 dregs->csr &= ~CSR_FIFO; in sun3scsi_dma_setup()
445 dregs->csr |= CSR_FIFO; in sun3scsi_dma_setup()
449 dregs->csr |= CSR_SEND; in sun3scsi_dma_setup()
451 dregs->csr &= ~CSR_SEND; in sun3scsi_dma_setup()
454 dregs->fifo_count = count; in sun3scsi_dma_setup()
459 dregs->csr &= ~CSR_FIFO; in sun3scsi_dma_setup()
460 dregs->csr |= CSR_FIFO; in sun3scsi_dma_setup()
462 if(dregs->fifo_count != count) { in sun3scsi_dma_setup()
464 default_instance->host_no, dregs->fifo_count, in sun3scsi_dma_setup()
509 dregs->udc_addr = 0x32; in sun3scsi_dma_count()
511 resid = dregs->udc_data; in sun3scsi_dma_count()
555 if(dregs->csr & CSR_FIFO_EMPTY) in sun3scsi_dma_finish()
588 fifo = dregs->fifo_count; in sun3scsi_dma_finish()
596 data = dregs->fifo_data; in sun3scsi_dma_finish()
609 dregs->fifo_count = 0; in sun3scsi_dma_finish()
610 dregs->csr &= ~CSR_SEND; in sun3scsi_dma_finish()
613 dregs->csr &= ~CSR_FIFO; in sun3scsi_dma_finish()
614 dregs->csr |= CSR_FIFO; in sun3scsi_dma_finish()