| /drivers/net/ethernet/meta/fbnic/ |
| A D | fbnic_hw_stats.c | 516 fbnic_reset_tmi_stats(fbd, &fbd->hw_stats.tmi); in fbnic_reset_hw_stats() 517 fbnic_reset_tti_stats(fbd, &fbd->hw_stats.tti); in fbnic_reset_hw_stats() 518 fbnic_reset_rpc_stats(fbd, &fbd->hw_stats.rpc); in fbnic_reset_hw_stats() 519 fbnic_reset_rxb_stats(fbd, &fbd->hw_stats.rxb); in fbnic_reset_hw_stats() 527 fbnic_get_tmi_stats32(fbd, &fbd->hw_stats.tmi); in __fbnic_get_hw_stats32() 528 fbnic_get_tti_stats32(fbd, &fbd->hw_stats.tti); in __fbnic_get_hw_stats32() 529 fbnic_get_rpc_stats32(fbd, &fbd->hw_stats.rpc); in __fbnic_get_hw_stats32() 530 fbnic_get_rxb_stats32(fbd, &fbd->hw_stats.rxb); in __fbnic_get_hw_stats32() 546 fbnic_get_tmi_stats(fbd, &fbd->hw_stats.tmi); in fbnic_get_hw_stats() 547 fbnic_get_tti_stats(fbd, &fbd->hw_stats.tti); in fbnic_get_hw_stats() [all …]
|
| A D | fbnic_mac.c | 14 u32 val = rd32(fbd, offset); in fbnic_init_readrq() 24 wr32(fbd, offset, val); in fbnic_init_readrq() 38 wr32(fbd, offset, val); in fbnic_init_mps() 57 mps = ilog2(fbd->mps) - 6; in fbnic_mac_init_axi() 191 dev_warn(fbd->dev, in fbnic_mac_init_rxb() 387 wrfl(fbd); in fbnic_mac_init_txb() 527 wrfl(fbd); in fbnic_pcs_get_link_asic() 763 dev_err(fbd->dev, in fbnic_mac_get_sensor_asic() 774 dev_err(fbd->dev, in fbnic_mac_get_sensor_asic() 782 dev_err(fbd->dev, in fbnic_mac_get_sensor_asic() [all …]
|
| A D | fbnic_irq.c | 15 fbnic_mbx_poll(fbd); in fbnic_fw_msix_intr() 27 fbnic_mbx_init(fbd); in __fbnic_fw_enable_mbx() 64 dev_name(fbd->dev), fbd); in fbnic_fw_request_mbx() 71 free_irq(vector, fbd); in fbnic_fw_request_mbx() 97 fbnic_mbx_clean(fbd); in fbnic_fw_disable_mbx() 117 free_irq(fbd->fw_msix_vector, fbd); in fbnic_fw_free_mbx() 126 if (fbd->mac->pcs_get_link_event(fbd) == FBNIC_LINK_EVENT_NONE) { in fbnic_pcs_msix_intr() 163 fbd->netdev->name, fbd); in fbnic_pcs_request_irq() 192 fbnic_wrfl(fbd); in fbnic_pcs_free_irq() 201 free_irq(fbd->pcs_msix_vector, fbd); in fbnic_pcs_free_irq() [all …]
|
| A D | fbnic_pci.c | 59 dev_err(fbd->dev, in fbnic_rd32() 105 dev_err(fbd->dev, in fbnic_fw_rd32() 118 struct fbnic_dev *fbd = fbn->fbd; in fbnic_service_task_start() local 126 struct fbnic_dev *fbd = fbn->fbd; in fbnic_service_task_stop() local 264 if (!fbd) { in fbnic_probe() 301 dev_warn(fbd->dev, in fbnic_probe() 314 if (!fbd->dsn) { in fbnic_probe() 348 fbnic_free_irqs(fbd); in fbnic_probe() 381 fbnic_free_irqs(fbd); in fbnic_remove() 440 fbd->mac->init_regs(fbd); in __fbnic_pm_resume() [all …]
|
| A D | fbnic_time.c | 80 if (!fbnic_present(fbd)) in fbnic_ptp_refresh_time() 89 fbd->last_read = jiffies; in fbnic_ptp_refresh_time() 99 fbn = netdev_priv(fbd->netdev); in fbnic_ptp_do_aux_work() 101 fbnic_ptp_fresh_check(fbd); in fbnic_ptp_do_aux_work() 134 fbn = netdev_priv(fbd->netdev); in fbnic_ptp_adjtime() 172 if (!fbnic_present(fbd)) in fbnic_ptp_gettimex64() 197 if (fbnic_present(fbd)) { in fbnic_ptp_settime64() 286 fbnic_ptp_reset(fbd); in fbnic_ptp_setup() 291 fbd->ptp = ptp_clock_register(&fbd->ptp_info, dev); in fbnic_ptp_setup() 292 if (IS_ERR(fbd->ptp)) in fbnic_ptp_setup() [all …]
|
| A D | fbnic_fw.c | 25 fw_wrfl(fbd); in __fbnic_mbx_wr_desc() 39 fw_wrfl(fbd); in __fbnic_mbx_invalidate_desc() 72 wrfl(fbd); in fbnic_mbx_reset_desc_ring() 99 memset(&fbd->fw_cap, 0, sizeof(fbd->fw_cap)); in fbnic_mbx_init() 741 dev_warn(fbd->dev, in fbnic_fw_init_heartbeat() 767 dev_warn(fbd->dev, in fbnic_fw_check_heartbeat() 1252 dev_warn(fbd->dev, in fbnic_mbx_process_rx_msgs() 1290 fbnic_mbx_event(fbd); in fbnic_mbx_poll() 1342 fbnic_mbx_poll(fbd); in fbnic_mbx_poll_tx_ready() 1352 fbnic_mbx_clean(fbd); in fbnic_mbx_poll_tx_ready() [all …]
|
| A D | fbnic_rpc.c | 92 wrfl(fbd); in fbnic_rss_reinit_hw() 116 mac_addr = &fbd->mac_addr[fbd->mac_addr_boundary - 1]; in fbnic_bmc_rpc_all_multi_config() 117 if (fbnic_bmc_present(fbd) && fbd->fw_cap.all_multi) { in fbnic_bmc_rpc_all_multi_config() 151 if (!fbnic_bmc_present(fbd) || !fbd->fw_cap.all_multi || enable_host) { in fbnic_bmc_rpc_all_multi_config() 552 wrfl(fbd); in fbnic_write_macda_entry() 631 wrfl(fbd); in fbnic_write_tce_tcam_entry() 909 wrfl(fbd); in fbnic_write_ip_src_entry() 929 wrfl(fbd); in fbnic_write_ip_dst_entry() 950 wrfl(fbd); in fbnic_write_ip_outer_src_entry() 969 wrfl(fbd); in fbnic_write_ip_outer_dst_entry() [all …]
|
| A D | fbnic_debugfs.c | 205 fbnic_get_hw_stats(fbd); in fbnic_dbg_pcie_stats_show() 236 debugfs_create_file("pcie_stats", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init() 238 debugfs_create_file("mac_addr", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init() 240 debugfs_create_file("tce_tcam", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init() 242 debugfs_create_file("act_tcam", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init() 244 debugfs_create_file("ip_src", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init() 246 debugfs_create_file("ip_dst", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init() 248 debugfs_create_file("ipo_src", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init() 250 debugfs_create_file("ipo_dst", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init() 252 debugfs_create_file("fw_log", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init() [all …]
|
| A D | fbnic.h | 106 return !!READ_ONCE(fbd->uc_addr0); in fbnic_present() 111 u32 __iomem *csr = READ_ONCE(fbd->uc_addr0); in fbnic_wr32() 121 fbnic_rd32(fbd, FBNIC_MASTER_SPARE_0); in fbnic_wrfl() 129 v = fbnic_rd32(fbd, reg); in fbnic_rmw32() 132 fbnic_wr32(fbd, reg, v); in fbnic_rmw32() 139 bool fbnic_fw_present(struct fbnic_dev *fbd); 149 return fbd->fw_cap.bmc_present; in fbnic_bmc_present() 154 return !fbd->netdev; in fbnic_init_failure() 165 void fbnic_fw_free_mbx(struct fbnic_dev *fbd); 182 void fbnic_free_irqs(struct fbnic_dev *fbd); [all …]
|
| A D | fbnic_netdev.c | 15 struct fbnic_dev *fbd = fbn->fbd; in __fbnic_open() local 121 struct fbnic_dev *fbd = fbn->fbd; in fbnic_uc_unsync() local 162 struct fbnic_dev *fbd = fbn->fbd; in fbnic_mc_unsync() local 186 struct fbnic_dev *fbd = fbn->fbd; in __fbnic_set_rx_mode() local 303 struct fbnic_dev *fbd = fbn->fbd; in fbnic_clear_rx_mode() local 412 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_stats64() local 529 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_queue_stats_rx() local 554 fbnic_get_hw_q_stats(fbd, fbd->hw_stats.hw_q); in fbnic_get_queue_stats_rx() 625 struct fbnic_dev *fbd = fbn->fbd; in fbnic_reset_queues() local 687 fbn->fbd = fbd; in fbnic_netdev_alloc() [all …]
|
| A D | fbnic_devlink.c | 97 if (fbd->dsn) { in fbnic_devlink_info_get() 120 struct fbnic_dev *fbd; in fbnic_pldm_match_record() local 128 fbd = pci_get_drvdata(pdev); in fbnic_pldm_match_record() 129 devlink = priv_to_devlink(fbd); in fbnic_pldm_match_record() 201 struct fbnic_dev *fbd; in fbnic_flash_component() local 209 fbd = pci_get_drvdata(pdev); in fbnic_flash_component() 383 struct fbnic_dev *fbd; in fbnic_devlink_alloc() local 390 fbd = devlink_priv(devlink); in fbnic_devlink_alloc() 391 pci_set_drvdata(pdev, fbd); in fbnic_devlink_alloc() 392 fbd->dev = &pdev->dev; in fbnic_devlink_alloc() [all …]
|
| A D | fbnic_fw_log.c | 15 if (!fbnic_fw_log_ready(fbd)) in fbnic_fw_log_enable() 36 int fbnic_fw_log_init(struct fbnic_dev *fbd) in fbnic_fw_log_init() argument 38 struct fbnic_fw_log *log = &fbd->fw_log; in fbnic_fw_log_init() 41 if (WARN_ON_ONCE(fbnic_fw_log_ready(fbd))) in fbnic_fw_log_init() 48 spin_lock_init(&fbd->fw_log.lock); in fbnic_fw_log_init() 54 fbnic_fw_log_enable(fbd, true); in fbnic_fw_log_init() 61 struct fbnic_fw_log *log = &fbd->fw_log; in fbnic_fw_log_free() 63 if (!fbnic_fw_log_ready(fbd)) in fbnic_fw_log_free() 66 fbnic_fw_log_disable(fbd); in fbnic_fw_log_free() 78 struct fbnic_fw_log *log = &fbd->fw_log; in fbnic_fw_log_write() [all …]
|
| A D | fbnic_hwmon.c | 34 struct fbnic_dev *fbd = dev_get_drvdata(dev); in fbnic_hwmon_read() local 35 const struct fbnic_mac *mac = fbd->mac; in fbnic_hwmon_read() 58 void fbnic_hwmon_register(struct fbnic_dev *fbd) in fbnic_hwmon_register() argument 63 fbd->hwmon = hwmon_device_register_with_info(fbd->dev, "fbnic", in fbnic_hwmon_register() 64 fbd, &fbnic_chip_info, in fbnic_hwmon_register() 66 if (IS_ERR(fbd->hwmon)) { in fbnic_hwmon_register() 67 dev_notice(fbd->dev, in fbnic_hwmon_register() 69 fbd->hwmon); in fbnic_hwmon_register() 70 fbd->hwmon = NULL; in fbnic_hwmon_register() 79 hwmon_device_unregister(fbd->hwmon); in fbnic_hwmon_unregister() [all …]
|
| A D | fbnic_phylink.c | 115 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_pcs_get_state() local 135 state->link = fbd->mac->pcs_get_link(fbd); in fbnic_phylink_pcs_get_state() 142 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_pcs_enable() local 144 return fbd->mac->pcs_enable(fbd); in fbnic_phylink_pcs_enable() 151 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_pcs_disable() local 153 return fbd->mac->pcs_disable(fbd); in fbnic_phylink_pcs_disable() 194 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_mac_link_down() local 196 fbd->mac->link_down(fbd); in fbnic_phylink_mac_link_down() 209 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_mac_link_up() local 211 fbd->mac->link_up(fbd, tx_pause, rx_pause); in fbnic_phylink_mac_link_up() [all …]
|
| A D | fbnic_mac.h | 75 void (*init_regs)(struct fbnic_dev *fbd); 77 int (*pcs_enable)(struct fbnic_dev *fbd); 78 void (*pcs_disable)(struct fbnic_dev *fbd); 79 bool (*pcs_get_link)(struct fbnic_dev *fbd); 80 int (*pcs_get_link_event)(struct fbnic_dev *fbd); 82 void (*get_eth_mac_stats)(struct fbnic_dev *fbd, bool reset, 84 void (*get_eth_ctrl_stats)(struct fbnic_dev *fbd, bool reset, 86 void (*get_rmon_stats)(struct fbnic_dev *fbd, bool reset, 89 void (*link_down)(struct fbnic_dev *fbd); 92 int (*get_sensor)(struct fbnic_dev *fbd, int id, long *val); [all …]
|
| A D | fbnic_ethtool.c | 118 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_drvinfo() local 186 struct fbnic_dev *fbd = orig->fbd; in fbnic_clone_swap() local 447 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_ethtool_stats() local 538 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_cls_rule_all() local 568 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_cls_rule() local 814 struct fbnic_dev *fbd = fbn->fbd; in fbnic_set_cls_rule_ins() local 1115 struct fbnic_dev *fbd = fbn->fbd; in fbnic_clear_nfc_macda() local 1129 struct fbnic_dev *fbd = fbn->fbd; in fbnic_clear_nfc_ip_addr() local 1150 struct fbnic_dev *fbd = fbn->fbd; in fbnic_set_cls_rule_del() local 1407 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_channels() local [all …]
|
| A D | fbnic_rpc.h | 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); 204 struct fbnic_ip_addr *__fbnic_ip4_sync(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 …]
|
| A D | fbnic_fw.h | 78 void fbnic_mbx_init(struct fbnic_dev *fbd); 79 void fbnic_mbx_clean(struct fbnic_dev *fbd); 80 int fbnic_mbx_set_cmpl(struct fbnic_dev *fbd, 82 void fbnic_mbx_clear_cmpl(struct fbnic_dev *fbd, 84 void fbnic_mbx_poll(struct fbnic_dev *fbd); 85 int fbnic_mbx_poll_tx_ready(struct fbnic_dev *fbd); 86 void fbnic_mbx_flush_tx(struct fbnic_dev *fbd); 89 void fbnic_fw_check_heartbeat(struct fbnic_dev *fbd); 90 int fbnic_fw_xmit_fw_start_upgrade(struct fbnic_dev *fbd, 93 int fbnic_fw_xmit_fw_write_chunk(struct fbnic_dev *fbd, [all …]
|
| A D | fbnic_csr.c | 73 *(data++) = rd32(fbd, FBNIC_RPC_TCAM_ACT(i, j)); in fbnic_csr_get_regs_rpc_ram() 79 *(data++) = rd32(fbd, FBNIC_RPC_TCAM_MACDA(i, j)); in fbnic_csr_get_regs_rpc_ram() 85 *(data++) = rd32(fbd, FBNIC_RPC_TCAM_OUTER_IPSRC(i, j)); in fbnic_csr_get_regs_rpc_ram() 91 *(data++) = rd32(fbd, FBNIC_RPC_TCAM_OUTER_IPDST(i, j)); in fbnic_csr_get_regs_rpc_ram() 97 *(data++) = rd32(fbd, FBNIC_RPC_TCAM_IPSRC(i, j)); in fbnic_csr_get_regs_rpc_ram() 103 *(data++) = rd32(fbd, FBNIC_RPC_TCAM_IPDST(i, j)); in fbnic_csr_get_regs_rpc_ram() 109 *(data++) = rd32(fbd, FBNIC_RPC_RSS_TBL(i, j)); in fbnic_csr_get_regs_rpc_ram() 129 *(data++) = rd32(fbd, j); in fbnic_csr_get_regs() 133 fbnic_csr_get_regs_rpc_ram(fbd, &data); in fbnic_csr_get_regs() 135 WARN_ON(data - start != fbnic_csr_regs_len(fbd)); in fbnic_csr_get_regs() [all …]
|
| A D | fbnic_fw_log.h | 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,
|
| A D | fbnic_txrx.c | 1165 struct fbnic_dev *fbd = nv->fbd; in fbnic_nv_irq_disable() local 1173 struct fbnic_dev *fbd = nv->fbd; in fbnic_nv_irq_rearm() local 1275 struct fbnic_dev *fbd = nv->fbd; in fbnic_free_napi_vector() local 1385 nv->fbd = fbd; in fbnic_alloc_napi_vector() 1481 struct fbnic_dev *fbd = fbn->fbd; in fbnic_alloc_napi_vectors() local 1908 struct fbnic_dev *fbd = fbn->fbd; in fbnic_disable() local 1931 fbnic_wrfl(fbd); in fbnic_disable() 2205 struct fbnic_dev *fbd = nv->fbd; in fbnic_config_txrx_usecs() local 2271 struct fbnic_dev *fbd = fbn->fbd; in fbnic_enable() local 2307 struct fbnic_dev *fbd = fbn->fbd; in fbnic_napi_enable() local [all …]
|
| A D | fbnic_netdev.h | 27 struct fbnic_dev *fbd; member 78 struct net_device *fbnic_netdev_alloc(struct fbnic_dev *fbd); 79 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);
|
| A D | fbnic_hw_stats.h | 127 u64 fbnic_stat_rd64(struct fbnic_dev *fbd, u32 reg, u32 offset); 129 void fbnic_reset_hw_stats(struct fbnic_dev *fbd); 130 void fbnic_get_hw_q_stats(struct fbnic_dev *fbd, 132 void fbnic_get_hw_stats32(struct fbnic_dev *fbd); 133 void fbnic_get_hw_stats(struct fbnic_dev *fbd);
|
| A D | fbnic_txrx.h | 133 struct fbnic_dev *fbd; member 167 int fbnic_wait_all_queues_idle(struct fbnic_dev *fbd, bool may_fail);
|
| /drivers/gpu/drm/bridge/ |
| A D | tc358768.c | 159 u32 fbd; /* PLL feedback divider */ member 362 u32 fbd; in tc358768_calc_pll() local 364 for (fbd = 1; fbd <= 512; ++fbd) { in tc358768_calc_pll() 367 pll = (u32)div_u64((u64)refclk * fbd, divisor); in tc358768_calc_pll() 382 best_fbd = fbd; in tc358768_calc_pll() 399 priv->fbd = best_fbd; in tc358768_calc_pll() 618 u32 fbd, prd, frs; in tc358768_setup_pll() local 627 fbd = priv->fbd; in tc358768_setup_pll() 632 clk_get_rate(priv->refclk), fbd, prd, frs); in tc358768_setup_pll() 640 tc358768_write(priv, TC358768_PLLCTL0, ((prd - 1) << 12) | (fbd - 1)); in tc358768_setup_pll()
|