/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net.h | 5 * nfp_net.h 30 struct nfp_net *__nn = (nn); \ 106 struct nfp_net; 340 * @nfp_net: Backpointer to nfp_net structure 388 struct nfp_net *nfp_net; member 547 * struct nfp_net - NFP network device structure 626 struct nfp_net { struct 736 int (*cfg)(struct nfp_net *n [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 *n [all...] |
H A 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 *n [all...] |
H A D | ccm_mbox.c | 9 #include "nfp_net.h" 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 *n [all...] |
H A D | nfp_net_common.c | 48 #include "nfp_net.h" 84 static void nfp_net_reconfig_start(struct nfp_net *nn, u32 update) in nfp_net_reconfig_start() 94 static void nfp_net_reconfig_start_async(struct nfp_net *nn, u32 update) in nfp_net_reconfig_start_async() 105 static bool nfp_net_reconfig_check_done(struct nfp_net *nn, bool last_check) in nfp_net_reconfig_check_done() 127 static bool __nfp_net_reconfig_wait(struct nfp_net *nn, unsigned long deadline) in __nfp_net_reconfig_wait() 149 static int nfp_net_reconfig_wait(struct nfp_net *nn, unsigned long deadline) in nfp_net_reconfig_wait() 162 struct nfp_net *nn = from_timer(nn, t, reconfig_timer); in nfp_net_reconfig_timer() 190 static void nfp_net_reconfig_post(struct nfp_net *nn, u32 update) in nfp_net_reconfig_post() 210 static void nfp_net_reconfig_sync_enter(struct nfp_net *nn) in nfp_net_reconfig_sync_enter() 241 static void nfp_net_reconfig_wait_posted(struct nfp_net *n [all...] |
H A D | nfp_net_dp.h | 7 #include "nfp_net.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 *n [all...] |
H A D | nfp_net_debugfs.c | 7 #include "nfp_net.h" 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() 174 nfp_dir = debugfs_create_dir("nfp_net", NULL); in nfp_net_debugfs_create()
|
H A D | nfp_net_ethtool.c | 30 #include "nfp_net.h" 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() 636 static int nfp_net_set_ring_size(struct nfp_net *nn, u32 rxd_cnt, u32 txd_cnt) in nfp_net_set_ring_size() 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 *n in nfp_vnic_get_sw_stats() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net.h | 5 * nfp_net.h 29 struct nfp_net *__nn = (nn); \ 108 struct nfp_net; 354 * @nfp_net: Backpointer to nfp_net structure 398 struct nfp_net *nfp_net; member 535 * struct nfp_net - NFP network device structure 605 struct nfp_net { struct 702 static inline u16 nn_readb(struct nfp_net *n [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 *n [all...] |
H A D | nfp_app.h | 26 struct nfp_net; 94 const char *(*extra_cap)(struct nfp_app *app, struct nfp_net *nn); 99 int (*vnic_alloc)(struct nfp_app *app, struct nfp_net *nn, 101 void (*vnic_free)(struct nfp_app *app, struct nfp_net *nn); 102 int (*vnic_init)(struct nfp_app *app, struct nfp_net *nn); 103 void (*vnic_clean)(struct nfp_app *app, struct nfp_net *nn); 135 int (*bpf)(struct nfp_app *app, struct nfp_net *nn, 137 int (*xdp_offload)(struct nfp_app *app, struct nfp_net *nn, 167 struct nfp_net *ctrl; 179 bool __nfp_ctrl_tx(struct nfp_net *n [all...] |
H A D | ccm_mbox.c | 9 #include "nfp_net.h" 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 *n [all...] |
H A D | nfp_net_common.c | 46 #include "nfp_net.h" 101 static void nfp_net_reconfig_start(struct nfp_net *nn, u32 update) in nfp_net_reconfig_start() 111 static void nfp_net_reconfig_start_async(struct nfp_net *nn, u32 update) in nfp_net_reconfig_start_async() 122 static bool nfp_net_reconfig_check_done(struct nfp_net *nn, bool last_check) in nfp_net_reconfig_check_done() 144 static bool __nfp_net_reconfig_wait(struct nfp_net *nn, unsigned long deadline) in __nfp_net_reconfig_wait() 166 static int nfp_net_reconfig_wait(struct nfp_net *nn, unsigned long deadline) in nfp_net_reconfig_wait() 179 struct nfp_net *nn = from_timer(nn, t, reconfig_timer); in nfp_net_reconfig_timer() 207 static void nfp_net_reconfig_post(struct nfp_net *nn, u32 update) in nfp_net_reconfig_post() 227 static void nfp_net_reconfig_sync_enter(struct nfp_net *nn) in nfp_net_reconfig_sync_enter() 258 static void nfp_net_reconfig_wait_posted(struct nfp_net *n [all...] |
H A D | nfp_net_debugfs.c | 7 #include "nfp_net.h" 17 struct nfp_net *nn; in nfp_rx_q_show() 23 if (!r_vec->nfp_net || !r_vec->rx_ring) in nfp_rx_q_show() 25 nn = r_vec->nfp_net; in nfp_rx_q_show() 79 struct nfp_net *nn; in nfp_tx_q_show() 88 if (!r_vec->nfp_net || !tx_ring) in nfp_tx_q_show() 90 nn = r_vec->nfp_net; in nfp_tx_q_show() 148 void nfp_net_debugfs_vnic_add(struct nfp_net *nn, struct dentry *ddir) in nfp_net_debugfs_vnic_add() 198 nfp_dir = debugfs_create_dir("nfp_net", NULL); in nfp_net_debugfs_create()
|
H A D | nfp_net_ethtool.c | 28 #include "nfp_net.h" 216 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_get_drvinfo() 284 struct nfp_net *nn; in nfp_net_get_link_ksettings() 385 struct nfp_net *nn = netdev_priv(netdev); in nfp_net_get_ringparam() 393 static int nfp_net_set_ring_size(struct nfp_net *nn, u32 rxd_cnt, u32 txd_cnt) in nfp_net_set_ring_size() 410 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 *n [all...] |
H A D | nfp_net_main.c | 31 #include "nfp_net.h" 85 static void nfp_net_pf_free_vnic(struct nfp_pf *pf, struct nfp_net *nn) in nfp_net_pf_free_vnic() 97 struct nfp_net *nn, *next; in nfp_net_pf_free_vnics() 104 static struct nfp_net * 110 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 *n in nfp_net_pf_init_vnics() [all...] |
/kernel/linux/linux-6.6/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 | 12 #include "../nfp_net.h" 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 *n [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/nic/ |
H A D | dcb.c | 9 #include "../nfp_net.h" 50 static struct nfp_dcb *get_dcb_priv(struct nfp_net *nn) in get_dcb_priv() 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() 116 static int nfp_fill_maxrate(struct nfp_net *nn, u64 *max_rate_array) in nfp_fill_maxrate() 150 struct nfp_net *nn = netdev_priv(dev); in update_dscp_maxrate() 175 static void nfp_nic_set_trust(struct nfp_net *nn, u32 *update) in nfp_nic_set_trust() 193 static void nfp_nic_set_enable(struct nfp_net *nn, u32 enable, u32 *update) in nfp_nic_set_enable() 211 struct nfp_net *nn = netdev_priv(dev); in dcb_ets_check() 235 static void nfp_nic_fill_ets(struct nfp_net *n [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 | 8 #include "../nfp_net.h" 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/crypto/ |
H A D | tls.c | 12 #include "../nfp_net.h" 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 *n [all...] |
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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/nfd3/ |
H A D | dp.c | 10 #include "../nfp_net.h" 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() 1167 if (r_vec->nfp_net->rx_coalesce_adapt_on && r_vec->rx_ring) { in nfp_nfd3_poll() 1182 if (r_vec->nfp_net in nfp_nfd3_poll() [all...] |