Searched refs:nicvf (Results 1 – 7 of 7) sorted by relevance
/linux-4.4.14/drivers/net/ethernet/cavium/thunder/ |
D | nicvf_queues.h | 310 void nicvf_config_vlan_stripping(struct nicvf *nic, 312 int nicvf_set_qset_resources(struct nicvf *nic); 313 int nicvf_config_data_transfer(struct nicvf *nic, bool enable); 314 void nicvf_qset_config(struct nicvf *nic, bool enable); 315 void nicvf_cmp_queue_config(struct nicvf *nic, struct queue_set *qs, 318 void nicvf_sq_enable(struct nicvf *nic, struct snd_queue *sq, int qidx); 319 void nicvf_sq_disable(struct nicvf *nic, int qidx); 323 int nicvf_sq_append_skb(struct nicvf *nic, struct sk_buff *skb); 325 struct sk_buff *nicvf_get_rcv_skb(struct nicvf *nic, struct cqe_rx_t *cqe_rx); 329 void nicvf_enable_intr(struct nicvf *nic, int int_type, int q_idx); [all …]
|
D | nicvf_main.c | 54 static inline u8 nicvf_netdev_qidx(struct nicvf *nic, u8 qidx) in nicvf_netdev_qidx() 62 static inline void nicvf_set_rx_frame_cnt(struct nicvf *nic, in nicvf_set_rx_frame_cnt() 91 void nicvf_reg_write(struct nicvf *nic, u64 offset, u64 val) in nicvf_reg_write() 96 u64 nicvf_reg_read(struct nicvf *nic, u64 offset) in nicvf_reg_read() 101 void nicvf_queue_reg_write(struct nicvf *nic, u64 offset, in nicvf_queue_reg_write() 109 u64 nicvf_queue_reg_read(struct nicvf *nic, u64 offset, u64 qidx) in nicvf_queue_reg_read() 117 static void nicvf_write_to_mbx(struct nicvf *nic, union nic_mbx *mbx) in nicvf_write_to_mbx() 125 int nicvf_send_msg_to_pf(struct nicvf *nic, union nic_mbx *mbx) in nicvf_send_msg_to_pf() 156 static int nicvf_check_pf_ready(struct nicvf *nic) in nicvf_check_pf_ready() 170 static void nicvf_read_bgx_stats(struct nicvf *nic, struct bgx_stats_msg *bgx) in nicvf_read_bgx_stats() [all …]
|
D | nicvf_queues.c | 30 static int nicvf_poll_reg(struct nicvf *nic, int qidx, in nicvf_poll_reg() 52 static int nicvf_alloc_q_desc_mem(struct nicvf *nic, struct q_desc_mem *dmem, in nicvf_alloc_q_desc_mem() 70 static void nicvf_free_q_desc_mem(struct nicvf *nic, struct q_desc_mem *dmem) in nicvf_free_q_desc_mem() 86 static inline int nicvf_alloc_rcv_buffer(struct nicvf *nic, gfp_t gfp, in nicvf_alloc_rcv_buffer() 135 static struct sk_buff *nicvf_rb_ptr_to_skb(struct nicvf *nic, in nicvf_rb_ptr_to_skb() 160 static int nicvf_init_rbdr(struct nicvf *nic, struct rbdr *rbdr, in nicvf_init_rbdr() 194 static void nicvf_free_rbdr(struct nicvf *nic, struct rbdr *rbdr) in nicvf_free_rbdr() 232 static void nicvf_refill_rbdr(struct nicvf *nic, gfp_t gfp) in nicvf_refill_rbdr() 300 struct nicvf *nic = container_of(work, struct nicvf, rbdr_work.work); in nicvf_rbdr_work() 312 struct nicvf *nic = (struct nicvf *)data; in nicvf_rbdr_task() [all …]
|
D | nicvf_ethtool.c | 111 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_settings() 137 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_link() 145 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_drvinfo() 154 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_msglevel() 161 struct nicvf *nic = netdev_priv(netdev); in nicvf_set_msglevel() 166 static void nicvf_get_qset_strings(struct nicvf *nic, u8 **data, int qset) in nicvf_get_qset_strings() 190 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_strings() 228 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_sset_count() 238 struct nicvf *snic; in nicvf_get_sset_count() 252 static void nicvf_get_qset_stats(struct nicvf *nic, in nicvf_get_qset_stats() [all …]
|
D | nic.h | 137 struct nicvf *nicvf; member 259 struct nicvf { struct 260 struct nicvf *pnicvf; argument 274 struct nicvf *snicvf[MAX_SQS_PER_VF]; argument 454 u64 nicvf; member 479 struct nicvf_ptr nicvf; member 496 int nicvf_send_msg_to_pf(struct nicvf *vf, union nic_mbx *mbx); 497 void nicvf_config_rss(struct nicvf *nic); 498 void nicvf_set_rss_key(struct nicvf *nic); 500 void nicvf_update_stats(struct nicvf *nic); [all …]
|
D | Makefile | 7 obj-$(CONFIG_THUNDER_NIC_VF) += nicvf.o 10 nicvf-y := nicvf_main.o nicvf_queues.o 11 nicvf-y += nicvf_ethtool.o
|
D | nic_main.c | 31 u64 nicvf[MAX_NUM_VFS_SUPPORTED]; member 543 mbx.nicvf.msg = NIC_MBOX_MSG_PNICVF_PTR; in nic_send_pnicvf() 544 mbx.nicvf.nicvf = nic->nicvf[nic->pqs_vf[sqs]]; in nic_send_pnicvf() 549 static void nic_send_snicvf(struct nicpf *nic, struct nicvf_ptr *nicvf) in nic_send_snicvf() argument 552 int sqs_id = nic->vf_sqs[nicvf->vf_id][nicvf->sqs_id]; in nic_send_snicvf() 554 mbx.nicvf.msg = NIC_MBOX_MSG_SNICVF_PTR; in nic_send_snicvf() 555 mbx.nicvf.sqs_id = nicvf->sqs_id; in nic_send_snicvf() 556 mbx.nicvf.nicvf = nic->nicvf[sqs_id]; in nic_send_snicvf() 557 nic_send_msg_to_vf(nic, nicvf->vf_id, &mbx); in nic_send_snicvf() 745 nic->nicvf[vf] = mbx.nicvf.nicvf; in nic_handle_mbx_intr() [all …]
|