/titanic_41/usr/src/uts/common/io/cxgbe/shared/ |
H A D | shared.c | 73 struct rxbuf *rxb; in rxbuf_alloc() local 77 rxb = kmem_cache_alloc(cache, kmflags); in rxbuf_alloc() 78 if (rxb != NULL) { in rxbuf_alloc() 79 rxb->ref_cnt = ref_cnt; in rxbuf_alloc() 80 rxb->cache = cache; in rxbuf_alloc() 83 return (rxb); in rxbuf_alloc() 91 rxbuf_free(struct rxbuf *rxb) in rxbuf_free() argument 93 if (atomic_dec_uint_nv(&rxb->ref_cnt) == 0) in rxbuf_free() 94 kmem_cache_free(rxb->cache, rxb); in rxbuf_free() 100 struct rxbuf *rxb = arg1; in rxbuf_ctor() local [all …]
|
H A D | shared.h | 73 void rxbuf_free(struct rxbuf *rxb);
|
/titanic_41/usr/src/uts/common/io/afe/ |
H A D | afe.c | 1502 afe_rxbuf_t *rxb = afep->afe_rxbufs[i]; in afe_resetrings() local 1510 PUTRXDESC(afep, rmdp->desc_buffer1, rxb->rxb_paddr); in afe_resetrings() 1599 afe_rxbuf_t *rxb; in afe_allocrxbuf() local 1604 rxb = kmem_zalloc(sizeof (*rxb), KM_SLEEP); in afe_allocrxbuf() 1607 DDI_DMA_SLEEP, NULL, &rxb->rxb_dmah) != DDI_SUCCESS) { in afe_allocrxbuf() 1608 kmem_free(rxb, sizeof (*rxb)); in afe_allocrxbuf() 1611 if (ddi_dma_mem_alloc(rxb->rxb_dmah, AFE_BUFSZ, &afe_bufattr, in afe_allocrxbuf() 1612 DDI_DMA_STREAMING, DDI_DMA_SLEEP, NULL, &rxb->rxb_buf, &len, in afe_allocrxbuf() 1613 &rxb->rxb_acch) != DDI_SUCCESS) { in afe_allocrxbuf() 1614 ddi_dma_free_handle(&rxb->rxb_dmah); in afe_allocrxbuf() [all …]
|
H A D | afeimpl.h | 316 #define SYNCRXBUF(rxb, len, who) \ argument 317 (void) ddi_dma_sync(rxb->rxb_dmah, 0, len, who)
|
/titanic_41/usr/src/uts/common/io/mxfe/ |
H A D | mxfe.c | 1839 mxfe_rxbuf_t *rxb = mxfep->mxfe_rxbufs[i]; in mxfe_resetrings() local 1847 PUTRXDESC(mxfep, rmdp->desc_buffer1, rxb->rxb_paddr); in mxfe_resetrings() 1945 mxfe_rxbuf_t *rxb; in mxfe_allocrxbuf() local 1950 rxb = kmem_zalloc(sizeof (*rxb), KM_SLEEP); in mxfe_allocrxbuf() 1953 DDI_DMA_SLEEP, NULL, &rxb->rxb_dmah) != DDI_SUCCESS) { in mxfe_allocrxbuf() 1954 kmem_free(rxb, sizeof (*rxb)); in mxfe_allocrxbuf() 1957 if (ddi_dma_mem_alloc(rxb->rxb_dmah, MXFE_BUFSZ, &mxfe_bufattr, in mxfe_allocrxbuf() 1959 &rxb->rxb_buf, &len, &rxb->rxb_acch) != DDI_SUCCESS) { in mxfe_allocrxbuf() 1960 ddi_dma_free_handle(&rxb->rxb_dmah); in mxfe_allocrxbuf() 1961 kmem_free(rxb, sizeof (*rxb)); in mxfe_allocrxbuf() [all …]
|
H A D | mxfeimpl.h | 357 #define SYNCRXBUF(rxb, len, who) \ argument 358 (void) (ddi_dma_sync(rxb->rxb_dmah, 0, len, who))
|
/titanic_41/usr/src/grub/grub-0.97/netboot/ |
H A D | natsemi.c | 209 static unsigned char rxb[NUM_RX_DESC * RX_BUF_SIZE] __attribute__ ((aligned(4))); variable 538 rxd[i].bufptr = virt_to_bus(&rxb[i*RX_BUF_SIZE]); in natsemi_init_rxd() 702 memcpy(nic->packet, (rxb + cur_rx*RX_BUF_SIZE), nic->packetlen); in natsemi_poll() 708 rxd[cur_rx].bufptr = virt_to_bus(&rxb[cur_rx*RX_BUF_SIZE]); in natsemi_poll()
|
H A D | davicom.c | 146 static unsigned char rxb[NRXD * BUFLEN] __attribute__ ((aligned(4))); variable 456 rxd[i].buf1addr = (void *)virt_to_bus(&rxb[i * BUFLEN]); in davicom_init_chain() 605 memcpy(nic->packet, rxb + rxd_tail * BUFLEN, nic->packetlen); in davicom_poll()
|
H A D | sis900.c | 67 static unsigned char rxb[NUM_RX_DESC * RX_BUF_SIZE]; variable 729 rxd[i].bufptr = virt_to_bus(&rxb[i*RX_BUF_SIZE]); in sis900_init_rxd() 1174 memcpy(nic->packet, (rxb + cur_rx*RX_BUF_SIZE), nic->packetlen); in sis900_poll() 1180 rxd[cur_rx].bufptr = virt_to_bus(&rxb[cur_rx*RX_BUF_SIZE]); in sis900_poll()
|
H A D | sundance.c | 265 static unsigned char rxb[RX_RING_SIZE * PKT_BUF_SZ]; variable 364 rx_ring[i].addr = virt_to_le32desc(&rxb[i * PKT_BUF_SZ]); in init_ring() 498 memcpy(nic->packet, rxb + in sundance_poll()
|
H A D | ns83820.c | 389 static unsigned char rxb[NR_RX_DESC * REAL_RX_BUF_SIZE] variable 516 virt_to_le32desc(&rxb[i * REAL_RX_BUF_SIZE]); in ns83820_setup_rx() 695 rxb + (entry * REAL_RX_BUF_SIZE), in ns83820_poll()
|
H A D | forcedeth.c | 307 static unsigned char rxb[RX_RING * RX_NIC_BUFSIZE]; variable 531 virt_to_le32desc(&rxb[i * RX_NIC_BUFSIZE]); in alloc_rx() 823 memcpy(nic->packet, rxb + in forcedeth_poll()
|
H A D | pcnet32.c | 194 static unsigned char rxb[RX_RING_SIZE * PKT_BUF_SZ]; variable 412 rx_ring[i].base = (u32) virt_to_le32desc(&rxb[i]); in pcnet32_init_ring() 562 memcpy(nic->packet, &rxb[entry], nic->packetlen); in pcnet32_poll()
|
H A D | r8169.c | 304 static unsigned char rxb[NUM_RX_DESC * RX_BUF_SIZE]; variable 632 tpc->RxBufferRing[i] = &rxb[i * RX_BUF_SIZE]; in rtl8169_init_ring()
|
H A D | tlan.c | 202 static unsigned char rxb[TLAN_MAX_FRAME_SIZE * TLAN_NUM_RX_LISTS]; variable 305 virt_to_le32desc(&rxb[i * TLAN_MAX_FRAME_SIZE]); in TLan_ResetLists() 562 memcpy(nic->packet, rxb + in tlan_poll()
|
H A D | tulip.c | 403 static unsigned char rxb[RX_RING_SIZE * BUFLEN] __attribute__ ((aligned(4))); variable 910 rx_ring[i].buffer1 = virt_to_le32desc(&rxb[i * BUFLEN]); in tulip_init_ring() 1158 memcpy(nic->packet, rxb + tp->cur_rx * BUFLEN, nic->packetlen); in tulip_poll()
|
/titanic_41/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_sge.c | 1937 if (sd->rxb != NULL) { in refill_fl() 1938 if (sd->rxb->ref_cnt == 1) { in refill_fl() 1956 ASSERT(*d == cpu_to_be64(sd->rxb->ba)); in refill_fl() 1965 rxbuf_free(sd->rxb); in refill_fl() 1969 sd->rxb = rxbuf_alloc(sc->sge.rxbuf_cache, KM_NOSLEEP, 1); in refill_fl() 1970 if (sd->rxb == NULL) in refill_fl() 1972 *d++ = cpu_to_be64(sd->rxb->ba); in refill_fl() 2050 if (sd->rxb != NULL) { in free_fl_bufs() 2051 rxbuf_free(sd->rxb); in free_fl_bufs() 2052 sd->rxb = NULL; in free_fl_bufs() [all …]
|
H A D | adapter.h | 127 struct rxbuf *rxb; member
|
/titanic_41/usr/src/uts/common/io/pcn/ |
H A D | pcn.c | 892 pcn_buf_t *rxb; in pcn_receive() local 903 rxb = pcnp->pcn_rxbufs[head]; in pcn_receive() 931 SYNCBUF(rxb, len, DDI_DMA_SYNC_FORKERNEL); in pcn_receive() 934 bcopy((char *)rxb->pb_buf, mp->b_rptr, len); in pcn_receive() 1490 pcn_buf_t *rxb = pcnp->pcn_rxbufs[i]; in pcn_resetrings() local 1493 rmd->pcn_rbaddr = rxb->pb_paddr; in pcn_resetrings() 1679 pcn_buf_t *rxb = pcn_allocbuf(pcnp); in pcn_allocrxring() local 1680 if (rxb == NULL) in pcn_allocrxring() 1682 pcnp->pcn_rxbufs[i] = rxb; in pcn_allocrxring()
|
/titanic_41/usr/src/uts/common/io/iprb/ |
H A D | iprb.c | 367 if (iprb_dma_alloc(ip, &ip->rxb[i], RFD_SIZE) != DDI_SUCCESS) { in iprb_attach() 510 iprb_dma_free(&ip->rxb[i]); in iprb_destroy() 996 PUT32(ip, CSR_GEN_PTR, ip->rxb[0].paddr); in iprb_start() 1131 lfd = &ip->rxb[last]; in iprb_rx_add() 1132 rfd = &ip->rxb[curr]; in iprb_rx_add() 1133 nfd = &ip->rxb[next]; in iprb_rx_add() 1171 rfd = &ip->rxb[ip->rx_index]; in iprb_rx() 1627 PUT32(ip, CSR_GEN_PTR, ip->rxb[0].paddr); in iprb_intr()
|
H A D | iprb.h | 74 iprb_dma_t rxb[NUM_RX]; member
|
/titanic_41/usr/src/uts/common/io/dmfe/ |
H A D | dmfe_main.c | 614 char *rxb; in dmfe_getp() local 699 rxb = &dmfep->rx_buff.mem_va[index*DMFE_BUF_SIZE]; in dmfe_getp() 730 if (bcmp(rxb, dmfe_broadcast_addr, ETHERADDRL)) { in dmfe_getp() 747 bcopy(rxb, dp, packet_length); in dmfe_getp()
|
/titanic_41/usr/src/uts/common/io/yge/ |
H A D | yge.c | 491 yge_buf_t *rxb; in yge_init_rx_ring() local 504 rxb = &port->p_rx_buf[prod]; in yge_init_rx_ring() 506 PUTADDR(ring, prod, rxb->b_paddr); in yge_init_rx_ring() 1816 yge_buf_t *rxb; in yge_rxeof() local 1827 rxb = &port->p_rx_buf[cons]; in yge_rxeof() 1853 SYNCBUF(rxb, DDI_DMA_SYNC_FORKERNEL); in yge_rxeof() 1854 bcopy(rxb->b_buf, mp->b_rptr, len); in yge_rxeof()
|