Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/meta/fbnic/
Dfbnic.h18 struct fbnic_dev { struct
67 static inline bool fbnic_present(struct fbnic_dev *fbd) in fbnic_present() argument
72 static inline void fbnic_wr32(struct fbnic_dev *fbd, u32 reg, u32 val) in fbnic_wr32()
80 u32 fbnic_rd32(struct fbnic_dev *fbd, u32 reg);
82 static inline void fbnic_wrfl(struct fbnic_dev *fbd) in fbnic_wrfl()
88 fbnic_rmw32(struct fbnic_dev *fbd, u32 reg, u32 mask, u32 val) in fbnic_rmw32()
102 bool fbnic_fw_present(struct fbnic_dev *fbd);
103 u32 fbnic_fw_rd32(struct fbnic_dev *fbd, u32 reg);
104 void fbnic_fw_wr32(struct fbnic_dev *fbd, u32 reg, u32 val);
110 static inline bool fbnic_bmc_present(struct fbnic_dev *fbd) in fbnic_bmc_present()
[all …]
Dfbnic_mac.h9 struct fbnic_dev;
74 void (*init_regs)(struct fbnic_dev *fbd);
76 int (*pcs_enable)(struct fbnic_dev *fbd);
77 void (*pcs_disable)(struct fbnic_dev *fbd);
78 bool (*pcs_get_link)(struct fbnic_dev *fbd);
79 int (*pcs_get_link_event)(struct fbnic_dev *fbd);
81 void (*get_eth_mac_stats)(struct fbnic_dev *fbd, bool reset,
84 void (*link_down)(struct fbnic_dev *fbd);
85 void (*link_up)(struct fbnic_dev *fbd, bool tx_pause, bool rx_pause);
88 int fbnic_mac_init(struct fbnic_dev *fbd);
Dfbnic_rpc.h156 struct fbnic_dev;
159 void fbnic_bmc_rpc_init(struct fbnic_dev *fbd);
160 void fbnic_bmc_rpc_all_multi_config(struct fbnic_dev *fbd, bool enable_host);
165 void fbnic_rss_disable_hw(struct fbnic_dev *fbd);
166 void fbnic_rss_reinit_hw(struct fbnic_dev *fbd, struct fbnic_net *fbn);
167 void fbnic_rss_reinit(struct fbnic_dev *fbd, struct fbnic_net *fbn);
170 struct fbnic_mac_addr *__fbnic_uc_sync(struct fbnic_dev *fbd,
172 struct fbnic_mac_addr *__fbnic_mc_sync(struct fbnic_dev *fbd,
174 void fbnic_sift_macda(struct fbnic_dev *fbd);
175 void fbnic_write_macda(struct fbnic_dev *fbd);
[all …]
Dfbnic_fw.h10 struct fbnic_dev;
47 void fbnic_mbx_init(struct fbnic_dev *fbd);
48 void fbnic_mbx_clean(struct fbnic_dev *fbd);
49 void fbnic_mbx_poll(struct fbnic_dev *fbd);
50 int fbnic_mbx_poll_tx_ready(struct fbnic_dev *fbd);
51 void fbnic_mbx_flush_tx(struct fbnic_dev *fbd);
52 int fbnic_fw_xmit_ownership_msg(struct fbnic_dev *fbd, bool take_ownership);
53 int fbnic_fw_init_heartbeat(struct fbnic_dev *fbd, bool poll);
54 void fbnic_fw_check_heartbeat(struct fbnic_dev *fbd);
Dfbnic_irq.c13 struct fbnic_dev *fbd = (struct fbnic_dev *)data; in fbnic_fw_msix_intr()
34 int fbnic_fw_enable_mbx(struct fbnic_dev *fbd) in fbnic_fw_enable_mbx()
68 void fbnic_fw_disable_mbx(struct fbnic_dev *fbd) in fbnic_fw_disable_mbx()
87 struct fbnic_dev *fbd = data; in fbnic_pcs_msix_intr()
112 int fbnic_pcs_irq_enable(struct fbnic_dev *fbd) in fbnic_pcs_irq_enable()
138 void fbnic_pcs_irq_disable(struct fbnic_dev *fbd) in fbnic_pcs_irq_disable()
149 int fbnic_request_irq(struct fbnic_dev *fbd, int nr, irq_handler_t handler, in fbnic_request_irq()
161 void fbnic_free_irq(struct fbnic_dev *fbd, int nr, void *data) in fbnic_free_irq()
172 void fbnic_free_irqs(struct fbnic_dev *fbd) in fbnic_free_irqs()
184 int fbnic_alloc_irqs(struct fbnic_dev *fbd) in fbnic_alloc_irqs()
Dfbnic_fw.c15 static void __fbnic_mbx_wr_desc(struct fbnic_dev *fbd, int mbx_idx, in __fbnic_mbx_wr_desc()
25 static u64 __fbnic_mbx_rd_desc(struct fbnic_dev *fbd, int mbx_idx, int desc_idx) in __fbnic_mbx_rd_desc()
36 static void fbnic_mbx_init_desc_ring(struct fbnic_dev *fbd, int mbx_idx) in fbnic_mbx_init_desc_ring()
61 void fbnic_mbx_init(struct fbnic_dev *fbd) in fbnic_mbx_init()
82 static int fbnic_mbx_map_msg(struct fbnic_dev *fbd, int mbx_idx, in fbnic_mbx_map_msg()
122 static void fbnic_mbx_unmap_and_free_msg(struct fbnic_dev *fbd, int mbx_idx, in fbnic_mbx_unmap_and_free_msg()
140 static void fbnic_mbx_clean_desc_ring(struct fbnic_dev *fbd, int mbx_idx) in fbnic_mbx_clean_desc_ring()
150 void fbnic_mbx_clean(struct fbnic_dev *fbd) in fbnic_mbx_clean()
161 static int fbnic_mbx_alloc_rx_msgs(struct fbnic_dev *fbd) in fbnic_mbx_alloc_rx_msgs()
194 static int fbnic_mbx_map_tlv_msg(struct fbnic_dev *fbd, in fbnic_mbx_map_tlv_msg()
[all …]
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()
90 static void fbnic_mac_init_qm(struct fbnic_dev *fbd) in fbnic_mac_init_qm()
176 static void fbnic_mac_init_rxb(struct fbnic_dev *fbd) in fbnic_mac_init_rxb()
306 static void fbnic_mac_init_txb(struct fbnic_dev *fbd) in fbnic_mac_init_txb()
398 static void fbnic_mac_init_regs(struct fbnic_dev *fbd) in fbnic_mac_init_regs()
406 static void __fbnic_mac_stat_rd64(struct fbnic_dev *fbd, bool reset, u32 reg, in __fbnic_mac_stat_rd64()
421 static void fbnic_mac_tx_pause_config(struct fbnic_dev *fbd, bool tx_pause) in fbnic_mac_tx_pause_config()
435 static int fbnic_pcs_get_link_event_asic(struct fbnic_dev *fbd) in fbnic_pcs_get_link_event_asic()
[all …]
Dfbnic_pci.c35 u32 fbnic_rd32(struct fbnic_dev *fbd, u32 reg) in fbnic_rd32()
68 bool fbnic_fw_present(struct fbnic_dev *fbd) in fbnic_fw_present()
73 void fbnic_fw_wr32(struct fbnic_dev *fbd, u32 reg, u32 val) in fbnic_fw_wr32()
81 u32 fbnic_fw_rd32(struct fbnic_dev *fbd, u32 reg) in fbnic_fw_rd32()
116 struct fbnic_dev *fbd = fbn->fbd; in fbnic_service_task_start()
124 struct fbnic_dev *fbd = fbn->fbd; in fbnic_service_task_stop()
170 static void fbnic_health_check(struct fbnic_dev *fbd) in fbnic_health_check()
196 struct fbnic_dev *fbd = container_of(to_delayed_work(work), in fbnic_service_task()
197 struct fbnic_dev, service_task); in fbnic_service_task()
229 struct fbnic_dev *fbd; in fbnic_probe()
[all …]
Dfbnic_devlink.c67 struct fbnic_dev *fbd = devlink_priv(devlink); in fbnic_devlink_info_get()
116 void fbnic_devlink_free(struct fbnic_dev *fbd) in fbnic_devlink_free()
123 struct fbnic_dev *fbnic_devlink_alloc(struct pci_dev *pdev) in fbnic_devlink_alloc()
127 struct fbnic_dev *fbd; in fbnic_devlink_alloc()
129 devlink = devlink_alloc(&fbnic_devlink_ops, sizeof(struct fbnic_dev), in fbnic_devlink_alloc()
151 void fbnic_devlink_register(struct fbnic_dev *fbd) in fbnic_devlink_register()
158 void fbnic_devlink_unregister(struct fbnic_dev *fbd) in fbnic_devlink_unregister()
Dfbnic_rpc.c51 void fbnic_rss_disable_hw(struct fbnic_dev *fbd) in fbnic_rss_disable_hw()
76 void fbnic_rss_reinit_hw(struct fbnic_dev *fbd, struct fbnic_net *fbn) in fbnic_rss_reinit_hw()
101 void fbnic_bmc_rpc_all_multi_config(struct fbnic_dev *fbd, in fbnic_bmc_rpc_all_multi_config()
175 void fbnic_bmc_rpc_init(struct fbnic_dev *fbd) in fbnic_bmc_rpc_init()
247 void fbnic_rss_reinit(struct fbnic_dev *fbd, struct fbnic_net *fbn) in fbnic_rss_reinit()
326 struct fbnic_mac_addr *__fbnic_uc_sync(struct fbnic_dev *fbd, in __fbnic_uc_sync()
357 struct fbnic_mac_addr *__fbnic_mc_sync(struct fbnic_dev *fbd, in __fbnic_mc_sync()
422 void fbnic_sift_macda(struct fbnic_dev *fbd) in fbnic_sift_macda()
464 static void fbnic_clear_macda_entry(struct fbnic_dev *fbd, unsigned int idx) in fbnic_clear_macda_entry()
473 static void fbnic_clear_macda(struct fbnic_dev *fbd) in fbnic_clear_macda()
[all …]
Dfbnic_phylink.c22 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_pcs_get_state()
52 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_pcs_enable()
61 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_pcs_disable()
104 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_mac_link_down()
119 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_mac_link_up()
Dfbnic_netdev.h19 struct fbnic_dev *fbd;
55 struct net_device *fbnic_netdev_alloc(struct fbnic_dev *fbd);
56 void fbnic_netdev_free(struct fbnic_dev *fbd);
Dfbnic_netdev.c15 struct fbnic_dev *fbd = fbn->fbd; in __fbnic_open()
114 struct fbnic_dev *fbd = fbn->fbd; in fbnic_uc_unsync()
155 struct fbnic_dev *fbd = fbn->fbd; in fbnic_mc_unsync()
179 struct fbnic_dev *fbd = fbn->fbd; in __fbnic_set_rx_mode()
295 struct fbnic_dev *fbd = fbn->fbd; in fbnic_clear_rx_mode()
467 struct fbnic_dev *fbd = fbn->fbd; in fbnic_reset_queues()
488 void fbnic_netdev_free(struct fbnic_dev *fbd) in fbnic_netdev_free()
508 struct net_device *fbnic_netdev_alloc(struct fbnic_dev *fbd) in fbnic_netdev_alloc()
602 struct fbnic_dev *fbd = fbn->fbd; in fbnic_netdev_register()
Dfbnic_hw_stats.h38 u64 fbnic_stat_rd64(struct fbnic_dev *fbd, u32 reg, u32 offset);
40 void fbnic_get_hw_stats(struct fbnic_dev *fbd);
Dfbnic_ethtool.c13 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_drvinfo()
31 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_eth_mac_stats()
Dfbnic_txrx.h103 struct fbnic_dev *fbd;
135 int fbnic_wait_all_queues_idle(struct fbnic_dev *fbd, bool may_fail);
Dfbnic_txrx.c844 struct fbnic_dev *fbd = nv->fbd; in fbnic_nv_irq_disable()
852 struct fbnic_dev *fbd = nv->fbd; in fbnic_nv_irq_rearm()
941 struct fbnic_dev *fbd = nv->fbd; in fbnic_free_napi_vector()
1031 static int fbnic_alloc_napi_vector(struct fbnic_dev *fbd, struct fbnic_net *fbn, in fbnic_alloc_napi_vector()
1161 struct fbnic_dev *fbd = fbn->fbd; in fbnic_alloc_napi_vectors()
1524 struct fbnic_dev *fbd = fbn->fbd; in fbnic_disable()
1549 static void fbnic_tx_flush(struct fbnic_dev *fbd) in fbnic_tx_flush()
1557 static void fbnic_tx_flush_off(struct fbnic_dev *fbd) in fbnic_tx_flush_off()
1567 static bool fbnic_all_idle(struct fbnic_dev *fbd, in fbnic_all_idle()
1582 static void fbnic_idle_dump(struct fbnic_dev *fbd, in fbnic_idle_dump()
[all …]
Dfbnic_hw_stats.c3 u64 fbnic_stat_rd64(struct fbnic_dev *fbd, u32 reg, u32 offset) in fbnic_stat_rd64()