Home
last modified time | relevance | path

Searched refs:rx_buf_sz (Results 1 – 25 of 39) sorted by relevance

12

/linux-6.12.1/drivers/net/ethernet/sis/
Dsis190.c270 u32 rx_buf_sz; member
461 static inline void sis190_give_to_asic(struct RxDesc *desc, u32 rx_buf_sz) in sis190_give_to_asic() argument
466 desc->size = cpu_to_le32((rx_buf_sz & RX_BUF_MASK) | eor); in sis190_give_to_asic()
472 u32 rx_buf_sz) in sis190_map_to_asic() argument
475 sis190_give_to_asic(desc, rx_buf_sz); in sis190_map_to_asic()
490 u32 rx_buf_sz = tp->rx_buf_sz; in sis190_alloc_rx_skb() local
494 skb = netdev_alloc_skb(tp->dev, rx_buf_sz); in sis190_alloc_rx_skb()
497 mapping = dma_map_single(&tp->pci_dev->dev, skb->data, tp->rx_buf_sz, in sis190_alloc_rx_skb()
501 sis190_map_to_asic(desc, mapping, rx_buf_sz); in sis190_alloc_rx_skb()
545 dma_sync_single_for_cpu(&tp->pci_dev->dev, addr, tp->rx_buf_sz, in sis190_try_rx_copy()
[all …]
/linux-6.12.1/drivers/net/ethernet/packetengines/
Dhamachi.c496 unsigned int rx_buf_sz; /* Based on MTU+slack. */ member
1127 hmp->rx_buf_sz, DMA_FROM_DEVICE); in hamachi_tx_timeout()
1136 skb = netdev_alloc_skb_ip_align(dev, hmp->rx_buf_sz); in hamachi_tx_timeout()
1143 hmp->rx_buf_sz, in hamachi_tx_timeout()
1146 DescEndPacket | DescIntr | (hmp->rx_buf_sz - 2)); in hamachi_tx_timeout()
1180 hmp->rx_buf_sz = (dev->mtu <= 1492 ? PKT_BUF_SZ : in hamachi_init_ring()
1190 struct sk_buff *skb = netdev_alloc_skb(dev, hmp->rx_buf_sz + 2); in hamachi_init_ring()
1197 hmp->rx_buf_sz, in hamachi_init_ring()
1201 DescEndPacket | DescIntr | (hmp->rx_buf_sz -2)); in hamachi_init_ring()
1431 hmp->rx_buf_sz, DMA_FROM_DEVICE); in hamachi_rx()
[all …]
Dyellowfin.c324 unsigned int rx_buf_sz; /* Based on MTU+slack. */ member
735 yp->rx_buf_sz = (dev->mtu <= 1500 ? PKT_BUF_SZ : dev->mtu + 32); in yellowfin_init_ring()
739 cpu_to_le32(CMD_RX_BUF | INTR_ALWAYS | yp->rx_buf_sz); in yellowfin_init_ring()
745 struct sk_buff *skb = netdev_alloc_skb(dev, yp->rx_buf_sz + 2); in yellowfin_init_ring()
752 yp->rx_buf_sz, in yellowfin_init_ring()
1072 yp->rx_buf_sz, DMA_FROM_DEVICE); in yellowfin_rx()
1139 yp->rx_buf_sz, in yellowfin_rx()
1151 yp->rx_buf_sz, in yellowfin_rx()
1166 struct sk_buff *skb = netdev_alloc_skb(dev, yp->rx_buf_sz + 2); in yellowfin_rx()
1173 yp->rx_buf_sz, in yellowfin_rx()
[all …]
/linux-6.12.1/drivers/net/ethernet/dlink/
Ddl2k.c485 np->rx_buf_sz = (dev->mtu <= 1500 ? PACKET_SIZE : dev->mtu + 32); in alloc_list()
500 skb = netdev_alloc_skb_ip_align(dev, np->rx_buf_sz); in alloc_list()
513 np->rx_buf_sz, DMA_FROM_DEVICE)); in alloc_list()
514 np->rx_ring[i].fraginfo |= cpu_to_le64((u64)np->rx_buf_sz << 48); in alloc_list()
668 np->rx_buf_sz); in rio_timer()
679 np->rx_buf_sz, DMA_FROM_DEVICE)); in rio_timer()
682 cpu_to_le64((u64)np->rx_buf_sz << 48); in rio_timer()
953 np->rx_buf_sz, in receive_packet()
960 np->rx_buf_sz, in receive_packet()
968 np->rx_buf_sz, in receive_packet()
[all …]
Dsundance.c389 unsigned int rx_buf_sz; /* Based on MTU+slack. */ member
1023 np->rx_buf_sz = (dev->mtu <= 1520 ? PKT_BUF_SZ : dev->mtu + 16); in init_ring()
1037 netdev_alloc_skb(dev, np->rx_buf_sz + 2); in init_ring()
1044 np->rx_buf_sz, DMA_FROM_DEVICE)); in init_ring()
1051 np->rx_ring[i].frag.length = cpu_to_le32(np->rx_buf_sz | LastFrag); in init_ring()
1376 np->rx_buf_sz, DMA_FROM_DEVICE); in rx_poll()
1380 np->rx_buf_sz, DMA_FROM_DEVICE); in rx_poll()
1385 np->rx_buf_sz, DMA_FROM_DEVICE); in rx_poll()
1424 skb = netdev_alloc_skb(dev, np->rx_buf_sz + 2); in refill_rx()
1431 np->rx_buf_sz, DMA_FROM_DEVICE)); in refill_rx()
[all …]
Ddl2k.h377 unsigned int rx_buf_sz; /* Based on MTU+slack. */ member
/linux-6.12.1/drivers/net/ethernet/smsc/
Depic100.c271 unsigned int rx_buf_sz; /* Based on MTU+slack. */ member
907 ep->rx_buf_sz = (dev->mtu <= 1500 ? PKT_BUF_SZ : dev->mtu + 32); in epic_init_ring()
912 ep->rx_ring[i].buflength = ep->rx_buf_sz; in epic_init_ring()
922 struct sk_buff *skb = netdev_alloc_skb(dev, ep->rx_buf_sz + 2); in epic_init_ring()
929 ep->rx_buf_sz, in epic_init_ring()
1193 ep->rx_buf_sz, in epic_rx()
1199 ep->rx_buf_sz, in epic_rx()
1204 ep->rx_buf_sz, in epic_rx()
1223 skb = ep->rx_skbuff[entry] = netdev_alloc_skb(dev, ep->rx_buf_sz + 2); in epic_rx()
1229 ep->rx_buf_sz, in epic_rx()
[all …]
/linux-6.12.1/drivers/net/ethernet/
Dfealnx.c400 unsigned int rx_buf_sz; /* Based on MTU+slack. */ member
1057 skb = netdev_alloc_skb(dev, np->rx_buf_sz); in allocate_rx_buffers()
1067 np->rx_buf_sz, in allocate_rx_buffers()
1232 np->rx_buf_sz = (dev->mtu <= 1500 ? PKT_BUF_SZ : dev->mtu + 32); in init_ring()
1240 np->rx_ring[i].control = np->rx_buf_sz << RBSShift; in init_ring()
1253 struct sk_buff *skb = netdev_alloc_skb(dev, np->rx_buf_sz); in init_ring()
1264 np->rx_buf_sz, in init_ring()
1702 np->rx_buf_sz, in netdev_rx()
1716 np->rx_buf_sz, in netdev_rx()
1721 np->rx_buf_sz, in netdev_rx()
[all …]
/linux-6.12.1/drivers/staging/vt6655/
Dcard.c444 pDesc->rd0.res_count = cpu_to_le16(priv->rx_buf_sz); in CARDvSafeResetRx()
446 pDesc->rd1.req_count = cpu_to_le16(priv->rx_buf_sz); in CARDvSafeResetRx()
452 pDesc->rd0.res_count = cpu_to_le16(priv->rx_buf_sz); in CARDvSafeResetRx()
454 pDesc->rd1.req_count = cpu_to_le16(priv->rx_buf_sz); in CARDvSafeResetRx()
Ddevice.h149 u32 rx_buf_sz; member
Ddpc.c127 priv->rx_buf_sz, DMA_FROM_DEVICE); in vnt_receive_frame()
Ddevice_main.c855 rd_info->skb = dev_alloc_skb((int)priv->rx_buf_sz); in device_alloc_rx_buf()
862 priv->rx_buf_sz, DMA_FROM_DEVICE); in device_alloc_rx_buf()
871 rd->rd0.res_count = cpu_to_le16(priv->rx_buf_sz); in device_alloc_rx_buf()
873 rd->rd1.req_count = cpu_to_le16(priv->rx_buf_sz); in device_alloc_rx_buf()
885 priv->rx_buf_sz, DMA_FROM_DEVICE); in device_free_rx_buf()
1295 priv->rx_buf_sz = PKT_BUF_SZ; in vnt_start()
/linux-6.12.1/drivers/net/ethernet/realtek/
D8139cp.c347 unsigned rx_buf_sz; member
413 cp->rx_buf_sz = mtu + ETH_HLEN + 8; in cp_set_rxbufsize()
415 cp->rx_buf_sz = PKT_BUF_SZ; in cp_set_rxbufsize()
477 const unsigned buflen = cp->rx_buf_sz; in cp_rx_poll()
546 cp->rx_buf_sz); in cp_rx_poll()
548 desc->opts1 = cpu_to_le32(DescOwn | cp->rx_buf_sz); in cp_rx_poll()
1067 skb = netdev_alloc_skb_ip_align(dev, cp->rx_buf_sz); in cp_refill_rx()
1072 cp->rx_buf_sz, DMA_FROM_DEVICE); in cp_refill_rx()
1083 cpu_to_le32(DescOwn | RingEnd | cp->rx_buf_sz); in cp_refill_rx()
1086 cpu_to_le32(DescOwn | cp->rx_buf_sz); in cp_refill_rx()
[all …]
/linux-6.12.1/drivers/iio/adc/
Dstm32-adc.c275 unsigned int rx_buf_sz; member
1597 unsigned int rx_buf_sz = STM32_DMA_BUFFER_SIZE; in stm32_adc_set_watermark() local
1606 adc->rx_buf_sz = min(rx_buf_sz, watermark * 2 * adc->num_conv); in stm32_adc_set_watermark()
1699 unsigned int i = adc->rx_buf_sz - state.residue; in stm32_adc_dma_residue()
1706 size = adc->rx_buf_sz + i - adc->bufi; in stm32_adc_dma_residue()
1738 if (adc->bufi >= adc->rx_buf_sz) in stm32_adc_dma_buffer_done()
1754 adc->rx_buf_sz, adc->rx_buf_sz / 2); in stm32_adc_dma_start()
1759 adc->rx_buf_sz, adc->rx_buf_sz / 2, in stm32_adc_dma_start()
Dat91-sama5d2_adc.c543 int rx_buf_sz; member
1183 i = st->dma_st.rx_buf_sz - state.residue; in at91_adc_dma_size_done()
1189 size = st->dma_st.rx_buf_sz + i - st->dma_st.buf_idx; in at91_adc_dma_size_done()
1218 st->dma_st.rx_buf_sz = 0; in at91_adc_dma_start()
1228 st->dma_st.rx_buf_sz += chan->scan_type.storagebits / 8; in at91_adc_dma_start()
1230 st->dma_st.rx_buf_sz *= st->dma_st.watermark; in at91_adc_dma_start()
1235 st->dma_st.rx_buf_sz, in at91_adc_dma_start()
1236 st->dma_st.rx_buf_sz / 2, in at91_adc_dma_start()
1496 sample_size = div_s64(st->dma_st.rx_buf_sz, st->dma_st.watermark); in at91_adc_trigger_handler_dma()
1523 if (st->dma_st.buf_idx >= st->dma_st.rx_buf_sz) in at91_adc_trigger_handler_dma()
/linux-6.12.1/drivers/net/ethernet/realtek/rtase/
Drtase_main.c245 static void rtase_mark_to_asic(union rtase_rx_desc *desc, u32 rx_buf_sz) in rtase_mark_to_asic() argument
253 cpu_to_le32(RTASE_DESC_OWN | eor | rx_buf_sz)); in rtase_mark_to_asic()
351 u32 rx_buf_sz) in rtase_map_to_asic() argument
355 rtase_mark_to_asic(desc, rx_buf_sz); in rtase_map_to_asic()
383 rtase_map_to_asic(desc, mapping, tp->rx_buf_sz); in rtase_alloc_rx_data_buf()
523 rtase_mark_to_asic(desc, tp->rx_buf_sz); in rx_handler()
538 rtase_mark_to_asic(desc, tp->rx_buf_sz); in rx_handler()
544 tp->rx_buf_sz, DMA_FROM_DEVICE); in rx_handler()
549 rtase_mark_to_asic(desc, tp->rx_buf_sz); in rx_handler()
976 rtase_w16(tp, RTASE_RMS, tp->rx_buf_sz); in rtase_hw_config()
[all …]
/linux-6.12.1/drivers/net/ethernet/dec/tulip/
Dde2104x.c304 unsigned rx_buf_sz; member
436 buflen = copying_skb ? (len + RX_OFFSET) : de->rx_buf_sz; in de_rx()
479 cpu_to_le32(RingEnd | de->rx_buf_sz); in de_rx()
481 de->rx_ring[rx_tail].opts2 = cpu_to_le32(de->rx_buf_sz); in de_rx()
1283 skb = netdev_alloc_skb(de->dev, de->rx_buf_sz); in de_refill_rx()
1289 de->rx_buf_sz, in de_refill_rx()
1296 cpu_to_le32(RingEnd | de->rx_buf_sz); in de_refill_rx()
1298 de->rx_ring[i].opts2 = cpu_to_le32(de->rx_buf_sz); in de_refill_rx()
1345 de->rx_skb[i].mapping, de->rx_buf_sz, in de_clean_rings()
1390 de->rx_buf_sz = (dev->mtu <= 1500 ? PKT_BUF_SZ : dev->mtu + 32); in de_open()
Dwinbond-840.c303 unsigned int rx_buf_sz; /* Based on MTU+slack. */ member
791 np->rx_ring[i].length = np->rx_buf_sz; in init_rxtx_rings()
800 struct sk_buff *skb = netdev_alloc_skb(dev, np->rx_buf_sz); in init_rxtx_rings()
805 np->rx_buf_sz, in init_rxtx_rings()
962 np->rx_buf_sz = (dev->mtu <= 1500 ? PKT_BUF_SZ : dev->mtu + 32); in alloc_ringdesc()
1256 skb = netdev_alloc_skb(dev, np->rx_buf_sz); in netdev_rx()
1262 np->rx_buf_sz, in netdev_rx()
/linux-6.12.1/drivers/net/ethernet/adaptec/
Dstarfire.c545 unsigned int rx_buf_sz; /* Based on MTU+slack. */ member
905 writel((np->rx_buf_sz << RxBufferLenShift) | in netdev_open()
1127 np->rx_buf_sz = (dev->mtu <= 1500 ? PKT_BUF_SZ : dev->mtu + 32); in init_ring()
1131 struct sk_buff *skb = netdev_alloc_skb(dev, np->rx_buf_sz); in init_ring()
1137 np->rx_buf_sz, in init_ring()
1472 np->rx_buf_sz, DMA_FROM_DEVICE); in __netdev_rx()
1585 skb = netdev_alloc_skb(dev, np->rx_buf_sz); in refill_rx_ring()
1591 np->rx_buf_sz, DMA_FROM_DEVICE); in refill_rx_ring()
1967 np->rx_buf_sz, DMA_FROM_DEVICE); in netdev_close()
/linux-6.12.1/drivers/net/ethernet/sun/
Dsungem.h939 #define RX_BUF_ALLOC_SIZE(gp) ((gp)->rx_buf_sz + 28 + RX_OFFSET + 64)
994 int rx_buf_sz; member
/linux-6.12.1/drivers/net/ethernet/via/
Dvia-rhine.c470 unsigned int rx_buf_sz; /* Based on MTU+slack. */ member
1205 const int size = rp->rx_buf_sz; in rhine_skb_dma_init()
1249 rp->rx_buf_sz = (dev->mtu <= 1500 ? PKT_BUF_SZ : dev->mtu + 32); in alloc_rbufs()
1255 rp->rx_ring[i].desc_length = cpu_to_le32(rp->rx_buf_sz); in alloc_rbufs()
1294 rp->rx_buf_sz, DMA_FROM_DEVICE); in free_rbufs()
2092 rp->rx_buf_sz, in rhine_rx()
2101 rp->rx_buf_sz, in rhine_rx()
2113 rp->rx_buf_sz, in rhine_rx()
/linux-6.12.1/drivers/net/wireless/ath/ath11k/
Ddebugfs.c1076 int i, ret, rx_buf_sz = 0; in ath11k_write_pktlog_filter() local
1119 rx_buf_sz, &tlv_filter); in ath11k_write_pktlog_filter()
1140 rx_buf_sz = DP_RX_BUFFER_SIZE; in ath11k_write_pktlog_filter()
1150 rx_buf_sz = DP_RX_BUFFER_SIZE_LITE; in ath11k_write_pktlog_filter()
1152 rx_buf_sz = DP_RX_BUFFER_SIZE; in ath11k_write_pktlog_filter()
1179 rx_buf_sz, &tlv_filter); in ath11k_write_pktlog_filter()
/linux-6.12.1/drivers/staging/vt6656/
Ddevice.h268 u32 rx_buf_sz; member
/linux-6.12.1/drivers/net/ethernet/natsemi/
Dnatsemi.c561 unsigned int rx_buf_sz; member
1745 if (np->rx_buf_sz > NATSEMI_LONGPKT) in init_registers()
1934 unsigned int buflen = np->rx_buf_sz+NATSEMI_PADDING; in refill_rx()
1949 np->rx_ring[entry].cmd_status = cpu_to_le32(np->rx_buf_sz); in refill_rx()
1962 np->rx_buf_sz = ETH_DATA_LEN + NATSEMI_HEADERS; in set_bufsize()
1964 np->rx_buf_sz = dev->mtu + NATSEMI_HEADERS; in set_bufsize()
2025 unsigned int buflen = np->rx_buf_sz; in drain_rx()
2283 unsigned int buflen = np->rx_buf_sz; in netdev_rx()
2343 } else if (pkt_len > np->rx_buf_sz) { in netdev_rx()
/linux-6.12.1/drivers/atm/
Diphase.c768 iadev->rx_buf_sz = IA_RX_BUF_SZ;
779 iadev->rx_buf_sz = IA_RX_BUF_SZ;
791 iadev->rx_buf_sz = IA_RX_BUF_SZ;
796 iadev->rx_buf_sz, iadev->rx_pkt_ram);)
1173 if (len > iadev->rx_buf_sz) {
1174 printk("Over %d bytes sdu received, dropped!!!\n", iadev->rx_buf_sz);
1334 if ((length > iadev->rx_buf_sz) || (length >
1481 writew(iadev->rx_buf_sz, iadev->reass_reg+BUF_SIZE);
1495 rx_pkt_start += iadev->rx_buf_sz;
3145 iadev->num_rx_desc, iadev->rx_buf_sz,

12