Lines Matching refs:nicvf
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()
256 nic->snicvf[mbx.nicvf.sqs_id] = in nicvf_handle_mbx_intr()
257 (struct nicvf *)mbx.nicvf.nicvf; in nicvf_handle_mbx_intr()
265 nic->pnicvf = (struct nicvf *)mbx.nicvf.nicvf; in nicvf_handle_mbx_intr()
282 static int nicvf_hw_set_mac_addr(struct nicvf *nic, struct net_device *netdev) in nicvf_hw_set_mac_addr()
293 static void nicvf_config_cpi(struct nicvf *nic) in nicvf_config_cpi()
305 static void nicvf_get_rss_size(struct nicvf *nic) in nicvf_get_rss_size()
314 void nicvf_config_rss(struct nicvf *nic) in nicvf_config_rss()
339 void nicvf_set_rss_key(struct nicvf *nic) in nicvf_set_rss_key()
351 static int nicvf_rss_init(struct nicvf *nic) in nicvf_rss_init()
382 static void nicvf_request_sqs(struct nicvf *nic) in nicvf_request_sqs()
415 mbx.nicvf.msg = NIC_MBOX_MSG_SNICVF_PTR; in nicvf_request_sqs()
416 mbx.nicvf.vf_id = nic->vf_id; in nicvf_request_sqs()
417 mbx.nicvf.sqs_id = sqs; in nicvf_request_sqs()
454 static void nicvf_send_vf_struct(struct nicvf *nic) in nicvf_send_vf_struct()
458 mbx.nicvf.msg = NIC_MBOX_MSG_NICVF_PTR; in nicvf_send_vf_struct()
459 mbx.nicvf.sqs_mode = nic->sqs_mode; in nicvf_send_vf_struct()
460 mbx.nicvf.nicvf = (u64)nic; in nicvf_send_vf_struct()
464 static void nicvf_get_primary_vf_struct(struct nicvf *nic) in nicvf_get_primary_vf_struct()
468 mbx.nicvf.msg = NIC_MBOX_MSG_PNICVF_PTR; in nicvf_get_primary_vf_struct()
491 static int nicvf_init_resources(struct nicvf *nic) in nicvf_init_resources()
509 static inline bool nicvf_xdp_rx(struct nicvf *nic, struct bpf_prog *prog, in nicvf_xdp_rx()
602 struct nicvf *nic = netdev_priv(netdev); in nicvf_snd_ptp_handler()
644 struct nicvf *nic = netdev_priv(netdev); in nicvf_snd_pkt_handler()
737 static inline void nicvf_set_rxtstamp(struct nicvf *nic, struct sk_buff *skb) in nicvf_set_rxtstamp()
758 struct nicvf *nic = netdev_priv(netdev); in nicvf_rcv_pkt_handler()
759 struct nicvf *snic = nic; in nicvf_rcv_pkt_handler()
833 struct nicvf *nic = netdev_priv(netdev); in nicvf_cq_intr_handler()
943 struct nicvf *nic = netdev_priv(netdev); in nicvf_poll()
969 struct nicvf *nic = (struct nicvf *)data; in nicvf_handle_qs_err()
998 static void nicvf_dump_intr_status(struct nicvf *nic) in nicvf_dump_intr_status()
1006 struct nicvf *nic = (struct nicvf *)nicvf_irq; in nicvf_misc_intr_handler()
1024 struct nicvf *nic = cq_poll->nicvf; in nicvf_intr_handler()
1043 struct nicvf *nic = (struct nicvf *)nicvf_irq; in nicvf_rbdr_intr_handler()
1064 struct nicvf *nic = (struct nicvf *)nicvf_irq; in nicvf_qs_err_intr_handler()
1076 static void nicvf_set_irq_affinity(struct nicvf *nic) in nicvf_set_irq_affinity()
1100 static int nicvf_register_interrupts(struct nicvf *nic) in nicvf_register_interrupts()
1163 static void nicvf_unregister_interrupts(struct nicvf *nic) in nicvf_unregister_interrupts()
1192 static int nicvf_register_misc_interrupt(struct nicvf *nic) in nicvf_register_misc_interrupt()
1235 struct nicvf *nic = netdev_priv(netdev); in nicvf_xmit()
1238 struct nicvf *snic; in nicvf_xmit()
1259 snic = (struct nicvf *)nic->snicvf[tmp - 1]; in nicvf_xmit()
1292 static inline void nicvf_free_cq_poll(struct nicvf *nic) in nicvf_free_cq_poll()
1309 struct nicvf *nic = netdev_priv(netdev); in nicvf_stop()
1392 static int nicvf_config_hw_rx_tstamp(struct nicvf *nic, bool enable) in nicvf_config_hw_rx_tstamp()
1402 static int nicvf_update_hw_max_frs(struct nicvf *nic, int mtu) in nicvf_update_hw_max_frs()
1416 struct nicvf *nic = netdev_priv(netdev); in nicvf_open()
1435 cq_poll->nicvf = nic; in nicvf_open()
1538 struct nicvf *nic = netdev_priv(netdev); in nicvf_change_mtu()
1557 struct nicvf *nic = netdev_priv(netdev); in nicvf_set_mac_address()
1574 void nicvf_update_lmac_stats(struct nicvf *nic) in nicvf_update_lmac_stats()
1605 void nicvf_update_stats(struct nicvf *nic) in nicvf_update_stats()
1671 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_stats64()
1689 struct nicvf *nic = netdev_priv(dev); in nicvf_tx_timeout()
1699 struct nicvf *nic; in nicvf_reset_task()
1701 nic = container_of(work, struct nicvf, reset_task); in nicvf_reset_task()
1711 static int nicvf_config_loopback(struct nicvf *nic, in nicvf_config_loopback()
1726 struct nicvf *nic = netdev_priv(netdev); in nicvf_fix_features()
1738 struct nicvf *nic = netdev_priv(netdev); in nicvf_set_features()
1750 static void nicvf_set_xdp_queues(struct nicvf *nic, bool bpf_attached) in nicvf_set_xdp_queues()
1781 static int nicvf_xdp_setup(struct nicvf *nic, struct bpf_prog *prog) in nicvf_xdp_setup()
1838 struct nicvf *nic = netdev_priv(netdev); in nicvf_xdp()
1861 struct nicvf *nic = netdev_priv(netdev); in nicvf_config_hwtstamp()
1926 struct nicvf *nic) in __nicvf_set_rx_mode_task()
1972 struct nicvf *nic = container_of(vf_work, struct nicvf, rx_mode_work); in nicvf_set_rx_mode_task()
1993 struct nicvf *nic = netdev_priv(netdev); in nicvf_set_rx_mode()
2051 struct nicvf *nic; in nicvf_probe()
2098 netdev = alloc_etherdev_mqs(sizeof(struct nicvf), qcount, qcount); in nicvf_probe()
2217 struct nicvf *nic; in nicvf_remove()