Lines Matching defs:dx
162 #define WDSTOPHYS(wp, a) ( ((u_long)a) - ((u_long)wp->dx) + ((u_long)wp->dx_p) )
163 #define WDSTOVIRT(wp, a) ( ((char *)a) - ((char*)wp->dx_p) + ((char *)wp->dx) )
309 struct wdsdx *dx;
557 /*maxsize*/ sizeof(* wp->dx),
559 /*maxsegsz*/ sizeof(* wp->dx), /*flags*/ 0,
566 error = bus_dmamem_alloc(wp->bustag, (void **)&wp->dx,
571 bus_dmamap_load(wp->bustag, wp->busmap, (void *)wp->dx,
572 sizeof(* wp->dx), wds_alloc_callback,
577 wp->dx->req[i].id = i;
665 if (wp->dx) { /* wp->busmap may be legitimately equal to 0 */
667 bus_dmamem_free(wp->bustag, wp->dx, wp->busmap);
668 wp->dx = 0;
709 *res = &wp->dx->data[fragsiz * i];
750 r = &wp->dx->req[i];
753 wp->dx->ombs[i].stat = 1;
777 in = &wp->dx->imbs[c];
892 wp->dx->ombs[r->ombn].stat = 0;
921 wp->dx->ombs[r->ombn].addr);
939 wp->dx->ombs[r->ombn].stat = 1;
944 wp->dx->ombs[r->ombn].stat = 0;
976 scsi_ulto3b(WDSTOPHYS(wp, &r->cmd), wp->dx->ombs[r->ombn].addr);
987 wp->dx->ombs[r->ombn].stat = 0;
1124 scsi_ulto3b(WDSTOPHYS(wp, &r->cmd), wp->dx->ombs[r->ombn].addr);
1159 wp->dx->ombs[r->ombn].stat = 0;
1319 scsi_ulto3b(WDSTOPHYS(wp, &wp->dx->ombs), init.mbaddr);
1375 if( a < (char *)&wp->dx->req[0] || a>= (char *)&wp->dx->req[MAXSIMUL]) {
1401 r = &wp->dx->req[i];
1406 wp->dx->ombs[r->ombn].stat,