Home
last modified time | relevance | path

Searched refs:PKTSIZE_ALIGN (Results 1 – 25 of 30) sorted by relevance

12

/openbmc/u-boot/drivers/net/
H A Dethoc.c276 addr += PKTSIZE_ALIGN; in ethoc_init_ring()
289 addr += PKTSIZE_ALIGN; in ethoc_init_ring()
297 (ulong)net_rx_packets[i] + PKTSIZE_ALIGN); in ethoc_init_ring()
411 *packetp = priv->packet + entry * PKTSIZE_ALIGN; in ethoc_rx_common()
478 void *p = priv->packet + entry * PKTSIZE_ALIGN; in ethoc_send_common()
526 src = priv->packet + entry * PKTSIZE_ALIGN; in ethoc_free_pkt_common()
531 (ulong)src + PKTSIZE_ALIGN); in ethoc_free_pkt_common()
707 (1 + PKTBUFSRX) * PKTSIZE_ALIGN); in ethoc_probe()
H A Dlpc32xx_eth.c193 ATTRS(PKTALIGN) u8 tx_buf[TX_BUF_COUNT*PKTSIZE_ALIGN];
196 ATTRS(PKTALIGN) u8 rx_buf[RX_BUF_COUNT*PKTSIZE_ALIGN];
412 &(bufs->rx_buf[rx_index * PKTSIZE_ALIGN]), in lpc32xx_eth_recv()
453 writel(PKTSIZE_ALIGN, &regs->maxf); in lpc32xx_eth_init()
502 (u32) (bufs->rx_buf+index*PKTSIZE_ALIGN); in lpc32xx_eth_init()
503 bufs->rx_desc[index].control = PKTSIZE_ALIGN - 1; in lpc32xx_eth_init()
H A Darmada100_fec.c408 p_rx_desc->buf_size = PKTSIZE_ALIGN; in armdfec_init_rx_desc_ring()
410 p_rx_desc->buf_ptr = darmdfec->p_rxbuf + i * PKTSIZE_ALIGN; in armdfec_init_rx_desc_ring()
556 if (datasize > PKTSIZE_ALIGN) { in armdfec_send()
657 p_rxdesc_curr->buf_size = PKTSIZE_ALIGN; in armdfec_recv()
687 darmdfec->p_rxbuf = memalign(PKTALIGN, RINGSZ * PKTSIZE_ALIGN + 1); in armada100_fec_register()
691 darmdfec->p_aligned_txbuf = memalign(8, PKTSIZE_ALIGN); in armada100_fec_register()
H A Dzynq_gem.c431 + (i * PKTSIZE_ALIGN))); in zynq_gem_init()
435 + (i * PKTSIZE_ALIGN))); in zynq_gem_init()
619 invalidate_dcache_range(addr, addr + roundup(PKTSIZE_ALIGN, ARCH_DMA_MINALIGN)); in zynq_gem_recv()
702 priv->rxbuffers = memalign(ARCH_DMA_MINALIGN, RX_BUF * PKTSIZE_ALIGN); in zynq_gem_probe()
706 memset(priv->rxbuffers, 0, RX_BUF * PKTSIZE_ALIGN); in zynq_gem_probe()
708 flush_dcache_range(addr, addr + roundup(RX_BUF * PKTSIZE_ALIGN, ARCH_DMA_MINALIGN)); in zynq_gem_probe()
H A Daltera_tse.c364 writel(PKTSIZE_ALIGN, &desc->len); in altera_tse_free_pkt_msgdma()
500 invalidate_dcache_range(rx_buf, rx_buf + PKTSIZE_ALIGN); in altera_tse_free_pkt()
522 altera_tse_free_pkt(dev, priv->rx_buf, PKTSIZE_ALIGN); in altera_tse_start()
526 writel(PKTSIZE_ALIGN, &mac_dev->max_frame_length); in altera_tse_start()
655 priv->rx_buf = malloc_cache_aligned(PKTSIZE_ALIGN); in altera_tse_probe()
H A Dmvgbe.c413 p_rx_desc->buf_size = PKTSIZE_ALIGN; in mvgbe_init_rx_desc_ring()
415 p_rx_desc->buf_ptr = dmvgbe->p_rxbuf + i * PKTSIZE_ALIGN; in mvgbe_init_rx_desc_ring()
583 if (datasize > PKTSIZE_ALIGN) { in __mvgbe_send()
700 p_rxdesc_curr->buf_size = PKTSIZE_ALIGN; in __mvgbe_recv()
797 RINGSZ * PKTSIZE_ALIGN + 1); in mvgbe_alloc_buffers()
801 dmvgbe->p_aligned_txbuf = memalign(8, PKTSIZE_ALIGN); in mvgbe_alloc_buffers()
H A Dmtk_eth.c28 #define TX_TOTAL_BUF_SIZE (NUM_TX_DESC * PKTSIZE_ALIGN)
29 #define RX_TOTAL_BUF_SIZE (NUM_RX_DESC * PKTSIZE_ALIGN)
841 pkt_base += PKTSIZE_ALIGN; in mtk_eth_fifo_init()
845 priv->rx_ring_noc[i].rxd_info2.PLEN0 = PKTSIZE_ALIGN; in mtk_eth_fifo_init()
847 pkt_base += PKTSIZE_ALIGN; in mtk_eth_fifo_init()
984 priv->rx_ring_noc[idx].rxd_info2.PLEN0 = PKTSIZE_ALIGN; in mtk_eth_free_pkt()
H A Dxilinx_axi_emac.c74 static u8 rxframe[PKTSIZE_ALIGN] __attribute((aligned(DMAALIGN)));
526 if (len > PKTSIZE_ALIGN) in axiemac_send()
527 len = PKTSIZE_ALIGN; in axiemac_send()
H A Dravb.c111 u8 packet[PKTSIZE_ALIGN];
205 desc->data.ctrl = RAVB_DESC_DT_FEMPTY | RAVB_DESC_DS(PKTSIZE_ALIGN); in ravb_free_pkt()
280 RAVB_DESC_DS(PKTSIZE_ALIGN); in ravb_rx_desc_init()
H A Deepro100.c119 volatile u8 data[PKTSIZE_ALIGN];
688 rx_ring[rx_next].count = cpu_to_le32 (PKTSIZE_ALIGN << 16); in eepro100_recv()
882 rx_ring[i].count = cpu_to_le32 (PKTSIZE_ALIGN << 16); in init_rx_ring()
H A Dfsl_mcdmafec.c297 prbd->cbd_datlen = PKTSIZE_ALIGN; in fec_recv()
400 info->rxbd[i].cbd_datlen = PKTSIZE_ALIGN; in fec_init()
H A Dep93xx_eth.c206 writel((TXSTARTMAX << 0) | (PKTSIZE_ALIGN << 16), &mac->maxfrmlen); in ep93xx_eth_open()
242 (priv->rx_dq.base + i)->word2 = PKTSIZE_ALIGN; in ep93xx_eth_open()
H A Dcs8900.c188 if (rxlen > PKTSIZE_ALIGN + PKTALIGN) in cs8900_recv()
H A Dftmac100.c108 rxdes[i].rxdes1 |= FTMAC100_RXDES1_RXBUF_SIZE (PKTSIZE_ALIGN); in _ftmac100_init()
H A Dsni_ave.c153 u8 tx_adj_packetbuf[PKTSIZE_ALIGN + PKTALIGN];
474 priv->rx_siz = (PKTSIZE_ALIGN - priv->rx_off); in ave_start()
H A Dbcm6348-eth.c199 PKTSIZE_ALIGN); in bcm6348_eth_start()
H A Dxilinx_emaclite.c96 static uchar etherrxbuff[PKTSIZE_ALIGN]; /* Receive buffer */
/openbmc/u-boot/lib/efi_loader/
H A Defi_net.c401 if (buffer_size > PKTSIZE_ALIGN) { in efi_net_transmit()
605 transmit_buffer = calloc(1, PKTSIZE_ALIGN + PKTALIGN); in efi_net_register()
/openbmc/u-boot/drivers/usb/eth/
H A Dlan7x.h97 LAN7X_MAC_RX_MAX_SIZE(PKTSIZE_ALIGN + 4 /* VLAN */ + 4 /* CRC */)
/openbmc/u-boot/net/
H A Darp.c38 static uchar arp_tx_packet_buf[PKTSIZE_ALIGN + PKTALIGN];
H A Dnet.c188 static uchar net_pkt_buf[(PKTBUFSRX+1) * PKTSIZE_ALIGN + PKTALIGN];
384 (i + 1) * PKTSIZE_ALIGN; in net_init()
/openbmc/u-boot/include/
H A Dtsec.h127 #define MRBLR_INIT_SETTINGS PKTSIZE_ALIGN
H A Dnet.h477 #define PKTSIZE_ALIGN 1536 macro
/openbmc/u-boot/drivers/usb/gadget/
H A Dether.c524 .wMaxSegmentSize = __constant_cpu_to_le16(PKTSIZE_ALIGN),
1570 if (req->actual < ETH_HLEN || PKTSIZE_ALIGN < req->actual) { in rx_complete()
2248 dev->mtu = PKTSIZE_ALIGN; /* RNDIS does not like this, only 1514, TODO*/ in eth_bind()
/openbmc/u-boot/drivers/dma/
H A Dbcm6348-iudma.c448 dma_desc->length = PKTSIZE_ALIGN; in bcm6348_iudma_free_rcv_buf()

12