Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/meta/fbnic/
A Dfbnic_mac.c14 u32 val = rd32(fbd, offset); in fbnic_init_readrq()
24 wr32(fbd, offset, val); in fbnic_init_readrq()
30 u32 val = rd32(fbd, offset); in fbnic_init_mps()
38 wr32(fbd, offset, val); in fbnic_init_mps()
57 mps = ilog2(fbd->mps) - 6; in fbnic_mac_init_axi()
197 dev_warn(fbd->dev, in fbnic_mac_init_rxb()
393 wrfl(fbd); in fbnic_mac_init_txb()
400 fbnic_mac_init_axi(fbd); in fbnic_mac_init_regs()
401 fbnic_mac_init_qm(fbd); in fbnic_mac_init_regs()
533 wrfl(fbd); in fbnic_pcs_get_link_asic()
[all …]
A Dfbnic_fw.c21 fw_wrfl(fbd); in __fbnic_mbx_wr_desc()
46 fw_wrfl(fbd); in fbnic_mbx_init_desc_ring()
57 fw_wrfl(fbd); in fbnic_mbx_init_desc_ring()
254 if (!fbnic_fw_present(fbd)) in fbnic_fw_xmit_simple_msg()
349 if (!fbnic_fw_present(fbd)) in fbnic_fw_xmit_ownership_msg()
609 fbnic_mbx_poll(fbd); in fbnic_fw_init_heartbeat()
617 dev_warn(fbd->dev, in fbnic_fw_init_heartbeat()
643 dev_warn(fbd->dev, in fbnic_fw_check_heartbeat()
691 dev_warn(fbd->dev, in fbnic_mbx_process_rx_msgs()
729 fbnic_mbx_postinit(fbd); in fbnic_mbx_poll()
[all …]
A Dfbnic_irq.c15 fbnic_mbx_poll(fbd); in fbnic_fw_msix_intr()
41 IRQF_ONESHOT, dev_name(fbd->dev), fbd); in fbnic_fw_enable_mbx()
46 fbnic_mbx_init(fbd); in fbnic_fw_enable_mbx()
50 free_irq(vector, fbd); in fbnic_fw_enable_mbx()
74 free_irq(fbd->fw_msix_vector, fbd); in fbnic_fw_disable_mbx()
79 fbnic_mbx_flush_tx(fbd); in fbnic_fw_disable_mbx()
82 fbnic_mbx_clean(fbd); in fbnic_fw_disable_mbx()
90 if (fbd->mac->pcs_get_link_event(fbd) == FBNIC_LINK_EVENT_NONE) { in fbnic_pcs_msix_intr()
121 fbd->netdev->name, fbd); in fbnic_pcs_irq_enable()
146 free_irq(fbd->pcs_msix_vector, fbd); in fbnic_pcs_irq_disable()
[all …]
A Dfbnic_pci.c57 dev_err(fbd->dev, in fbnic_rd32()
103 dev_err(fbd->dev, in fbnic_fw_rd32()
116 struct fbnic_dev *fbd = fbn->fbd; in fbnic_service_task_start() local
124 struct fbnic_dev *fbd = fbn->fbd; in fbnic_service_task_stop() local
229 struct fbnic_dev *fbd; in fbnic_probe() local
260 if (!fbd) { in fbnic_probe()
292 if (!fbd->dsn) { in fbnic_probe()
320 fbnic_free_irqs(fbd); in fbnic_probe()
350 fbnic_free_irqs(fbd); in fbnic_remove()
377 fbnic_free_irqs(fbd); in fbnic_pm_suspend()
[all …]
A Dfbnic_rpc.c54 if (!fbnic_bmc_present(fbd)) in fbnic_rss_disable_hw()
90 wrfl(fbd); in fbnic_rss_reinit_hw()
114 mac_addr = &fbd->mac_addr[fbd->mac_addr_boundary - 1]; in fbnic_bmc_rpc_all_multi_config()
115 if (fbnic_bmc_present(fbd) && fbd->fw_cap.all_multi) { in fbnic_bmc_rpc_all_multi_config()
149 if (!fbnic_bmc_present(fbd) || !fbd->fw_cap.all_multi || enable_host) { in fbnic_bmc_rpc_all_multi_config()
183 if (!fbnic_bmc_present(fbd)) in fbnic_bmc_rpc_init()
200 netdev_err(fbd->netdev, in fbnic_bmc_rpc_init()
486 dev_warn_once(fbd->dev, in fbnic_clear_macda()
519 wrfl(fbd); in fbnic_write_macda_entry()
567 fbnic_clear_macda(fbd); in fbnic_clear_rules()
[all …]
A Dfbnic.h69 return !!READ_ONCE(fbd->uc_addr0); in fbnic_present()
74 u32 __iomem *csr = READ_ONCE(fbd->uc_addr0); in fbnic_wr32()
80 u32 fbnic_rd32(struct fbnic_dev *fbd, u32 reg);
84 fbnic_rd32(fbd, FBNIC_MASTER_SPARE_0); in fbnic_wrfl()
92 v = fbnic_rd32(fbd, reg); in fbnic_rmw32()
95 fbnic_wr32(fbd, reg, v); in fbnic_rmw32()
102 bool fbnic_fw_present(struct fbnic_dev *fbd);
112 return fbd->fw_cap.bmc_present; in fbnic_bmc_present()
117 return !fbd->netdev; in fbnic_init_failure()
136 void fbnic_free_irqs(struct fbnic_dev *fbd);
[all …]
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 …]
A Dfbnic_netdev.c15 struct fbnic_dev *fbd = fbn->fbd; in __fbnic_open() local
39 dev_warn(fbd->dev, in __fbnic_open()
114 struct fbnic_dev *fbd = fbn->fbd; in fbnic_uc_unsync() local
155 struct fbnic_dev *fbd = fbn->fbd; in fbnic_mc_unsync() local
179 struct fbnic_dev *fbd = fbn->fbd; in __fbnic_set_rx_mode() local
230 (!fbnic_bmc_present(fbd) || !fbd->fw_cap.all_multi)) { in __fbnic_set_rx_mode()
295 struct fbnic_dev *fbd = fbn->fbd; in fbnic_clear_rx_mode() local
467 struct fbnic_dev *fbd = fbn->fbd; in fbnic_reset_queues() local
496 fbd->netdev = NULL; in fbnic_netdev_free()
529 fbn->fbd = fbd; in fbnic_netdev_alloc()
[all …]
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 …]
A Dfbnic_mac.h74 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);
A Dfbnic_rpc.h159 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);
187 void fbnic_clear_rules(struct fbnic_dev *fbd);
[all …]
A Dfbnic_ethtool.c13 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_drvinfo() local
15 fbnic_get_fw_ver_commit_str(fbd, drvinfo->fw_version, in fbnic_get_drvinfo()
31 struct fbnic_dev *fbd = fbn->fbd; in fbnic_get_eth_mac_stats() local
34 mac_stats = &fbd->hw_stats.mac; in fbnic_get_eth_mac_stats()
35 mac = fbd->mac; in fbnic_get_eth_mac_stats()
37 mac->get_eth_mac_stats(fbd, false, &mac_stats->eth_mac); in fbnic_get_eth_mac_stats()
A Dfbnic_fw.h47 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);
A Dfbnic_hw_stats.c3 u64 fbnic_stat_rd64(struct fbnic_dev *fbd, u32 reg, u32 offset) in fbnic_stat_rd64() argument
7 prev_upper = rd32(fbd, reg + offset); in fbnic_stat_rd64()
8 lower = rd32(fbd, reg); in fbnic_stat_rd64()
9 upper = rd32(fbd, reg + offset); in fbnic_stat_rd64()
16 dev_warn_once(fbd->dev, in fbnic_stat_rd64()
A Dfbnic_txrx.c844 struct fbnic_dev *fbd = nv->fbd; in fbnic_nv_irq_disable() local
852 struct fbnic_dev *fbd = nv->fbd; in fbnic_nv_irq_rearm() local
941 struct fbnic_dev *fbd = nv->fbd; in fbnic_free_napi_vector() local
1061 nv->fbd = fbd; in fbnic_alloc_napi_vector()
1161 struct fbnic_dev *fbd = fbn->fbd; in fbnic_alloc_napi_vectors() local
1524 struct fbnic_dev *fbd = fbn->fbd; in fbnic_disable() local
1546 fbnic_wrfl(fbd); in fbnic_disable()
1867 struct fbnic_dev *fbd = fbn->fbd; in fbnic_enable() local
1895 struct fbnic_dev *fbd = nv->fbd; in fbnic_nv_irq_enable() local
1906 struct fbnic_dev *fbd = fbn->fbd; in fbnic_napi_enable() local
[all …]
A Dfbnic_netdev.h19 struct fbnic_dev *fbd; member
55 struct net_device *fbnic_netdev_alloc(struct fbnic_dev *fbd);
56 void fbnic_netdev_free(struct fbnic_dev *fbd);
A 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);
A Dfbnic_txrx.h103 struct fbnic_dev *fbd; member
135 int fbnic_wait_all_queues_idle(struct fbnic_dev *fbd, bool may_fail);
/linux/drivers/gpu/drm/bridge/
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()
613 u32 fbd, prd, frs; in tc358768_setup_pll() local
622 fbd = priv->fbd; in tc358768_setup_pll()
627 clk_get_rate(priv->refclk), fbd, prd, frs); in tc358768_setup_pll()
635 tc358768_write(priv, TC358768_PLLCTL0, ((prd - 1) << 12) | (fbd - 1)); in tc358768_setup_pll()
/linux/drivers/media/platform/atmel/
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;
1257 sizeof(struct fbd) * VIDEO_MAX_FRAME, in atmel_isi_probe()
1269 i * sizeof(struct fbd); in atmel_isi_probe()
1309 sizeof(struct fbd) * VIDEO_MAX_FRAME, in atmel_isi_probe()
1326 sizeof(struct fbd) * VIDEO_MAX_FRAME, in atmel_isi_remove()
/linux/drivers/media/i2c/
A Dtc358743_regs.h86 #define SET_PLL_FBD(fbd) (((fbd) - 1) & MASK_PLL_FBD) argument

Completed in 112 milliseconds