Home
last modified time | relevance | path

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

/drivers/net/ethernet/cavium/thunder/
Dnicvf_queues.h321 static inline u64 nicvf_iova_to_phys(struct nicvf *nic, dma_addr_t dma_addr) in nicvf_iova_to_phys()
329 void nicvf_unmap_sndq_buffers(struct nicvf *nic, struct snd_queue *sq,
331 void nicvf_config_vlan_stripping(struct nicvf *nic,
333 int nicvf_set_qset_resources(struct nicvf *nic);
334 int nicvf_config_data_transfer(struct nicvf *nic, bool enable);
335 void nicvf_qset_config(struct nicvf *nic, bool enable);
336 void nicvf_cmp_queue_config(struct nicvf *nic, struct queue_set *qs,
339 void nicvf_sq_enable(struct nicvf *nic, struct snd_queue *sq, int qidx);
340 void nicvf_sq_disable(struct nicvf *nic, int qidx);
344 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()
162 static int nicvf_check_pf_ready(struct nicvf *nic) in nicvf_check_pf_ready()
176 static void nicvf_send_cfg_done(struct nicvf *nic) in nicvf_send_cfg_done()
187 static void nicvf_read_bgx_stats(struct nicvf *nic, struct bgx_stats_msg *bgx) in nicvf_read_bgx_stats()
[all …]
Dnicvf_queues.c24 static void nicvf_get_page(struct nicvf *nic) in nicvf_get_page()
34 static int nicvf_poll_reg(struct nicvf *nic, int qidx, in nicvf_poll_reg()
56 static int nicvf_alloc_q_desc_mem(struct nicvf *nic, struct q_desc_mem *dmem, in nicvf_alloc_q_desc_mem()
74 static void nicvf_free_q_desc_mem(struct nicvf *nic, struct q_desc_mem *dmem) in nicvf_free_q_desc_mem()
95 static inline struct pgcache *nicvf_alloc_page(struct nicvf *nic, in nicvf_alloc_page()
178 static inline int nicvf_alloc_rcv_buffer(struct nicvf *nic, struct rbdr *rbdr, in nicvf_alloc_rcv_buffer()
235 static struct sk_buff *nicvf_rb_ptr_to_skb(struct nicvf *nic, in nicvf_rb_ptr_to_skb()
255 static int nicvf_init_rbdr(struct nicvf *nic, struct rbdr *rbdr, in nicvf_init_rbdr()
321 static void nicvf_free_rbdr(struct nicvf *nic, struct rbdr *rbdr) in nicvf_free_rbdr()
382 static void nicvf_refill_rbdr(struct nicvf *nic, gfp_t gfp) in nicvf_refill_rbdr()
[all …]
Dnicvf_ethtool.c123 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_link_ksettings()
185 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_link()
193 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_drvinfo()
202 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_msglevel()
209 struct nicvf *nic = netdev_priv(netdev); in nicvf_set_msglevel()
214 static void nicvf_get_qset_strings(struct nicvf *nic, u8 **data, int qset) in nicvf_get_qset_strings()
238 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_strings()
276 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_sset_count()
286 struct nicvf *snic; in nicvf_get_sset_count()
300 static void nicvf_get_qset_stats(struct nicvf *nic, in nicvf_get_qset_stats()
[all …]
Dnic.h125 struct nicvf *nicvf; member
266 struct nicvf { struct
267 struct nicvf *pnicvf; argument
294 struct nicvf *snicvf[MAX_SQS_PER_VF]; argument
481 u64 nicvf; member
539 struct nicvf_ptr nicvf; member
570 int nicvf_send_msg_to_pf(struct nicvf *vf, union nic_mbx *mbx);
571 void nicvf_config_rss(struct nicvf *nic);
572 void nicvf_set_rss_key(struct nicvf *nic);
574 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.c49 u64 nicvf[MAX_NUM_VFS_SUPPORTED]; member
738 mbx.nicvf.msg = NIC_MBOX_MSG_PNICVF_PTR; in nic_send_pnicvf()
739 mbx.nicvf.nicvf = nic->nicvf[nic->pqs_vf[sqs]]; in nic_send_pnicvf()
744 static void nic_send_snicvf(struct nicpf *nic, struct nicvf_ptr *nicvf) in nic_send_snicvf() argument
747 int sqs_id = nic->vf_sqs[nicvf->vf_id][nicvf->sqs_id]; in nic_send_snicvf()
749 mbx.nicvf.msg = NIC_MBOX_MSG_SNICVF_PTR; in nic_send_snicvf()
750 mbx.nicvf.sqs_id = nicvf->sqs_id; in nic_send_snicvf()
751 mbx.nicvf.nicvf = nic->nicvf[sqs_id]; in nic_send_snicvf()
752 nic_send_msg_to_vf(nic, nicvf->vf_id, &mbx); in nic_send_snicvf()
1045 nic->nicvf[vf] = mbx.nicvf.nicvf; in nic_handle_mbx_intr()
[all …]