Searched refs:nicvf (Results 1 – 7 of 7) sorted by relevance
/Linux-v4.19/drivers/net/ethernet/cavium/thunder/ |
D | nicvf_queues.h | 323 static inline u64 nicvf_iova_to_phys(struct nicvf *nic, dma_addr_t dma_addr) in nicvf_iova_to_phys() 331 void nicvf_unmap_sndq_buffers(struct nicvf *nic, struct snd_queue *sq, 333 void nicvf_config_vlan_stripping(struct nicvf *nic, 335 int nicvf_set_qset_resources(struct nicvf *nic); 336 int nicvf_config_data_transfer(struct nicvf *nic, bool enable); 337 void nicvf_qset_config(struct nicvf *nic, bool enable); 338 void nicvf_cmp_queue_config(struct nicvf *nic, struct queue_set *qs, 341 void nicvf_sq_enable(struct nicvf *nic, struct snd_queue *sq, int qidx); 342 void nicvf_sq_disable(struct nicvf *nic, int qidx); 346 int nicvf_sq_append_skb(struct nicvf *nic, struct snd_queue *sq, [all …]
|
D | nicvf_main.c | 74 static inline u8 nicvf_netdev_qidx(struct nicvf *nic, u8 qidx) in nicvf_netdev_qidx() 92 void nicvf_reg_write(struct nicvf *nic, u64 offset, u64 val) in nicvf_reg_write() 97 u64 nicvf_reg_read(struct nicvf *nic, u64 offset) in nicvf_reg_read() 102 void nicvf_queue_reg_write(struct nicvf *nic, u64 offset, in nicvf_queue_reg_write() 110 u64 nicvf_queue_reg_read(struct nicvf *nic, u64 offset, u64 qidx) in nicvf_queue_reg_read() 118 static void nicvf_write_to_mbx(struct nicvf *nic, union nic_mbx *mbx) in nicvf_write_to_mbx() 126 int nicvf_send_msg_to_pf(struct nicvf *nic, union nic_mbx *mbx) in nicvf_send_msg_to_pf() 161 static int nicvf_check_pf_ready(struct nicvf *nic) in nicvf_check_pf_ready() 175 static void nicvf_read_bgx_stats(struct nicvf *nic, struct bgx_stats_msg *bgx) in nicvf_read_bgx_stats() 183 static void nicvf_handle_mbx_intr(struct nicvf *nic) in nicvf_handle_mbx_intr() [all …]
|
D | nicvf_ethtool.c | 125 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_link_ksettings() 187 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_link() 195 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_drvinfo() 204 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_msglevel() 211 struct nicvf *nic = netdev_priv(netdev); in nicvf_set_msglevel() 216 static void nicvf_get_qset_strings(struct nicvf *nic, u8 **data, int qset) in nicvf_get_qset_strings() 240 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_strings() 278 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_sset_count() 288 struct nicvf *snic; in nicvf_get_sset_count() 302 static void nicvf_get_qset_stats(struct nicvf *nic, in nicvf_get_qset_stats() [all …]
|
D | nicvf_queues.c | 24 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() 179 static inline int nicvf_alloc_rcv_buffer(struct nicvf *nic, struct rbdr *rbdr, in nicvf_alloc_rcv_buffer() 236 static struct sk_buff *nicvf_rb_ptr_to_skb(struct nicvf *nic, in nicvf_rb_ptr_to_skb() 256 static int nicvf_init_rbdr(struct nicvf *nic, struct rbdr *rbdr, in nicvf_init_rbdr() 322 static void nicvf_free_rbdr(struct nicvf *nic, struct rbdr *rbdr) in nicvf_free_rbdr() 384 static void nicvf_refill_rbdr(struct nicvf *nic, gfp_t gfp) in nicvf_refill_rbdr() [all …]
|
D | nic.h | 125 struct nicvf *nicvf; member 279 struct nicvf { struct 280 struct nicvf *pnicvf; argument 307 struct nicvf *snicvf[MAX_SQS_PER_VF]; argument 528 u64 nicvf; member 599 struct nicvf_ptr nicvf; member 632 int nicvf_send_msg_to_pf(struct nicvf *vf, union nic_mbx *mbx); 633 void nicvf_config_rss(struct nicvf *nic); 634 void nicvf_set_rss_key(struct nicvf *nic); 636 void nicvf_update_stats(struct nicvf *nic); [all …]
|
D | Makefile | 9 obj-$(CONFIG_THUNDER_NIC_VF) += nicvf.o 12 nicvf-y := nicvf_main.o nicvf_queues.o 13 nicvf-y += nicvf_ethtool.o
|
D | nic_main.c | 51 u64 nicvf[MAX_NUM_VFS_SUPPORTED]; member 709 mbx.nicvf.msg = NIC_MBOX_MSG_PNICVF_PTR; in nic_send_pnicvf() 710 mbx.nicvf.nicvf = nic->nicvf[nic->pqs_vf[sqs]]; in nic_send_pnicvf() 715 static void nic_send_snicvf(struct nicpf *nic, struct nicvf_ptr *nicvf) in nic_send_snicvf() argument 718 int sqs_id = nic->vf_sqs[nicvf->vf_id][nicvf->sqs_id]; in nic_send_snicvf() 720 mbx.nicvf.msg = NIC_MBOX_MSG_SNICVF_PTR; in nic_send_snicvf() 721 mbx.nicvf.sqs_id = nicvf->sqs_id; in nic_send_snicvf() 722 mbx.nicvf.nicvf = nic->nicvf[sqs_id]; in nic_send_snicvf() 723 nic_send_msg_to_vf(nic, nicvf->vf_id, &mbx); in nic_send_snicvf() 1054 nic->nicvf[vf] = mbx.nicvf.nicvf; in nic_handle_mbx_intr() [all …]
|