Home
last modified time | relevance | path

Searched refs:efx_nic (Results 1 – 25 of 78) sorted by relevance

1234

/linux/drivers/net/ethernet/sfc/siena/
H A Dnic.h14 u32 efx_farch_fpga_ver(struct efx_nic *efx);
104 struct efx_nic *efx;
121 int falcon_probe_board(struct efx_nic *efx, u16 revision_info);
146 int efx_farch_filter_table_probe(struct efx_nic *efx);
147 void efx_farch_filter_table_restore(struct efx_nic *efx);
148 void efx_farch_filter_table_remove(struct efx_nic *efx);
149 void efx_farch_filter_update_rx_scatter(struct efx_nic *efx);
150 s32 efx_farch_filter_insert(struct efx_nic *efx, struct efx_filter_spec *spec,
152 int efx_farch_filter_remove_safe(struct efx_nic *efx,
155 int efx_farch_filter_get_safe(struct efx_nic *efx,
[all …]
H A Defx_common.h14 int efx_siena_init_io(struct efx_nic *efx, int bar, dma_addr_t dma_mask,
16 void efx_siena_fini_io(struct efx_nic *efx);
17 int efx_siena_init_struct(struct efx_nic *efx, struct pci_dev *pci_dev,
19 void efx_siena_fini_struct(struct efx_nic *efx);
28 void efx_siena_link_clear_advertising(struct efx_nic *efx);
29 void efx_siena_link_set_wanted_fc(struct efx_nic *efx, u8 wanted_fc);
31 void efx_siena_start_all(struct efx_nic *efx);
32 void efx_siena_stop_all(struct efx_nic *efx);
38 void efx_siena_queue_reset_work(struct efx_nic *efx);
39 void efx_siena_flush_reset_workqueue(struct efx_nic *efx);
[all …]
H A Defx_channels.h17 int efx_siena_probe_interrupts(struct efx_nic *efx);
18 void efx_siena_remove_interrupts(struct efx_nic *efx);
19 int efx_siena_enable_interrupts(struct efx_nic *efx);
20 void efx_siena_disable_interrupts(struct efx_nic *efx);
22 void efx_siena_set_interrupt_affinity(struct efx_nic *efx);
23 void efx_siena_clear_interrupt_affinity(struct efx_nic *efx);
28 int efx_siena_realloc_channels(struct efx_nic *efx, u32 rxq_entries,
30 void efx_siena_set_channel_names(struct efx_nic *efx);
31 int efx_siena_init_channels(struct efx_nic *efx);
32 int efx_siena_probe_channels(struct efx_nic *efx);
[all …]
H A Dmcdi_port_common.h31 void efx_siena_link_set_advertising(struct efx_nic *efx,
33 bool efx_siena_mcdi_phy_poll(struct efx_nic *efx);
34 int efx_siena_mcdi_phy_probe(struct efx_nic *efx);
35 void efx_siena_mcdi_phy_remove(struct efx_nic *efx);
36 void efx_siena_mcdi_phy_get_link_ksettings(struct efx_nic *efx,
38 int efx_siena_mcdi_phy_set_link_ksettings(struct efx_nic *efx,
40 int efx_siena_mcdi_phy_get_fecparam(struct efx_nic *efx,
42 int efx_siena_mcdi_phy_set_fecparam(struct efx_nic *efx,
44 int efx_siena_mcdi_phy_test_alive(struct efx_nic *efx);
45 int efx_siena_mcdi_port_reconfigure(struct efx_nic *efx);
[all …]
H A Dsiena_sriov.h41 int efx_siena_sriov_configure(struct efx_nic *efx, int num_vfs);
42 int efx_siena_sriov_init(struct efx_nic *efx);
43 void efx_siena_sriov_fini(struct efx_nic *efx);
44 int efx_siena_sriov_mac_address_changed(struct efx_nic *efx);
45 bool efx_siena_sriov_wanted(struct efx_nic *efx);
46 void efx_siena_sriov_reset(struct efx_nic *efx);
47 void efx_siena_sriov_flr(struct efx_nic *efx, unsigned flr);
49 int efx_siena_sriov_set_vf_mac(struct efx_nic *efx, int vf, const u8 *mac);
50 int efx_siena_sriov_set_vf_vlan(struct efx_nic *efx, int vf,
52 int efx_siena_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf,
[all …]
H A Defx.h55 static inline bool efx_rss_enabled(struct efx_nic *efx) in efx_rss_enabled()
87 static inline s32 efx_filter_insert_filter(struct efx_nic *efx, in efx_filter_insert_filter()
103 static inline int efx_filter_remove_id_safe(struct efx_nic *efx, in efx_filter_remove_id_safe()
121 efx_filter_get_filter_safe(struct efx_nic *efx, in efx_filter_get_filter_safe()
128 static inline u32 efx_filter_count_rx_used(struct efx_nic *efx, in efx_filter_count_rx_used()
133 static inline u32 efx_filter_get_rx_id_limit(struct efx_nic *efx) in efx_filter_get_rx_id_limit()
137 static inline s32 efx_filter_get_rx_ids(struct efx_nic *efx, in efx_filter_get_rx_ids()
154 unsigned int efx_siena_usecs_to_ticks(struct efx_nic *efx, unsigned int usecs);
155 int efx_siena_init_irq_moderation(struct efx_nic *efx, unsigned int tx_usecs,
158 void efx_siena_get_irq_moderation(struct efx_nic *efx, unsigned int *tx_usecs,
[all …]
H A Dmcdi.h68 struct efx_nic *efx;
127 static inline struct efx_mcdi_iface *efx_mcdi(struct efx_nic *efx) in efx_mcdi()
134 static inline struct efx_mcdi_mon *efx_mcdi_mon(struct efx_nic *efx) in efx_mcdi_mon()
141 int efx_siena_mcdi_init(struct efx_nic *efx);
142 void efx_siena_mcdi_detach(struct efx_nic *efx);
143 void efx_siena_mcdi_fini(struct efx_nic *efx);
145 int efx_siena_mcdi_rpc(struct efx_nic *efx, unsigned int cmd,
149 int efx_siena_mcdi_rpc_quiet(struct efx_nic *efx, unsigned int cmd,
154 int efx_siena_mcdi_rpc_start(struct efx_nic *efx, unsigned int cmd,
156 int efx_siena_mcdi_rpc_finish(struct efx_nic *efx, unsigned int cmd,
[all …]
H A Defx_common.c124 void efx_siena_queue_reset_work(struct efx_nic *efx) in efx_siena_queue_reset_work()
129 void efx_siena_flush_reset_workqueue(struct efx_nic *efx) in efx_siena_flush_reset_workqueue()
145 void efx_siena_mac_reconfigure(struct efx_nic *efx, bool mtu_only) in efx_siena_mac_reconfigure()
160 struct efx_nic *efx = container_of(data, struct efx_nic, mac_work); in efx_mac_work()
170 struct efx_nic *efx = netdev_priv(net_dev); in efx_siena_set_mac_address()
205 struct efx_nic *efx = netdev_priv(net_dev); in efx_siena_set_rx_mode()
214 struct efx_nic *efx = netdev_priv(net_dev); in efx_siena_set_features()
242 void efx_siena_link_status_changed(struct efx_nic *efx) in efx_siena_link_status_changed()
273 unsigned int efx_siena_xdp_max_mtu(struct efx_nic *efx) in efx_siena_xdp_max_mtu()
288 struct efx_nic *efx = netdev_priv(net_dev); in efx_siena_change_mtu()
[all …]
H A Defx.c105 static void efx_remove_port(struct efx_nic *efx);
106 static int efx_xdp_setup_prog(struct efx_nic *efx, struct bpf_prog *prog);
125 static void efx_fini_port(struct efx_nic *efx);
127 static int efx_probe_port(struct efx_nic *efx) in efx_probe_port()
147 static int efx_init_port(struct efx_nic *efx) in efx_init_port()
170 static void efx_fini_port(struct efx_nic *efx) in efx_fini_port()
183 static void efx_remove_port(struct efx_nic *efx) in efx_remove_port()
199 static bool efx_same_controller(struct efx_nic *left, struct efx_nic *right) in efx_same_controller()
206 static void efx_associate(struct efx_nic *efx) in efx_associate()
208 struct efx_nic *other, *next; in efx_associate()
[all …]
H A Dio.h78 static inline u32 efx_reg(struct efx_nic *efx, unsigned int reg) in efx_reg()
84 static inline void _efx_writeq(struct efx_nic *efx, __le64 value, in _efx_writeq()
89 static inline __le64 _efx_readq(struct efx_nic *efx, unsigned int reg) in _efx_readq()
95 static inline void _efx_writed(struct efx_nic *efx, __le32 value, in _efx_writed()
100 static inline __le32 _efx_readd(struct efx_nic *efx, unsigned int reg) in _efx_readd()
106 static inline void efx_writeo(struct efx_nic *efx, const efx_oword_t *value, in efx_writeo()
129 static inline void efx_sram_writeq(struct efx_nic *efx, void __iomem *membase, in efx_sram_writeq()
150 static inline void efx_writed(struct efx_nic *efx, const efx_dword_t *value, in efx_writed()
162 static inline void efx_reado(struct efx_nic *efx, efx_oword_t *value, in efx_reado()
180 static inline void efx_sram_readq(struct efx_nic *efx, void __iomem *membase, in efx_sram_readq()
[all …]
H A Dmcdi.c49 static int efx_mcdi_drv_attach(struct efx_nic *efx, bool driver_operating,
51 static bool efx_mcdi_poll_once(struct efx_nic *efx);
52 static void efx_mcdi_abandon(struct efx_nic *efx);
62 int efx_siena_mcdi_init(struct efx_nic *efx) in efx_siena_mcdi_init()
128 void efx_siena_mcdi_detach(struct efx_nic *efx) in efx_siena_mcdi_detach()
139 void efx_siena_mcdi_fini(struct efx_nic *efx) in efx_siena_mcdi_fini()
151 static void efx_mcdi_send_request(struct efx_nic *efx, unsigned cmd, in efx_mcdi_send_request()
266 static void efx_mcdi_read_response_header(struct efx_nic *efx) in efx_mcdi_read_response_header()
341 static bool efx_mcdi_poll_once(struct efx_nic *efx) in efx_mcdi_poll_once()
356 static int efx_mcdi_poll(struct efx_nic *efx) in efx_mcdi_poll()
[all …]
H A Drx_common.h32 static inline u32 efx_rx_buf_hash(struct efx_nic *efx, const u8 *eh) in efx_rx_buf_hash()
60 static inline void efx_sync_rx_buffer(struct efx_nic *efx, in efx_sync_rx_buffer()
72 void efx_siena_rx_config_page_split(struct efx_nic *efx);
81 void efx_siena_set_default_rx_indir_table(struct efx_nic *efx,
92 struct efx_arfs_rule *efx_siena_rps_hash_find(struct efx_nic *efx,
94 void efx_siena_rps_hash_del(struct efx_nic *efx,
103 int efx_siena_probe_filters(struct efx_nic *efx);
104 void efx_siena_remove_filters(struct efx_nic *efx);
/linux/drivers/net/ethernet/sfc/
H A Dmcdi_port_common.h31 int efx_mcdi_get_phy_cfg(struct efx_nic *efx, struct efx_mcdi_phy_data *cfg);
32 void efx_link_set_advertising(struct efx_nic *efx,
34 int efx_mcdi_set_link(struct efx_nic *efx, u32 capabilities,
36 int efx_mcdi_loopback_modes(struct efx_nic *efx, u64 *loopback_modes);
39 u32 efx_get_mcdi_phy_flags(struct efx_nic *efx);
41 void efx_mcdi_phy_decode_link(struct efx_nic *efx,
46 void efx_mcdi_phy_check_fcntl(struct efx_nic *efx, u32 lpa);
47 bool efx_mcdi_phy_poll(struct efx_nic *efx);
48 int efx_mcdi_phy_probe(struct efx_nic *efx);
49 void efx_mcdi_phy_remove(struct efx_nic *efx);
[all …]
H A Def10_sriov.h22 struct efx_nic *efx;
31 static inline bool efx_ef10_sriov_wanted(struct efx_nic *efx) in efx_ef10_sriov_wanted()
36 int efx_ef10_sriov_configure(struct efx_nic *efx, int num_vfs);
37 int efx_ef10_sriov_init(struct efx_nic *efx);
38 void efx_ef10_sriov_fini(struct efx_nic *efx);
40 int efx_ef10_sriov_set_vf_mac(struct efx_nic *efx, int vf, const u8 *mac);
42 int efx_ef10_sriov_set_vf_vlan(struct efx_nic *efx, int vf_i,
45 int efx_ef10_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf,
48 int efx_ef10_sriov_get_vf_config(struct efx_nic *efx, int vf_i,
51 int efx_ef10_sriov_set_vf_link_state(struct efx_nic *efx, int vf_i,
[all …]
H A Dmcdi_filters.h96 int efx_mcdi_filter_table_probe(struct efx_nic *efx, bool multicast_chaining);
97 void efx_mcdi_filter_table_down(struct efx_nic *efx);
98 void efx_mcdi_filter_table_remove(struct efx_nic *efx);
99 void efx_mcdi_filter_table_restore(struct efx_nic *efx);
101 void efx_mcdi_filter_table_reset_mc_allocations(struct efx_nic *efx);
122 void efx_mcdi_filter_sync_rx_mode(struct efx_nic *efx);
123 s32 efx_mcdi_filter_insert(struct efx_nic *efx, struct efx_filter_spec *spec,
125 int efx_mcdi_filter_remove_safe(struct efx_nic *efx,
128 int efx_mcdi_filter_get_safe(struct efx_nic *efx,
132 u32 efx_mcdi_filter_count_rx_used(struct efx_nic *efx,
[all …]
H A Dtc_encap_actions.h64 struct efx_nic *efx;
87 int efx_tc_init_encap_actions(struct efx_nic *efx);
88 void efx_tc_destroy_encap_actions(struct efx_nic *efx);
89 void efx_tc_fini_encap_actions(struct efx_nic *efx);
92 bool efx_tc_check_ready(struct efx_nic *efx, struct efx_tc_flow_rule *rule);
95 struct efx_nic *efx, const struct ip_tunnel_info *info,
97 void efx_tc_flower_release_encap_md(struct efx_nic *efx,
100 void efx_tc_unregister_egdev(struct efx_nic *efx, struct net_device *net_dev);
101 int efx_tc_netevent_event(struct efx_nic *efx, unsigned long event,
106 static inline int efx_tc_netevent_event(struct efx_nic *efx, in efx_tc_netevent_event()
H A Drx_common.h32 static inline u32 efx_rx_buf_hash(struct efx_nic *efx, const u8 *eh) in efx_rx_buf_hash()
65 void efx_unmap_rx_buffer(struct efx_nic *efx, struct efx_rx_buffer *rx_buf);
67 static inline void efx_sync_rx_buffer(struct efx_nic *efx, in efx_sync_rx_buffer()
80 void efx_rx_config_page_split(struct efx_nic *efx);
87 struct efx_rss_context_priv *efx_find_rss_context_entry(struct efx_nic *efx,
89 void efx_set_default_rx_indir_table(struct efx_nic *efx, u32 *indir);
99 struct efx_arfs_rule *efx_rps_hash_find(struct efx_nic *efx,
101 struct efx_arfs_rule *efx_rps_hash_add(struct efx_nic *efx,
104 void efx_rps_hash_del(struct efx_nic *efx, const struct efx_filter_spec *spec);
111 int efx_probe_filters(struct efx_nic *efx);
[all …]
H A Dtc_counters.h48 int efx_tc_init_counters(struct efx_nic *efx);
49 void efx_tc_destroy_counters(struct efx_nic *efx);
50 void efx_tc_fini_counters(struct efx_nic *efx);
52 struct efx_tc_counter *efx_tc_flower_allocate_counter(struct efx_nic *efx,
54 void efx_tc_flower_release_counter(struct efx_nic *efx,
57 struct efx_nic *efx, unsigned long cookie,
59 void efx_tc_flower_put_counter_index(struct efx_nic *efx,
62 struct efx_nic *efx, unsigned long cookie);
H A Def100_nic.h20 int ef100_probe_netdev_pf(struct efx_nic *efx);
21 int ef100_probe_vf(struct efx_nic *efx);
22 void ef100_remove(struct efx_nic *efx);
65 struct efx_nic *efx;
91 int efx_ef100_init_datapath_caps(struct efx_nic *efx);
92 int ef100_phy_probe(struct efx_nic *efx);
93 int ef100_filter_table_probe(struct efx_nic *efx);
95 int ef100_get_mac_address(struct efx_nic *efx, u8 *mac_address,
97 int efx_ef100_lookup_client_id(struct efx_nic *efx, efx_qword_t pciefn, u32 *id);
H A Def100_rep.h47 struct efx_nic *parent;
63 int efx_ef100_vfrep_create(struct efx_nic *efx, unsigned int i);
64 void efx_ef100_vfrep_destroy(struct efx_nic *efx, struct efx_rep *efv);
65 void efx_ef100_fini_vfreps(struct efx_nic *efx);
72 struct efx_rep *efx_ef100_find_rep_by_mport(struct efx_nic *efx, u16 mport);
74 void efx_ef100_init_reps(struct efx_nic *efx);
75 void efx_ef100_fini_reps(struct efx_nic *efx);
77 bool ef100_mport_on_local_intf(struct efx_nic *efx,
H A Dnic_common.h27 static inline int efx_nic_rev(struct efx_nic *efx) in efx_nic_rev()
190 static inline void efx_sensor_event(struct efx_nic *efx, efx_qword_t *ev) in efx_sensor_event()
196 static inline unsigned int efx_rx_recycle_ring_size(const struct efx_nic *efx) in efx_rx_recycle_ring_size()
220 int efx_nic_init_interrupt(struct efx_nic *efx);
221 int efx_nic_irq_test_start(struct efx_nic *efx);
222 void efx_nic_fini_interrupt(struct efx_nic *efx);
228 static inline int efx_nic_irq_test_irq_cpu(struct efx_nic *efx) in efx_nic_irq_test_irq_cpu()
234 int efx_nic_alloc_buffer(struct efx_nic *efx, struct efx_buffer *buffer,
236 void efx_nic_free_buffer(struct efx_nic *efx, struct efx_buffer *buffer);
238 size_t efx_nic_get_regs_len(struct efx_nic *efx);
[all …]
H A Defx.c104 static void efx_remove_port(struct efx_nic *efx);
105 static int efx_xdp_setup_prog(struct efx_nic *efx, struct bpf_prog *prog);
116 static void efx_fini_port(struct efx_nic *efx);
118 static int efx_probe_port(struct efx_nic *efx) in efx_probe_port()
138 static int efx_init_port(struct efx_nic *efx) in efx_init_port()
161 static void efx_fini_port(struct efx_nic *efx) in efx_fini_port()
174 static void efx_remove_port(struct efx_nic *efx) in efx_remove_port()
190 static bool efx_same_controller(struct efx_nic *left, struct efx_nic *right) in efx_same_controller()
197 static void efx_associate(struct efx_nic *efx) in efx_associate()
199 struct efx_nic *other, *next; in efx_associate()
[all …]
H A Defx_devlink.h34 int efx_probe_devlink_and_lock(struct efx_nic *efx);
35 void efx_probe_devlink_unlock(struct efx_nic *efx);
36 void efx_fini_devlink_lock(struct efx_nic *efx);
37 void efx_fini_devlink_and_unlock(struct efx_nic *efx);
42 void ef100_pf_set_devlink_port(struct efx_nic *efx);
44 void ef100_pf_unset_devlink_port(struct efx_nic *efx);
H A Def10_sriov.c15 static int efx_ef10_evb_port_assign(struct efx_nic *efx, unsigned int port_id, in efx_ef10_evb_port_assign()
30 static int efx_ef10_vswitch_alloc(struct efx_nic *efx, unsigned int port_id, in efx_ef10_vswitch_alloc()
59 static int efx_ef10_vswitch_free(struct efx_nic *efx, unsigned int port_id) in efx_ef10_vswitch_free()
69 static int efx_ef10_vport_alloc(struct efx_nic *efx, in efx_ef10_vport_alloc()
103 static int efx_ef10_vport_free(struct efx_nic *efx, unsigned int port_id) in efx_ef10_vport_free()
113 static void efx_ef10_sriov_free_vf_vports(struct efx_nic *efx) in efx_ef10_sriov_free_vf_vports()
147 static void efx_ef10_sriov_free_vf_vswitching(struct efx_nic *efx) in efx_ef10_sriov_free_vf_vswitching()
156 static int efx_ef10_sriov_assign_vf_vport(struct efx_nic *efx, in efx_ef10_sriov_assign_vf_vport()
186 static int efx_ef10_sriov_alloc_vf_vswitching(struct efx_nic *efx) in efx_ef10_sriov_alloc_vf_vswitching()
213 static int efx_ef10_sriov_restore_vf_vswitching(struct efx_nic *efx) in efx_ef10_sriov_restore_vf_vswitching()
[all …]
H A Dptp.c294 struct efx_nic *efx;
351 void (*xmit_skb)(struct efx_nic *efx, struct sk_buff *skb);
361 static int efx_ptp_insert_unicast_filter(struct efx_nic *efx,
364 bool efx_ptp_use_mac_tx_timestamps(struct efx_nic *efx) in efx_ptp_use_mac_tx_timestamps()
402 size_t efx_ptp_describe_stats(struct efx_nic *efx, u8 **strings) in efx_ptp_describe_stats()
411 size_t efx_ptp_update_stats(struct efx_nic *efx, u64 *stats) in efx_ptp_update_stats()
526 struct efx_channel *efx_ptp_channel(struct efx_nic *efx) in efx_ptp_channel()
531 void efx_ptp_update_channel(struct efx_nic *efx, struct efx_channel *channel) in efx_ptp_update_channel()
537 static u32 last_sync_timestamp_major(struct efx_nic *efx) in last_sync_timestamp_major()
551 efx_ptp_mac_nic_to_ktime_correction(struct efx_nic *efx, in efx_ptp_mac_nic_to_ktime_correction()
[all …]

1234