| /linux-6.15/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic.h | 23 struct fbnic_dev { struct 110 u32 fbnic_rd32(struct fbnic_dev *fbd, u32 reg); 132 bool fbnic_fw_present(struct fbnic_dev *fbd); 152 void fbnic_devlink_free(struct fbnic_dev *fbd); 158 void fbnic_fw_free_mbx(struct fbnic_dev *fbd); 164 void fbnic_pcs_free_irq(struct fbnic_dev *fbd); 169 void fbnic_napi_free_irq(struct fbnic_dev *fbd, 175 void fbnic_free_irqs(struct fbnic_dev *fbd); 176 int fbnic_alloc_irqs(struct fbnic_dev *fbd); 181 void fbnic_dbg_fbd_init(struct fbnic_dev *fbd); [all …]
|
| H A D | fbnic_mac.h | 9 struct fbnic_dev; 79 void (*init_regs)(struct fbnic_dev *fbd); 81 int (*pcs_enable)(struct fbnic_dev *fbd); 82 void (*pcs_disable)(struct fbnic_dev *fbd); 83 bool (*pcs_get_link)(struct fbnic_dev *fbd); 84 int (*pcs_get_link_event)(struct fbnic_dev *fbd); 86 void (*get_eth_mac_stats)(struct fbnic_dev *fbd, bool reset, 89 void (*link_down)(struct fbnic_dev *fbd); 90 void (*link_up)(struct fbnic_dev *fbd, bool tx_pause, bool rx_pause); 92 int (*get_sensor)(struct fbnic_dev *fbd, int id, long *val); [all …]
|
| H A D | fbnic_rpc.h | 182 struct fbnic_dev; 185 void fbnic_bmc_rpc_init(struct fbnic_dev *fbd); 191 void fbnic_rss_disable_hw(struct fbnic_dev *fbd); 197 struct fbnic_mac_addr *__fbnic_uc_sync(struct fbnic_dev *fbd, 199 struct fbnic_mac_addr *__fbnic_mc_sync(struct fbnic_dev *fbd, 201 void fbnic_sift_macda(struct fbnic_dev *fbd); 202 void fbnic_write_macda(struct fbnic_dev *fbd); 213 void fbnic_write_ip_addr(struct fbnic_dev *fbd); 225 void fbnic_clear_rules(struct fbnic_dev *fbd); 226 void fbnic_write_rules(struct fbnic_dev *fbd); [all …]
|
| H A D | fbnic_irq.c | 13 struct fbnic_dev *fbd = (struct fbnic_dev *)data; in fbnic_fw_msix_intr() 50 int fbnic_fw_request_mbx(struct fbnic_dev *fbd) in fbnic_fw_request_mbx() 108 void fbnic_fw_free_mbx(struct fbnic_dev *fbd) in fbnic_fw_free_mbx() 123 struct fbnic_dev *fbd = data; in fbnic_pcs_msix_intr() 148 int fbnic_pcs_request_irq(struct fbnic_dev *fbd) in fbnic_pcs_request_irq() 183 void fbnic_pcs_free_irq(struct fbnic_dev *fbd) in fbnic_pcs_free_irq() 239 void fbnic_napi_name_irqs(struct fbnic_dev *fbd) in fbnic_napi_name_irqs() 249 int fbnic_napi_request_irq(struct fbnic_dev *fbd, in fbnic_napi_request_irq() 269 void fbnic_napi_free_irq(struct fbnic_dev *fbd, in fbnic_napi_free_irq() 281 void fbnic_free_irqs(struct fbnic_dev *fbd) in fbnic_free_irqs() [all …]
|
| H A D | fbnic_fw.h | 10 struct fbnic_dev; 60 void fbnic_mbx_init(struct fbnic_dev *fbd); 61 void fbnic_mbx_clean(struct fbnic_dev *fbd); 62 void fbnic_mbx_poll(struct fbnic_dev *fbd); 63 int fbnic_mbx_poll_tx_ready(struct fbnic_dev *fbd); 64 void fbnic_mbx_flush_tx(struct fbnic_dev *fbd); 65 int fbnic_fw_xmit_ownership_msg(struct fbnic_dev *fbd, bool take_ownership); 66 int fbnic_fw_init_heartbeat(struct fbnic_dev *fbd, bool poll); 67 void fbnic_fw_check_heartbeat(struct fbnic_dev *fbd); 68 int fbnic_fw_xmit_tsene_read_msg(struct fbnic_dev *fbd, [all …]
|
| H A D | fbnic_fw.c | 91 void fbnic_mbx_init(struct fbnic_dev *fbd) in fbnic_mbx_init() 180 void fbnic_mbx_clean(struct fbnic_dev *fbd) in fbnic_mbx_clean() 378 static bool fbnic_mbx_event(struct fbnic_dev *fbd) in fbnic_mbx_event() 502 struct fbnic_dev *fbd = opaque; in fbnic_fw_parse_cap_resp() 599 struct fbnic_dev *fbd = (struct fbnic_dev *)opaque; in fbnic_fw_parse_ownership_resp() 614 struct fbnic_dev *fbd = (struct fbnic_dev *)opaque; in fbnic_fw_parse_heartbeat_resp() 756 struct fbnic_dev *fbd = opaque; in fbnic_fw_parse_tsene_read_resp() 864 void fbnic_mbx_poll(struct fbnic_dev *fbd) in fbnic_mbx_poll() 872 int fbnic_mbx_poll_tx_ready(struct fbnic_dev *fbd) in fbnic_mbx_poll_tx_ready() 930 void fbnic_mbx_flush_tx(struct fbnic_dev *fbd) in fbnic_mbx_flush_tx() [all …]
|
| H A D | fbnic_hw_stats.c | 6 static void fbnic_hw_stat_rst32(struct fbnic_dev *fbd, u32 reg, in fbnic_hw_stat_rst32() 17 static void fbnic_hw_stat_rd32(struct fbnic_dev *fbd, u32 reg, in fbnic_hw_stat_rd32() 27 u64 fbnic_stat_rd64(struct fbnic_dev *fbd, u32 reg, u32 offset) in fbnic_stat_rd64() 63 static void fbnic_hw_stat_rd64(struct fbnic_dev *fbd, u32 reg, s32 offset, in fbnic_hw_stat_rd64() 73 static void fbnic_reset_rpc_stats(struct fbnic_dev *fbd, in fbnic_reset_rpc_stats() 95 static void fbnic_get_rpc_stats32(struct fbnic_dev *fbd, in fbnic_get_rpc_stats32() 120 static void fbnic_reset_pcie_stats_asic(struct fbnic_dev *fbd, in fbnic_reset_pcie_stats_asic() 162 static void fbnic_get_pcie_stats_asic64(struct fbnic_dev *fbd, in fbnic_get_pcie_stats_asic64() 204 void fbnic_reset_hw_stats(struct fbnic_dev *fbd) in fbnic_reset_hw_stats() 210 void fbnic_get_hw_stats32(struct fbnic_dev *fbd) in fbnic_get_hw_stats32() [all …]
|
| H A D | fbnic_time.c | 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() 63 static void fbnic_ptp_fresh_check(struct fbnic_dev *fbd) in fbnic_ptp_fresh_check() 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() 183 struct fbnic_dev *fbd = fbnic_from_ptp_info(ptp); in fbnic_ptp_settime64() 223 static void fbnic_ptp_reset(struct fbnic_dev *fbd) in fbnic_ptp_reset() 278 int fbnic_ptp_setup(struct fbnic_dev *fbd) in fbnic_ptp_setup() [all …]
|
| H A D | fbnic_rpc.c | 53 void fbnic_rss_disable_hw(struct fbnic_dev *fbd) in fbnic_rss_disable_hw() 103 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() 455 void fbnic_sift_macda(struct fbnic_dev *fbd) in fbnic_sift_macda() 506 static void fbnic_clear_macda(struct fbnic_dev *fbd) in fbnic_clear_macda() 557 void fbnic_write_macda(struct fbnic_dev *fbd) in fbnic_write_macda() 666 static void __fbnic_write_tce_tcam(struct fbnic_dev *fbd) in __fbnic_write_tce_tcam() 694 void fbnic_write_tce_tcam(struct fbnic_dev *fbd) in fbnic_write_tce_tcam() 974 void fbnic_write_ip_addr(struct fbnic_dev *fbd) in fbnic_write_ip_addr() 1055 void fbnic_clear_rules(struct fbnic_dev *fbd) in fbnic_clear_rules() [all …]
|
| H A D | fbnic_mac.c | 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() 170 static void fbnic_mac_init_rxb(struct fbnic_dev *fbd) in fbnic_mac_init_rxb() 300 static void fbnic_mac_init_txb(struct fbnic_dev *fbd) in fbnic_mac_init_txb() 392 static void fbnic_mac_init_regs(struct fbnic_dev *fbd) in fbnic_mac_init_regs() 516 static bool fbnic_pcs_get_link_asic(struct fbnic_dev *fbd) in fbnic_pcs_get_link_asic() 593 static int fbnic_pcs_enable_asic(struct fbnic_dev *fbd) in fbnic_pcs_enable_asic() 605 static void fbnic_pcs_disable_asic(struct fbnic_dev *fbd) in fbnic_pcs_disable_asic() 612 static void fbnic_mac_link_down_asic(struct fbnic_dev *fbd) in fbnic_mac_link_down_asic() 628 static void fbnic_mac_link_up_asic(struct fbnic_dev *fbd, in fbnic_mac_link_up_asic() [all …]
|
| H A D | fbnic_pci.c | 36 u32 fbnic_rd32(struct fbnic_dev *fbd, u32 reg) in fbnic_rd32() 69 bool fbnic_fw_present(struct fbnic_dev *fbd) in fbnic_fw_present() 82 u32 fbnic_fw_rd32(struct fbnic_dev *fbd, u32 reg) in fbnic_fw_rd32() 117 struct fbnic_dev *fbd = fbn->fbd; in fbnic_service_task_start() 125 struct fbnic_dev *fbd = fbn->fbd; in fbnic_service_task_stop() 198 struct fbnic_dev, service_task); in fbnic_service_task() 232 struct fbnic_dev *fbd; in fbnic_probe() 352 struct fbnic_dev *fbd = pci_get_drvdata(pdev); in fbnic_remove() 374 struct fbnic_dev *fbd = dev_get_drvdata(dev); in fbnic_pm_suspend() 404 struct fbnic_dev *fbd = dev_get_drvdata(dev); in __fbnic_pm_resume() [all …]
|
| H A D | fbnic_devlink.c | 67 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()
|
| H A D | fbnic_debugfs.c | 23 struct fbnic_dev *fbd = s->private; in fbnic_dbg_mac_addr_show() 49 struct fbnic_dev *fbd = s->private; in fbnic_dbg_tce_tcam_show() 83 struct fbnic_dev *fbd = s->private; in fbnic_dbg_act_tcam_show() 143 struct fbnic_dev *fbd = s->private; in fbnic_dbg_ip_src_show() 151 struct fbnic_dev *fbd = s->private; in fbnic_dbg_ip_dst_show() 159 struct fbnic_dev *fbd = s->private; in fbnic_dbg_ipo_src_show() 167 struct fbnic_dev *fbd = s->private; in fbnic_dbg_ipo_dst_show() 175 struct fbnic_dev *fbd = s->private; in fbnic_dbg_pcie_stats_show() 203 void fbnic_dbg_fbd_init(struct fbnic_dev *fbd) in fbnic_dbg_fbd_init() 227 void fbnic_dbg_fbd_exit(struct fbnic_dev *fbd) in fbnic_dbg_fbd_exit()
|
| H A D | fbnic_netdev.h | 27 struct fbnic_dev *fbd; 79 struct net_device *fbnic_netdev_alloc(struct fbnic_dev *fbd); 80 void fbnic_netdev_free(struct fbnic_dev *fbd); 87 int fbnic_ptp_setup(struct fbnic_dev *fbd); 88 void fbnic_ptp_destroy(struct fbnic_dev *fbd);
|
| H A D | fbnic_hw_stats.h | 62 u64 fbnic_stat_rd64(struct fbnic_dev *fbd, u32 reg, u32 offset); 64 void fbnic_reset_hw_stats(struct fbnic_dev *fbd); 65 void fbnic_get_hw_stats32(struct fbnic_dev *fbd); 66 void fbnic_get_hw_stats(struct fbnic_dev *fbd);
|
| H A D | fbnic_phylink.c | 22 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()
|
| H A D | fbnic_hwmon.c | 34 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 D | fbnic_netdev.c | 15 struct fbnic_dev *fbd = fbn->fbd; in __fbnic_open() 119 struct fbnic_dev *fbd = fbn->fbd; in fbnic_uc_unsync() 160 struct fbnic_dev *fbd = fbn->fbd; in fbnic_mc_unsync() 184 struct fbnic_dev *fbd = fbn->fbd; in __fbnic_set_rx_mode() 301 struct fbnic_dev *fbd = fbn->fbd; in fbnic_clear_rx_mode() 576 struct fbnic_dev *fbd = fbn->fbd; in fbnic_reset_queues() 597 void fbnic_netdev_free(struct fbnic_dev *fbd) in fbnic_netdev_free() 617 struct net_device *fbnic_netdev_alloc(struct fbnic_dev *fbd) in fbnic_netdev_alloc() 731 struct fbnic_dev *fbd = fbn->fbd; in fbnic_netdev_register()
|
| H A D | fbnic_csr.c | 60 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 D | fbnic_txrx.h | 135 struct fbnic_dev *fbd; 172 int fbnic_wait_all_queues_idle(struct fbnic_dev *fbd, bool may_fail);
|
| H A D | fbnic_ethtool.c | 48 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_drvinfo() 116 struct fbnic_dev *fbd = orig->fbd; in fbnic_clone_swap() 388 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_cls_rule_all() 418 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_cls_rule() 702 struct fbnic_dev *fbd = fbn->fbd; in fbnic_set_cls_rule_ins() 1003 struct fbnic_dev *fbd = fbn->fbd; in fbnic_clear_nfc_macda() 1017 struct fbnic_dev *fbd = fbn->fbd; in fbnic_clear_nfc_ip_addr() 1038 struct fbnic_dev *fbd = fbn->fbd; in fbnic_set_cls_rule_del() 1244 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_channels() 1277 struct fbnic_dev *fbd = fbn->fbd; in fbnic_set_channels() [all …]
|
| H A D | fbnic_txrx.c | 1165 struct fbnic_dev *fbd = nv->fbd; in fbnic_nv_irq_disable() 1173 struct fbnic_dev *fbd = nv->fbd; in fbnic_nv_irq_rearm() 1275 struct fbnic_dev *fbd = nv->fbd; in fbnic_free_napi_vector() 1481 struct fbnic_dev *fbd = fbn->fbd; in fbnic_alloc_napi_vectors() 1908 struct fbnic_dev *fbd = fbn->fbd; in fbnic_disable() 1934 static void fbnic_tx_flush(struct fbnic_dev *fbd) in fbnic_tx_flush() 1952 static bool fbnic_all_idle(struct fbnic_dev *fbd, in fbnic_all_idle() 2205 struct fbnic_dev *fbd = nv->fbd; in fbnic_config_txrx_usecs() 2271 struct fbnic_dev *fbd = fbn->fbd; in fbnic_enable() 2307 struct fbnic_dev *fbd = fbn->fbd; in fbnic_napi_enable() [all …]
|