/openbmc/linux/drivers/net/ethernet/qualcomm/emac/ |
H A D | emac.c | 80 int emac_reinit_locked(struct emac_adapter *adpt) in emac_reinit_locked() argument 84 mutex_lock(&adpt->reset_lock); in emac_reinit_locked() 86 emac_mac_down(adpt); in emac_reinit_locked() 87 emac_sgmii_reset(adpt); in emac_reinit_locked() 88 ret = emac_mac_up(adpt); in emac_reinit_locked() 90 mutex_unlock(&adpt->reset_lock); in emac_reinit_locked() 100 struct emac_adapter *adpt = netdev_priv(rx_q->netdev); in emac_napi_rtx() local 104 emac_mac_rx_process(adpt, rx_q, &work_done, budget); in emac_napi_rtx() 110 writel(irq->mask, adpt->base + EMAC_INT_MASK); in emac_napi_rtx() 120 struct emac_adapter *adpt = netdev_priv(netdev); in emac_start_xmit() local [all …]
|
H A D | emac-mac.c | 249 void emac_mac_multicast_addr_set(struct emac_adapter *adpt, u8 *addr) in emac_mac_multicast_addr_set() argument 263 mta = readl(adpt->base + EMAC_HASH_TAB_REG0 + (reg << 2)); in emac_mac_multicast_addr_set() 265 writel(mta, adpt->base + EMAC_HASH_TAB_REG0 + (reg << 2)); in emac_mac_multicast_addr_set() 268 void emac_mac_multicast_addr_clear(struct emac_adapter *adpt) in emac_mac_multicast_addr_clear() argument 270 writel(0, adpt->base + EMAC_HASH_TAB_REG0); in emac_mac_multicast_addr_clear() 271 writel(0, adpt->base + EMAC_HASH_TAB_REG1); in emac_mac_multicast_addr_clear() 281 void emac_mac_mode_config(struct emac_adapter *adpt) in emac_mac_mode_config() argument 283 struct net_device *netdev = adpt->netdev; in emac_mac_mode_config() 286 mac = readl(adpt->base + EMAC_MAC_CTRL); in emac_mac_mode_config() 298 writel(mac, adpt->base + EMAC_MAC_CTRL); in emac_mac_mode_config() [all …]
|
H A D | emac-sgmii.c | 50 int emac_sgmii_init(struct emac_adapter *adpt) in emac_sgmii_init() argument 52 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() 58 int emac_sgmii_open(struct emac_adapter *adpt) in emac_sgmii_open() argument 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() 66 void emac_sgmii_close(struct emac_adapter *adpt) in emac_sgmii_close() argument 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() 74 int emac_sgmii_link_change(struct emac_adapter *adpt, bool link_state) in emac_sgmii_link_change() argument [all …]
|
H A D | emac-ethtool.c | 68 struct emac_adapter *adpt = netdev_priv(netdev); in emac_get_msglevel() local 70 return adpt->msg_enable; in emac_get_msglevel() 75 struct emac_adapter *adpt = netdev_priv(netdev); in emac_set_msglevel() local 77 adpt->msg_enable = data; in emac_set_msglevel() 115 struct emac_adapter *adpt = netdev_priv(netdev); in emac_get_ethtool_stats() local 117 spin_lock(&adpt->stats.lock); in emac_get_ethtool_stats() 119 emac_update_hw_stats(adpt); in emac_get_ethtool_stats() 120 memcpy(data, &adpt->stats, EMAC_STATS_LEN * sizeof(u64)); in emac_get_ethtool_stats() 122 spin_unlock(&adpt->stats.lock); in emac_get_ethtool_stats() 140 struct emac_adapter *adpt = netdev_priv(netdev); in emac_get_ringparam() local [all …]
|
H A D | emac-sgmii.h | 18 int (*init)(struct emac_adapter *adpt); 19 int (*open)(struct emac_adapter *adpt); 20 void (*close)(struct emac_adapter *adpt); 21 int (*link_change)(struct emac_adapter *adpt, bool link_state); 22 void (*reset)(struct emac_adapter *adpt); 40 int emac_sgmii_config(struct platform_device *pdev, 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); [all …]
|
H A D | emac-phy.c | 46 struct emac_adapter *adpt = bus->priv; in emac_mdio_read() local 49 emac_reg_update32(adpt->base + EMAC_PHY_STS, PHY_ADDR_BMSK, in emac_mdio_read() 57 writel(reg, adpt->base + EMAC_MDIO_CTRL); in emac_mdio_read() 59 if (readl_poll_timeout(adpt->base + EMAC_MDIO_CTRL, reg, in emac_mdio_read() 69 struct emac_adapter *adpt = bus->priv; in emac_mdio_write() local 72 emac_reg_update32(adpt->base + EMAC_PHY_STS, PHY_ADDR_BMSK, in emac_mdio_write() 81 writel(reg, adpt->base + EMAC_MDIO_CTRL); in emac_mdio_write() 83 if (readl_poll_timeout(adpt->base + EMAC_MDIO_CTRL, reg, in emac_mdio_write() 92 int emac_phy_config(struct platform_device *pdev, struct emac_adapter *adpt) in emac_phy_config() argument 99 adpt->mii_bus = mii_bus = devm_mdiobus_alloc(&pdev->dev); in emac_phy_config() [all …]
|
H A D | emac-mac.h | 223 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); 228 void emac_mac_rx_process(struct emac_adapter *adpt, struct emac_rx_queue *rx_q, 230 netdev_tx_t emac_mac_tx_buf_send(struct emac_adapter *adpt, 233 void emac_mac_tx_process(struct emac_adapter *adpt, struct emac_tx_queue *tx_q); 235 struct emac_adapter *adpt); 236 int emac_mac_rx_tx_rings_alloc_all(struct emac_adapter *adpt); [all …]
|
H A D | emac-sgmii-qdf2432.c | 160 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 D | emac-sgmii-qdf2400.c | 173 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 D | emac-sgmii-fsm9900.c | 207 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 D | emac-phy.h | 10 int emac_phy_config(struct platform_device *pdev, struct emac_adapter *adpt);
|
H A D | emac.h | 380 int emac_reinit_locked(struct emac_adapter *adpt); 384 void emac_update_hw_stats(struct emac_adapter *adpt);
|
/openbmc/linux/drivers/most/ |
H A D | most_snd.c | 164 struct sound_adapter *adpt = iface->priv; in get_channel() local 167 list_for_each_entry(channel, &adpt->dev_list, list) { in get_channel() 487 static void release_adapter(struct sound_adapter *adpt) in release_adapter() argument 491 list_for_each_entry_safe(channel, tmp, &adpt->dev_list, list) { in release_adapter() 495 if (adpt->card) in release_adapter() 496 snd_card_free(adpt->card); in release_adapter() 497 list_del(&adpt->list); in release_adapter() 498 kfree(adpt); in release_adapter() 518 struct sound_adapter *adpt; in audio_probe_channel() local 537 list_for_each_entry(adpt, &adpt_list, list) { in audio_probe_channel() [all …]
|
/openbmc/linux/drivers/net/ethernet/emulex/benet/ |
H A D | be.h | 787 #define default_rxo(adpt) (&adpt->rx_obj[adpt->num_rx_qs - 1]) argument
|
/openbmc/linux/drivers/gpu/drm/exynos/ |
H A D | exynos_hdmi.c | 1897 struct i2c_adapter *adpt; in hdmi_get_ddc_adapter() local 1911 adpt = of_find_i2c_adapter_by_node(np); in hdmi_get_ddc_adapter() 1914 if (!adpt) { in hdmi_get_ddc_adapter() 1919 hdata->ddc_adpt = adpt; in hdmi_get_ddc_adapter()
|
/openbmc/linux/drivers/net/ethernet/atheros/atl1c/ |
H A D | atl1c_main.c | 2140 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()
|