Home | History | Annotate | Download | only in dev

Lines Matching defs:dh

85 #define	SIDH_BUSY	1		/* This DH is in use */
345 struct se_dma_handle *dh = sr->sr_dma_hand;
354 data_pa = 0; /* XXX se_dma_kvtopa(dh->dh_dma); */
355 data_pa += (ncr_sc->sc_dataptr - dh->dh_addr);
364 printf("%s: dh=%p, pa=0x%lx, xlen=0x%x\n",
365 __func__, dh, data_pa, xlen);
370 if (dh->dh_flags & SIDH_OUT) {
391 struct se_dma_handle *dh = sr->sr_dma_hand;
406 if (dh->dh_flags & SIDH_OUT) {
448 struct se_dma_handle *dh = sr->sr_dma_hand;
476 if (dh->dh_flags & SIDH_OUT)
566 struct se_dma_handle *dh;
608 dh = &sc->sc_dma[i];
609 dh->dh_flags = SIDH_BUSY;
613 dh->dh_flags |= SIDH_OUT;
615 dh->dh_addr = (uint8_t *)addr;
616 dh->dh_maplen = xlen;
617 dh->dh_dma = 0; /* XXX - Allocate space in DMA buffer. */
618 /* XXX: dh->dh_dma = alloc(xlen) */
619 if (!dh->dh_dma) {
622 __func__, dh->dh_addr, dh->dh_maplen);
623 dh->dh_flags = 0;
628 sr->sr_dma_hand = dh;
636 struct se_dma_handle *dh = sr->sr_dma_hand;
639 if (dh == NULL)
646 if (dh->dh_flags & SIDH_BUSY) {
649 /* XXX: free((void *)dh->dh_dma, dh->dh_maplen); */
650 dh->dh_dma = 0;
651 dh->dh_flags = 0;