Lines Matching refs:MEM
106 #define PKTBUF_ADDR(head) (void *)((unsigned long)(MEM) | (head)->base)
162 #define MEM lp->mem macro
348 MEM = dvma_malloc_align(sizeof(struct lance_memory), 0x10000); in lance_probe()
349 if (MEM == NULL) { in lance_probe()
366 dvma_free((void *)MEM); in lance_probe()
376 (unsigned long)MEM, in lance_probe()
384 MEM->init.hwaddr[0] = dev->dev_addr[1]; in lance_probe()
385 MEM->init.hwaddr[1] = dev->dev_addr[0]; in lance_probe()
386 MEM->init.hwaddr[2] = dev->dev_addr[3]; in lance_probe()
387 MEM->init.hwaddr[3] = dev->dev_addr[2]; in lance_probe()
388 MEM->init.hwaddr[4] = dev->dev_addr[5]; in lance_probe()
389 MEM->init.hwaddr[5] = dev->dev_addr[4]; in lance_probe()
393 MEM->init.mode = 0x0000; in lance_probe()
394 MEM->init.filter[0] = 0x00000000; in lance_probe()
395 MEM->init.filter[1] = 0x00000000; in lance_probe()
396 MEM->init.rdra = dvma_vtob(MEM->rx_head); in lance_probe()
397 MEM->init.rlen = (RX_LOG_RING_SIZE << 13) | in lance_probe()
398 (dvma_vtob(MEM->rx_head) >> 16); in lance_probe()
399 MEM->init.tdra = dvma_vtob(MEM->tx_head); in lance_probe()
400 MEM->init.tlen = (TX_LOG_RING_SIZE << 13) | in lance_probe()
401 (dvma_vtob(MEM->tx_head) >> 16); in lance_probe()
404 dvma_vtob(&(MEM->init)), dvma_vtob(MEM->rx_head), in lance_probe()
405 (dvma_vtob(MEM->tx_head)))); in lance_probe()
466 MEM->tx_head[i].base = dvma_vtob(MEM->tx_data[i]); in lance_init_ring()
467 MEM->tx_head[i].flag = 0; in lance_init_ring()
468 MEM->tx_head[i].base_hi = in lance_init_ring()
469 (dvma_vtob(MEM->tx_data[i])) >>16; in lance_init_ring()
470 MEM->tx_head[i].length = 0; in lance_init_ring()
471 MEM->tx_head[i].misc = 0; in lance_init_ring()
475 MEM->rx_head[i].base = dvma_vtob(MEM->rx_data[i]); in lance_init_ring()
476 MEM->rx_head[i].flag = RMD1_OWN_CHIP; in lance_init_ring()
477 MEM->rx_head[i].base_hi = in lance_init_ring()
478 (dvma_vtob(MEM->rx_data[i])) >> 16; in lance_init_ring()
479 MEM->rx_head[i].buf_length = -PKT_BUF_SZ | 0xf000; in lance_init_ring()
480 MEM->rx_head[i].msg_length = 0; in lance_init_ring()
484 MEM->init.hwaddr[0] = dev->dev_addr[1]; in lance_init_ring()
485 MEM->init.hwaddr[1] = dev->dev_addr[0]; in lance_init_ring()
486 MEM->init.hwaddr[2] = dev->dev_addr[3]; in lance_init_ring()
487 MEM->init.hwaddr[3] = dev->dev_addr[2]; in lance_init_ring()
488 MEM->init.hwaddr[4] = dev->dev_addr[5]; in lance_init_ring()
489 MEM->init.hwaddr[5] = dev->dev_addr[4]; in lance_init_ring()
491 MEM->init.mode = 0x0000; in lance_init_ring()
492 MEM->init.filter[0] = 0x00000000; in lance_init_ring()
493 MEM->init.filter[1] = 0x00000000; in lance_init_ring()
494 MEM->init.rdra = dvma_vtob(MEM->rx_head); in lance_init_ring()
495 MEM->init.rlen = (RX_LOG_RING_SIZE << 13) | in lance_init_ring()
496 (dvma_vtob(MEM->rx_head) >> 16); in lance_init_ring()
497 MEM->init.tdra = dvma_vtob(MEM->tx_head); in lance_init_ring()
498 MEM->init.tlen = (TX_LOG_RING_SIZE << 13) | in lance_init_ring()
499 (dvma_vtob(MEM->tx_head) >> 16); in lance_init_ring()
503 REGA(CSR1) = dvma_vtob(&(MEM->init)); in lance_init_ring()
504 REGA(CSR2) = dvma_vtob(&(MEM->init)) >> 16; in lance_init_ring()
550 i, MEM->rx_head[i].base, in lance_start_xmit()
551 -MEM->rx_head[i].buf_length, in lance_start_xmit()
552 MEM->rx_head[i].msg_length); in lance_start_xmit()
555 i, MEM->tx_head[i].base, in lance_start_xmit()
556 -MEM->tx_head[i].length, in lance_start_xmit()
557 MEM->tx_head[i].misc ); in lance_start_xmit()
614 head = &(MEM->tx_head[entry]); in lance_start_xmit()
644 if ((MEM->tx_head[(entry+1) & TX_RING_MOD_MASK].flag & TMD1_OWN) == in lance_start_xmit()
692 struct lance_tx_head *head = &(MEM->tx_head[old_tx]); in lance_interrupt()
777 while( (MEM->rx_head[entry].flag & RMD1_OWN) == RMD1_OWN_HOST ) { in lance_rx()
778 struct lance_rx_head *head = &(MEM->rx_head[entry]); in lance_rx()