Lines Matching refs:nicvf

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()
178 static void nicvf_handle_mbx_intr(struct nicvf *nic) in nicvf_handle_mbx_intr()
251 nic->snicvf[mbx.nicvf.sqs_id] = in nicvf_handle_mbx_intr()
252 (struct nicvf *)mbx.nicvf.nicvf; in nicvf_handle_mbx_intr()
260 nic->pnicvf = (struct nicvf *)mbx.nicvf.nicvf; in nicvf_handle_mbx_intr()
271 static int nicvf_hw_set_mac_addr(struct nicvf *nic, struct net_device *netdev) in nicvf_hw_set_mac_addr()
282 static void nicvf_config_cpi(struct nicvf *nic) in nicvf_config_cpi()
294 static void nicvf_get_rss_size(struct nicvf *nic) in nicvf_get_rss_size()
303 void nicvf_config_rss(struct nicvf *nic) in nicvf_config_rss()
328 void nicvf_set_rss_key(struct nicvf *nic) in nicvf_set_rss_key()
340 static int nicvf_rss_init(struct nicvf *nic) in nicvf_rss_init()
377 static void nicvf_request_sqs(struct nicvf *nic) in nicvf_request_sqs()
408 mbx.nicvf.msg = NIC_MBOX_MSG_SNICVF_PTR; in nicvf_request_sqs()
409 mbx.nicvf.vf_id = nic->vf_id; in nicvf_request_sqs()
410 mbx.nicvf.sqs_id = sqs; in nicvf_request_sqs()
447 static void nicvf_send_vf_struct(struct nicvf *nic) in nicvf_send_vf_struct()
451 mbx.nicvf.msg = NIC_MBOX_MSG_NICVF_PTR; in nicvf_send_vf_struct()
452 mbx.nicvf.sqs_mode = nic->sqs_mode; in nicvf_send_vf_struct()
453 mbx.nicvf.nicvf = (u64)nic; in nicvf_send_vf_struct()
457 static void nicvf_get_primary_vf_struct(struct nicvf *nic) in nicvf_get_primary_vf_struct()
461 mbx.nicvf.msg = NIC_MBOX_MSG_PNICVF_PTR; in nicvf_get_primary_vf_struct()
484 static int nicvf_init_resources(struct nicvf *nic) in nicvf_init_resources()
513 struct nicvf *nic = netdev_priv(netdev); in nicvf_snd_pkt_handler()
573 struct nicvf *nic = netdev_priv(netdev); in nicvf_rcv_pkt_handler()
639 struct nicvf *nic = netdev_priv(netdev); in nicvf_cq_intr_handler()
732 struct nicvf *nic = netdev_priv(netdev); in nicvf_poll()
758 struct nicvf *nic = (struct nicvf *)data; in nicvf_handle_qs_err()
787 static void nicvf_dump_intr_status(struct nicvf *nic) in nicvf_dump_intr_status()
796 struct nicvf *nic = (struct nicvf *)nicvf_irq; in nicvf_misc_intr_handler()
814 struct nicvf *nic = cq_poll->nicvf; in nicvf_intr_handler()
833 struct nicvf *nic = (struct nicvf *)nicvf_irq; in nicvf_rbdr_intr_handler()
854 struct nicvf *nic = (struct nicvf *)nicvf_irq; in nicvf_qs_err_intr_handler()
866 static int nicvf_enable_msix(struct nicvf *nic) in nicvf_enable_msix()
885 static void nicvf_disable_msix(struct nicvf *nic) in nicvf_disable_msix()
894 static int nicvf_register_interrupts(struct nicvf *nic) in nicvf_register_interrupts()
949 static void nicvf_unregister_interrupts(struct nicvf *nic) in nicvf_unregister_interrupts()
973 static int nicvf_register_misc_interrupt(struct nicvf *nic) in nicvf_register_misc_interrupt()
1010 struct nicvf *nic = netdev_priv(netdev); in nicvf_xmit()
1033 static inline void nicvf_free_cq_poll(struct nicvf *nic) in nicvf_free_cq_poll()
1050 struct nicvf *nic = netdev_priv(netdev); in nicvf_stop()
1128 struct nicvf *nic = netdev_priv(netdev); in nicvf_open()
1148 cq_poll->nicvf = nic; in nicvf_open()
1233 static int nicvf_update_hw_max_frs(struct nicvf *nic, int mtu) in nicvf_update_hw_max_frs()
1246 struct nicvf *nic = netdev_priv(netdev); in nicvf_change_mtu()
1265 struct nicvf *nic = netdev_priv(netdev); in nicvf_set_mac_address()
1282 void nicvf_update_lmac_stats(struct nicvf *nic) in nicvf_update_lmac_stats()
1313 void nicvf_update_stats(struct nicvf *nic) in nicvf_update_stats()
1363 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_stats64()
1383 struct nicvf *nic = netdev_priv(dev); in nicvf_tx_timeout()
1394 struct nicvf *nic; in nicvf_reset_task()
1396 nic = container_of(work, struct nicvf, reset_task); in nicvf_reset_task()
1406 static int nicvf_config_loopback(struct nicvf *nic, in nicvf_config_loopback()
1421 struct nicvf *nic = netdev_priv(netdev); in nicvf_fix_features()
1433 struct nicvf *nic = netdev_priv(netdev); in nicvf_set_features()
1461 struct nicvf *nic; in nicvf_probe()
1498 netdev = alloc_etherdev_mqs(sizeof(struct nicvf), qcount, qcount); in nicvf_probe()
1584 struct nicvf *nic; in nicvf_remove()