/illumos-gate/usr/src/uts/common/io/cxgbe/shared/ |
H A D | shared.c | 75 struct rxbuf *rxb; in rxbuf_alloc() local 80 if (rxb != NULL) { in rxbuf_alloc() 81 rxb->ref_cnt = ref_cnt; in rxbuf_alloc() 82 rxb->cache = cache; in rxbuf_alloc() 85 return (rxb); in rxbuf_alloc() 96 kmem_cache_free(rxb->cache, rxb); in rxbuf_free() 116 &rxb->dhdl); in rxbuf_ctor() 121 DDI_DMA_STREAMING, callback, 0, &rxb->va, &real_len, &rxb->ahdl); in rxbuf_ctor() 127 rc = ddi_dma_addr_bind_handle(rxb->dhdl, NULL, rxb->va, p->buf_size, in rxbuf_ctor() 144 rxb->ref_cnt = 0; in rxbuf_ctor() [all …]
|
H A D | shared.h | 73 void rxbuf_free(struct rxbuf *rxb);
|
/illumos-gate/usr/src/uts/common/io/afe/ |
H A D | afe.c | 1599 afe_rxbuf_t *rxb; in afe_allocrxbuf() local 1604 rxb = kmem_zalloc(sizeof (*rxb), KM_SLEEP); in afe_allocrxbuf() 1608 kmem_free(rxb, sizeof (*rxb)); in afe_allocrxbuf() 1615 kmem_free(rxb, sizeof (*rxb)); in afe_allocrxbuf() 1618 if (ddi_dma_addr_bind_handle(rxb->rxb_dmah, NULL, rxb->rxb_buf, len, in afe_allocrxbuf() 1623 kmem_free(rxb, sizeof (*rxb)); in afe_allocrxbuf() 1628 return (rxb); in afe_allocrxbuf() 1634 if (rxb) { in afe_destroyrxbuf() 1638 kmem_free(rxb, sizeof (*rxb)); in afe_destroyrxbuf() 1698 if (rxb == NULL) in afe_allocrxring() [all …]
|
H A D | afeimpl.h | 316 #define SYNCRXBUF(rxb, len, who) \ argument 317 (void) ddi_dma_sync(rxb->rxb_dmah, 0, len, who)
|
/illumos-gate/usr/src/uts/common/io/mxfe/ |
H A D | mxfe.c | 1950 rxb = kmem_zalloc(sizeof (*rxb), KM_SLEEP); in mxfe_allocrxbuf() 1954 kmem_free(rxb, sizeof (*rxb)); in mxfe_allocrxbuf() 1959 &rxb->rxb_buf, &len, &rxb->rxb_acch) != DDI_SUCCESS) { in mxfe_allocrxbuf() 1961 kmem_free(rxb, sizeof (*rxb)); in mxfe_allocrxbuf() 1964 if (ddi_dma_addr_bind_handle(rxb->rxb_dmah, NULL, rxb->rxb_buf, len, in mxfe_allocrxbuf() 1969 kmem_free(rxb, sizeof (*rxb)); in mxfe_allocrxbuf() 1974 return (rxb); in mxfe_allocrxbuf() 1980 if (rxb != NULL) { in mxfe_destroyrxbuf() 1984 kmem_free(rxb, sizeof (*rxb)); in mxfe_destroyrxbuf() 2044 if (rxb == NULL) in mxfe_allocrxring() [all …]
|
H A D | mxfeimpl.h | 357 #define SYNCRXBUF(rxb, len, who) \ argument 358 (void) (ddi_dma_sync(rxb->rxb_dmah, 0, len, who))
|
/illumos-gate/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 | 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 | 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 | 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()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_sge.c | 2222 if (sd->rxb != NULL) { in refill_fl() 2223 if (sd->rxb->ref_cnt == 1) { in refill_fl() 2250 rxbuf_free(sd->rxb); in refill_fl() 2255 if (sd->rxb == NULL) in refill_fl() 2335 if (sd->rxb != NULL) { in free_fl_bufs() 2336 rxbuf_free(sd->rxb); in free_fl_bufs() 2337 sd->rxb = NULL; in free_fl_bufs() 2350 struct rxbuf *rxb; in get_fl_payload() local 2387 rxb = fl->sdesc[cidx].rxb; in get_fl_payload() 2397 BPRI_HI, &rxb->freefunc); in get_fl_payload() [all …]
|
H A D | adapter.h | 150 struct rxbuf *rxb; member
|
/illumos-gate/usr/src/uts/common/io/iprb/ |
H A D | iprb.c | 369 if (iprb_dma_alloc(ip, &ip->rxb[i], RFD_SIZE) != DDI_SUCCESS) { in iprb_attach() 512 iprb_dma_free(&ip->rxb[i]); in iprb_destroy() 998 PUT32(ip, CSR_GEN_PTR, ip->rxb[0].paddr); in iprb_start() 1133 lfd = &ip->rxb[last]; in iprb_rx_add() 1134 rfd = &ip->rxb[curr]; in iprb_rx_add() 1135 nfd = &ip->rxb[next]; in iprb_rx_add() 1173 rfd = &ip->rxb[ip->rx_index]; in iprb_rx() 1629 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
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb2_dispatch.c | 431 int64_t rxb; in smb2_record_stats() local 435 rxb = (int64_t)(sr->command.chain_offset - sr->smb2_cmd_hdr); in smb2_record_stats() 441 atomic_add_64(&sds->sdt_rxb, rxb); in smb2_record_stats()
|
/illumos-gate/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()
|
/illumos-gate/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()
|