/u-boot/drivers/net/ |
A D | lpc32xx_eth.c | 195 ATTRS(PKTALIGN) u8 tx_buf[TX_BUF_COUNT*PKTSIZE_ALIGN]; 198 ATTRS(PKTALIGN) u8 rx_buf[RX_BUF_COUNT*PKTSIZE_ALIGN]; 378 memcpy((void *)&bufs->tx_buf[tx_index * PKTSIZE_ALIGN], in lpc32xx_eth_send() 415 &(bufs->rx_buf[rx_index * PKTSIZE_ALIGN]), in lpc32xx_eth_recv() 456 writel(PKTSIZE_ALIGN, ®s->maxf); in lpc32xx_eth_init() 505 (u32) (bufs->rx_buf+index*PKTSIZE_ALIGN); in lpc32xx_eth_init() 506 bufs->rx_desc[index].control = PKTSIZE_ALIGN - 1; in lpc32xx_eth_init() 517 (u32)(bufs->tx_buf + index * PKTSIZE_ALIGN); in lpc32xx_eth_init()
|
A D | ethoc.c | 278 addr += PKTSIZE_ALIGN; in ethoc_init_ring() 291 addr += PKTSIZE_ALIGN; in ethoc_init_ring() 299 (ulong)net_rx_packets[i] + PKTSIZE_ALIGN); in ethoc_init_ring() 413 *packetp = priv->packet + entry * PKTSIZE_ALIGN; in ethoc_rx_common() 480 void *p = priv->packet + entry * PKTSIZE_ALIGN; in ethoc_send_common() 528 src = priv->packet + entry * PKTSIZE_ALIGN; in ethoc_free_pkt_common() 533 (ulong)src + PKTSIZE_ALIGN); in ethoc_free_pkt_common() 709 (1 + PKTBUFSRX) * PKTSIZE_ALIGN); in ethoc_probe()
|
A D | armada100_fec.c | 410 p_rx_desc->buf_size = PKTSIZE_ALIGN; in armdfec_init_rx_desc_ring() 412 p_rx_desc->buf_ptr = darmdfec->p_rxbuf + i * PKTSIZE_ALIGN; in armdfec_init_rx_desc_ring() 558 if (datasize > PKTSIZE_ALIGN) { in armdfec_send() 659 p_rxdesc_curr->buf_size = PKTSIZE_ALIGN; in armdfec_recv() 689 darmdfec->p_rxbuf = memalign(PKTALIGN, RINGSZ * PKTSIZE_ALIGN + 1); in armada100_fec_register() 693 darmdfec->p_aligned_txbuf = memalign(8, PKTSIZE_ALIGN); in armada100_fec_register()
|
A D | zynq_gem.c | 395 + (i * PKTSIZE_ALIGN))); in zynq_gem_init() 399 + (i * PKTSIZE_ALIGN))); in zynq_gem_init() 590 invalidate_dcache_range(addr, addr + roundup(PKTSIZE_ALIGN, ARCH_DMA_MINALIGN)); in zynq_gem_recv() 623 flush_dcache_range(addr, addr + roundup(PKTSIZE_ALIGN, in zynq_gem_free_pkt() 685 priv->rxbuffers = memalign(ARCH_DMA_MINALIGN, RX_BUF * PKTSIZE_ALIGN); in zynq_gem_probe() 689 memset(priv->rxbuffers, 0, RX_BUF * PKTSIZE_ALIGN); in zynq_gem_probe() 691 flush_dcache_range(addr, addr + roundup(RX_BUF * PKTSIZE_ALIGN, ARCH_DMA_MINALIGN)); in zynq_gem_probe()
|
A D | altera_tse.c | 367 writel(PKTSIZE_ALIGN, &desc->len); in altera_tse_free_pkt_msgdma() 503 invalidate_dcache_range(rx_buf, rx_buf + PKTSIZE_ALIGN); in altera_tse_free_pkt() 525 altera_tse_free_pkt(dev, priv->rx_buf, PKTSIZE_ALIGN); in altera_tse_start() 529 writel(PKTSIZE_ALIGN, &mac_dev->max_frame_length); in altera_tse_start() 658 priv->rx_buf = malloc_cache_aligned(PKTSIZE_ALIGN); in altera_tse_probe()
|
A D | mvgbe.c | 416 p_rx_desc->buf_size = PKTSIZE_ALIGN; in mvgbe_init_rx_desc_ring() 418 p_rx_desc->buf_ptr = dmvgbe->p_rxbuf + i * PKTSIZE_ALIGN; in mvgbe_init_rx_desc_ring() 586 if (datasize > PKTSIZE_ALIGN) { in __mvgbe_send() 703 p_rxdesc_curr->buf_size = PKTSIZE_ALIGN; in __mvgbe_recv() 800 RINGSZ * PKTSIZE_ALIGN + 1); in mvgbe_alloc_buffers() 804 dmvgbe->p_aligned_txbuf = memalign(8, PKTSIZE_ALIGN); in mvgbe_alloc_buffers()
|
A D | mt7620-eth.c | 814 memset(priv->pkt_buf, 0, (NUM_TX_DESC + NUM_RX_DESC) * PKTSIZE_ALIGN); in mt7620_eth_fifo_init() 826 pkt_base += PKTSIZE_ALIGN; in mt7620_eth_fifo_init() 830 priv->rx_ring_noc[i].rxd_info2.PLEN0 = PKTSIZE_ALIGN; in mt7620_eth_fifo_init() 832 pkt_base += PKTSIZE_ALIGN; in mt7620_eth_fifo_init() 949 priv->rx_ring_noc[idx].rxd_info2.PLEN0 = PKTSIZE_ALIGN; in mt7620_eth_free_pkt() 983 (NUM_TX_DESC + NUM_RX_DESC) * PKTSIZE_ALIGN); in mt7620_eth_alloc_rings_pkts()
|
A D | fsl_enetc.h | 75 #define ENETC_RX_MAXFRM_SIZE PKTSIZE_ALIGN
|
A D | ravb.c | 119 u8 packet[PKTSIZE_ALIGN]; 213 desc->data.ctrl = RAVB_DESC_DT_FEMPTY | RAVB_DESC_DS(PKTSIZE_ALIGN); in ravb_free_pkt() 288 RAVB_DESC_DS(PKTSIZE_ALIGN); in ravb_rx_desc_init()
|
A D | xilinx_axi_emac.c | 78 static u8 rxframe[PKTSIZE_ALIGN] __attribute((aligned(DMAALIGN))); 538 if (len > PKTSIZE_ALIGN) in axiemac_send() 539 len = PKTSIZE_ALIGN; in axiemac_send()
|
A D | mtk_eth.c | 34 #define TX_TOTAL_BUF_SIZE (NUM_TX_DESC * PKTSIZE_ALIGN) 35 #define RX_TOTAL_BUF_SIZE (NUM_RX_DESC * PKTSIZE_ALIGN) 1208 pkt_base += PKTSIZE_ALIGN; in mtk_eth_fifo_init() 1212 priv->rx_ring_noc[i].rxd_info2.PLEN0 = PKTSIZE_ALIGN; in mtk_eth_fifo_init() 1214 pkt_base += PKTSIZE_ALIGN; in mtk_eth_fifo_init() 1351 priv->rx_ring_noc[idx].rxd_info2.PLEN0 = PKTSIZE_ALIGN; in mtk_eth_free_pkt()
|
A D | ep93xx_eth.c | 209 writel((TXSTARTMAX << 0) | (PKTSIZE_ALIGN << 16), &mac->maxfrmlen); in ep93xx_eth_open() 245 (priv->rx_dq.base + i)->word2 = PKTSIZE_ALIGN; in ep93xx_eth_open()
|
A D | eepro100.c | 112 u8 data[PKTSIZE_ALIGN]; 374 rx_ring[i].count = cpu_to_le32(PKTSIZE_ALIGN << 16); in init_rx_ring() 722 desc->count = cpu_to_le32(PKTSIZE_ALIGN << 16); in eepro100_free_pkt_common()
|
A D | cs8900.c | 190 if (rxlen > PKTSIZE_ALIGN + PKTALIGN) in cs8900_recv()
|
A D | fsl_mcdmafec.c | 287 info->rxbd[i].cbd_datlen = PKTSIZE_ALIGN; in fec_init() 470 prbd->cbd_datlen = PKTSIZE_ALIGN; in mcdmafec_recv()
|
A D | ftmac100.c | 112 rxdes[i].rxdes1 |= FTMAC100_RXDES1_RXBUF_SIZE (PKTSIZE_ALIGN); in _ftmac100_init()
|
A D | bcm6348-eth.c | 201 PKTSIZE_ALIGN); in bcm6348_eth_start()
|
A D | sni_ave.c | 162 u8 tx_adj_packetbuf[PKTSIZE_ALIGN + PKTALIGN]; 483 priv->rx_siz = (PKTSIZE_ALIGN - priv->rx_off); in ave_start()
|
/u-boot/lib/efi_loader/ |
A D | efi_net.c | 510 if (buffer_size > PKTSIZE_ALIGN) { in efi_net_transmit() 686 if (len > PKTSIZE_ALIGN) in efi_net_push() 871 transmit_buffer = calloc(1, PKTSIZE_ALIGN + PKTALIGN); in efi_net_register() 882 receive_buffer[i] = malloc(PKTSIZE_ALIGN); in efi_net_register()
|
/u-boot/drivers/net/ti/ |
A D | am65-cpsw-nuss.c | 132 #ifdef PKTSIZE_ALIGN 133 #define UDMA_RX_BUF_SIZE PKTSIZE_ALIGN 352 writel(PKTSIZE_ALIGN, port0->port_base + AM65_CPSW_PN_RX_MAXLEN_REG); in am65_cpsw_start() 376 writel(PKTSIZE_ALIGN, port->port_base + AM65_CPSW_PN_RX_MAXLEN_REG); in am65_cpsw_start()
|
/u-boot/drivers/usb/eth/ |
A D | lan7x.h | 101 LAN7X_MAC_RX_MAX_SIZE(PKTSIZE_ALIGN + 4 /* VLAN */ + 4 /* CRC */)
|
/u-boot/net/ |
A D | dsa-uclass.c | 121 uchar dsa_packet_tmp[PKTSIZE_ALIGN]; in dsa_port_send() 125 if (length + head + tail > PKTSIZE_ALIGN) in dsa_port_send()
|
A D | arp.c | 42 static uchar arp_tx_packet_buf[PKTSIZE_ALIGN + PKTALIGN];
|
/u-boot/include/ |
A D | net.h | 503 #define PKTSIZE_ALIGN 1536 macro 507 #define PKTSIZE_ALIGN (1536 + DSA_MAX_OVR) macro
|
A D | tsec.h | 129 #define MRBLR_INIT_SETTINGS PKTSIZE_ALIGN
|