/openbmc/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net.h | 30 struct nfp_net *__nn = (nn); \ 106 struct nfp_net; 388 struct nfp_net *nfp_net; member 626 struct nfp_net { struct 948 struct nfp_net * 952 void nfp_net_free(struct nfp_net *nn); 954 int nfp_net_init(struct nfp_net *nn); 955 void nfp_net_clean(struct nfp_net *nn); 957 int nfp_ctrl_open(struct nfp_net *nn); 958 void nfp_ctrl_close(struct nfp_net *nn); [all …]
|
H A 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,
|
H A D | nfp_app.h | 25 struct nfp_net; 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; 189 bool nfp_ctrl_tx(struct nfp_net *nn, struct sk_buff *skb); 308 struct nfp_net *nn) in nfp_app_extra_cap() [all …]
|
H A D | nfp_net_common.c | 516 struct nfp_net *nn = data; in nfp_net_irq_lsc() 537 struct nfp_net *nn = data; in nfp_net_irq_exn() 753 r_vec->nfp_net = nn; in nfp_net_vecs_init() 1165 struct nfp_net *nn; in nfp_net_rx_dim_work() 1171 nn = r_vec->nfp_net; in nfp_net_rx_dim_work() 1194 struct nfp_net *nn; in nfp_net_tx_dim_work() 1200 nn = r_vec->nfp_net; in nfp_net_tx_dim_work() 1406 struct nfp_net *nn = container_of(work, struct nfp_net, mbox_amsg.work); in nfp_net_mbox_amsg_work() 2286 struct nfp_net * 2292 struct nfp_net *nn; in nfp_net_alloc() [all …]
|
H A D | ccm_mbox.c | 54 static u32 nfp_ccm_mbox_max_msg(struct nfp_net *nn) in nfp_ccm_mbox_max_msg() 128 static void nfp_ccm_mbox_mark_next_runner(struct nfp_net *nn) in nfp_ccm_mbox_mark_next_runner() 374 static void nfp_ccm_mbox_run_queue_unlock(struct nfp_net *nn) in nfp_ccm_mbox_run_queue_unlock() 609 struct nfp_net *nn; in nfp_ccm_mbox_post_runq_work() 611 nn = container_of(work, struct nfp_net, mbox_cmsg.runq_work); in nfp_ccm_mbox_post_runq_work() 628 struct nfp_net *nn; in nfp_ccm_mbox_post_wait_work() 711 bool nfp_ccm_mbox_fits(struct nfp_net *nn, unsigned int size) in nfp_ccm_mbox_fits() 716 int nfp_ccm_mbox_init(struct nfp_net *nn) in nfp_ccm_mbox_init() 721 void nfp_ccm_mbox_clean(struct nfp_net *nn) in nfp_ccm_mbox_clean() 726 int nfp_ccm_mbox_alloc(struct nfp_net *nn) in nfp_ccm_mbox_alloc() [all …]
|
H A 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); 146 bool (*ctrl_tx_one)(struct nfp_net *nn, struct nfp_net_r_vector *r_vec,
|
H A 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 …]
|
H A 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()
|
H A D | nfp_net_ethtool.c | 220 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_get_drvinfo() 489 struct nfp_net *nn; in nfp_net_get_link_ksettings() 627 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_get_ringparam() 656 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_set_ringparam() 728 struct nfp_net *nn = netdev_priv(netdev); in nfp_test_fw() 838 struct nfp_net *nn = netdev_priv(netdev); in nfp_vnic_get_sw_stats_count() 846 struct nfp_net *nn = netdev_priv(netdev); in nfp_vnic_get_sw_stats_strings() 880 struct nfp_net *nn = netdev_priv(netdev); in nfp_vnic_get_sw_stats() 1085 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_get_strings() 1109 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_get_stats() [all …]
|
H A D | nfp_net_main.c | 79 static void nfp_net_pf_free_vnic(struct nfp_pf *pf, struct nfp_net *nn) in nfp_net_pf_free_vnic() 91 struct nfp_net *nn, *next; in nfp_net_pf_free_vnics() 98 static struct nfp_net * 104 struct nfp_net *nn; in nfp_net_pf_alloc_vnic() 181 struct nfp_net *nn; in nfp_net_pf_alloc_vnics() 213 static void nfp_net_pf_clean_vnic(struct nfp_pf *pf, struct nfp_net *nn) in nfp_net_pf_clean_vnic() 226 struct nfp_net *nn; in nfp_net_pf_alloc_irqs() 271 struct nfp_net *nn; in nfp_net_pf_init_vnics() 549 struct nfp_net *nn; in nfp_net_notify_port_speed() 596 struct nfp_net *nn, *next; in nfp_net_refresh_port_table_sync() [all …]
|
H A 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()
|
H A D | nfp_main.h | 28 struct nfp_net; 118 struct nfp_net *ctrl_vnic; 160 bool nfp_ctrl_tx(struct nfp_net *nn, struct sk_buff *skb);
|
H A 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()
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/crypto/ |
H A 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() 50 static inline void nfp_net_ipsec_init(struct nfp_net *nn) in nfp_net_ipsec_init() 54 static inline void nfp_net_ipsec_clean(struct nfp_net *nn) in nfp_net_ipsec_clean() 58 void nfp_net_ipsec_init(struct nfp_net *nn); 59 void nfp_net_ipsec_clean(struct nfp_net *nn);
|
H A 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() 161 nfp_net_tls_assign_conn_id(struct nfp_net *nn, in nfp_net_tls_assign_conn_id() 244 nfp_net_cipher_supported(struct nfp_net *nn, u16 cipher_type, in nfp_net_cipher_supported() 270 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_tls_add() 413 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_tls_del() 426 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_tls_resync() 475 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_tls_rx_resync_req() 545 static int nfp_net_tls_reset(struct nfp_net *nn) in nfp_net_tls_reset() [all …]
|
H A D | ipsec.c | 133 static int nfp_net_ipsec_cfg(struct nfp_net *nn, struct nfp_mbox_amsg_entry *entry) in nfp_net_ipsec_cfg() 276 struct nfp_net *nn; in nfp_net_xfrm_add_state() 517 struct nfp_net *nn; in nfp_net_xfrm_del_state() 545 void nfp_net_ipsec_init(struct nfp_net *nn) in nfp_net_ipsec_init() 554 void nfp_net_ipsec_clean(struct nfp_net *nn) in nfp_net_ipsec_clean() 586 struct nfp_net *nn; in nfp_net_ipsec_rx()
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nic/ |
H A D | dcb.c | 72 struct nfp_net *nn = netdev_priv(dev); in nfp_nic_dcbnl_ieee_getets() 86 static bool nfp_refresh_tc2idx(struct nfp_net *nn) in nfp_refresh_tc2idx() 150 struct nfp_net *nn = netdev_priv(dev); in update_dscp_maxrate() 211 struct nfp_net *nn = netdev_priv(dev); in dcb_ets_check() 267 struct nfp_net *nn = netdev_priv(dev); in nfp_nic_dcbnl_ieee_setets() 316 struct nfp_net *nn = netdev_priv(dev); in nfp_nic_dcbnl_ieee_getmaxrate() 331 struct nfp_net *nn = netdev_priv(dev); in nfp_nic_dcbnl_ieee_setmaxrate() 433 struct nfp_net *nn = netdev_priv(dev); in nfp_nic_dcbnl_ieee_setapp() 480 struct nfp_net *nn = netdev_priv(dev); in nfp_nic_dcbnl_ieee_delapp() 523 int nfp_nic_dcb_init(struct nfp_net *nn) in nfp_nic_dcb_init() [all …]
|
H A D | main.h | 33 int nfp_nic_dcb_init(struct nfp_net *nn); 34 void nfp_nic_dcb_clean(struct nfp_net *nn); 36 static inline int nfp_nic_dcb_init(struct nfp_net *nn) { return 0; } in nfp_nic_dcb_init() 37 static inline void nfp_nic_dcb_clean(struct nfp_net *nn) {} in nfp_nic_dcb_clean()
|
H A D | main.c | 33 static int nfp_nic_vnic_init(struct nfp_app *app, struct nfp_net *nn) in nfp_nic_vnic_init() 38 static void nfp_nic_vnic_clean(struct nfp_app *app, struct nfp_net *nn) in nfp_nic_vnic_clean() 43 static int nfp_nic_vnic_alloc(struct nfp_app *app, struct nfp_net *nn, in nfp_nic_vnic_alloc() 62 static void nfp_nic_vnic_free(struct nfp_app *app, struct nfp_net *nn) in nfp_nic_vnic_free()
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/ |
H A 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()
|
H A 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()
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfd3/ |
H A D | dp.c | 254 struct nfp_net *nn = netdev_priv(netdev); in nfp_nfd3_tx() 421 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfd3_tx_complete() 506 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfd3_xdp_complete() 906 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfd3_rx() 1050 struct nfp_net *nn = netdev_priv(dp->netdev); in nfp_nfd3_rx() 1058 struct nfp_net *nn; in nfp_nfd3_rx() 1165 nfp_net_irq_unmask(r_vec->nfp_net, r_vec->irq_entry); in nfp_nfd3_poll() 1215 dp = &r_vec->nfp_net->dp; in nfp_nfd3_ctrl_tx_one() 1392 struct nfp_net *nn = r_vec->nfp_net; in nfp_ctrl_rx() 1412 nfp_net_irq_unmask(r_vec->nfp_net, r_vec->irq_entry); in nfp_nfd3_ctrl_poll() [all …]
|
H A 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() 119 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfd3_xsk_rx() 202 struct nfp_net *nn = netdev_priv(dp->netdev); in nfp_nfd3_xsk_rx() 405 nfp_net_irq_unmask(r_vec->nfp_net, r_vec->irq_entry); in nfp_nfd3_xsk_poll()
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfdk/ |
H A D | dp.c | 252 struct nfp_net *nn = netdev_priv(netdev); in nfp_nfdk_tx() 471 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfdk_tx_complete() 835 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfdk_xdp_complete() 1027 struct nfp_net_dp *dp = &r_vec->nfp_net->dp; in nfp_nfdk_rx() 1169 struct nfp_net *nn = netdev_priv(dp->netdev); in nfp_nfdk_rx() 1177 struct nfp_net *nn; in nfp_nfdk_rx() 1275 nfp_net_irq_unmask(r_vec->nfp_net, r_vec->irq_entry); in nfp_nfdk_poll() 1327 dp = &r_vec->nfp_net->dp; in nfp_nfdk_ctrl_tx_one() 1554 struct nfp_net *nn = r_vec->nfp_net; in nfp_ctrl_rx() 1574 nfp_net_irq_unmask(r_vec->nfp_net, r_vec->irq_entry); in nfp_nfdk_ctrl_poll() [all …]
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/abm/ |
H A 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()
|