#include <linux/bpf.h>
#include <linux/filter.h>
#include <net/page_pool/helpers.h>
#include "lan966x_main.h"
static int lan966x_fdma_channel_active(struct lan966x *lan966x)
{ … }
static struct page *lan966x_fdma_rx_alloc_page(struct lan966x_rx *rx,
struct lan966x_db *db)
{ … }
static void lan966x_fdma_rx_free_pages(struct lan966x_rx *rx)
{ … }
static void lan966x_fdma_rx_free_page(struct lan966x_rx *rx)
{ … }
static void lan966x_fdma_rx_add_dcb(struct lan966x_rx *rx,
struct lan966x_rx_dcb *dcb,
u64 nextptr)
{ … }
static int lan966x_fdma_rx_alloc_page_pool(struct lan966x_rx *rx)
{ … }
static int lan966x_fdma_rx_alloc(struct lan966x_rx *rx)
{ … }
static void lan966x_fdma_rx_advance_dcb(struct lan966x_rx *rx)
{ … }
static void lan966x_fdma_rx_free(struct lan966x_rx *rx)
{ … }
static void lan966x_fdma_rx_start(struct lan966x_rx *rx)
{ … }
static void lan966x_fdma_rx_disable(struct lan966x_rx *rx)
{ … }
static void lan966x_fdma_rx_reload(struct lan966x_rx *rx)
{ … }
static void lan966x_fdma_tx_add_dcb(struct lan966x_tx *tx,
struct lan966x_tx_dcb *dcb)
{ … }
static int lan966x_fdma_tx_alloc(struct lan966x_tx *tx)
{ … }
static void lan966x_fdma_tx_free(struct lan966x_tx *tx)
{ … }
static void lan966x_fdma_tx_activate(struct lan966x_tx *tx)
{ … }
static void lan966x_fdma_tx_disable(struct lan966x_tx *tx)
{ … }
static void lan966x_fdma_tx_reload(struct lan966x_tx *tx)
{ … }
static void lan966x_fdma_wakeup_netdev(struct lan966x *lan966x)
{ … }
static void lan966x_fdma_stop_netdev(struct lan966x *lan966x)
{ … }
static void lan966x_fdma_tx_clear_buf(struct lan966x *lan966x, int weight)
{ … }
static bool lan966x_fdma_rx_more_frames(struct lan966x_rx *rx)
{ … }
static int lan966x_fdma_rx_check_frame(struct lan966x_rx *rx, u64 *src_port)
{ … }
static struct sk_buff *lan966x_fdma_rx_get_frame(struct lan966x_rx *rx,
u64 src_port)
{ … }
static int lan966x_fdma_napi_poll(struct napi_struct *napi, int weight)
{ … }
irqreturn_t lan966x_fdma_irq_handler(int irq, void *args)
{ … }
static int lan966x_fdma_get_next_dcb(struct lan966x_tx *tx)
{ … }
static void lan966x_fdma_tx_setup_dcb(struct lan966x_tx *tx,
int next_to_use, int len,
dma_addr_t dma_addr)
{ … }
static void lan966x_fdma_tx_start(struct lan966x_tx *tx, int next_to_use)
{ … }
int lan966x_fdma_xmit_xdpf(struct lan966x_port *port, void *ptr, u32 len)
{ … }
int lan966x_fdma_xmit(struct sk_buff *skb, __be32 *ifh, struct net_device *dev)
{ … }
static int lan966x_fdma_get_max_mtu(struct lan966x *lan966x)
{ … }
static int lan966x_qsys_sw_status(struct lan966x *lan966x)
{ … }
static int lan966x_fdma_reload(struct lan966x *lan966x, int new_mtu)
{ … }
static int lan966x_fdma_get_max_frame(struct lan966x *lan966x)
{ … }
static int __lan966x_fdma_reload(struct lan966x *lan966x, int max_mtu)
{ … }
int lan966x_fdma_change_mtu(struct lan966x *lan966x)
{ … }
int lan966x_fdma_reload_page_pool(struct lan966x *lan966x)
{ … }
void lan966x_fdma_netdev_init(struct lan966x *lan966x, struct net_device *dev)
{ … }
void lan966x_fdma_netdev_deinit(struct lan966x *lan966x, struct net_device *dev)
{ … }
int lan966x_fdma_init(struct lan966x *lan966x)
{ … }
void lan966x_fdma_deinit(struct lan966x *lan966x)
{ … }