Home
last modified time | relevance | path

Searched refs:rx_buff (Results 1 – 18 of 18) sorted by relevance

/drivers/net/ethernet/arc/
Demac_main.c182 struct buffer_state *rx_buff = &priv->rx_buff[*last_rx_bd]; in arc_emac_rx() local
240 dma_unmap_single(&ndev->dev, dma_unmap_addr(rx_buff, addr), in arc_emac_rx()
241 dma_unmap_len(rx_buff, len), DMA_FROM_DEVICE); in arc_emac_rx()
246 skb_put(rx_buff->skb, pktlen); in arc_emac_rx()
247 rx_buff->skb->dev = ndev; in arc_emac_rx()
248 rx_buff->skb->protocol = eth_type_trans(rx_buff->skb, ndev); in arc_emac_rx()
250 netif_receive_skb(rx_buff->skb); in arc_emac_rx()
252 rx_buff->skb = skb; in arc_emac_rx()
253 dma_unmap_addr_set(rx_buff, addr, addr); in arc_emac_rx()
254 dma_unmap_len_set(rx_buff, len, EMAC_BUFFER_SIZE); in arc_emac_rx()
[all …]
Demac.h151 struct buffer_state rx_buff[RX_BD_NUM]; member
/drivers/net/ethernet/
Dlantiq_xrx200.c69 void *rx_buff[LTQ_DESC_NUM]; member
189 void *buf = ch->rx_buff[ch->dma.desc]; in xrx200_alloc_buf()
194 ch->rx_buff[ch->dma.desc] = alloc(priv->rx_skb_size); in xrx200_alloc_buf()
195 if (!ch->rx_buff[ch->dma.desc]) { in xrx200_alloc_buf()
196 ch->rx_buff[ch->dma.desc] = buf; in xrx200_alloc_buf()
201 mapping = dma_map_single(priv->dev, ch->rx_buff[ch->dma.desc], in xrx200_alloc_buf()
204 skb_free_frag(ch->rx_buff[ch->dma.desc]); in xrx200_alloc_buf()
205 ch->rx_buff[ch->dma.desc] = buf; in xrx200_alloc_buf()
224 void *buf = ch->rx_buff[ch->dma.desc]; in xrx200_hw_receive()
440 buff = ch_rx->rx_buff[ch_rx->dma.desc]; in xrx200_change_mtu()
[all …]
/drivers/net/ethernet/amd/
Dariadne.c91 volatile u_short *rx_buff[RX_RING_SIZE]; member
103 u_short rx_buff[RX_RING_SIZE][PKT_BUF_SIZE / sizeof(u_short)]; member
148 offsetof(struct lancedata, rx_buff[i])); in ariadne_init_ring()
150 offsetof(struct lancedata, rx_buff[i])) | in ariadne_init_ring()
155 priv->rx_buff[i] = lancedata->rx_buff[i]; in ariadne_init_ring()
157 i, &lancedata->rx_ring[i], lancedata->rx_buff[i]); in ariadne_init_ring()
213 (const void *)priv->rx_buff[entry], in ariadne_rx()
Dlance.c875 void *rx_buff; in lance_init_ring() local
880 rx_buff = skb->data; in lance_init_ring()
882 rx_buff = kmalloc(PKT_BUF_SZ, GFP_DMA | gfp); in lance_init_ring()
883 if (!rx_buff) in lance_init_ring()
886 lp->rx_ring[i].base = (u32)isa_virt_to_bus(rx_buff) | 0x80000000; in lance_init_ring()
/drivers/mailbox/
Dti-msgmgr.c117 u32 *rx_buff; member
211 message.buf = (u8 *)qinst->rx_buff; in ti_msgmgr_queue_rx_data()
227 for (data_reg = qinst->queue_buff_start, word_data = qinst->rx_buff, in ti_msgmgr_queue_rx_data()
537 qinst->rx_buff = kzalloc(d->max_message_size, GFP_KERNEL); in ti_msgmgr_queue_startup()
538 if (!qinst->rx_buff) in ti_msgmgr_queue_startup()
543 kfree(qinst->rx_buff); in ti_msgmgr_queue_startup()
561 kfree(qinst->rx_buff); in ti_msgmgr_queue_shutdown()
/drivers/net/ethernet/ibm/
Dibmvnic.c604 skb = pool->rx_buff[bufidx].skb; in replenish_rx_pool()
625 pool->rx_buff[bufidx].data = dst; in replenish_rx_pool()
626 pool->rx_buff[bufidx].dma = dma_addr; in replenish_rx_pool()
627 pool->rx_buff[bufidx].skb = skb; in replenish_rx_pool()
628 pool->rx_buff[bufidx].pool_index = pool->index; in replenish_rx_pool()
629 pool->rx_buff[bufidx].size = pool->buff_size; in replenish_rx_pool()
636 cpu_to_be64((u64)&pool->rx_buff[bufidx]); in replenish_rx_pool()
671 struct ibmvnic_rx_buff *rx_buff; in replenish_rx_pool() local
676 rx_buff = (struct ibmvnic_rx_buff *) in replenish_rx_pool()
678 bufidx = (int)(rx_buff - pool->rx_buff); in replenish_rx_pool()
[all …]
Dibmvnic.h868 struct ibmvnic_rx_buff *rx_buff; member
/drivers/spi/
Dspi-tle62x0.c33 unsigned char rx_buff[4]; member
62 .rx_buf = st->rx_buff, in tle62x0_read()
101 unsigned char *buff = st->rx_buff; in tle62x0_status_show()
/drivers/isdn/mISDN/
Ddsp_cmx.c247 memset(dsp->rx_buff, dsp_silence, sizeof(dsp->rx_buff)); in dsp_cmx_add_conf_member()
1255 memset(dsp->rx_buff, dsp_silence, sizeof(dsp->rx_buff)); in dsp_cmx_receive()
1276 memset(dsp->rx_buff, dsp_silence, sizeof(dsp->rx_buff)); in dsp_cmx_receive()
1288 d = dsp->rx_buff; in dsp_cmx_receive()
1369 q = dsp->rx_buff; /* received data */
1465 o_q = other->rx_buff; /* received data */
1715 q = dsp->rx_buff;
1738 p = dsp->rx_buff;
Ddsp.h205 u8 rx_buff[CMX_BUFF_SIZE]; member
Ddsp_core.c842 memset(dsp->rx_buff, 0, sizeof(dsp->rx_buff)); in dsp_function()
/drivers/s390/net/
Dnetiucv.c142 struct sk_buff *rx_buff; member
652 conn->rx_buff->data = conn->rx_buff->head; in conn_action_rx()
653 skb_reset_tail_pointer(conn->rx_buff); in conn_action_rx()
654 conn->rx_buff->len = 0; in conn_action_rx()
655 rc = iucv_message_receive(conn->path, msg, 0, conn->rx_buff->data, in conn_action_rx()
662 netiucv_unpack_skb(conn, conn->rx_buff); in conn_action_rx()
1756 conn->rx_buff = alloc_skb(conn->max_buffsize, GFP_KERNEL | GFP_DMA); in netiucv_new_connection()
1757 if (!conn->rx_buff) in netiucv_new_connection()
1787 kfree_skb(conn->rx_buff); in netiucv_new_connection()
1814 kfree_skb(conn->rx_buff); in netiucv_remove_connection()
/drivers/net/hamradio/
Dscc.c350 if(scc->rx_buff != NULL) /* did we receive something? */ in flush_rx_FIFO()
353 dev_kfree_skb_irq(scc->rx_buff); in flush_rx_FIFO()
354 scc->rx_buff = NULL; in flush_rx_FIFO()
531 skb = scc->rx_buff; in scc_rxint()
545 scc->rx_buff = skb; in scc_rxint()
555 scc->rx_buff = NULL; in scc_rxint()
576 skb = scc->rx_buff; in scc_spint()
585 scc->rx_buff = skb = NULL; in scc_spint()
597 scc->rx_buff = NULL; in scc_spint()
601 scc->rx_buff = NULL; in scc_spint()
/drivers/net/wireless/ath/wil6210/
Dtxrx_edma.c160 struct wil_rx_buff *rx_buff; in wil_ring_alloc_skb_edma() local
191 rx_buff = list_first_entry(free, struct wil_rx_buff, list); in wil_ring_alloc_skb_edma()
192 buff_id = rx_buff->id; in wil_ring_alloc_skb_edma()
195 list_move(&rx_buff->list, active); in wil_ring_alloc_skb_edma()
274 struct wil_rx_buff *rx_buff = in wil_move_all_rx_buff_to_free_list() local
276 struct sk_buff *skb = rx_buff->skb; in wil_move_all_rx_buff_to_free_list()
279 wil_err(wil, "No Rx skb at buff_id %d\n", rx_buff->id); in wil_move_all_rx_buff_to_free_list()
281 rx_buff->skb = NULL; in wil_move_all_rx_buff_to_free_list()
289 list_move(&rx_buff->list, &wil->rx_buff_mgmt.free); in wil_move_all_rx_buff_to_free_list()
/drivers/net/ethernet/freescale/
Dgianfar.c1101 struct gfar_rx_buff *rxb = &rx_queue->rx_buff[i]; in free_skb_rx_queue()
1117 kfree(rx_queue->rx_buff); in free_skb_rx_queue()
1118 rx_queue->rx_buff = NULL; in free_skb_rx_queue()
1143 if (rx_queue->rx_buff) in free_skb_resources()
1252 rxb = &rx_queue->rx_buff[i]; in gfar_alloc_rx_buffs()
1274 rxb = rx_queue->rx_buff; in gfar_alloc_rx_buffs()
1398 rx_queue->rx_buff = kcalloc(rx_queue->rx_ring_size, in gfar_alloc_skb_resources()
1399 sizeof(*rx_queue->rx_buff), in gfar_alloc_skb_resources()
1401 if (!rx_queue->rx_buff) in gfar_alloc_skb_resources()
2389 new_rxb = &rxq->rx_buff[nta]; in gfar_reuse_rx_page()
[all …]
Dgianfar.h1051 struct gfar_rx_buff *rx_buff __aligned(SMP_CACHE_BYTES);
/drivers/ntb/
Dntb_transport.c167 void *rx_buff; member
501 "rx_buff - \t0x%p\n", qp->rx_buff); in debugfs_read()
640 qp->rx_buff = mw->virt_addr + rx_size * (qp_num / mw_count); in ntb_transport_setup_qp_mw()
643 qp->remote_rx_info = qp->rx_buff + rx_size; in ntb_transport_setup_qp_mw()
671 void *offset = (qp->rx_buff + qp->rx_max_frame * (i + 1) - in ntb_transport_setup_qp_mw()
1495 void *offset = qp->rx_buff + qp->rx_max_frame * in ntb_rx_copy_callback()
1627 offset = qp->rx_buff + qp->rx_max_frame * qp->rx_index; in ntb_process_rxc()