Lines Matching defs:nic
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()
302 static int nicvf_hw_set_mac_addr(struct nicvf *nic, struct net_device *netdev) in nicvf_hw_set_mac_addr()
313 static void nicvf_config_cpi(struct nicvf *nic) in nicvf_config_cpi()
325 static void nicvf_get_rss_size(struct nicvf *nic) in nicvf_get_rss_size()
334 void nicvf_config_rss(struct nicvf *nic) in nicvf_config_rss()
359 void nicvf_set_rss_key(struct nicvf *nic) in nicvf_set_rss_key()
371 static int nicvf_rss_init(struct nicvf *nic) in nicvf_rss_init()
402 static void nicvf_request_sqs(struct nicvf *nic) in nicvf_request_sqs()
474 static void nicvf_send_vf_struct(struct nicvf *nic) in nicvf_send_vf_struct()
484 static void nicvf_get_primary_vf_struct(struct nicvf *nic) in nicvf_get_primary_vf_struct()
511 static int nicvf_init_resources(struct nicvf *nic) in nicvf_init_resources()
529 static inline bool nicvf_xdp_rx(struct nicvf *nic, struct bpf_prog *prog, in nicvf_xdp_rx()
623 struct nicvf *nic = netdev_priv(netdev); in nicvf_snd_ptp_handler() local
665 struct nicvf *nic = netdev_priv(netdev); in nicvf_snd_pkt_handler() local
758 static inline void nicvf_set_rxtstamp(struct nicvf *nic, struct sk_buff *skb) in nicvf_set_rxtstamp()
779 struct nicvf *nic = netdev_priv(netdev); in nicvf_rcv_pkt_handler() local
854 struct nicvf *nic = netdev_priv(netdev); in nicvf_cq_intr_handler() local
964 struct nicvf *nic = netdev_priv(netdev); in nicvf_poll() local
990 struct nicvf *nic = from_tasklet(nic, t, qs_err_task); in nicvf_handle_qs_err() local
1019 static void nicvf_dump_intr_status(struct nicvf *nic) in nicvf_dump_intr_status()
1027 struct nicvf *nic = (struct nicvf *)nicvf_irq; in nicvf_misc_intr_handler() local
1045 struct nicvf *nic = cq_poll->nicvf; in nicvf_intr_handler() local
1064 struct nicvf *nic = (struct nicvf *)nicvf_irq; in nicvf_rbdr_intr_handler() local
1085 struct nicvf *nic = (struct nicvf *)nicvf_irq; in nicvf_qs_err_intr_handler() local
1097 static void nicvf_set_irq_affinity(struct nicvf *nic) in nicvf_set_irq_affinity()
1121 static int nicvf_register_interrupts(struct nicvf *nic) in nicvf_register_interrupts()
1184 static void nicvf_unregister_interrupts(struct nicvf *nic) in nicvf_unregister_interrupts()
1213 static int nicvf_register_misc_interrupt(struct nicvf *nic) in nicvf_register_misc_interrupt()
1256 struct nicvf *nic = netdev_priv(netdev); in nicvf_xmit() local
1313 static inline void nicvf_free_cq_poll(struct nicvf *nic) in nicvf_free_cq_poll()
1330 struct nicvf *nic = netdev_priv(netdev); in nicvf_stop() local
1419 static int nicvf_config_hw_rx_tstamp(struct nicvf *nic, bool enable) in nicvf_config_hw_rx_tstamp()
1429 static int nicvf_update_hw_max_frs(struct nicvf *nic, int mtu) in nicvf_update_hw_max_frs()
1442 struct nicvf *nic = container_of(work_arg, in nicvf_link_status_check_task() local
1455 struct nicvf *nic = netdev_priv(netdev); in nicvf_open() local
1584 struct nicvf *nic = netdev_priv(netdev); in nicvf_change_mtu() local
1612 struct nicvf *nic = netdev_priv(netdev); in nicvf_set_mac_address() local
1629 void nicvf_update_lmac_stats(struct nicvf *nic) in nicvf_update_lmac_stats()
1660 void nicvf_update_stats(struct nicvf *nic) in nicvf_update_stats()
1726 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_stats64() local
1744 struct nicvf *nic = netdev_priv(dev); in nicvf_tx_timeout() local
1754 struct nicvf *nic; in nicvf_reset_task() local
1766 static int nicvf_config_loopback(struct nicvf *nic, in nicvf_config_loopback()
1781 struct nicvf *nic = netdev_priv(netdev); in nicvf_fix_features() local
1793 struct nicvf *nic = netdev_priv(netdev); in nicvf_set_features() local
1805 static void nicvf_set_xdp_queues(struct nicvf *nic, bool bpf_attached) in nicvf_set_xdp_queues()
1836 static int nicvf_xdp_setup(struct nicvf *nic, struct bpf_prog *prog) in nicvf_xdp_setup()
1895 struct nicvf *nic = netdev_priv(netdev); in nicvf_xdp() local
1915 struct nicvf *nic = netdev_priv(netdev); in nicvf_config_hwtstamp() local
1980 struct nicvf *nic) in __nicvf_set_rx_mode_task()
2030 struct nicvf *nic = container_of(vf_work, struct nicvf, rx_mode_work); in nicvf_set_rx_mode_task() local
2051 struct nicvf *nic = netdev_priv(netdev); in nicvf_set_rx_mode() local
2109 struct nicvf *nic; in nicvf_probe() local
2287 struct nicvf *nic; in nicvf_remove() local