Lines Matching refs:efx_nic
28 static inline int efx_nic_rev(struct efx_nic *efx) in efx_nic_rev()
33 u32 efx_farch_fpga_ver(struct efx_nic *efx);
36 static inline bool efx_nic_is_dual_func(struct efx_nic *efx) in efx_nic_is_dual_func()
175 int (*init) (struct efx_nic *nic);
176 void (*init_phy) (struct efx_nic *efx);
177 void (*fini) (struct efx_nic *nic);
178 void (*set_id_led) (struct efx_nic *efx, enum efx_led_mode mode);
179 int (*monitor) (struct efx_nic *nic);
312 static inline struct falcon_board *falcon_board(struct efx_nic *efx) in falcon_board()
393 struct efx_nic *efx;
544 static inline bool efx_siena_sriov_wanted(struct efx_nic *efx) in efx_siena_sriov_wanted()
549 static inline bool efx_siena_sriov_enabled(struct efx_nic *efx) in efx_siena_sriov_enabled()
554 static inline unsigned int efx_vf_size(struct efx_nic *efx) in efx_vf_size()
560 void efx_siena_sriov_probe(struct efx_nic *efx);
561 int efx_siena_sriov_init(struct efx_nic *efx);
562 void efx_siena_sriov_mac_address_changed(struct efx_nic *efx);
563 void efx_siena_sriov_tx_flush_done(struct efx_nic *efx, efx_qword_t *event);
564 void efx_siena_sriov_rx_flush_done(struct efx_nic *efx, efx_qword_t *event);
566 void efx_siena_sriov_desc_fetch_err(struct efx_nic *efx, unsigned dmaq);
567 void efx_siena_sriov_flr(struct efx_nic *efx, unsigned flr);
568 void efx_siena_sriov_reset(struct efx_nic *efx);
569 void efx_siena_sriov_fini(struct efx_nic *efx);
573 static inline bool efx_ef10_sriov_wanted(struct efx_nic *efx) { return false; } in efx_ef10_sriov_wanted()
574 static inline int efx_ef10_sriov_init(struct efx_nic *efx) { return -EOPNOTSUPP; } in efx_ef10_sriov_init()
575 static inline void efx_ef10_sriov_mac_address_changed(struct efx_nic *efx) {} in efx_ef10_sriov_mac_address_changed()
576 static inline void efx_ef10_sriov_reset(struct efx_nic *efx) {} in efx_ef10_sriov_reset()
577 static inline void efx_ef10_sriov_fini(struct efx_nic *efx) {} in efx_ef10_sriov_fini()
582 static inline bool efx_siena_sriov_wanted(struct efx_nic *efx) { return false; } in efx_siena_sriov_wanted()
583 static inline bool efx_siena_sriov_enabled(struct efx_nic *efx) { return false; } in efx_siena_sriov_enabled()
584 static inline unsigned int efx_vf_size(struct efx_nic *efx) { return 0; } in efx_vf_size()
586 static inline void efx_siena_sriov_probe(struct efx_nic *efx) {} in efx_siena_sriov_probe()
587 static inline int efx_siena_sriov_init(struct efx_nic *efx) { return -EOPNOTSUPP; } in efx_siena_sriov_init()
588 static inline void efx_siena_sriov_mac_address_changed(struct efx_nic *efx) {} in efx_siena_sriov_mac_address_changed()
589 static inline void efx_siena_sriov_tx_flush_done(struct efx_nic *efx, in efx_siena_sriov_tx_flush_done()
591 static inline void efx_siena_sriov_rx_flush_done(struct efx_nic *efx, in efx_siena_sriov_rx_flush_done()
595 static inline void efx_siena_sriov_desc_fetch_err(struct efx_nic *efx, in efx_siena_sriov_desc_fetch_err()
597 static inline void efx_siena_sriov_flr(struct efx_nic *efx, unsigned flr) {} in efx_siena_sriov_flr()
598 static inline void efx_siena_sriov_reset(struct efx_nic *efx) {} in efx_siena_sriov_reset()
599 static inline void efx_siena_sriov_fini(struct efx_nic *efx) {} in efx_siena_sriov_fini()
603 static inline bool efx_ef10_sriov_wanted(struct efx_nic *efx) { return false; } in efx_ef10_sriov_wanted()
604 static inline int efx_ef10_sriov_init(struct efx_nic *efx) { return -EOPNOTSUPP; } in efx_ef10_sriov_init()
605 static inline void efx_ef10_sriov_mac_address_changed(struct efx_nic *efx) {} in efx_ef10_sriov_mac_address_changed()
606 static inline void efx_ef10_sriov_reset(struct efx_nic *efx) {} in efx_ef10_sriov_reset()
607 static inline void efx_ef10_sriov_fini(struct efx_nic *efx) {} in efx_ef10_sriov_fini()
612 static inline bool efx_falcon_sriov_wanted(struct efx_nic *efx) { return false; } in efx_falcon_sriov_wanted()
613 static inline int efx_falcon_sriov_init(struct efx_nic *efx) { return -EOPNOTSUPP; } in efx_falcon_sriov_init()
614 static inline void efx_falcon_sriov_mac_address_changed(struct efx_nic *efx) {} in efx_falcon_sriov_mac_address_changed()
615 static inline void efx_falcon_sriov_reset(struct efx_nic *efx) {} in efx_falcon_sriov_reset()
616 static inline void efx_falcon_sriov_fini(struct efx_nic *efx) {} in efx_falcon_sriov_fini()
627 int efx_ptp_probe(struct efx_nic *efx, struct efx_channel *channel);
628 void efx_ptp_defer_probe_with_channel(struct efx_nic *efx);
629 void efx_ptp_remove(struct efx_nic *efx);
630 int efx_ptp_set_ts_config(struct efx_nic *efx, struct ifreq *ifr);
631 int efx_ptp_get_ts_config(struct efx_nic *efx, struct ifreq *ifr);
632 void efx_ptp_get_ts_info(struct efx_nic *efx, struct ethtool_ts_info *ts_info);
633 bool efx_ptp_is_ptp_tx(struct efx_nic *efx, struct sk_buff *skb);
634 int efx_ptp_get_mode(struct efx_nic *efx);
635 int efx_ptp_change_mode(struct efx_nic *efx, bool enable_wanted,
637 int efx_ptp_tx(struct efx_nic *efx, struct sk_buff *skb);
638 void efx_ptp_event(struct efx_nic *efx, efx_qword_t *ev);
639 size_t efx_ptp_describe_stats(struct efx_nic *efx, u8 *strings);
640 size_t efx_ptp_update_stats(struct efx_nic *efx, u64 *stats);
650 void efx_ptp_start_datapath(struct efx_nic *efx);
651 void efx_ptp_stop_datapath(struct efx_nic *efx);
665 int falcon_probe_board(struct efx_nic *efx, u16 revision_info);
756 int efx_farch_filter_table_probe(struct efx_nic *efx);
757 void efx_farch_filter_table_restore(struct efx_nic *efx);
758 void efx_farch_filter_table_remove(struct efx_nic *efx);
759 void efx_farch_filter_update_rx_scatter(struct efx_nic *efx);
760 s32 efx_farch_filter_insert(struct efx_nic *efx, struct efx_filter_spec *spec,
762 int efx_farch_filter_remove_safe(struct efx_nic *efx,
765 int efx_farch_filter_get_safe(struct efx_nic *efx,
768 int efx_farch_filter_clear_rx(struct efx_nic *efx,
770 u32 efx_farch_filter_count_rx_used(struct efx_nic *efx,
772 u32 efx_farch_filter_get_rx_id_limit(struct efx_nic *efx);
773 s32 efx_farch_filter_get_rx_ids(struct efx_nic *efx,
777 s32 efx_farch_filter_rfs_insert(struct efx_nic *efx,
779 bool efx_farch_filter_rfs_expire_one(struct efx_nic *efx, u32 flow_id,
782 void efx_farch_filter_sync_rx_mode(struct efx_nic *efx);
805 int efx_nic_init_interrupt(struct efx_nic *efx);
806 void efx_nic_irq_test_start(struct efx_nic *efx);
807 void efx_nic_fini_interrupt(struct efx_nic *efx);
810 void efx_farch_irq_enable_master(struct efx_nic *efx);
811 void efx_farch_irq_test_generate(struct efx_nic *efx);
812 void efx_farch_irq_disable_master(struct efx_nic *efx);
815 irqreturn_t efx_farch_fatal_interrupt(struct efx_nic *efx);
821 static inline int efx_nic_irq_test_irq_cpu(struct efx_nic *efx) in efx_nic_irq_test_irq_cpu()
827 int efx_nic_flush_queues(struct efx_nic *efx);
828 void siena_prepare_flush(struct efx_nic *efx);
829 int efx_farch_fini_dmaq(struct efx_nic *efx);
830 void efx_farch_finish_flr(struct efx_nic *efx);
831 void siena_finish_flush(struct efx_nic *efx);
832 void falcon_start_nic_stats(struct efx_nic *efx);
833 void falcon_stop_nic_stats(struct efx_nic *efx);
834 int falcon_reset_xaui(struct efx_nic *efx);
835 void efx_farch_dimension_resources(struct efx_nic *efx, unsigned sram_lim_qw);
836 void efx_farch_init_common(struct efx_nic *efx);
837 void efx_ef10_handle_drain_event(struct efx_nic *efx);
838 void efx_farch_rx_push_indir_table(struct efx_nic *efx);
840 int efx_nic_alloc_buffer(struct efx_nic *efx, struct efx_buffer *buffer,
842 void efx_nic_free_buffer(struct efx_nic *efx, struct efx_buffer *buffer);
849 int efx_farch_test_registers(struct efx_nic *efx,
853 size_t efx_nic_get_regs_len(struct efx_nic *efx);
854 void efx_nic_get_regs(struct efx_nic *efx, void *buf);
861 void efx_nic_fix_nodesc_drop_stat(struct efx_nic *efx, u64 *stat);
865 void efx_farch_generate_event(struct efx_nic *efx, unsigned int evq,