Home
last modified time | relevance | path

Searched refs:nfp_net (Results 1 – 25 of 27) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
Dnfp_net.h29 struct nfp_net *__nn = (nn); \
108 struct nfp_net;
398 struct nfp_net *nfp_net; member
605 struct nfp_net { struct
702 static inline u16 nn_readb(struct nfp_net *nn, int off) in nn_readb() argument
707 static inline void nn_writeb(struct nfp_net *nn, int off, u8 val) in nn_writeb()
712 static inline u16 nn_readw(struct nfp_net *nn, int off) in nn_readw()
717 static inline void nn_writew(struct nfp_net *nn, int off, u16 val) in nn_writew()
722 static inline u32 nn_readl(struct nfp_net *nn, int off) in nn_readl()
727 static inline void nn_writel(struct nfp_net *nn, int off, u32 val) in nn_writel()
[all …]
Dccm.h12 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,
Dnfp_app.h26 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 *nn, struct sk_buff *skb);
[all …]
Dccm_mbox.c54 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 …]
Dnfp_net_common.c101 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 *nn) in nfp_net_reconfig_wait_posted()
278 int __nfp_net_reconfig(struct nfp_net *nn, u32 update) in __nfp_net_reconfig()
[all …]
Dnfp_net_debugfs.c17 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()
Dnfp_net_ethtool.c216 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 *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 …]
Dnfp_net_main.c85 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 *nn; in nfp_net_pf_init_vnics()
550 struct nfp_net *nn, *next; in nfp_net_refresh_port_table_sync()
[all …]
Dnfp_main.h30 struct nfp_net;
116 struct nfp_net *ctrl_vnic;
160 bool nfp_ctrl_tx(struct nfp_net *nn, struct sk_buff *skb);
Dnfp_app_nic.c12 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()
Dnfp_netvf_main.c28 struct nfp_net *nn;
49 static void nfp_netvf_get_mac_addr(struct nfp_net *nn) in nfp_netvf_get_mac_addr()
76 struct nfp_net *nn; in nfp_netvf_pci_probe()
286 struct nfp_net *nn; in nfp_netvf_pci_remove()
Dnfp_app.c41 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()
Dnfp_net_sriov.c42 struct nfp_net *nn; in nfp_net_sriov_update()
49 nn = list_first_entry(&app->pf->vnics, struct nfp_net, vnic_list); in nfp_net_sriov_update()
Dnfp_net_repr.h9 struct nfp_net;
Dnfp_port.c17 struct nfp_net *nn = netdev_priv(netdev); in nfp_port_from_netdev()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/crypto/
Dtls.c31 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 …]
Dcrypto.h8 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-5.10/drivers/net/ethernet/netronome/nfp/bpf/
Dmain.c24 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()
Doffload.c221 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()
Dmain.h563 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,
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/abm/
Dmain.c176 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()
Dmain.h22 struct nfp_net;
208 struct nfp_net *vnic;
Dctrl.c265 struct nfp_net *nn = alink->vnic; in nfp_abm_ctrl_prio_map_update()
291 struct nfp_net *nn = alink->vnic; in nfp_abm_ctrl_prio_check_params()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/
Dmain.c28 static const char *nfp_flower_extra_cap(struct nfp_app *app, struct nfp_net *nn) in nfp_flower_extra_cap()
600 static int nfp_flower_vnic_alloc(struct nfp_app *app, struct nfp_net *nn, in nfp_flower_vnic_alloc()
619 static void nfp_flower_vnic_clean(struct nfp_app *app, struct nfp_net *nn) in nfp_flower_vnic_clean()
631 static int nfp_flower_vnic_init(struct nfp_app *app, struct nfp_net *nn) in nfp_flower_vnic_init()
Dmain.h197 struct nfp_net *nn;

12