Lines Matching refs:MEM

107 #define	PKTBUF_ADDR(head)	(void *)((unsigned long)(MEM) | (head)->base)
163 #define MEM lp->mem macro
344 MEM = dvma_malloc_align(sizeof(struct lance_memory), 0x10000); in lance_probe()
345 if (!MEM) { in lance_probe()
362 dvma_free((void *)MEM); in lance_probe()
372 (unsigned long)MEM, in lance_probe()
379 MEM->init.hwaddr[0] = dev->dev_addr[1]; in lance_probe()
380 MEM->init.hwaddr[1] = dev->dev_addr[0]; in lance_probe()
381 MEM->init.hwaddr[2] = dev->dev_addr[3]; in lance_probe()
382 MEM->init.hwaddr[3] = dev->dev_addr[2]; in lance_probe()
383 MEM->init.hwaddr[4] = dev->dev_addr[5]; in lance_probe()
384 MEM->init.hwaddr[5] = dev->dev_addr[4]; in lance_probe()
388 MEM->init.mode = 0x0000; in lance_probe()
389 MEM->init.filter[0] = 0x00000000; in lance_probe()
390 MEM->init.filter[1] = 0x00000000; in lance_probe()
391 MEM->init.rdra = dvma_vtob(MEM->rx_head); in lance_probe()
392 MEM->init.rlen = (RX_LOG_RING_SIZE << 13) | in lance_probe()
393 (dvma_vtob(MEM->rx_head) >> 16); in lance_probe()
394 MEM->init.tdra = dvma_vtob(MEM->tx_head); in lance_probe()
395 MEM->init.tlen = (TX_LOG_RING_SIZE << 13) | in lance_probe()
396 (dvma_vtob(MEM->tx_head) >> 16); in lance_probe()
399 dvma_vtob(&(MEM->init)), dvma_vtob(MEM->rx_head), in lance_probe()
400 (dvma_vtob(MEM->tx_head)))); in lance_probe()
461 MEM->tx_head[i].base = dvma_vtob(MEM->tx_data[i]); in lance_init_ring()
462 MEM->tx_head[i].flag = 0; in lance_init_ring()
463 MEM->tx_head[i].base_hi = in lance_init_ring()
464 (dvma_vtob(MEM->tx_data[i])) >>16; in lance_init_ring()
465 MEM->tx_head[i].length = 0; in lance_init_ring()
466 MEM->tx_head[i].misc = 0; in lance_init_ring()
470 MEM->rx_head[i].base = dvma_vtob(MEM->rx_data[i]); in lance_init_ring()
471 MEM->rx_head[i].flag = RMD1_OWN_CHIP; in lance_init_ring()
472 MEM->rx_head[i].base_hi = in lance_init_ring()
473 (dvma_vtob(MEM->rx_data[i])) >> 16; in lance_init_ring()
474 MEM->rx_head[i].buf_length = -PKT_BUF_SZ | 0xf000; in lance_init_ring()
475 MEM->rx_head[i].msg_length = 0; in lance_init_ring()
479 MEM->init.hwaddr[0] = dev->dev_addr[1]; in lance_init_ring()
480 MEM->init.hwaddr[1] = dev->dev_addr[0]; in lance_init_ring()
481 MEM->init.hwaddr[2] = dev->dev_addr[3]; in lance_init_ring()
482 MEM->init.hwaddr[3] = dev->dev_addr[2]; in lance_init_ring()
483 MEM->init.hwaddr[4] = dev->dev_addr[5]; in lance_init_ring()
484 MEM->init.hwaddr[5] = dev->dev_addr[4]; in lance_init_ring()
486 MEM->init.mode = 0x0000; in lance_init_ring()
487 MEM->init.filter[0] = 0x00000000; in lance_init_ring()
488 MEM->init.filter[1] = 0x00000000; in lance_init_ring()
489 MEM->init.rdra = dvma_vtob(MEM->rx_head); in lance_init_ring()
490 MEM->init.rlen = (RX_LOG_RING_SIZE << 13) | in lance_init_ring()
491 (dvma_vtob(MEM->rx_head) >> 16); in lance_init_ring()
492 MEM->init.tdra = dvma_vtob(MEM->tx_head); in lance_init_ring()
493 MEM->init.tlen = (TX_LOG_RING_SIZE << 13) | in lance_init_ring()
494 (dvma_vtob(MEM->tx_head) >> 16); in lance_init_ring()
498 REGA(CSR1) = dvma_vtob(&(MEM->init)); in lance_init_ring()
499 REGA(CSR2) = dvma_vtob(&(MEM->init)) >> 16; in lance_init_ring()
545 i, MEM->rx_head[i].base, in lance_start_xmit()
546 -MEM->rx_head[i].buf_length, in lance_start_xmit()
547 MEM->rx_head[i].msg_length); in lance_start_xmit()
550 i, MEM->tx_head[i].base, in lance_start_xmit()
551 -MEM->tx_head[i].length, in lance_start_xmit()
552 MEM->tx_head[i].misc ); in lance_start_xmit()
609 head = &(MEM->tx_head[entry]); in lance_start_xmit()
639 if ((MEM->tx_head[(entry+1) & TX_RING_MOD_MASK].flag & TMD1_OWN) == in lance_start_xmit()
687 struct lance_tx_head *head = &(MEM->tx_head[old_tx]); in lance_interrupt()
772 while( (MEM->rx_head[entry].flag & RMD1_OWN) == RMD1_OWN_HOST ) { in lance_rx()
773 struct lance_rx_head *head = &(MEM->rx_head[entry]); in lance_rx()