Lines Matching refs: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 *nic) in nicvf_send_cfg_done()
192 static void nicvf_read_bgx_stats(struct nicvf *nic, struct bgx_stats_msg *bgx) in nicvf_read_bgx_stats()
200 static void nicvf_handle_mbx_intr(struct nicvf *nic) in nicvf_handle_mbx_intr()
275 nic->snicvf[mbx.nicvf.sqs_id] = in nicvf_handle_mbx_intr()
276 (struct nicvf *)mbx.nicvf.nicvf; in nicvf_handle_mbx_intr()
284 nic->pnicvf = (struct nicvf *)mbx.nicvf.nicvf; in nicvf_handle_mbx_intr()
301 static int nicvf_hw_set_mac_addr(struct nicvf *nic, struct net_device *netdev) in nicvf_hw_set_mac_addr()
312 static void nicvf_config_cpi(struct nicvf *nic) in nicvf_config_cpi()
324 static void nicvf_get_rss_size(struct nicvf *nic) in nicvf_get_rss_size()
333 void nicvf_config_rss(struct nicvf *nic) in nicvf_config_rss()
358 void nicvf_set_rss_key(struct nicvf *nic) in nicvf_set_rss_key()
370 static int nicvf_rss_init(struct nicvf *nic) in nicvf_rss_init()
401 static void nicvf_request_sqs(struct nicvf *nic) in nicvf_request_sqs()
434 mbx.nicvf.msg = NIC_MBOX_MSG_SNICVF_PTR; in nicvf_request_sqs()
435 mbx.nicvf.vf_id = nic->vf_id; in nicvf_request_sqs()
436 mbx.nicvf.sqs_id = sqs; in nicvf_request_sqs()
473 static void nicvf_send_vf_struct(struct nicvf *nic) in nicvf_send_vf_struct()
477 mbx.nicvf.msg = NIC_MBOX_MSG_NICVF_PTR; in nicvf_send_vf_struct()
478 mbx.nicvf.sqs_mode = nic->sqs_mode; in nicvf_send_vf_struct()
479 mbx.nicvf.nicvf = (u64)nic; in nicvf_send_vf_struct()
483 static void nicvf_get_primary_vf_struct(struct nicvf *nic) in nicvf_get_primary_vf_struct()
487 mbx.nicvf.msg = NIC_MBOX_MSG_PNICVF_PTR; in nicvf_get_primary_vf_struct()
510 static int nicvf_init_resources(struct nicvf *nic) in nicvf_init_resources()
528 static inline bool nicvf_xdp_rx(struct nicvf *nic, struct bpf_prog *prog, in nicvf_xdp_rx()
620 struct nicvf *nic = netdev_priv(netdev); in nicvf_snd_ptp_handler()
662 struct nicvf *nic = netdev_priv(netdev); in nicvf_snd_pkt_handler()
755 static inline void nicvf_set_rxtstamp(struct nicvf *nic, struct sk_buff *skb) in nicvf_set_rxtstamp()
776 struct nicvf *nic = netdev_priv(netdev); in nicvf_rcv_pkt_handler()
777 struct nicvf *snic = nic; in nicvf_rcv_pkt_handler()
851 struct nicvf *nic = netdev_priv(netdev); in nicvf_cq_intr_handler()
961 struct nicvf *nic = netdev_priv(netdev); in nicvf_poll()
987 struct nicvf *nic = from_tasklet(nic, t, qs_err_task); in nicvf_handle_qs_err()
1016 static void nicvf_dump_intr_status(struct nicvf *nic) in nicvf_dump_intr_status()
1024 struct nicvf *nic = (struct nicvf *)nicvf_irq; in nicvf_misc_intr_handler()
1042 struct nicvf *nic = cq_poll->nicvf; in nicvf_intr_handler()
1061 struct nicvf *nic = (struct nicvf *)nicvf_irq; in nicvf_rbdr_intr_handler()
1082 struct nicvf *nic = (struct nicvf *)nicvf_irq; in nicvf_qs_err_intr_handler()
1094 static void nicvf_set_irq_affinity(struct nicvf *nic) in nicvf_set_irq_affinity()
1118 static int nicvf_register_interrupts(struct nicvf *nic) in nicvf_register_interrupts()
1181 static void nicvf_unregister_interrupts(struct nicvf *nic) in nicvf_unregister_interrupts()
1210 static int nicvf_register_misc_interrupt(struct nicvf *nic) in nicvf_register_misc_interrupt()
1253 struct nicvf *nic = netdev_priv(netdev); in nicvf_xmit()
1256 struct nicvf *snic; in nicvf_xmit()
1277 snic = (struct nicvf *)nic->snicvf[tmp - 1]; in nicvf_xmit()
1310 static inline void nicvf_free_cq_poll(struct nicvf *nic) in nicvf_free_cq_poll()
1327 struct nicvf *nic = netdev_priv(netdev); in nicvf_stop()
1416 static int nicvf_config_hw_rx_tstamp(struct nicvf *nic, bool enable) in nicvf_config_hw_rx_tstamp()
1426 static int nicvf_update_hw_max_frs(struct nicvf *nic, int mtu) in nicvf_update_hw_max_frs()
1439 struct nicvf *nic = container_of(work_arg, in nicvf_link_status_check_task()
1440 struct nicvf, in nicvf_link_status_check_task()
1452 struct nicvf *nic = netdev_priv(netdev); in nicvf_open()
1474 cq_poll->nicvf = nic; in nicvf_open()
1580 struct nicvf *nic = netdev_priv(netdev); in nicvf_change_mtu()
1608 struct nicvf *nic = netdev_priv(netdev); in nicvf_set_mac_address()
1625 void nicvf_update_lmac_stats(struct nicvf *nic) in nicvf_update_lmac_stats()
1656 void nicvf_update_stats(struct nicvf *nic) in nicvf_update_stats()
1722 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_stats64()
1740 struct nicvf *nic = netdev_priv(dev); in nicvf_tx_timeout()
1750 struct nicvf *nic; in nicvf_reset_task()
1752 nic = container_of(work, struct nicvf, reset_task); in nicvf_reset_task()
1762 static int nicvf_config_loopback(struct nicvf *nic, in nicvf_config_loopback()
1777 struct nicvf *nic = netdev_priv(netdev); in nicvf_fix_features()
1789 struct nicvf *nic = netdev_priv(netdev); in nicvf_set_features()
1801 static void nicvf_set_xdp_queues(struct nicvf *nic, bool bpf_attached) in nicvf_set_xdp_queues()
1832 static int nicvf_xdp_setup(struct nicvf *nic, struct bpf_prog *prog) in nicvf_xdp_setup()
1891 struct nicvf *nic = netdev_priv(netdev); in nicvf_xdp()
1911 struct nicvf *nic = netdev_priv(netdev); in nicvf_config_hwtstamp()
1972 struct nicvf *nic) in __nicvf_set_rx_mode_task()
2022 struct nicvf *nic = container_of(vf_work, struct nicvf, rx_mode_work); in nicvf_set_rx_mode_task()
2040 struct nicvf *nic = netdev_priv(netdev); in nicvf_set_rx_mode()
2098 struct nicvf *nic; in nicvf_probe()
2137 netdev = alloc_etherdev_mqs(sizeof(struct nicvf), qcount, qcount); in nicvf_probe()
2274 struct nicvf *nic; in nicvf_remove()