/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/thunder/ |
H A D | nicvf_queues.h | 320 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 *ni [all...] |
H A D | nicvf_main.c | 29 #define DRV_NAME "nicvf" 75 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 *ni [all...] |
H A D | nicvf_ethtool.c | 18 #define DRV_NAME "nicvf" 121 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_link_ksettings() 183 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_link() 191 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_drvinfo() 199 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_msglevel() 206 struct nicvf *nic = netdev_priv(netdev); in nicvf_set_msglevel() 211 static void nicvf_get_qset_strings(struct nicvf *nic, u8 **data, int qset) in nicvf_get_qset_strings() 235 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_strings() 273 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_sset_count() 283 struct nicvf *sni in nicvf_get_sset_count() [all...] |
H A D | nicvf_queues.c | 21 static void nicvf_get_page(struct nicvf *nic) in nicvf_get_page() 31 static int nicvf_poll_reg(struct nicvf *nic, int qidx, in nicvf_poll_reg() 53 static int nicvf_alloc_q_desc_mem(struct nicvf *nic, struct q_desc_mem *dmem, in nicvf_alloc_q_desc_mem() 71 static void nicvf_free_q_desc_mem(struct nicvf *nic, struct q_desc_mem *dmem) in nicvf_free_q_desc_mem() 92 static inline struct pgcache *nicvf_alloc_page(struct nicvf *nic, in nicvf_alloc_page() 175 static inline int nicvf_alloc_rcv_buffer(struct nicvf *nic, struct rbdr *rbdr, in nicvf_alloc_rcv_buffer() 232 static struct sk_buff *nicvf_rb_ptr_to_skb(struct nicvf *nic, in nicvf_rb_ptr_to_skb() 252 static int nicvf_init_rbdr(struct nicvf *nic, struct rbdr *rbdr, in nicvf_init_rbdr() 318 static void nicvf_free_rbdr(struct nicvf *nic, struct rbdr *rbdr) in nicvf_free_rbdr() 379 static void nicvf_refill_rbdr(struct nicvf *ni [all...] |
H A 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
|
H A D | nic.h | 122 struct nicvf *nicvf; member 276 struct nicvf { struct 277 struct nicvf *pnicvf; 304 struct nicvf *snicvf[MAX_SQS_PER_VF]; 412 #define NIC_MBOX_MSG_NICVF_PTR 0x13 /* Send nicvf ptr to PF */ 413 #define NIC_MBOX_MSG_PNICVF_PTR 0x14 /* Get primary qset nicvf ptr */ 414 #define NIC_MBOX_MSG_SNICVF_PTR 0x15 /* Send sqet nicvf ptr to PVF */ 529 u64 nicvf; member 598 struct nicvf_ptr nicvf; member [all...] |
H A D | nic_main.c | 48 u64 nicvf[MAX_NUM_VFS_SUPPORTED]; member 695 /* Send primary nicvf pointer to secondary QS's VF */ 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() 705 /* Send SQS's nicvf pointer to primary QS's VF */ 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 in nic_send_snicvf() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/cavium/thunder/ |
H A D | nicvf_queues.h | 320 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 *ni [all...] |
H A D | nicvf_main.c | 29 #define DRV_NAME "nicvf" 75 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 *ni [all...] |
H A D | nicvf_ethtool.c | 19 #define DRV_NAME "nicvf" 122 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 *sni in nicvf_get_sset_count() [all...] |
H A D | nicvf_queues.c | 22 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 *ni [all...] |
H A 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
|
H A D | nic.h | 122 struct nicvf *nicvf; member 276 struct nicvf { struct 277 struct nicvf *pnicvf; 304 struct nicvf *snicvf[MAX_SQS_PER_VF]; 412 #define NIC_MBOX_MSG_NICVF_PTR 0x13 /* Send nicvf ptr to PF */ 413 #define NIC_MBOX_MSG_PNICVF_PTR 0x14 /* Get primary qset nicvf ptr */ 414 #define NIC_MBOX_MSG_SNICVF_PTR 0x15 /* Send sqet nicvf ptr to PVF */ 529 u64 nicvf; member 598 struct nicvf_ptr nicvf; member [all...] |
H A D | nic_main.c | 48 u64 nicvf[MAX_NUM_VFS_SUPPORTED]; member 695 /* Send primary nicvf pointer to secondary QS's VF */ 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() 705 /* Send SQS's nicvf pointer to primary QS's VF */ 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 in nic_send_snicvf() [all...] |