/linux-5.19.10/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net.h | 30 struct nfp_net *__nn = (nn); \ 103 struct nfp_net; 374 struct nfp_net *nfp_net; member 604 struct nfp_net { struct 704 static inline u16 nn_readb(struct nfp_net *nn, int off) in nn_readb() argument 709 static inline void nn_writeb(struct nfp_net *nn, int off, u8 val) in nn_writeb() 714 static inline u16 nn_readw(struct nfp_net *nn, int off) in nn_readw() 719 static inline void nn_writew(struct nfp_net *nn, int off, u16 val) in nn_writew() 724 static inline u32 nn_readl(struct nfp_net *nn, int off) in nn_readl() 729 static inline void nn_writel(struct nfp_net *nn, int off, u32 val) in nn_writel() [all …]
|
D | ccm.h | 12 struct nfp_net; 114 int nfp_ccm_mbox_alloc(struct nfp_net *nn); 115 void nfp_ccm_mbox_free(struct nfp_net *nn); 116 int nfp_ccm_mbox_init(struct nfp_net *nn); 117 void nfp_ccm_mbox_clean(struct nfp_net *nn); 118 bool nfp_ccm_mbox_fits(struct nfp_net *nn, unsigned int size); 120 nfp_ccm_mbox_msg_alloc(struct nfp_net *nn, unsigned int req_size, 122 int __nfp_ccm_mbox_communicate(struct nfp_net *nn, struct sk_buff *skb, 126 int nfp_ccm_mbox_communicate(struct nfp_net *nn, struct sk_buff *skb, 130 int nfp_ccm_mbox_post(struct nfp_net *nn, struct sk_buff *skb,
|
D | nfp_app.h | 25 struct nfp_net; 93 const char *(*extra_cap)(struct nfp_app *app, struct nfp_net *nn); 98 int (*vnic_alloc)(struct nfp_app *app, struct nfp_net *nn, 100 void (*vnic_free)(struct nfp_app *app, struct nfp_net *nn); 101 int (*vnic_init)(struct nfp_app *app, struct nfp_net *nn); 102 void (*vnic_clean)(struct nfp_app *app, struct nfp_net *nn); 134 int (*bpf)(struct nfp_app *app, struct nfp_net *nn, 136 int (*xdp_offload)(struct nfp_app *app, struct nfp_net *nn, 166 struct nfp_net *ctrl; 188 bool __nfp_ctrl_tx(struct nfp_net *nn, struct sk_buff *skb); [all …]
|
D | ccm_mbox.c | 54 static u32 nfp_ccm_mbox_max_msg(struct nfp_net *nn) in nfp_ccm_mbox_max_msg() 116 static bool nfp_ccm_mbox_is_first(struct nfp_net *nn, struct sk_buff *skb) in nfp_ccm_mbox_is_first() 121 static bool nfp_ccm_mbox_should_run(struct nfp_net *nn, struct sk_buff *skb) in nfp_ccm_mbox_should_run() 128 static void nfp_ccm_mbox_mark_next_runner(struct nfp_net *nn) in nfp_ccm_mbox_mark_next_runner() 144 nfp_ccm_mbox_write_tlv(struct nfp_net *nn, u32 off, u32 type, u32 len) in nfp_ccm_mbox_write_tlv() 151 static void nfp_ccm_mbox_copy_in(struct nfp_net *nn, struct sk_buff *last) in nfp_ccm_mbox_copy_in() 199 nfp_ccm_mbox_find_req(struct nfp_net *nn, __be16 tag, struct sk_buff *last) in nfp_ccm_mbox_find_req() 214 static void nfp_ccm_mbox_copy_out(struct nfp_net *nn, struct sk_buff *last) in nfp_ccm_mbox_copy_out() 355 nfp_ccm_mbox_mark_all_err(struct nfp_net *nn, struct sk_buff *last, int err) in nfp_ccm_mbox_mark_all_err() 374 static void nfp_ccm_mbox_run_queue_unlock(struct nfp_net *nn) in nfp_ccm_mbox_run_queue_unlock() [all …]
|
D | nfp_net_common.c | 81 static void nfp_net_reconfig_start(struct nfp_net *nn, u32 update) in nfp_net_reconfig_start() 91 static void nfp_net_reconfig_start_async(struct nfp_net *nn, u32 update) in nfp_net_reconfig_start_async() 102 static bool nfp_net_reconfig_check_done(struct nfp_net *nn, bool last_check) in nfp_net_reconfig_check_done() 124 static bool __nfp_net_reconfig_wait(struct nfp_net *nn, unsigned long deadline) in __nfp_net_reconfig_wait() 146 static int nfp_net_reconfig_wait(struct nfp_net *nn, unsigned long deadline) in nfp_net_reconfig_wait() 159 struct nfp_net *nn = from_timer(nn, t, reconfig_timer); in nfp_net_reconfig_timer() 187 static void nfp_net_reconfig_post(struct nfp_net *nn, u32 update) in nfp_net_reconfig_post() 207 static void nfp_net_reconfig_sync_enter(struct nfp_net *nn) in nfp_net_reconfig_sync_enter() 238 static void nfp_net_reconfig_wait_posted(struct nfp_net *nn) in nfp_net_reconfig_wait_posted() 258 int __nfp_net_reconfig(struct nfp_net *nn, u32 update) in __nfp_net_reconfig() [all …]
|
D | nfp_net_dp.c | 57 struct nfp_net *nn = r_vec->nfp_net; in nfp_net_tx_ring_init() 79 struct nfp_net *nn = r_vec->nfp_net; in nfp_net_rx_ring_init() 183 int nfp_net_tx_rings_prepare(struct nfp_net *nn, struct nfp_net_dp *dp) in nfp_net_tx_rings_prepare() 254 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_net_rx_ring_free() 339 int nfp_net_rx_rings_prepare(struct nfp_net *nn, struct nfp_net_dp *dp) in nfp_net_rx_rings_prepare() 383 nfp_net_rx_ring_hw_cfg_write(struct nfp_net *nn, in nfp_net_rx_ring_hw_cfg_write() 393 nfp_net_tx_ring_hw_cfg_write(struct nfp_net *nn, in nfp_net_tx_ring_hw_cfg_write() 406 void nfp_net_vec_clear_ring_data(struct nfp_net *nn, unsigned int idx) in nfp_net_vec_clear_ring_data() 420 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_tx() 425 bool __nfp_ctrl_tx(struct nfp_net *nn, struct sk_buff *skb) in __nfp_ctrl_tx() [all …]
|
D | nfp_net_dp.h | 86 static inline void nfp_net_irq_unmask(struct nfp_net *nn, unsigned int entry_nr) in nfp_net_irq_unmask() 96 nfp_net_rx_ring_hw_cfg_write(struct nfp_net *nn, 99 nfp_net_tx_ring_hw_cfg_write(struct nfp_net *nn, 101 void nfp_net_vec_clear_ring_data(struct nfp_net *nn, unsigned int idx); 104 int nfp_net_rx_rings_prepare(struct nfp_net *nn, struct nfp_net_dp *dp); 105 int nfp_net_tx_rings_prepare(struct nfp_net *nn, struct nfp_net_dp *dp); 142 bool (*ctrl_tx_one)(struct nfp_net *nn, struct nfp_net_r_vector *r_vec,
|
D | nfp_net_debugfs.c | 18 struct nfp_net *nn; in nfp_rx_q_show() 24 if (!r_vec->nfp_net || !r_vec->rx_ring) in nfp_rx_q_show() 26 nn = r_vec->nfp_net; in nfp_rx_q_show() 84 struct nfp_net *nn; in nfp_tx_q_show() 93 if (!r_vec->nfp_net || !tx_ring) in nfp_tx_q_show() 95 nn = r_vec->nfp_net; in nfp_tx_q_show() 124 void nfp_net_debugfs_vnic_add(struct nfp_net *nn, struct dentry *ddir) in nfp_net_debugfs_vnic_add()
|
D | nfp_net_ethtool.c | 219 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_get_drvinfo() 287 struct nfp_net *nn; in nfp_net_get_link_ksettings() 390 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_get_ringparam() 399 static int nfp_net_set_ring_size(struct nfp_net *nn, u32 rxd_cnt, u32 txd_cnt) in nfp_net_set_ring_size() 419 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_set_ringparam() 447 struct nfp_net *nn = netdev_priv(netdev); in nfp_vnic_get_sw_stats_count() 455 struct nfp_net *nn = netdev_priv(netdev); in nfp_vnic_get_sw_stats_strings() 489 struct nfp_net *nn = netdev_priv(netdev); in nfp_vnic_get_sw_stats() 591 static unsigned int nfp_vnic_get_tlv_stats_count(struct nfp_net *nn) in nfp_vnic_get_tlv_stats_count() 596 static u8 *nfp_vnic_get_tlv_stats_strings(struct nfp_net *nn, u8 *data) in nfp_vnic_get_tlv_stats_strings() [all …]
|
D | nfp_net_main.c | 86 static void nfp_net_pf_free_vnic(struct nfp_pf *pf, struct nfp_net *nn) in nfp_net_pf_free_vnic() 98 struct nfp_net *nn, *next; in nfp_net_pf_free_vnics() 105 static struct nfp_net * 111 struct nfp_net *nn; in nfp_net_pf_alloc_vnic() 147 nfp_net_pf_init_vnic(struct nfp_pf *pf, struct nfp_net *nn, unsigned int id) in nfp_net_pf_init_vnic() 193 struct nfp_net *nn; in nfp_net_pf_alloc_vnics() 222 static void nfp_net_pf_clean_vnic(struct nfp_pf *pf, struct nfp_net *nn) in nfp_net_pf_clean_vnic() 237 struct nfp_net *nn; in nfp_net_pf_alloc_irqs() 282 struct nfp_net *nn; in nfp_net_pf_init_vnics() 555 struct nfp_net *nn, *next; in nfp_net_refresh_port_table_sync() [all …]
|
D | nfp_main.h | 29 struct nfp_net; 118 struct nfp_net *ctrl_vnic; 160 bool nfp_ctrl_tx(struct nfp_net *nn, struct sk_buff *skb);
|
D | nfp_app_nic.c | 12 struct nfp_net *nn, unsigned int id) in nfp_app_nic_vnic_init_phy_port() 32 int nfp_app_nic_vnic_alloc(struct nfp_app *app, struct nfp_net *nn, in nfp_app_nic_vnic_alloc()
|
D | nfp_netvf_main.c | 29 struct nfp_net *nn; 61 static void nfp_netvf_get_mac_addr(struct nfp_net *nn) in nfp_netvf_get_mac_addr() 89 struct nfp_net *nn; in nfp_netvf_pci_probe() 302 struct nfp_net *nn; in nfp_netvf_pci_remove()
|
D | nfp_app.c | 41 struct nfp_net *nn = netdev_priv(netdev); in nfp_app_from_netdev() 144 struct nfp_net *nn; in nfp_app_netdev_feat_change() 195 int nfp_app_start(struct nfp_app *app, struct nfp_net *ctrl) in nfp_app_start()
|
D | nfp_net_xsk.c | 109 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_xsk_setup_pool() 160 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_xsk_wakeup()
|
/linux-5.19.10/drivers/net/ethernet/netronome/nfp/crypto/ |
D | tls.c | 31 static void nfp_net_crypto_set_op(struct nfp_net *nn, u8 opcode, bool on) in nfp_net_crypto_set_op() 46 __nfp_net_tls_conn_cnt_changed(struct nfp_net *nn, int add, in __nfp_net_tls_conn_cnt_changed() 72 nfp_net_tls_conn_cnt_changed(struct nfp_net *nn, int add, in nfp_net_tls_conn_cnt_changed() 91 nfp_net_tls_conn_add(struct nfp_net *nn, enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_add() 97 nfp_net_tls_conn_remove(struct nfp_net *nn, enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_remove() 103 nfp_net_tls_alloc_simple(struct nfp_net *nn, size_t req_sz, gfp_t flags) in nfp_net_tls_alloc_simple() 111 nfp_net_tls_communicate_simple(struct nfp_net *nn, struct sk_buff *skb, in nfp_net_tls_communicate_simple() 135 static void nfp_net_tls_del_fw(struct nfp_net *nn, __be32 *fw_handle) in nfp_net_tls_del_fw() 161 nfp_net_tls_assign_conn_id(struct nfp_net *nn, in nfp_net_tls_assign_conn_id() 175 nfp_net_tls_set_ipv4(struct nfp_net *nn, struct nfp_crypto_req_add_v4 *req, in nfp_net_tls_set_ipv4() [all …]
|
D | crypto.h | 8 struct nfp_net; 23 int nfp_net_tls_init(struct nfp_net *nn); 28 static inline int nfp_net_tls_init(struct nfp_net *nn) in nfp_net_tls_init()
|
/linux-5.19.10/drivers/net/ethernet/netronome/nfp/nfd3/ |
D | dp.c | 222 struct nfp_net *nn = netdev_priv(netdev); in nfp_nfd3_tx() 385 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfd3_tx_complete() 470 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfd3_xdp_complete() 846 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfd3_rx() 991 struct nfp_net *nn = netdev_priv(dp->netdev); in nfp_nfd3_rx() 999 struct nfp_net *nn; in nfp_nfd3_rx() 1097 nfp_net_irq_unmask(r_vec->nfp_net, r_vec->irq_entry); in nfp_nfd3_poll() 1099 if (r_vec->nfp_net->rx_coalesce_adapt_on && r_vec->rx_ring) { in nfp_nfd3_poll() 1114 if (r_vec->nfp_net->tx_coalesce_adapt_on && r_vec->tx_ring) { in nfp_nfd3_poll() 1136 nfp_nfd3_ctrl_tx_one(struct nfp_net *nn, struct nfp_net_r_vector *r_vec, in nfp_nfd3_ctrl_tx_one() [all …]
|
D | xsk.c | 65 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfd3_xsk_rx_skb() 72 struct nfp_net *nn = netdev_priv(dp->netdev); in nfp_nfd3_xsk_rx_skb() 116 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfd3_xsk_rx() 199 struct nfp_net *nn = netdev_priv(dp->netdev); in nfp_nfd3_xsk_rx() 404 nfp_net_irq_unmask(r_vec->nfp_net, r_vec->irq_entry); in nfp_nfd3_xsk_poll()
|
/linux-5.19.10/drivers/net/ethernet/netronome/nfp/bpf/ |
D | main.c | 24 static bool nfp_net_ebpf_capable(struct nfp_net *nn) in nfp_net_ebpf_capable() 38 nfp_bpf_xdp_offload(struct nfp_app *app, struct nfp_net *nn, in nfp_bpf_xdp_offload() 57 static const char *nfp_bpf_extra_cap(struct nfp_app *app, struct nfp_net *nn) in nfp_bpf_extra_cap() 63 nfp_bpf_vnic_alloc(struct nfp_app *app, struct nfp_net *nn, unsigned int id) in nfp_bpf_vnic_alloc() 97 static void nfp_bpf_vnic_free(struct nfp_app *app, struct nfp_net *nn) in nfp_bpf_vnic_free() 109 struct nfp_net *nn = cb_priv; in nfp_bpf_setup_tc_block_cb() 168 struct nfp_net *nn = netdev_priv(netdev); in nfp_bpf_setup_tc() 184 struct nfp_net *nn = netdev_priv(netdev); in nfp_bpf_check_mtu()
|
D | offload.c | 221 struct nfp_net *nn = netdev_priv(prog->aux->offload->netdev); in nfp_bpf_translate() 425 int nfp_ndo_bpf(struct nfp_app *app, struct nfp_net *nn, struct netdev_bpf *bpf) in nfp_ndo_bpf() 484 bool nfp_bpf_offload_check_mtu(struct nfp_net *nn, struct bpf_prog *prog, in nfp_bpf_offload_check_mtu() 496 nfp_net_bpf_load(struct nfp_net *nn, struct bpf_prog *prog, in nfp_net_bpf_load() 551 nfp_net_bpf_start(struct nfp_net *nn, struct netlink_ext_ack *extack) in nfp_net_bpf_start() 564 static int nfp_net_bpf_stop(struct nfp_net *nn) in nfp_net_bpf_stop() 575 int nfp_net_bpf_offload(struct nfp_net *nn, struct bpf_prog *prog, in nfp_net_bpf_offload()
|
D | main.h | 563 bool nfp_bpf_offload_check_mtu(struct nfp_net *nn, struct bpf_prog *prog, 578 struct nfp_net; 580 int nfp_ndo_bpf(struct nfp_app *app, struct nfp_net *nn, 582 int nfp_net_bpf_offload(struct nfp_net *nn, struct bpf_prog *prog,
|
/linux-5.19.10/drivers/net/ethernet/netronome/nfp/nfdk/ |
D | dp.c | 248 struct nfp_net *nn = netdev_priv(netdev); in nfp_nfdk_tx() 461 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfdk_tx_complete() 805 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfdk_xdp_complete() 997 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfdk_rx() 1139 struct nfp_net *nn = netdev_priv(dp->netdev); in nfp_nfdk_rx() 1147 struct nfp_net *nn; in nfp_nfdk_rx() 1236 nfp_net_irq_unmask(r_vec->nfp_net, r_vec->irq_entry); in nfp_nfdk_poll() 1238 if (r_vec->nfp_net->rx_coalesce_adapt_on && r_vec->rx_ring) { in nfp_nfdk_poll() 1253 if (r_vec->nfp_net->tx_coalesce_adapt_on && r_vec->tx_ring) { in nfp_nfdk_poll() 1275 nfp_nfdk_ctrl_tx_one(struct nfp_net *nn, struct nfp_net_r_vector *r_vec, in nfp_nfdk_ctrl_tx_one() [all …]
|
/linux-5.19.10/drivers/net/ethernet/netronome/nfp/abm/ |
D | main.c | 176 struct nfp_net *nn; in nfp_abm_kill_reprs_all() 208 struct nfp_net *nn; in nfp_abm_eswitch_set_switchdev() 257 nfp_abm_vnic_set_mac(struct nfp_pf *pf, struct nfp_abm *abm, struct nfp_net *nn, in nfp_abm_vnic_set_mac() 313 nfp_abm_vnic_alloc(struct nfp_app *app, struct nfp_net *nn, unsigned int id) in nfp_abm_vnic_alloc() 362 static void nfp_abm_vnic_free(struct nfp_app *app, struct nfp_net *nn) in nfp_abm_vnic_free() 372 static int nfp_abm_vnic_init(struct nfp_app *app, struct nfp_net *nn) in nfp_abm_vnic_init()
|
D | main.h | 22 struct nfp_net; 208 struct nfp_net *vnic;
|