Lines Matching refs:udc_regs
139 static struct sun3_udc_regs *udc_regs = NULL;
236 if((udc_regs = dvma_malloc(sizeof(struct sun3_udc_regs)))
455 udc_regs->addr_hi = ((dvma_vtob(dmabuf) & 0xff0000) >> 8);
456 udc_regs->addr_lo = (dvma_vtob(dmabuf) & 0xffff);
458 udc_regs->addr_hi = (((unsigned long)(addr) & 0xff0000) >> 8);
459 udc_regs->addr_lo = ((unsigned long)(addr) & 0xffff);
461 udc_regs->count = count/2; /* count in words */
462 udc_regs->mode_hi = UDC_MODE_HIWORD;
465 udc_regs->count++;
466 udc_regs->mode_lo = UDC_MODE_LSEND;
467 udc_regs->rsel = UDC_RSEL_SEND;
469 udc_regs->mode_lo = UDC_MODE_LRECV;
470 udc_regs->rsel = UDC_RSEL_RECV;
474 sun3_udc_write(((dvma_vtob(udc_regs) & 0xff0000) >> 8),
477 sun3_udc_write((dvma_vtob(udc_regs) & 0xffff), UDC_CHN_LO);