/titanic_44/usr/src/grub/grub-0.97/netboot/ |
H A D | davicom.c | 141 static unsigned char txb[BUFLEN] __attribute__ ((aligned(4))); variable 436 txd[i].buf1addr = (void *)virt_to_bus(&txb[0]); /* Used same TX buffer */ in davicom_init_chain() 446 for (i=0; i<192; i++) txb[i] = 0xFF; in davicom_init_chain() 447 txb[0] = nic->node_addr[0]; in davicom_init_chain() 448 txb[1] = nic->node_addr[1]; in davicom_init_chain() 449 txb[4] = nic->node_addr[2]; in davicom_init_chain() 450 txb[5] = nic->node_addr[3]; in davicom_init_chain() 451 txb[8] = nic->node_addr[4]; in davicom_init_chain() 452 txb[9] = nic->node_addr[5]; in davicom_init_chain() 550 memcpy(&txb[0], d, ETH_ALEN); /* DA 6byte */ in davicom_transmit() [all …]
|
H A D | sundance.c | 258 static unsigned char txb[PKT_BUF_SZ * TX_RING_SIZE]; variable 372 tx_ring[0].addr = virt_to_bus(&txb[0]); in init_ring() 429 txb[i] = 0xFF; in sundance_reset() 431 txb[0] = nic->node_addr[0]; in sundance_reset() 432 txb[1] = nic->node_addr[1]; in sundance_reset() 433 txb[2] = nic->node_addr[2]; in sundance_reset() 434 txb[3] = nic->node_addr[3]; in sundance_reset() 435 txb[4] = nic->node_addr[4]; in sundance_reset() 436 txb[5] = nic->node_addr[5]; in sundance_reset() 526 memcpy(txb, d, ETH_ALEN); in sundance_transmit() [all …]
|
H A D | natsemi.c | 208 static unsigned char txb[TX_BUF_SIZE] __attribute__ ((aligned(4))); variable 509 txd.bufptr = virt_to_bus(&txb[0]); in natsemi_init_txd() 621 memcpy(txb, d, ETH_ALEN); in natsemi_transmit() 622 memcpy(txb + ETH_ALEN, nic->node_addr, ETH_ALEN); in natsemi_transmit() 624 memcpy(txb + 2 * ETH_ALEN, (char*)&nstype, 2); in natsemi_transmit() 625 memcpy(txb + ETH_HLEN, p, s); in natsemi_transmit() 635 txb[s++] = '\0'; in natsemi_transmit() 638 txd.bufptr = virt_to_bus(&txb[0]); in natsemi_transmit()
|
H A D | r8169.c | 296 static unsigned char txb[NUM_TX_DESC * RX_BUF_SIZE]; variable 622 tpc->Tx_skbuff[i] = &txb[i]; in rtl8169_init_ring() 673 txb[i] = 0xFF; in r8169_reset() 675 txb[0] = nic->node_addr[0]; in r8169_reset() 676 txb[1] = nic->node_addr[1]; in r8169_reset() 677 txb[2] = nic->node_addr[2]; in r8169_reset() 678 txb[3] = nic->node_addr[3]; in r8169_reset() 679 txb[4] = nic->node_addr[4]; in r8169_reset() 680 txb[5] = nic->node_addr[5]; in r8169_reset()
|
H A D | sis900.c | 66 static unsigned char txb[TX_BUF_SIZE]; variable 700 txd.bufptr = virt_to_bus(&txb[0]); in sis900_init_txd() 1090 memcpy(txb, d, ETH_ALEN); in sis900_transmit() 1091 memcpy(txb + ETH_ALEN, nic->node_addr, ETH_ALEN); in sis900_transmit() 1093 memcpy(txb + 2 * ETH_ALEN, (char*)&nstype, 2); in sis900_transmit() 1094 memcpy(txb + ETH_HLEN, p, s); in sis900_transmit() 1104 txb[s++] = '\0'; in sis900_transmit() 1107 txd.bufptr = virt_to_bus(&txb[0]); in sis900_transmit()
|
H A D | tulip.c | 399 static unsigned char txb[BUFLEN] __attribute__ ((aligned(4))); variable 921 tx_ring[0].buffer1 = virt_to_le32desc(&txb[0]); in tulip_init_ring() 927 tx_ring[1].buffer1 = virt_to_le32desc(&txb[0]); in tulip_init_ring() 1020 txb[i] = 0xFF; in tulip_reset() 1021 txb[0] = nic->node_addr[0]; in tulip_reset() 1022 txb[1] = nic->node_addr[1]; in tulip_reset() 1023 txb[4] = nic->node_addr[2]; in tulip_reset() 1024 txb[5] = nic->node_addr[3]; in tulip_reset() 1025 txb[8] = nic->node_addr[4]; in tulip_reset() 1026 txb[9] = nic->node_addr[5]; in tulip_reset() [all …]
|
H A D | ns83820.c | 380 static unsigned char txb[NR_TX_DESC * REAL_RX_BUF_SIZE]; variable 731 memcpy(txb, d, ETH_ALEN); in ns83820_transmit() 732 memcpy(txb + ETH_ALEN, nic->node_addr, ETH_ALEN); in ns83820_transmit() 734 memcpy(txb + 2 * ETH_ALEN, (u8 *) & nstype, 2); in ns83820_transmit() 735 memcpy(txb + ETH_HLEN, p, s); in ns83820_transmit() 739 txb[s++] = '\0'; in ns83820_transmit() 745 tx_ring[cur_tx].bufptr = virt_to_le32desc(&txb); in ns83820_transmit()
|
H A D | forcedeth.c | 299 static unsigned char txb[TX_RING * RX_NIC_BUFSIZE]; variable 849 ptxb = txb + (nr * RX_NIC_BUFSIZE); in forcedeth_transmit()
|
H A D | pcnet32.c | 188 static unsigned char txb[PKT_BUF_SZ * TX_RING_SIZE]; variable 595 ptxb = txb + (lp->cur_tx * PKT_BUF_SZ); in pcnet32_transmit()
|
H A D | tlan.c | 199 static unsigned char txb[TLAN_MAX_FRAME_SIZE * TLAN_NUM_TX_LISTS]; variable 285 list->buffer[0].address = virt_to_bus(txb + in TLan_ResetLists() 651 tail_buffer = txb + (priv->txTail * TLAN_MAX_FRAME_SIZE); in tlan_transmit()
|
/titanic_44/usr/src/uts/common/io/mxfe/ |
H A D | mxfe.c | 1903 mxfe_txbuf_t *txb; in mxfe_alloctxbuf() local 1906 txb = kmem_zalloc(sizeof (*txb), KM_SLEEP); in mxfe_alloctxbuf() 1909 DDI_DMA_SLEEP, NULL, &txb->txb_dmah) != DDI_SUCCESS) { in mxfe_alloctxbuf() 1913 if (ddi_dma_mem_alloc(txb->txb_dmah, MXFE_BUFSZ, &mxfe_bufattr, in mxfe_alloctxbuf() 1914 DDI_DMA_STREAMING, DDI_DMA_SLEEP, NULL, &txb->txb_buf, in mxfe_alloctxbuf() 1915 &len, &txb->txb_acch) != DDI_SUCCESS) { in mxfe_alloctxbuf() 1918 if (ddi_dma_addr_bind_handle(txb->txb_dmah, NULL, txb->txb_buf, in mxfe_alloctxbuf() 1923 txb->txb_paddr = dmac.dmac_address; in mxfe_alloctxbuf() 1925 return (txb); in mxfe_alloctxbuf() 1929 mxfe_destroytxbuf(mxfe_txbuf_t *txb) in mxfe_destroytxbuf() argument [all …]
|
H A D | mxfeimpl.h | 350 #define SYNCTXBUF(txb, len, who) \ argument 351 (void) (ddi_dma_sync(txb->txb_dmah, 0, len, who))
|
/titanic_44/usr/src/uts/common/io/afe/ |
H A D | afe.c | 1557 afe_txbuf_t *txb; in afe_alloctxbuf() local 1560 txb = kmem_zalloc(sizeof (*txb), KM_SLEEP); in afe_alloctxbuf() 1563 DDI_DMA_SLEEP, NULL, &txb->txb_dmah) != DDI_SUCCESS) { in afe_alloctxbuf() 1567 if (ddi_dma_mem_alloc(txb->txb_dmah, AFE_BUFSZ, &afe_bufattr, in afe_alloctxbuf() 1568 DDI_DMA_STREAMING, DDI_DMA_SLEEP, NULL, &txb->txb_buf, &len, in afe_alloctxbuf() 1569 &txb->txb_acch) != DDI_SUCCESS) { in afe_alloctxbuf() 1572 if (ddi_dma_addr_bind_handle(txb->txb_dmah, NULL, txb->txb_buf, in afe_alloctxbuf() 1577 txb->txb_paddr = dmac.dmac_address; in afe_alloctxbuf() 1579 return (txb); in afe_alloctxbuf() 1583 afe_destroytxbuf(afe_txbuf_t *txb) in afe_destroytxbuf() argument [all …]
|
H A D | afeimpl.h | 309 #define SYNCTXBUF(txb, len, who) \ argument 310 (void) ddi_dma_sync(txb->txb_dmah, 0, len, who)
|
/titanic_44/usr/src/uts/common/io/rge/ |
H A D | rge_rxtx.c | 485 char *txb; in rge_send_copy() local 517 txb = DMA_VPTR(ssbdp->pbuf); in rge_send_copy() 524 bcopy(bp->b_rptr, txb, 2 * ETHERADDRL); in rge_send_copy() 525 txb += 2 * ETHERADDRL; in rge_send_copy() 532 txb, mblen); in rge_send_copy() 533 txb += mblen; in rge_send_copy() 541 bcopy(bp->b_rptr, txb, mblen); in rge_send_copy() 542 txb += mblen; in rge_send_copy()
|
/titanic_44/usr/src/uts/common/io/pcn/ |
H A D | pcn.c | 723 pcn_buf_t *txb; in pcn_send() local 755 txb = pcnp->pcn_txbufs[txsend]; in pcn_send() 756 mcopymsg(mp, txb->pb_buf); /* frees mp! */ in pcn_send() 760 if (txb->pb_buf[0] & 0x1) { in pcn_send() 761 if (bcmp(txb->pb_buf, pcn_broadcast, ETHERADDRL) != 0) in pcn_send() 769 SYNCBUF(txb, len, DDI_DMA_SYNC_FORDEV); in pcn_send() 771 tmd->pcn_tbaddr = txb->pb_paddr; in pcn_send() 1503 pcn_buf_t *txb = pcnp->pcn_txbufs[i]; in pcn_resetrings() local 1506 txd->pcn_tbaddr = txb->pb_paddr; in pcn_resetrings() 1622 pcn_buf_t *txb = pcn_allocbuf(pcnp); in pcn_alloctxring() local [all …]
|
/titanic_44/usr/src/uts/common/io/nge/ |
H A D | nge_tx.c | 359 char *txb; in nge_send_copy() local 387 txb = DMA_VPTR(ssbdp->pbuf); in nge_send_copy() 393 bcopy(bp->b_rptr, txb, mblen); in nge_send_copy() 394 txb += mblen; in nge_send_copy()
|
/titanic_44/usr/src/uts/common/io/dmfe/ |
H A D | dmfe_main.c | 1009 char *txb; in dmfe_send_msg() local 1091 txb = &dmfep->tx_buff.mem_va[index*DMFE_BUF_SIZE]; in dmfe_send_msg() 1101 bcopy(bp->b_rptr, txb, mblen); in dmfe_send_msg() 1102 txb += mblen; in dmfe_send_msg() 1111 txb = &dmfep->tx_buff.mem_va[index*DMFE_BUF_SIZE]; in dmfe_send_msg() 1112 if (txb[0] & 0x1) { in dmfe_send_msg() 1113 if (bcmp(txb, dmfe_broadcast_addr, ETHERADDRL) == 0) { in dmfe_send_msg()
|
/titanic_44/usr/src/uts/common/io/ntxn/ |
H A D | unm_nic_main.c | 774 char *txb; in unm_send_copy() local 805 txb = pbuf->dma_area.vaddr; in unm_send_copy() 810 bcopy(bp->b_rptr, txb, mblen); in unm_send_copy() 811 txb += mblen; in unm_send_copy()
|
/titanic_44/usr/src/uts/common/io/yge/ |
H A D | yge.c | 1666 yge_buf_t *txb; in yge_send() local 1690 txb = &port->p_tx_buf[prod]; in yge_send() 1691 mcopymsg(mp, txb->b_buf); in yge_send() 1692 SYNCBUF(txb, DDI_DMA_SYNC_FORDEV); in yge_send() 1694 PUTADDR(ring, prod, txb->b_paddr); in yge_send()
|