Home
last modified time | relevance | path

Searched refs:nicvf (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/cavium/thunder/
Dnicvf_queues.h320 static inline u64 nicvf_iova_to_phys(struct nicvf *nic, dma_addr_t dma_addr) in nicvf_iova_to_phys()
328 void nicvf_unmap_sndq_buffers(struct nicvf *nic, struct snd_queue *sq,
330 void nicvf_config_vlan_stripping(struct nicvf *nic,
332 int nicvf_set_qset_resources(struct nicvf *nic);
333 int nicvf_config_data_transfer(struct nicvf *nic, bool enable);
334 void nicvf_qset_config(struct nicvf *nic, bool enable);
335 void nicvf_cmp_queue_config(struct nicvf *nic, struct queue_set *qs,
338 void nicvf_sq_enable(struct nicvf *nic, struct snd_queue *sq, int qidx);
339 void nicvf_sq_disable(struct nicvf *nic, int qidx);
343 int nicvf_sq_append_skb(struct nicvf *nic, struct snd_queue *sq,
[all …]
Dnicvf_main.c75 static inline u8 nicvf_netdev_qidx(struct nicvf *nic, u8 qidx) in nicvf_netdev_qidx()
93 void nicvf_reg_write(struct nicvf *nic, u64 offset, u64 val) in nicvf_reg_write()
98 u64 nicvf_reg_read(struct nicvf *nic, u64 offset) in nicvf_reg_read()
103 void nicvf_queue_reg_write(struct nicvf *nic, u64 offset, in nicvf_queue_reg_write()
111 u64 nicvf_queue_reg_read(struct nicvf *nic, u64 offset, u64 qidx) in nicvf_queue_reg_read()
119 static void nicvf_write_to_mbx(struct nicvf *nic, union nic_mbx *mbx) in nicvf_write_to_mbx()
127 int nicvf_send_msg_to_pf(struct nicvf *nic, union nic_mbx *mbx) in nicvf_send_msg_to_pf()
167 static int nicvf_check_pf_ready(struct nicvf *nic) in nicvf_check_pf_ready()
181 static void nicvf_send_cfg_done(struct nicvf *nic) in nicvf_send_cfg_done()
192 static void nicvf_read_bgx_stats(struct nicvf *nic, struct bgx_stats_msg *bgx) in nicvf_read_bgx_stats()
[all …]
Dnicvf_queues.c22 static void nicvf_get_page(struct nicvf *nic) in nicvf_get_page()
32 static int nicvf_poll_reg(struct nicvf *nic, int qidx, in nicvf_poll_reg()
54 static int nicvf_alloc_q_desc_mem(struct nicvf *nic, struct q_desc_mem *dmem, in nicvf_alloc_q_desc_mem()
72 static void nicvf_free_q_desc_mem(struct nicvf *nic, struct q_desc_mem *dmem) in nicvf_free_q_desc_mem()
93 static inline struct pgcache *nicvf_alloc_page(struct nicvf *nic, in nicvf_alloc_page()
176 static inline int nicvf_alloc_rcv_buffer(struct nicvf *nic, struct rbdr *rbdr, in nicvf_alloc_rcv_buffer()
233 static struct sk_buff *nicvf_rb_ptr_to_skb(struct nicvf *nic, in nicvf_rb_ptr_to_skb()
253 static int nicvf_init_rbdr(struct nicvf *nic, struct rbdr *rbdr, in nicvf_init_rbdr()
319 static void nicvf_free_rbdr(struct nicvf *nic, struct rbdr *rbdr) in nicvf_free_rbdr()
380 static void nicvf_refill_rbdr(struct nicvf *nic, gfp_t gfp) in nicvf_refill_rbdr()
[all …]
Dnicvf_ethtool.c122 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_link_ksettings()
184 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_link()
192 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_drvinfo()
200 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_msglevel()
207 struct nicvf *nic = netdev_priv(netdev); in nicvf_set_msglevel()
212 static void nicvf_get_qset_strings(struct nicvf *nic, u8 **data, int qset) in nicvf_get_qset_strings()
236 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_strings()
274 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_sset_count()
284 struct nicvf *snic; in nicvf_get_sset_count()
298 static void nicvf_get_qset_stats(struct nicvf *nic, in nicvf_get_qset_stats()
[all …]
Dnic.h122 struct nicvf *nicvf; member
276 struct nicvf { struct
277 struct nicvf *pnicvf; argument
304 struct nicvf *snicvf[MAX_SQS_PER_VF]; argument
529 u64 nicvf; member
598 struct nicvf_ptr nicvf; member
631 int nicvf_send_msg_to_pf(struct nicvf *vf, union nic_mbx *mbx);
632 void nicvf_config_rss(struct nicvf *nic);
633 void nicvf_set_rss_key(struct nicvf *nic);
635 void nicvf_update_stats(struct nicvf *nic);
[all …]
DMakefile9 obj-$(CONFIG_THUNDER_NIC_VF) += nicvf.o
12 nicvf-y := nicvf_main.o nicvf_queues.o
13 nicvf-y += nicvf_ethtool.o
Dnic_main.c48 u64 nicvf[MAX_NUM_VFS_SUPPORTED]; member
700 mbx.nicvf.msg = NIC_MBOX_MSG_PNICVF_PTR; in nic_send_pnicvf()
701 mbx.nicvf.nicvf = nic->nicvf[nic->pqs_vf[sqs]]; in nic_send_pnicvf()
706 static void nic_send_snicvf(struct nicpf *nic, struct nicvf_ptr *nicvf) in nic_send_snicvf() argument
709 int sqs_id = nic->vf_sqs[nicvf->vf_id][nicvf->sqs_id]; in nic_send_snicvf()
711 mbx.nicvf.msg = NIC_MBOX_MSG_SNICVF_PTR; in nic_send_snicvf()
712 mbx.nicvf.sqs_id = nicvf->sqs_id; in nic_send_snicvf()
713 mbx.nicvf.nicvf = nic->nicvf[sqs_id]; in nic_send_snicvf()
714 nic_send_msg_to_vf(nic, nicvf->vf_id, &mbx); in nic_send_snicvf()
1067 nic->nicvf[vf] = mbx.nicvf.nicvf; in nic_handle_mbx_intr()
[all …]