Home
last modified time | relevance | path

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

/linux-6.15/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_irq.c15 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 …]
H A Dfbnic_mac.c14 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()
711 dev_err(fbd->dev, in fbnic_mac_get_sensor_asic()
722 dev_err(fbd->dev, in fbnic_mac_get_sensor_asic()
730 dev_err(fbd->dev, in fbnic_mac_get_sensor_asic()
[all …]
H A Dfbnic_time.c80 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 …]
H A Dfbnic_hw_stats.c32 lower = rd32(fbd, reg); in fbnic_stat_rd64()
40 dev_warn_once(fbd->dev, in fbnic_stat_rd64()
76 fbnic_hw_stat_rst32(fbd, in fbnic_reset_rpc_stats()
98 fbnic_hw_stat_rd32(fbd, in fbnic_get_rpc_stats32()
101 fbnic_hw_stat_rd32(fbd, in fbnic_get_rpc_stats32()
112 fbnic_hw_stat_rd32(fbd, in fbnic_get_rpc_stats32()
115 fbnic_hw_stat_rd32(fbd, in fbnic_get_rpc_stats32()
206 fbnic_reset_rpc_stats(fbd, &fbd->hw_stats.rpc); in fbnic_reset_hw_stats()
207 fbnic_reset_pcie_stats_asic(fbd, &fbd->hw_stats.pcie); in fbnic_reset_hw_stats()
212 fbnic_get_rpc_stats32(fbd, &fbd->hw_stats.rpc); in fbnic_get_hw_stats32()
[all …]
H A Dfbnic_fw.c25 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()
285 fbd->cmpl_data = NULL; in fbnic_mbx_map_req_w_cmpl()
309 if (fbd->cmpl_data && fbd->cmpl_data->msg_type == msg_type) { in fbnic_fw_get_cmpl_by_type()
674 dev_warn(fbd->dev, in fbnic_fw_init_heartbeat()
700 dev_warn(fbd->dev, in fbnic_fw_check_heartbeat()
828 dev_warn(fbd->dev, in fbnic_mbx_process_rx_msgs()
866 fbnic_mbx_event(fbd); in fbnic_mbx_poll()
912 fbnic_mbx_clean(fbd); in fbnic_mbx_poll_tx_ready()
[all …]
H A Dfbnic_pci.c58 dev_err(fbd->dev, in fbnic_rd32()
104 dev_err(fbd->dev, in fbnic_fw_rd32()
117 struct fbnic_dev *fbd = fbn->fbd; in fbnic_service_task_start() local
125 struct fbnic_dev *fbd = fbn->fbd; in fbnic_service_task_stop() local
232 struct fbnic_dev *fbd; in fbnic_probe() local
263 if (!fbd) { in fbnic_probe()
301 if (!fbd->dsn) { in fbnic_probe()
335 fbnic_free_irqs(fbd); in fbnic_probe()
367 fbnic_free_irqs(fbd); in fbnic_remove()
393 fbnic_free_irqs(fbd); in fbnic_pm_suspend()
[all …]
H A Dfbnic_rpc.c92 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 …]
H A Dfbnic_debugfs.c23 struct fbnic_dev *fbd = s->private; in fbnic_dbg_mac_addr_show() local
178 fbnic_get_hw_stats(fbd); in fbnic_dbg_pcie_stats_show()
209 debugfs_create_file("pcie_stats", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init()
211 debugfs_create_file("mac_addr", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init()
213 debugfs_create_file("tce_tcam", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init()
215 debugfs_create_file("act_tcam", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init()
217 debugfs_create_file("ip_src", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init()
219 debugfs_create_file("ip_dst", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init()
221 debugfs_create_file("ipo_src", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init()
223 debugfs_create_file("ipo_dst", 0400, fbd->dbg_fbd, fbd, in fbnic_dbg_fbd_init()
[all …]
H A Dfbnic.h99 return !!READ_ONCE(fbd->uc_addr0); in fbnic_present()
104 u32 __iomem *csr = READ_ONCE(fbd->uc_addr0); in fbnic_wr32()
114 fbnic_rd32(fbd, FBNIC_MASTER_SPARE_0); in fbnic_wrfl()
122 v = fbnic_rd32(fbd, reg); in fbnic_rmw32()
125 fbnic_wr32(fbd, reg, v); in fbnic_rmw32()
132 bool fbnic_fw_present(struct fbnic_dev *fbd);
142 return fbd->fw_cap.bmc_present; in fbnic_bmc_present()
147 return !fbd->netdev; in fbnic_init_failure()
158 void fbnic_fw_free_mbx(struct fbnic_dev *fbd);
175 void fbnic_free_irqs(struct fbnic_dev *fbd);
[all …]
H A Dfbnic_devlink.c95 if (fbd->dsn) { in fbnic_devlink_info_get()
99 put_unaligned_be64(fbd->dsn, dsn); in fbnic_devlink_info_get()
127 struct fbnic_dev *fbd; in fbnic_devlink_alloc() local
134 fbd = devlink_priv(devlink); in fbnic_devlink_alloc()
135 pci_set_drvdata(pdev, fbd); in fbnic_devlink_alloc()
136 fbd->dev = &pdev->dev; in fbnic_devlink_alloc()
139 fbd->uc_addr0 = iomap_table[0]; in fbnic_devlink_alloc()
140 fbd->uc_addr4 = iomap_table[4]; in fbnic_devlink_alloc()
142 fbd->dsn = pci_get_dsn(pdev); in fbnic_devlink_alloc()
143 fbd->mps = pcie_get_mps(pdev); in fbnic_devlink_alloc()
[all …]
H A Dfbnic_phylink.c22 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_pcs_get_state() local
28 switch (fbd->fw_cap.link_speed) { in fbnic_phylink_pcs_get_state()
45 state->link = fbd->mac->pcs_get_link(fbd); in fbnic_phylink_pcs_get_state()
52 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_pcs_enable() local
54 return fbd->mac->pcs_enable(fbd); in fbnic_phylink_pcs_enable()
61 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_pcs_disable() local
63 return fbd->mac->pcs_disable(fbd); in fbnic_phylink_pcs_disable()
104 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_mac_link_down() local
106 fbd->mac->link_down(fbd); in fbnic_phylink_mac_link_down()
119 struct fbnic_dev *fbd = fbn->fbd; in fbnic_phylink_mac_link_up() local
[all …]
H A Dfbnic_hwmon.c34 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 …]
H A Dfbnic_netdev.c15 struct fbnic_dev *fbd = fbn->fbd; in __fbnic_open() local
33 dev_warn(fbd->dev, in __fbnic_open()
52 fbnic_bmc_rpc_init(fbd); in __fbnic_open()
119 struct fbnic_dev *fbd = fbn->fbd; in fbnic_uc_unsync() local
160 struct fbnic_dev *fbd = fbn->fbd; in fbnic_mc_unsync() local
184 struct fbnic_dev *fbd = fbn->fbd; in __fbnic_set_rx_mode() local
235 (!fbnic_bmc_present(fbd) || !fbd->fw_cap.all_multi)) { in __fbnic_set_rx_mode()
301 struct fbnic_dev *fbd = fbn->fbd; in fbnic_clear_rx_mode() local
576 struct fbnic_dev *fbd = fbn->fbd; in fbnic_reset_queues() local
638 fbn->fbd = fbd; in fbnic_netdev_alloc()
[all …]
H A Dfbnic_mac.h79 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);
95 int fbnic_mac_init(struct fbnic_dev *fbd);
H A Dfbnic_ethtool.c48 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_drvinfo() local
116 struct fbnic_dev *fbd = orig->fbd; in fbnic_clone_swap() local
388 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_cls_rule_all() local
418 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_cls_rule() local
702 struct fbnic_dev *fbd = fbn->fbd; in fbnic_set_cls_rule_ins() local
1003 struct fbnic_dev *fbd = fbn->fbd; in fbnic_clear_nfc_macda() local
1017 struct fbnic_dev *fbd = fbn->fbd; in fbnic_clear_nfc_ip_addr() local
1038 struct fbnic_dev *fbd = fbn->fbd; in fbnic_set_cls_rule_del() local
1244 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_channels() local
1277 struct fbnic_dev *fbd = fbn->fbd; in fbnic_set_channels() local
[all …]
H A Dfbnic_rpc.h185 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 …]
H A Dfbnic_csr.c73 *(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 …]
H A Dfbnic_fw.h60 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,
72 void fbnic_fw_clear_compl(struct fbnic_dev *fbd);
H A Dfbnic_netdev.h27 struct fbnic_dev *fbd; member
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 Dfbnic_txrx.c1165 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 …]
H A Dfbnic_hw_stats.h62 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 Dfbnic_txrx.h135 struct fbnic_dev *fbd; member
172 int fbnic_wait_all_queues_idle(struct fbnic_dev *fbd, bool may_fail);
/linux-6.15/drivers/gpu/drm/bridge/
H A Dtc358768.c159 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()
615 u32 fbd, prd, frs; in tc358768_setup_pll() local
624 fbd = priv->fbd; in tc358768_setup_pll()
629 clk_get_rate(priv->refclk), fbd, prd, frs); in tc358768_setup_pll()
637 tc358768_write(priv, TC358768_PLLCTL0, ((prd - 1) << 12) | (fbd - 1)); in tc358768_setup_pll()
/linux-6.15/drivers/media/platform/atmel/
H A Datmel-isi.c43 struct fbd { struct
52 static void set_dma_ctrl(struct fbd *fb_desc, u32 ctrl) in set_dma_ctrl()
59 struct fbd *p_fbd;
102 struct fbd *p_fb_descriptors;
1255 sizeof(struct fbd) * VIDEO_MAX_FRAME, in atmel_isi_probe()
1267 i * sizeof(struct fbd); in atmel_isi_probe()
1307 sizeof(struct fbd) * VIDEO_MAX_FRAME, in atmel_isi_probe()
1324 sizeof(struct fbd) * VIDEO_MAX_FRAME, in atmel_isi_remove()
/linux-6.15/drivers/media/i2c/
H A Dtc358743_regs.h86 #define SET_PLL_FBD(fbd) (((fbd) - 1) & MASK_PLL_FBD) argument