Lines Matching refs:MEM
105 #define PKTBUF_ADDR(head) (void *)((unsigned long)(MEM) | (head)->base)
161 #define MEM lp->mem macro
347 MEM = dvma_malloc_align(sizeof(struct lance_memory), 0x10000); in lance_probe()
348 if (MEM == NULL) { in lance_probe()
365 dvma_free((void *)MEM); in lance_probe()
375 (unsigned long)MEM, in lance_probe()
383 MEM->init.hwaddr[0] = dev->dev_addr[1]; in lance_probe()
384 MEM->init.hwaddr[1] = dev->dev_addr[0]; in lance_probe()
385 MEM->init.hwaddr[2] = dev->dev_addr[3]; in lance_probe()
386 MEM->init.hwaddr[3] = dev->dev_addr[2]; in lance_probe()
387 MEM->init.hwaddr[4] = dev->dev_addr[5]; in lance_probe()
388 MEM->init.hwaddr[5] = dev->dev_addr[4]; in lance_probe()
392 MEM->init.mode = 0x0000; in lance_probe()
393 MEM->init.filter[0] = 0x00000000; in lance_probe()
394 MEM->init.filter[1] = 0x00000000; in lance_probe()
395 MEM->init.rdra = dvma_vtob(MEM->rx_head); in lance_probe()
396 MEM->init.rlen = (RX_LOG_RING_SIZE << 13) | in lance_probe()
397 (dvma_vtob(MEM->rx_head) >> 16); in lance_probe()
398 MEM->init.tdra = dvma_vtob(MEM->tx_head); in lance_probe()
399 MEM->init.tlen = (TX_LOG_RING_SIZE << 13) | in lance_probe()
400 (dvma_vtob(MEM->tx_head) >> 16); in lance_probe()
403 dvma_vtob(&(MEM->init)), dvma_vtob(MEM->rx_head), in lance_probe()
404 (dvma_vtob(MEM->tx_head)))); in lance_probe()
465 MEM->tx_head[i].base = dvma_vtob(MEM->tx_data[i]); in lance_init_ring()
466 MEM->tx_head[i].flag = 0; in lance_init_ring()
467 MEM->tx_head[i].base_hi = in lance_init_ring()
468 (dvma_vtob(MEM->tx_data[i])) >>16; in lance_init_ring()
469 MEM->tx_head[i].length = 0; in lance_init_ring()
470 MEM->tx_head[i].misc = 0; in lance_init_ring()
474 MEM->rx_head[i].base = dvma_vtob(MEM->rx_data[i]); in lance_init_ring()
475 MEM->rx_head[i].flag = RMD1_OWN_CHIP; in lance_init_ring()
476 MEM->rx_head[i].base_hi = in lance_init_ring()
477 (dvma_vtob(MEM->rx_data[i])) >> 16; in lance_init_ring()
478 MEM->rx_head[i].buf_length = -PKT_BUF_SZ | 0xf000; in lance_init_ring()
479 MEM->rx_head[i].msg_length = 0; in lance_init_ring()
483 MEM->init.hwaddr[0] = dev->dev_addr[1]; in lance_init_ring()
484 MEM->init.hwaddr[1] = dev->dev_addr[0]; in lance_init_ring()
485 MEM->init.hwaddr[2] = dev->dev_addr[3]; in lance_init_ring()
486 MEM->init.hwaddr[3] = dev->dev_addr[2]; in lance_init_ring()
487 MEM->init.hwaddr[4] = dev->dev_addr[5]; in lance_init_ring()
488 MEM->init.hwaddr[5] = dev->dev_addr[4]; in lance_init_ring()
490 MEM->init.mode = 0x0000; in lance_init_ring()
491 MEM->init.filter[0] = 0x00000000; in lance_init_ring()
492 MEM->init.filter[1] = 0x00000000; in lance_init_ring()
493 MEM->init.rdra = dvma_vtob(MEM->rx_head); in lance_init_ring()
494 MEM->init.rlen = (RX_LOG_RING_SIZE << 13) | in lance_init_ring()
495 (dvma_vtob(MEM->rx_head) >> 16); in lance_init_ring()
496 MEM->init.tdra = dvma_vtob(MEM->tx_head); in lance_init_ring()
497 MEM->init.tlen = (TX_LOG_RING_SIZE << 13) | in lance_init_ring()
498 (dvma_vtob(MEM->tx_head) >> 16); in lance_init_ring()
502 REGA(CSR1) = dvma_vtob(&(MEM->init)); in lance_init_ring()
503 REGA(CSR2) = dvma_vtob(&(MEM->init)) >> 16; in lance_init_ring()
548 i, MEM->rx_head[i].base, in lance_start_xmit()
549 -MEM->rx_head[i].buf_length, in lance_start_xmit()
550 MEM->rx_head[i].msg_length); in lance_start_xmit()
553 i, MEM->tx_head[i].base, in lance_start_xmit()
554 -MEM->tx_head[i].length, in lance_start_xmit()
555 MEM->tx_head[i].misc ); in lance_start_xmit()
612 head = &(MEM->tx_head[entry]); in lance_start_xmit()
642 if ((MEM->tx_head[(entry+1) & TX_RING_MOD_MASK].flag & TMD1_OWN) == in lance_start_xmit()
700 struct lance_tx_head *head = &(MEM->tx_head[old_tx]); in lance_interrupt()
786 while( (MEM->rx_head[entry].flag & RMD1_OWN) == RMD1_OWN_HOST ) { in lance_rx()
787 struct lance_rx_head *head = &(MEM->rx_head[entry]); in lance_rx()