Home
last modified time | relevance | path

Searched refs:adpt (Results 1 – 16 of 16) sorted by relevance

/openbmc/linux/drivers/net/ethernet/qualcomm/emac/
H A Demac.c86 emac_mac_down(adpt); in emac_reinit_locked()
87 emac_sgmii_reset(adpt); in emac_reinit_locked()
122 return emac_mac_tx_buf_send(adpt, &adpt->tx_q, skb); in emac_start_xmit()
160 emac_mac_tx_process(adpt, &adpt->tx_q); in emac_isr()
216 netif_dbg(adpt, hw, adpt->netdev, in emac_change_mtu()
274 emac_mac_down(adpt); in emac_close()
277 free_irq(adpt->irq.irq, &adpt->irq); in emac_close()
420 adpt->irq_mod = reg; in emac_init_adapter()
449 adpt->clk[i] = clk; in emac_clks_get()
623 phy = &adpt->phy; in emac_probe()
[all …]
H A Demac-mac.c757 adpt->tx_q.tpd.count = adpt->tx_desc_cnt; in emac_mac_rx_tx_rings_alloc_all()
759 adpt->rx_q.rrd.count = adpt->rx_desc_cnt; in emac_mac_rx_tx_rings_alloc_all()
760 adpt->rx_q.rfd.count = adpt->rx_desc_cnt; in emac_mac_rx_tx_rings_alloc_all()
780 ret = emac_tx_q_desc_alloc(adpt, &adpt->tx_q); in emac_mac_rx_tx_rings_alloc_all()
938 emac_mac_rx_descs_refill(adpt, &adpt->rx_q); in emac_mac_up()
952 writel(adpt->irq.mask, adpt->base + EMAC_INT_MASK); in emac_mac_up()
1134 netif_dbg(adpt, rx_status, adpt->netdev, in emac_mac_rx_process()
1218 adpt->rx_q.netdev = adpt->netdev; in emac_mac_rx_tx_ring_init_all()
1232 adpt->rx_q.irq = &adpt->irq; in emac_mac_rx_tx_ring_init_all()
1233 adpt->rx_q.intr = adpt->irq.mask & ISR_RX_PKT; in emac_mac_rx_tx_ring_init_all()
[all …]
H A Demac-sgmii.c52 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->init)) in emac_sgmii_init()
55 return adpt->phy.sgmii_ops->init(adpt); in emac_sgmii_init()
60 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->open)) in emac_sgmii_open()
63 return adpt->phy.sgmii_ops->open(adpt); in emac_sgmii_open()
68 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->close)) in emac_sgmii_close()
71 adpt->phy.sgmii_ops->close(adpt); in emac_sgmii_close()
76 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->link_change)) in emac_sgmii_link_change()
79 return adpt->phy.sgmii_ops->link_change(adpt, link_state); in emac_sgmii_link_change()
84 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->reset)) in emac_sgmii_reset()
87 adpt->phy.sgmii_ops->reset(adpt); in emac_sgmii_reset()
[all …]
H A Demac-ethtool.c70 return adpt->msg_enable; in emac_get_msglevel()
77 adpt->msg_enable = data; in emac_set_msglevel()
117 spin_lock(&adpt->stats.lock); in emac_get_ethtool_stats()
119 emac_update_hw_stats(adpt); in emac_get_ethtool_stats()
122 spin_unlock(&adpt->stats.lock); in emac_get_ethtool_stats()
144 ring->rx_pending = adpt->rx_desc_cnt; in emac_get_ringparam()
161 adpt->tx_desc_cnt = in emac_set_ringparam()
164 adpt->rx_desc_cnt = in emac_set_ringparam()
168 return emac_reinit_locked(adpt); in emac_set_ringparam()
193 return emac_reinit_locked(adpt); in emac_set_pauseparam()
[all …]
H A Demac-sgmii.h18 int (*init)(struct emac_adapter *adpt);
19 int (*open)(struct emac_adapter *adpt);
20 void (*close)(struct emac_adapter *adpt);
22 void (*reset)(struct emac_adapter *adpt);
42 int emac_sgmii_init_fsm9900(struct emac_adapter *adpt);
43 int emac_sgmii_init_qdf2432(struct emac_adapter *adpt);
44 int emac_sgmii_init_qdf2400(struct emac_adapter *adpt);
46 int emac_sgmii_init(struct emac_adapter *adpt);
47 int emac_sgmii_open(struct emac_adapter *adpt);
48 void emac_sgmii_close(struct emac_adapter *adpt);
[all …]
H A Demac-phy.c46 struct emac_adapter *adpt = bus->priv; in emac_mdio_read() local
57 writel(reg, adpt->base + EMAC_MDIO_CTRL); in emac_mdio_read()
69 struct emac_adapter *adpt = bus->priv; in emac_mdio_write() local
81 writel(reg, adpt->base + EMAC_MDIO_CTRL); in emac_mdio_write()
108 mii_bus->priv = adpt; in emac_phy_config()
124 adpt->phydev = phy_find_first(mii_bus); in emac_phy_config()
126 adpt->phydev = mdiobus_get_phy(mii_bus, phy_addr); in emac_phy_config()
133 if (adpt->phydev) in emac_phy_config()
134 get_device(&adpt->phydev->mdio.dev); in emac_phy_config()
145 adpt->phydev = of_phy_find_device(phy_np); in emac_phy_config()
[all …]
H A Demac-mac.h223 int emac_mac_up(struct emac_adapter *adpt);
224 void emac_mac_down(struct emac_adapter *adpt);
225 void emac_mac_reset(struct emac_adapter *adpt);
226 void emac_mac_stop(struct emac_adapter *adpt);
227 void emac_mac_mode_config(struct emac_adapter *adpt);
230 netdev_tx_t emac_mac_tx_buf_send(struct emac_adapter *adpt,
235 struct emac_adapter *adpt);
236 int emac_mac_rx_tx_rings_alloc_all(struct emac_adapter *adpt);
237 void emac_mac_rx_tx_rings_free_all(struct emac_adapter *adpt);
238 void emac_mac_multicast_addr_clear(struct emac_adapter *adpt);
[all …]
H A Demac-sgmii-qdf2432.c160 int emac_sgmii_init_qdf2432(struct emac_adapter *adpt) in emac_sgmii_init_qdf2432() argument
162 struct emac_sgmii *phy = &adpt->phy; in emac_sgmii_init_qdf2432()
189 netdev_err(adpt->netdev, "SGMII failed to start\n"); in emac_sgmii_init_qdf2432()
H A Demac-sgmii-qdf2400.c173 int emac_sgmii_init_qdf2400(struct emac_adapter *adpt) in emac_sgmii_init_qdf2400() argument
175 struct emac_sgmii *phy = &adpt->phy; in emac_sgmii_init_qdf2400()
202 netdev_err(adpt->netdev, "SGMII failed to start\n"); in emac_sgmii_init_qdf2400()
H A Demac-sgmii-fsm9900.c207 int emac_sgmii_init_fsm9900(struct emac_adapter *adpt) in emac_sgmii_init_fsm9900() argument
209 struct emac_sgmii *phy = &adpt->phy; in emac_sgmii_init_fsm9900()
230 netdev_err(adpt->netdev, "error: ser/des failed to start\n"); in emac_sgmii_init_fsm9900()
H A Demac-phy.h10 int emac_phy_config(struct platform_device *pdev, struct emac_adapter *adpt);
H A Demac.h380 int emac_reinit_locked(struct emac_adapter *adpt);
384 void emac_update_hw_stats(struct emac_adapter *adpt);
/openbmc/linux/drivers/most/
H A Dmost_snd.c495 if (adpt->card) in release_adapter()
498 kfree(adpt); in release_adapter()
542 adpt->pcm_dev_idx++; in audio_probe_channel()
545 adpt = kzalloc(sizeof(*adpt), GFP_KERNEL); in audio_probe_channel()
546 if (!adpt) in audio_probe_channel()
549 adpt->iface = iface; in audio_probe_channel()
551 iface->priv = adpt; in audio_probe_channel()
557 snprintf(adpt->card->driver, sizeof(adpt->card->driver), in audio_probe_channel()
559 snprintf(adpt->card->shortname, sizeof(adpt->card->shortname), in audio_probe_channel()
561 snprintf(adpt->card->longname, sizeof(adpt->card->longname), in audio_probe_channel()
[all …]
/openbmc/linux/drivers/net/ethernet/emulex/benet/
H A Dbe.h787 #define default_rxo(adpt) (&adpt->rx_obj[adpt->num_rx_qs - 1]) argument
/openbmc/linux/drivers/gpu/drm/exynos/
H A Dexynos_hdmi.c1895 struct i2c_adapter *adpt; in hdmi_get_ddc_adapter() local
1909 adpt = of_find_i2c_adapter_by_node(np); in hdmi_get_ddc_adapter()
1912 if (!adpt) { in hdmi_get_ddc_adapter()
1917 hdata->ddc_adpt = adpt; in hdmi_get_ddc_adapter()
/openbmc/linux/drivers/net/ethernet/atheros/atl1c/
H A Datl1c_main.c2140 static void atl1c_tx_rollback(struct atl1c_adapter *adpt, in atl1c_tx_rollback() argument
2144 struct atl1c_tpd_ring *tpd_ring = &adpt->tpd_ring[queue]; in atl1c_tx_rollback()
2154 atl1c_clean_buffer(adpt->pdev, buffer_info); in atl1c_tx_rollback()