Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic.h25 struct fbnic_dev { struct
114 static inline bool fbnic_present(struct fbnic_dev *fbd) in fbnic_present() argument
119 static inline void fbnic_wr32(struct fbnic_dev *fbd, u32 reg, u32 val) in fbnic_wr32()
127 u32 fbnic_rd32(struct fbnic_dev *fbd, u32 reg);
129 static inline void fbnic_wrfl(struct fbnic_dev *fbd) in fbnic_wrfl()
135 fbnic_rmw32(struct fbnic_dev *fbd, u32 reg, u32 mask, u32 val) in fbnic_rmw32()
149 bool fbnic_fw_present(struct fbnic_dev *fbd);
150 u32 fbnic_fw_rd32(struct fbnic_dev *fbd, u32 reg);
151 void fbnic_fw_wr32(struct fbnic_dev *fbd, u32 reg, u32 val);
157 static inline bool fbnic_bmc_present(struct fbnic_dev *fbd) in fbnic_bmc_present()
[all …]
H A Dfbnic_mac.h9 struct fbnic_dev;
94 void (*init_regs)(struct fbnic_dev *fbd);
96 int (*get_link_event)(struct fbnic_dev *fbd);
97 bool (*get_link)(struct fbnic_dev *fbd, u8 aui, u8 fec);
99 void (*prepare)(struct fbnic_dev *fbd, u8 aui, u8 fec);
101 void (*get_fec_stats)(struct fbnic_dev *fbd, bool reset,
103 void (*get_pcs_stats)(struct fbnic_dev *fbd, bool reset,
105 void (*get_eth_mac_stats)(struct fbnic_dev *fbd, bool reset,
107 void (*get_pause_stats)(struct fbnic_dev *fbd, bool reset,
109 void (*get_eth_ctrl_stats)(struct fbnic_dev *fbd, bool reset,
[all …]
H A Dfbnic_rpc.h182 struct fbnic_dev;
185 void fbnic_bmc_rpc_init(struct fbnic_dev *fbd);
186 void fbnic_bmc_rpc_all_multi_config(struct fbnic_dev *fbd, bool enable_host);
187 void fbnic_bmc_rpc_check(struct fbnic_dev *fbd);
192 void fbnic_rss_disable_hw(struct fbnic_dev *fbd);
193 void fbnic_rss_reinit_hw(struct fbnic_dev *fbd, struct fbnic_net *fbn);
194 void fbnic_rss_reinit(struct fbnic_dev *fbd, struct fbnic_net *fbn);
198 struct fbnic_mac_addr *__fbnic_uc_sync(struct fbnic_dev *fbd,
200 struct fbnic_mac_addr *__fbnic_mc_sync(struct fbnic_dev *fbd,
202 void fbnic_sift_macda(struct fbnic_dev *fbd);
[all …]
H A Dfbnic_fw.h11 struct fbnic_dev;
97 u64 __fbnic_mbx_rd_desc(struct fbnic_dev *fbd, int mbx_idx, int desc_idx);
98 void fbnic_mbx_init(struct fbnic_dev *fbd);
99 void fbnic_mbx_clean(struct fbnic_dev *fbd);
100 int fbnic_mbx_set_cmpl(struct fbnic_dev *fbd,
102 void fbnic_mbx_clear_cmpl(struct fbnic_dev *fbd,
104 void fbnic_mbx_poll(struct fbnic_dev *fbd);
105 int fbnic_mbx_poll_tx_ready(struct fbnic_dev *fbd);
106 void fbnic_mbx_flush_tx(struct fbnic_dev *fbd);
107 int fbnic_fw_xmit_ownership_msg(struct fbnic_dev *fbd, bool take_ownership);
[all …]
H A Dfbnic_hw_stats.c8 static void fbnic_hw_stat_rst32(struct fbnic_dev *fbd, u32 reg, in fbnic_hw_stat_rst32()
19 static void fbnic_hw_stat_rd32(struct fbnic_dev *fbd, u32 reg, in fbnic_hw_stat_rd32()
29 u64 fbnic_stat_rd64(struct fbnic_dev *fbd, u32 reg, u32 offset) in fbnic_stat_rd64()
55 static void fbnic_hw_stat_rst64(struct fbnic_dev *fbd, u32 reg, s32 offset, in fbnic_hw_stat_rst64()
65 static void fbnic_hw_stat_rd64(struct fbnic_dev *fbd, u32 reg, s32 offset, in fbnic_hw_stat_rd64()
75 static void fbnic_reset_tmi_stats(struct fbnic_dev *fbd, in fbnic_reset_tmi_stats()
88 static void fbnic_get_tmi_stats32(struct fbnic_dev *fbd, in fbnic_get_tmi_stats32()
100 static void fbnic_get_tmi_stats(struct fbnic_dev *fbd, in fbnic_get_tmi_stats()
106 static void fbnic_reset_tti_stats(struct fbnic_dev *fbd, in fbnic_reset_tti_stats()
134 static void fbnic_get_tti_stats32(struct fbnic_dev *fbd, in fbnic_get_tti_stats32()
[all …]
H A Dfbnic_irq.c13 struct fbnic_dev *fbd = (struct fbnic_dev *)data; in fbnic_fw_msix_intr()
22 static int __fbnic_fw_enable_mbx(struct fbnic_dev *fbd, int vector) in __fbnic_fw_enable_mbx()
50 int fbnic_fw_request_mbx(struct fbnic_dev *fbd) in fbnic_fw_request_mbx()
85 static void fbnic_fw_disable_mbx(struct fbnic_dev *fbd) in fbnic_fw_disable_mbx()
108 void fbnic_fw_free_mbx(struct fbnic_dev *fbd) in fbnic_fw_free_mbx()
123 struct fbnic_dev *fbd = data; in fbnic_mac_msix_intr()
150 int fbnic_mac_request_irq(struct fbnic_dev *fbd) in fbnic_mac_request_irq()
185 void fbnic_mac_free_irq(struct fbnic_dev *fbd) in fbnic_mac_free_irq()
207 void fbnic_synchronize_irq(struct fbnic_dev *fbd, int nr) in fbnic_synchronize_irq()
218 int fbnic_request_irq(struct fbnic_dev *fbd, int nr, irq_handler_t handler, in fbnic_request_irq()
[all …]
H A Dfbnic_time.c31 static struct fbnic_dev *fbnic_from_ptp_info(struct ptp_clock_info *ptp) in fbnic_from_ptp_info()
33 return container_of(ptp, struct fbnic_dev, ptp_info); in fbnic_from_ptp_info()
40 static u64 __fbnic_time_get_slow(struct fbnic_dev *fbd) in __fbnic_time_get_slow()
54 static void __fbnic_time_set_addend(struct fbnic_dev *fbd, u64 addend) in __fbnic_time_set_addend()
63 static void fbnic_ptp_fresh_check(struct fbnic_dev *fbd) in fbnic_ptp_fresh_check()
73 static void fbnic_ptp_refresh_time(struct fbnic_dev *fbd, struct fbnic_net *fbn) in fbnic_ptp_refresh_time()
96 struct fbnic_dev *fbd = fbnic_from_ptp_info(ptp); in fbnic_ptp_do_aux_work()
109 struct fbnic_dev *fbd = fbnic_from_ptp_info(ptp); in fbnic_ptp_adjfine()
130 struct fbnic_dev *fbd = fbnic_from_ptp_info(ptp); in fbnic_ptp_adjtime()
149 struct fbnic_dev *fbd = fbnic_from_ptp_info(ptp); in fbnic_ptp_gettimex64()
[all …]
H A Dfbnic_fw.c15 static void __fbnic_mbx_wr_desc(struct fbnic_dev *fbd, int mbx_idx, in __fbnic_mbx_wr_desc()
29 static void __fbnic_mbx_invalidate_desc(struct fbnic_dev *fbd, int mbx_idx, in __fbnic_mbx_invalidate_desc()
43 u64 __fbnic_mbx_rd_desc(struct fbnic_dev *fbd, int mbx_idx, int desc_idx) in __fbnic_mbx_rd_desc()
54 static void fbnic_mbx_reset_desc_ring(struct fbnic_dev *fbd, int mbx_idx) in fbnic_mbx_reset_desc_ring()
91 void fbnic_mbx_init(struct fbnic_dev *fbd) in fbnic_mbx_init()
115 static int fbnic_mbx_map_msg(struct fbnic_dev *fbd, int mbx_idx, in fbnic_mbx_map_msg()
152 static void fbnic_mbx_unmap_and_free_msg(struct fbnic_dev *fbd, int mbx_idx, in fbnic_mbx_unmap_and_free_msg()
170 static void fbnic_mbx_clean_desc_ring(struct fbnic_dev *fbd, int mbx_idx) in fbnic_mbx_clean_desc_ring()
180 void fbnic_mbx_clean(struct fbnic_dev *fbd) in fbnic_mbx_clean()
191 static int fbnic_mbx_alloc_rx_msgs(struct fbnic_dev *fbd) in fbnic_mbx_alloc_rx_msgs()
[all …]
H A Dfbnic_rpc.c54 void fbnic_rss_disable_hw(struct fbnic_dev *fbd) in fbnic_rss_disable_hw()
81 void fbnic_rss_reinit_hw(struct fbnic_dev *fbd, struct fbnic_net *fbn) in fbnic_rss_reinit_hw()
106 void fbnic_bmc_rpc_all_multi_config(struct fbnic_dev *fbd, in fbnic_bmc_rpc_all_multi_config()
177 void fbnic_bmc_rpc_init(struct fbnic_dev *fbd) in fbnic_bmc_rpc_init()
241 void fbnic_bmc_rpc_check(struct fbnic_dev *fbd) in fbnic_bmc_rpc_check()
272 void fbnic_rss_reinit(struct fbnic_dev *fbd, struct fbnic_net *fbn) in fbnic_rss_reinit()
375 struct fbnic_mac_addr *__fbnic_uc_sync(struct fbnic_dev *fbd, in __fbnic_uc_sync()
406 struct fbnic_mac_addr *__fbnic_mc_sync(struct fbnic_dev *fbd, in __fbnic_mc_sync()
471 void fbnic_promisc_sync(struct fbnic_dev *fbd, in fbnic_promisc_sync()
515 void fbnic_sift_macda(struct fbnic_dev *fbd) in fbnic_sift_macda()
[all …]
H A Dfbnic_fw_log.h18 struct fbnic_dev;
39 void fbnic_fw_log_enable(struct fbnic_dev *fbd, bool send_hist);
40 void fbnic_fw_log_disable(struct fbnic_dev *fbd);
41 int fbnic_fw_log_init(struct fbnic_dev *fbd);
42 void fbnic_fw_log_free(struct fbnic_dev *fbd);
43 int fbnic_fw_log_write(struct fbnic_dev *fbd, u64 index, u32 timestamp,
H A Dfbnic_mac.c11 static void fbnic_init_readrq(struct fbnic_dev *fbd, unsigned int offset, in fbnic_init_readrq()
27 static void fbnic_init_mps(struct fbnic_dev *fbd, unsigned int offset, in fbnic_init_mps()
41 static void fbnic_mac_init_axi(struct fbnic_dev *fbd) in fbnic_mac_init_axi()
84 static void fbnic_mac_init_qm(struct fbnic_dev *fbd) in fbnic_mac_init_qm()
178 static void fbnic_mac_init_rxb(struct fbnic_dev *fbd) in fbnic_mac_init_rxb()
308 static void fbnic_mac_init_txb(struct fbnic_dev *fbd) in fbnic_mac_init_txb()
400 static void fbnic_mac_init_regs(struct fbnic_dev *fbd) in fbnic_mac_init_regs()
408 static void __fbnic_mac_stat_rd64(struct fbnic_dev *fbd, bool reset, u32 reg, in __fbnic_mac_stat_rd64()
423 static void fbnic_mac_tx_pause_config(struct fbnic_dev *fbd, bool tx_pause) in fbnic_mac_tx_pause_config()
437 static int fbnic_mac_get_link_event(struct fbnic_dev *fbd) in fbnic_mac_get_link_event()
[all …]
H A Dfbnic_devlink.c70 struct fbnic_dev *fbd = devlink_priv(devlink); in fbnic_devlink_info_get()
121 struct fbnic_dev *fbd; in fbnic_pldm_match_record()
165 fbnic_flash_start(struct fbnic_dev *fbd, struct pldmfw_component *component) in fbnic_flash_start()
202 struct fbnic_dev *fbd; in fbnic_flash_component()
321 struct fbnic_dev *fbd = devlink_priv(devlink); in fbnic_devlink_flash_update()
377 struct fbnic_dev *fbd = devlink_health_reporter_priv(reporter); in fbnic_fw_reporter_dump()
493 struct fbnic_dev *fbd = devlink_health_reporter_priv(reporter); in fbnic_fw_reporter_diagnose()
517 fbnic_devlink_fw_report(struct fbnic_dev *fbd, const char *format, ...) in fbnic_devlink_fw_report()
537 static u32 fbnic_read_otp_status(struct fbnic_dev *fbd) in fbnic_read_otp_status()
547 struct fbnic_dev *fbd = devlink_health_reporter_priv(reporter); in fbnic_otp_reporter_dump()
[all …]
H A Dfbnic_netdev.h29 struct fbnic_dev *fbd;
85 struct net_device *fbnic_netdev_alloc(struct fbnic_dev *fbd);
86 void fbnic_netdev_free(struct fbnic_dev *fbd);
94 int fbnic_ptp_setup(struct fbnic_dev *fbd);
95 void fbnic_ptp_destroy(struct fbnic_dev *fbd);
100 void __fbnic_set_rx_mode(struct fbnic_dev *fbd);
101 void fbnic_clear_rx_mode(struct fbnic_dev *fbd);
H A Dfbnic_pci.c37 u32 fbnic_rd32(struct fbnic_dev *fbd, u32 reg) in fbnic_rd32()
70 bool fbnic_fw_present(struct fbnic_dev *fbd) in fbnic_fw_present()
75 void fbnic_fw_wr32(struct fbnic_dev *fbd, u32 reg, u32 val) in fbnic_fw_wr32()
83 u32 fbnic_fw_rd32(struct fbnic_dev *fbd, u32 reg) in fbnic_fw_rd32()
118 struct fbnic_dev *fbd = fbn->fbd; in fbnic_service_task_start()
125 struct fbnic_dev *fbd = fbn->fbd; in fbnic_service_task_stop()
174 static int fbnic_fw_config_after_crash(struct fbnic_dev *fbd) in fbnic_fw_config_after_crash()
188 static void fbnic_health_check(struct fbnic_dev *fbd) in fbnic_health_check()
212 struct fbnic_dev *fbd = container_of(to_delayed_work(work), in fbnic_service_task()
213 struct fbnic_dev, service_task); in fbnic_service_task()
[all …]
H A Dfbnic_mdio.c15 fbnic_mdio_read_pmd(struct fbnic_dev *fbd, int addr, int regnum) in fbnic_mdio_read_pmd()
65 fbnic_mdio_read_pcs(struct fbnic_dev *fbd, int addr, int regnum) in fbnic_mdio_read_pcs()
101 struct fbnic_dev *fbd = bus->priv; in fbnic_mdio_read_c45()
113 fbnic_mdio_write_pmd(struct fbnic_dev *fbd, int addr, int regnum, u16 val) in fbnic_mdio_write_pmd()
121 fbnic_mdio_write_pcs(struct fbnic_dev *fbd, int addr, int regnum, u16 val) in fbnic_mdio_write_pcs()
146 struct fbnic_dev *fbd = bus->priv; in fbnic_mdio_write_c45()
166 int fbnic_mdiobus_create(struct fbnic_dev *fbd) in fbnic_mdiobus_create()
H A Dfbnic_hw_stats.h154 u64 fbnic_stat_rd64(struct fbnic_dev *fbd, u32 reg, u32 offset);
156 void fbnic_reset_hw_stats(struct fbnic_dev *fbd);
157 void fbnic_init_hw_stats(struct fbnic_dev *fbd);
158 void fbnic_get_hw_q_stats(struct fbnic_dev *fbd,
160 void fbnic_get_hw_stats32(struct fbnic_dev *fbd);
161 void fbnic_get_hw_stats(struct fbnic_dev *fbd);
H A Dfbnic_fw_log.c11 void fbnic_fw_log_enable(struct fbnic_dev *fbd, bool send_hist) in fbnic_fw_log_enable()
26 void fbnic_fw_log_disable(struct fbnic_dev *fbd) in fbnic_fw_log_disable()
36 int fbnic_fw_log_init(struct fbnic_dev *fbd) in fbnic_fw_log_init()
57 void fbnic_fw_log_free(struct fbnic_dev *fbd) in fbnic_fw_log_free()
71 int fbnic_fw_log_write(struct fbnic_dev *fbd, u64 index, u32 timestamp, in fbnic_fw_log_write()
H A Dfbnic_debugfs.c320 struct fbnic_dev *fbd = nv->fbd; in fbnic_dbg_nv_init()
382 struct fbnic_dev *fbd = s->private; in fbnic_dbg_mac_addr_show()
408 struct fbnic_dev *fbd = s->private; in fbnic_dbg_tce_tcam_show()
442 struct fbnic_dev *fbd = s->private; in fbnic_dbg_act_tcam_show()
502 struct fbnic_dev *fbd = s->private; in fbnic_dbg_ip_src_show()
510 struct fbnic_dev *fbd = s->private; in fbnic_dbg_ip_dst_show()
518 struct fbnic_dev *fbd = s->private; in fbnic_dbg_ipo_src_show()
526 struct fbnic_dev *fbd = s->private; in fbnic_dbg_ipo_dst_show()
533 struct fbnic_dev *fbd, int mbx_idx) in fbnic_dbg_fw_mbx_display()
565 struct fbnic_dev *fbd = s->private; in fbnic_dbg_fw_mbx_show()
[all …]
H A Dfbnic_phylink.c121 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_mac_prepare()
140 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_mac_finish()
154 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_mac_link_down()
169 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_mac_link_up()
200 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_create()
277 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_pmd_training_complete_notify()
H A Dfbnic_hwmon.c34 struct fbnic_dev *fbd = dev_get_drvdata(dev); in fbnic_hwmon_read()
58 void fbnic_hwmon_register(struct fbnic_dev *fbd) in fbnic_hwmon_register()
74 void fbnic_hwmon_unregister(struct fbnic_dev *fbd) in fbnic_hwmon_unregister()
H A Dfbnic_netdev.c15 struct fbnic_dev *fbd = fbn->fbd; in __fbnic_open()
125 struct fbnic_dev *fbd = fbn->fbd; in fbnic_uc_unsync()
166 struct fbnic_dev *fbd = fbn->fbd; in fbnic_mc_unsync()
186 void __fbnic_set_rx_mode(struct fbnic_dev *fbd) in __fbnic_set_rx_mode()
244 struct fbnic_dev *fbd = fbn->fbd; in fbnic_set_rx_mode()
282 void fbnic_clear_rx_mode(struct fbnic_dev *fbd) in fbnic_clear_rx_mode()
394 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_stats64()
567 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_queue_stats_rx()
695 struct fbnic_dev *fbd = fbn->fbd; in fbnic_reset_queues()
716 void fbnic_netdev_free(struct fbnic_dev *fbd) in fbnic_netdev_free()
[all …]
H A Dfbnic_csr.c60 static void fbnic_csr_get_regs_rpc_ram(struct fbnic_dev *fbd, u32 **data_p) in fbnic_csr_get_regs_rpc_ram()
115 void fbnic_csr_get_regs(struct fbnic_dev *fbd, u32 *data, u32 *regs_version) in fbnic_csr_get_regs()
138 int fbnic_csr_regs_len(struct fbnic_dev *fbd) in fbnic_csr_regs_len()
H A Dfbnic_ethtool.c133 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_drvinfo()
202 struct fbnic_dev *fbd = orig->fbd; in fbnic_clone_swap()
516 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_ethtool_stats()
610 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_cls_rule_all()
640 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_cls_rule()
864 static int fbnic_cls_rule_any_loc(struct fbnic_dev *fbd) in fbnic_cls_rule_any_loc()
889 struct fbnic_dev *fbd = fbn->fbd; in fbnic_set_cls_rule_ins()
1193 struct fbnic_dev *fbd = fbn->fbd; in fbnic_clear_nfc_macda()
1207 struct fbnic_dev *fbd = fbn->fbd; in fbnic_clear_nfc_ip_addr()
1228 struct fbnic_dev *fbd = fbn->fbd; in fbnic_set_cls_rule_del()
[all …]
H A Dfbnic_txrx.h153 struct fbnic_dev *fbd;
198 int fbnic_wait_all_queues_idle(struct fbnic_dev *fbd, bool may_fail);
H A Dfbnic_txrx.c1356 struct fbnic_dev *fbd = nv->fbd; in fbnic_nv_irq_disable()
1364 struct fbnic_dev *fbd = nv->fbd; in fbnic_nv_irq_rearm()
1520 struct fbnic_dev *fbd = nv->fbd; in fbnic_free_napi_vector()
1615 static int fbnic_alloc_napi_vector(struct fbnic_dev *fbd, struct fbnic_net *fbn, in fbnic_alloc_napi_vector()
1766 struct fbnic_dev *fbd = fbn->fbd; in fbnic_alloc_napi_vectors()
2276 struct fbnic_dev *fbd = fbn->fbd; in fbnic_disable()
2285 static void fbnic_tx_flush(struct fbnic_dev *fbd) in fbnic_tx_flush()
2293 static void fbnic_tx_flush_off(struct fbnic_dev *fbd) in fbnic_tx_flush_off()
2303 static bool fbnic_all_idle(struct fbnic_dev *fbd, in fbnic_all_idle()
2318 static void fbnic_idle_dump(struct fbnic_dev *fbd, in fbnic_idle_dump()
[all …]