adpt             1879 drivers/gpu/drm/exynos/exynos_hdmi.c 	struct i2c_adapter *adpt;
adpt             1893 drivers/gpu/drm/exynos/exynos_hdmi.c 	adpt = of_find_i2c_adapter_by_node(np);
adpt             1896 drivers/gpu/drm/exynos/exynos_hdmi.c 	if (!adpt) {
adpt             1901 drivers/gpu/drm/exynos/exynos_hdmi.c 	hdata->ddc_adpt = adpt;
adpt             2069 drivers/net/ethernet/atheros/atl1c/atl1c_main.c static void atl1c_tx_rollback(struct atl1c_adapter *adpt,
adpt             2073 drivers/net/ethernet/atheros/atl1c/atl1c_main.c 	struct atl1c_tpd_ring *tpd_ring = &adpt->tpd_ring[type];
adpt             2083 drivers/net/ethernet/atheros/atl1c/atl1c_main.c 		atl1c_clean_buffer(adpt->pdev, buffer_info);
adpt              794 drivers/net/ethernet/emulex/benet/be.h #define default_rxo(adpt)		(&adpt->rx_obj[adpt->num_rx_qs - 1])
adpt               68 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt               70 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	return adpt->msg_enable;
adpt               75 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt               77 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	adpt->msg_enable = data;
adpt              115 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              117 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	spin_lock(&adpt->stats.lock);
adpt              119 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	emac_update_hw_stats(adpt);
adpt              120 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	memcpy(data, &adpt->stats, EMAC_STATS_LEN * sizeof(u64));
adpt              122 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	spin_unlock(&adpt->stats.lock);
adpt              138 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              142 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	ring->rx_pending = adpt->rx_desc_cnt;
adpt              143 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	ring->tx_pending = adpt->tx_desc_cnt;
adpt              149 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              157 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	adpt->tx_desc_cnt =
adpt              160 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	adpt->rx_desc_cnt =
adpt              164 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 		return emac_reinit_locked(adpt);
adpt              172 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              174 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	pause->autoneg = adpt->automatic ? AUTONEG_ENABLE : AUTONEG_DISABLE;
adpt              175 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	pause->rx_pause = adpt->rx_flow_control ? 1 : 0;
adpt              176 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	pause->tx_pause = adpt->tx_flow_control ? 1 : 0;
adpt              182 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              184 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	adpt->automatic = pause->autoneg == AUTONEG_ENABLE;
adpt              185 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	adpt->rx_flow_control = pause->rx_pause != 0;
adpt              186 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	adpt->tx_flow_control = pause->tx_pause != 0;
adpt              189 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 		return emac_reinit_locked(adpt);
adpt              215 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              223 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 		val[i] = readl(adpt->base + emac_regs[i]);
adpt              235 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              237 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	adpt->single_pause_mode = !!(flags & EMAC_PRIV_ENABLE_SINGLE_PAUSE);
adpt              240 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 		return emac_reinit_locked(adpt);
adpt              247 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              249 drivers/net/ethernet/qualcomm/emac/emac-ethtool.c 	return adpt->single_pause_mode ? EMAC_PRIV_ENABLE_SINGLE_PAUSE : 0;
adpt              249 drivers/net/ethernet/qualcomm/emac/emac-mac.c void emac_mac_multicast_addr_set(struct emac_adapter *adpt, u8 *addr)
adpt              263 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	mta = readl(adpt->base + EMAC_HASH_TAB_REG0 + (reg << 2));
adpt              265 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(mta, adpt->base + EMAC_HASH_TAB_REG0 + (reg << 2));
adpt              268 drivers/net/ethernet/qualcomm/emac/emac-mac.c void emac_mac_multicast_addr_clear(struct emac_adapter *adpt)
adpt              270 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(0, adpt->base + EMAC_HASH_TAB_REG0);
adpt              271 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(0, adpt->base + EMAC_HASH_TAB_REG1);
adpt              281 drivers/net/ethernet/qualcomm/emac/emac-mac.c void emac_mac_mode_config(struct emac_adapter *adpt)
adpt              283 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct net_device *netdev = adpt->netdev;
adpt              286 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	mac = readl(adpt->base + EMAC_MAC_CTRL);
adpt              298 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(mac, adpt->base + EMAC_MAC_CTRL);
adpt              302 drivers/net/ethernet/qualcomm/emac/emac-mac.c static void emac_mac_dma_rings_config(struct emac_adapter *adpt)
adpt              305 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(upper_32_bits(adpt->tx_q.tpd.dma_addr),
adpt              306 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	       adpt->base + EMAC_DESC_CTRL_1);
adpt              308 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(lower_32_bits(adpt->tx_q.tpd.dma_addr),
adpt              309 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	       adpt->base + EMAC_DESC_CTRL_8);
adpt              311 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(adpt->tx_q.tpd.count & TPD_RING_SIZE_BMSK,
adpt              312 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	       adpt->base + EMAC_DESC_CTRL_9);
adpt              315 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(upper_32_bits(adpt->rx_q.rfd.dma_addr),
adpt              316 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	       adpt->base + EMAC_DESC_CTRL_0);
adpt              318 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(lower_32_bits(adpt->rx_q.rfd.dma_addr),
adpt              319 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	       adpt->base + EMAC_DESC_CTRL_2);
adpt              320 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(lower_32_bits(adpt->rx_q.rrd.dma_addr),
adpt              321 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	       adpt->base + EMAC_DESC_CTRL_5);
adpt              323 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(adpt->rx_q.rfd.count & RFD_RING_SIZE_BMSK,
adpt              324 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	       adpt->base + EMAC_DESC_CTRL_3);
adpt              325 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(adpt->rx_q.rrd.count & RRD_RING_SIZE_BMSK,
adpt              326 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	       adpt->base + EMAC_DESC_CTRL_6);
adpt              328 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(adpt->rxbuf_size & RX_BUFFER_SIZE_BMSK,
adpt              329 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	       adpt->base + EMAC_DESC_CTRL_4);
adpt              331 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(0, adpt->base + EMAC_DESC_CTRL_11);
adpt              336 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(1, adpt->base + EMAC_INTER_SRAM_PART9);
adpt              340 drivers/net/ethernet/qualcomm/emac/emac-mac.c static void emac_mac_tx_config(struct emac_adapter *adpt)
adpt              345 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	       JUMBO_TASK_OFFLOAD_THRESHOLD_BMSK, adpt->base + EMAC_TXQ_CTRL_1);
adpt              347 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	val = (adpt->tpd_burst << NUM_TPD_BURST_PREF_SHFT) &
adpt              354 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(val, adpt->base + EMAC_TXQ_CTRL_0);
adpt              355 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_reg_update32(adpt->base + EMAC_TXQ_CTRL_2,
adpt              360 drivers/net/ethernet/qualcomm/emac/emac-mac.c static void emac_mac_rx_config(struct emac_adapter *adpt)
adpt              364 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	val = (adpt->rfd_burst << NUM_RFD_BURST_PREF_SHFT) &
adpt              368 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(val, adpt->base + EMAC_RXQ_CTRL_0);
adpt              370 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	val = readl(adpt->base + EMAC_RXQ_CTRL_1);
adpt              376 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(val, adpt->base + EMAC_RXQ_CTRL_1);
adpt              378 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	val = readl(adpt->base + EMAC_RXQ_CTRL_2);
adpt              382 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(val, adpt->base + EMAC_RXQ_CTRL_2);
adpt              384 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	val = readl(adpt->base + EMAC_RXQ_CTRL_3);
adpt              387 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(val, adpt->base + EMAC_RXQ_CTRL_3);
adpt              391 drivers/net/ethernet/qualcomm/emac/emac-mac.c static void emac_mac_dma_config(struct emac_adapter *adpt)
adpt              395 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	switch (adpt->dma_order) {
adpt              409 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	dma_ctrl |= (((u32)adpt->dmar_block) << REGRDBLEN_SHFT) &
adpt              411 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	dma_ctrl |= (((u32)adpt->dmaw_block) << REGWRBLEN_SHFT) &
adpt              413 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	dma_ctrl |= (((u32)adpt->dmar_dly_cnt) << DMAR_DLY_CNT_SHFT) &
adpt              415 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	dma_ctrl |= (((u32)adpt->dmaw_dly_cnt) << DMAW_DLY_CNT_SHFT) &
adpt              419 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(dma_ctrl, adpt->base + EMAC_DMA_CTRL);
adpt              423 drivers/net/ethernet/qualcomm/emac/emac-mac.c static void emac_set_mac_address(struct emac_adapter *adpt, u8 *addr)
adpt              434 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(sta, adpt->base + EMAC_MAC_STA_ADDR0);
adpt              438 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(sta, adpt->base + EMAC_MAC_STA_ADDR1);
adpt              441 drivers/net/ethernet/qualcomm/emac/emac-mac.c static void emac_mac_config(struct emac_adapter *adpt)
adpt              443 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct net_device *netdev = adpt->netdev;
adpt              447 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_set_mac_address(adpt, netdev->dev_addr);
adpt              450 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rxbuf_size = netdev->mtu > EMAC_DEF_RX_BUF_SIZE ?
adpt              453 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_mac_dma_rings_config(adpt);
adpt              456 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	       adpt->base + EMAC_MAX_FRAM_LEN_CTRL);
adpt              458 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_mac_tx_config(adpt);
adpt              459 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_mac_rx_config(adpt);
adpt              460 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_mac_dma_config(adpt);
adpt              462 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	val = readl(adpt->base + EMAC_AXI_MAST_CTRL);
adpt              465 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(val, adpt->base + EMAC_AXI_MAST_CTRL);
adpt              466 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(0, adpt->base + EMAC_CLK_GATE_CTRL);
adpt              467 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(RX_UNCPL_INT_EN, adpt->base + EMAC_MISC_CTRL);
adpt              470 drivers/net/ethernet/qualcomm/emac/emac-mac.c void emac_mac_reset(struct emac_adapter *adpt)
adpt              472 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_mac_stop(adpt);
adpt              474 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_reg_update32(adpt->base + EMAC_DMA_MAS_CTRL, 0, SOFT_RST);
adpt              478 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_reg_update32(adpt->base + EMAC_DMA_MAS_CTRL, 0, INT_RD_CLR_EN);
adpt              481 drivers/net/ethernet/qualcomm/emac/emac-mac.c static void emac_mac_start(struct emac_adapter *adpt)
adpt              483 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct phy_device *phydev = adpt->phydev;
adpt              487 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_reg_update32(adpt->base + EMAC_TXQ_CTRL_0, 0, TXQ_EN);
adpt              490 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_reg_update32(adpt->base + EMAC_RXQ_CTRL_0, 0, RXQ_EN);
adpt              493 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	mac = readl(adpt->base + EMAC_MAC_CTRL);
adpt              494 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	csr1 = readl(adpt->csr + EMAC_EMAC_WRAPPER_CSR1);
adpt              504 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	if (adpt->automatic) {
adpt              506 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		adpt->rx_flow_control = phydev->pause;
adpt              507 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		adpt->tx_flow_control = phydev->pause != phydev->asym_pause;
adpt              509 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	mac |= adpt->rx_flow_control ? RXFC : 0;
adpt              510 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	mac |= adpt->tx_flow_control ? TXFC : 0;
adpt              529 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	mac |= ((adpt->preamble << PRLEN_SHFT) & PRLEN_BMSK);
adpt              556 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	mac |= adpt->single_pause_mode ? SINGLE_PAUSE_MODE : 0;
adpt              558 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel_relaxed(csr1, adpt->csr + EMAC_EMAC_WRAPPER_CSR1);
adpt              560 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel_relaxed(mac, adpt->base + EMAC_MAC_CTRL);
adpt              566 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel_relaxed(adpt->irq_mod, adpt->base + EMAC_IRQ_MOD_TIM_INIT);
adpt              568 drivers/net/ethernet/qualcomm/emac/emac-mac.c 			IRQ_MODERATOR2_EN, adpt->base + EMAC_DMA_MAS_CTRL);
adpt              570 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_mac_mode_config(adpt);
adpt              572 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_reg_update32(adpt->base + EMAC_ATHR_HEADER_CTRL,
adpt              576 drivers/net/ethernet/qualcomm/emac/emac-mac.c void emac_mac_stop(struct emac_adapter *adpt)
adpt              578 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_reg_update32(adpt->base + EMAC_RXQ_CTRL_0, RXQ_EN, 0);
adpt              579 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_reg_update32(adpt->base + EMAC_TXQ_CTRL_0, TXQ_EN, 0);
adpt              580 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_reg_update32(adpt->base + EMAC_MAC_CTRL, TXEN | RXEN, 0);
adpt              585 drivers/net/ethernet/qualcomm/emac/emac-mac.c static void emac_tx_q_descs_free(struct emac_adapter *adpt)
adpt              587 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct emac_tx_queue *tx_q = &adpt->tx_q;
adpt              599 drivers/net/ethernet/qualcomm/emac/emac-mac.c 			dma_unmap_single(adpt->netdev->dev.parent,
adpt              621 drivers/net/ethernet/qualcomm/emac/emac-mac.c static void emac_rx_q_free_descs(struct emac_adapter *adpt)
adpt              623 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct device *dev = adpt->netdev->dev.parent;
adpt              624 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct emac_rx_queue *rx_q = &adpt->rx_q;
adpt              660 drivers/net/ethernet/qualcomm/emac/emac-mac.c static void emac_tx_q_bufs_free(struct emac_adapter *adpt)
adpt              662 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct emac_tx_queue *tx_q = &adpt->tx_q;
adpt              664 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_tx_q_descs_free(adpt);
adpt              674 drivers/net/ethernet/qualcomm/emac/emac-mac.c static int emac_tx_q_desc_alloc(struct emac_adapter *adpt,
adpt              677 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct emac_ring_header *ring_header = &adpt->ring_header;
adpt              678 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	int node = dev_to_node(adpt->netdev->dev.parent);
adpt              686 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	tx_q->tpd.size = tx_q->tpd.count * (adpt->tpd_size * 4);
adpt              697 drivers/net/ethernet/qualcomm/emac/emac-mac.c static void emac_rx_q_bufs_free(struct emac_adapter *adpt)
adpt              699 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct emac_rx_queue *rx_q = &adpt->rx_q;
adpt              701 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_rx_q_free_descs(adpt);
adpt              716 drivers/net/ethernet/qualcomm/emac/emac-mac.c static int emac_rx_descs_alloc(struct emac_adapter *adpt)
adpt              718 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct emac_ring_header *ring_header = &adpt->ring_header;
adpt              719 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	int node = dev_to_node(adpt->netdev->dev.parent);
adpt              720 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct emac_rx_queue *rx_q = &adpt->rx_q;
adpt              728 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	rx_q->rrd.size = rx_q->rrd.count * (adpt->rrd_size * 4);
adpt              729 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	rx_q->rfd.size = rx_q->rfd.count * (adpt->rfd_size * 4);
adpt              749 drivers/net/ethernet/qualcomm/emac/emac-mac.c int emac_mac_rx_tx_rings_alloc_all(struct emac_adapter *adpt)
adpt              751 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct emac_ring_header *ring_header = &adpt->ring_header;
adpt              752 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct device *dev = adpt->netdev->dev.parent;
adpt              753 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	unsigned int num_tx_descs = adpt->tx_desc_cnt;
adpt              754 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	unsigned int num_rx_descs = adpt->rx_desc_cnt;
adpt              757 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->tx_q.tpd.count = adpt->tx_desc_cnt;
adpt              759 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rx_q.rrd.count = adpt->rx_desc_cnt;
adpt              760 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rx_q.rfd.count = adpt->rx_desc_cnt;
adpt              765 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	ring_header->size = num_tx_descs * (adpt->tpd_size * 4) +
adpt              766 drivers/net/ethernet/qualcomm/emac/emac-mac.c 			    num_rx_descs * (adpt->rfd_size * 4) +
adpt              767 drivers/net/ethernet/qualcomm/emac/emac-mac.c 			    num_rx_descs * (adpt->rrd_size * 4) +
adpt              780 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	ret = emac_tx_q_desc_alloc(adpt, &adpt->tx_q);
adpt              782 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		netdev_err(adpt->netdev, "error: Tx Queue alloc failed\n");
adpt              786 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	ret = emac_rx_descs_alloc(adpt);
adpt              788 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		netdev_err(adpt->netdev, "error: Rx Queue alloc failed\n");
adpt              795 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_tx_q_bufs_free(adpt);
adpt              809 drivers/net/ethernet/qualcomm/emac/emac-mac.c void emac_mac_rx_tx_rings_free_all(struct emac_adapter *adpt)
adpt              811 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct emac_ring_header *ring_header = &adpt->ring_header;
adpt              812 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct device *dev = adpt->netdev->dev.parent;
adpt              814 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_tx_q_bufs_free(adpt);
adpt              815 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_rx_q_bufs_free(adpt);
adpt              827 drivers/net/ethernet/qualcomm/emac/emac-mac.c static void emac_mac_rx_tx_ring_reset_all(struct emac_adapter *adpt)
adpt              831 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->tx_q.tpd.produce_idx = 0;
adpt              832 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->tx_q.tpd.consume_idx = 0;
adpt              833 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	for (i = 0; i < adpt->tx_q.tpd.count; i++)
adpt              834 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		adpt->tx_q.tpd.tpbuff[i].dma_addr = 0;
adpt              836 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rx_q.rrd.produce_idx = 0;
adpt              837 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rx_q.rrd.consume_idx = 0;
adpt              838 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rx_q.rfd.produce_idx = 0;
adpt              839 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rx_q.rfd.consume_idx = 0;
adpt              840 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	for (i = 0; i < adpt->rx_q.rfd.count; i++)
adpt              841 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		adpt->rx_q.rfd.rfbuff[i].dma_addr = 0;
adpt              845 drivers/net/ethernet/qualcomm/emac/emac-mac.c static void emac_mac_rx_rfd_create(struct emac_adapter *adpt,
adpt              849 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	u32 *hw_rfd = EMAC_RFD(rx_q, adpt->rfd_size, rx_q->rfd.produce_idx);
adpt              859 drivers/net/ethernet/qualcomm/emac/emac-mac.c static void emac_mac_rx_descs_refill(struct emac_adapter *adpt,
adpt              879 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		skb = netdev_alloc_skb_ip_align(adpt->netdev, adpt->rxbuf_size);
adpt              884 drivers/net/ethernet/qualcomm/emac/emac-mac.c 			dma_map_single(adpt->netdev->dev.parent, skb->data,
adpt              885 drivers/net/ethernet/qualcomm/emac/emac-mac.c 				       adpt->rxbuf_size, DMA_FROM_DEVICE);
adpt              887 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		ret = dma_mapping_error(adpt->netdev->dev.parent,
adpt              894 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		curr_rxbuf->length = adpt->rxbuf_size;
adpt              896 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		emac_mac_rx_rfd_create(adpt, rx_q, curr_rxbuf->dma_addr);
adpt              909 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		emac_reg_update32(adpt->base + rx_q->produce_reg,
adpt              916 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              920 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		emac_mac_start(adpt);
adpt              921 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		emac_sgmii_link_change(adpt, true);
adpt              923 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		emac_sgmii_link_change(adpt, false);
adpt              924 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		emac_mac_stop(adpt);
adpt              931 drivers/net/ethernet/qualcomm/emac/emac-mac.c int emac_mac_up(struct emac_adapter *adpt)
adpt              933 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct net_device *netdev = adpt->netdev;
adpt              936 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_mac_rx_tx_ring_reset_all(adpt);
adpt              937 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_mac_config(adpt);
adpt              938 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_mac_rx_descs_refill(adpt, &adpt->rx_q);
adpt              940 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->phydev->irq = PHY_POLL;
adpt              941 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	ret = phy_connect_direct(netdev, adpt->phydev, emac_adjust_link,
adpt              944 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		netdev_err(adpt->netdev, "could not connect phy\n");
adpt              948 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	phy_attached_print(adpt->phydev, NULL);
adpt              951 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel((u32)~DIS_INT, adpt->base + EMAC_INT_STATUS);
adpt              952 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(adpt->irq.mask, adpt->base + EMAC_INT_MASK);
adpt              954 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	phy_start(adpt->phydev);
adpt              956 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	napi_enable(&adpt->rx_q.napi);
adpt              963 drivers/net/ethernet/qualcomm/emac/emac-mac.c void emac_mac_down(struct emac_adapter *adpt)
adpt              965 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct net_device *netdev = adpt->netdev;
adpt              968 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	napi_disable(&adpt->rx_q.napi);
adpt              970 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	phy_stop(adpt->phydev);
adpt              976 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(DIS_INT, adpt->base + EMAC_INT_STATUS);
adpt              977 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	writel(0, adpt->base + EMAC_INT_MASK);
adpt              978 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	synchronize_irq(adpt->irq.irq);
adpt              980 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	phy_disconnect(adpt->phydev);
adpt              982 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_mac_reset(adpt);
adpt              984 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_tx_q_descs_free(adpt);
adpt              985 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	netdev_reset_queue(adpt->netdev);
adpt              986 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_rx_q_free_descs(adpt);
adpt              990 drivers/net/ethernet/qualcomm/emac/emac-mac.c static bool emac_rx_process_rrd(struct emac_adapter *adpt,
adpt              994 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	u32 *hw_rrd = EMAC_RRD(rx_q, adpt->rrd_size, rx_q->rrd.consume_idx);
adpt             1009 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		netdev_err(adpt->netdev,
adpt             1025 drivers/net/ethernet/qualcomm/emac/emac-mac.c static void emac_tx_tpd_create(struct emac_adapter *adpt,
adpt             1031 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	hw_tpd = EMAC_TPD(tx_q, adpt->tpd_size, tx_q->tpd.produce_idx);
adpt             1043 drivers/net/ethernet/qualcomm/emac/emac-mac.c static void emac_tx_tpd_mark_last(struct emac_adapter *adpt,
adpt             1047 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		EMAC_TPD(tx_q, adpt->tpd_size, tx_q->tpd.last_produce_idx);
adpt             1087 drivers/net/ethernet/qualcomm/emac/emac-mac.c void emac_mac_rx_process(struct emac_adapter *adpt, struct emac_rx_queue *rx_q,
adpt             1091 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	struct net_device *netdev  = adpt->netdev;
adpt             1098 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	reg = readl_relaxed(adpt->base + rx_q->consume_reg);
adpt             1109 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		if (!emac_rx_process_rrd(adpt, rx_q, &rrd))
adpt             1115 drivers/net/ethernet/qualcomm/emac/emac-mac.c 			dma_unmap_single(adpt->netdev->dev.parent,
adpt             1121 drivers/net/ethernet/qualcomm/emac/emac-mac.c 			netdev_err(adpt->netdev,
adpt             1134 drivers/net/ethernet/qualcomm/emac/emac-mac.c 			netif_dbg(adpt, rx_status, adpt->netdev,
adpt             1161 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		emac_reg_update32(adpt->base + rx_q->process_reg,
adpt             1163 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		emac_mac_rx_descs_refill(adpt, rx_q);
adpt             1179 drivers/net/ethernet/qualcomm/emac/emac-mac.c void emac_mac_tx_process(struct emac_adapter *adpt, struct emac_tx_queue *tx_q)
adpt             1181 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	u32 reg = readl_relaxed(adpt->base + tx_q->consume_reg);
adpt             1190 drivers/net/ethernet/qualcomm/emac/emac-mac.c 			dma_unmap_page(adpt->netdev->dev.parent,
adpt             1207 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	netdev_completed_queue(adpt->netdev, pkts_compl, bytes_compl);
adpt             1209 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	if (netif_queue_stopped(adpt->netdev))
adpt             1211 drivers/net/ethernet/qualcomm/emac/emac-mac.c 			netif_wake_queue(adpt->netdev);
adpt             1216 drivers/net/ethernet/qualcomm/emac/emac-mac.c 				  struct emac_adapter *adpt)
adpt             1218 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rx_q.netdev = adpt->netdev;
adpt             1220 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rx_q.produce_reg  = EMAC_MAILBOX_0;
adpt             1221 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rx_q.produce_mask = RFD0_PROD_IDX_BMSK;
adpt             1222 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rx_q.produce_shift = RFD0_PROD_IDX_SHFT;
adpt             1224 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rx_q.process_reg  = EMAC_MAILBOX_0;
adpt             1225 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rx_q.process_mask = RFD0_PROC_IDX_BMSK;
adpt             1226 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rx_q.process_shft = RFD0_PROC_IDX_SHFT;
adpt             1228 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rx_q.consume_reg  = EMAC_MAILBOX_3;
adpt             1229 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rx_q.consume_mask = RFD0_CONS_IDX_BMSK;
adpt             1230 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rx_q.consume_shift = RFD0_CONS_IDX_SHFT;
adpt             1232 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rx_q.irq          = &adpt->irq;
adpt             1233 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->rx_q.intr         = adpt->irq.mask & ISR_RX_PKT;
adpt             1235 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->tx_q.produce_reg  = EMAC_MAILBOX_15;
adpt             1236 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->tx_q.produce_mask = NTPD_PROD_IDX_BMSK;
adpt             1237 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->tx_q.produce_shift = NTPD_PROD_IDX_SHFT;
adpt             1239 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->tx_q.consume_reg  = EMAC_MAILBOX_2;
adpt             1240 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->tx_q.consume_mask = NTPD_CONS_IDX_BMSK;
adpt             1241 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	adpt->tx_q.consume_shift = NTPD_CONS_IDX_SHFT;
adpt             1245 drivers/net/ethernet/qualcomm/emac/emac-mac.c static int emac_tso_csum(struct emac_adapter *adpt,
adpt             1270 drivers/net/ethernet/qualcomm/emac/emac-mac.c 			netif_warn(adpt, tx_err, adpt->netdev,
adpt             1299 drivers/net/ethernet/qualcomm/emac/emac-mac.c 			emac_tx_tpd_create(adpt, tx_q, &extra_tpd);
adpt             1315 drivers/net/ethernet/qualcomm/emac/emac-mac.c 			netdev_err(adpt->netdev,
adpt             1330 drivers/net/ethernet/qualcomm/emac/emac-mac.c static void emac_tx_fill_tpd(struct emac_adapter *adpt,
adpt             1349 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		tpbuf->dma_addr = dma_map_page(adpt->netdev->dev.parent,
adpt             1354 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		ret = dma_mapping_error(adpt->netdev->dev.parent,
adpt             1362 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		emac_tx_tpd_create(adpt, tx_q, tpd);
adpt             1369 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		tpbuf->dma_addr = dma_map_page(adpt->netdev->dev.parent,
adpt             1375 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		ret = dma_mapping_error(adpt->netdev->dev.parent,
adpt             1383 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		emac_tx_tpd_create(adpt, tx_q, tpd);
adpt             1392 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		tpbuf->dma_addr = skb_frag_dma_map(adpt->netdev->dev.parent,
adpt             1395 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		ret = dma_mapping_error(adpt->netdev->dev.parent,
adpt             1403 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		emac_tx_tpd_create(adpt, tx_q, tpd);
adpt             1409 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_tx_tpd_mark_last(adpt, tx_q);
adpt             1424 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		dma_unmap_page(adpt->netdev->dev.parent, tpbuf->dma_addr,
adpt             1437 drivers/net/ethernet/qualcomm/emac/emac-mac.c int emac_mac_tx_buf_send(struct emac_adapter *adpt, struct emac_tx_queue *tx_q,
adpt             1445 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	if (emac_tso_csum(adpt, tx_q, skb, &tpd) != 0) {
adpt             1461 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_tx_fill_tpd(adpt, tx_q, skb, &tpd);
adpt             1463 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	netdev_sent_queue(adpt->netdev, skb->len);
adpt             1471 drivers/net/ethernet/qualcomm/emac/emac-mac.c 		netif_stop_queue(adpt->netdev);
adpt             1476 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	emac_reg_update32(adpt->base + tx_q->produce_reg,
adpt              223 drivers/net/ethernet/qualcomm/emac/emac-mac.h int  emac_mac_up(struct emac_adapter *adpt);
adpt              224 drivers/net/ethernet/qualcomm/emac/emac-mac.h void emac_mac_down(struct emac_adapter *adpt);
adpt              225 drivers/net/ethernet/qualcomm/emac/emac-mac.h void emac_mac_reset(struct emac_adapter *adpt);
adpt              226 drivers/net/ethernet/qualcomm/emac/emac-mac.h void emac_mac_stop(struct emac_adapter *adpt);
adpt              227 drivers/net/ethernet/qualcomm/emac/emac-mac.h void emac_mac_mode_config(struct emac_adapter *adpt);
adpt              228 drivers/net/ethernet/qualcomm/emac/emac-mac.h void emac_mac_rx_process(struct emac_adapter *adpt, struct emac_rx_queue *rx_q,
adpt              230 drivers/net/ethernet/qualcomm/emac/emac-mac.h int emac_mac_tx_buf_send(struct emac_adapter *adpt, struct emac_tx_queue *tx_q,
adpt              232 drivers/net/ethernet/qualcomm/emac/emac-mac.h void emac_mac_tx_process(struct emac_adapter *adpt, struct emac_tx_queue *tx_q);
adpt              234 drivers/net/ethernet/qualcomm/emac/emac-mac.h 				  struct emac_adapter *adpt);
adpt              235 drivers/net/ethernet/qualcomm/emac/emac-mac.h int  emac_mac_rx_tx_rings_alloc_all(struct emac_adapter *adpt);
adpt              236 drivers/net/ethernet/qualcomm/emac/emac-mac.h void emac_mac_rx_tx_rings_free_all(struct emac_adapter *adpt);
adpt              237 drivers/net/ethernet/qualcomm/emac/emac-mac.h void emac_mac_multicast_addr_clear(struct emac_adapter *adpt);
adpt              238 drivers/net/ethernet/qualcomm/emac/emac-mac.h void emac_mac_multicast_addr_set(struct emac_adapter *adpt, u8 *addr);
adpt               46 drivers/net/ethernet/qualcomm/emac/emac-phy.c 	struct emac_adapter *adpt = bus->priv;
adpt               49 drivers/net/ethernet/qualcomm/emac/emac-phy.c 	emac_reg_update32(adpt->base + EMAC_PHY_STS, PHY_ADDR_BMSK,
adpt               57 drivers/net/ethernet/qualcomm/emac/emac-phy.c 	writel(reg, adpt->base + EMAC_MDIO_CTRL);
adpt               59 drivers/net/ethernet/qualcomm/emac/emac-phy.c 	if (readl_poll_timeout(adpt->base + EMAC_MDIO_CTRL, reg,
adpt               69 drivers/net/ethernet/qualcomm/emac/emac-phy.c 	struct emac_adapter *adpt = bus->priv;
adpt               72 drivers/net/ethernet/qualcomm/emac/emac-phy.c 	emac_reg_update32(adpt->base + EMAC_PHY_STS, PHY_ADDR_BMSK,
adpt               81 drivers/net/ethernet/qualcomm/emac/emac-phy.c 	writel(reg, adpt->base + EMAC_MDIO_CTRL);
adpt               83 drivers/net/ethernet/qualcomm/emac/emac-phy.c 	if (readl_poll_timeout(adpt->base + EMAC_MDIO_CTRL, reg,
adpt               92 drivers/net/ethernet/qualcomm/emac/emac-phy.c int emac_phy_config(struct platform_device *pdev, struct emac_adapter *adpt)
adpt               99 drivers/net/ethernet/qualcomm/emac/emac-phy.c 	adpt->mii_bus = mii_bus = devm_mdiobus_alloc(&pdev->dev);
adpt              108 drivers/net/ethernet/qualcomm/emac/emac-phy.c 	mii_bus->priv = adpt;
adpt              124 drivers/net/ethernet/qualcomm/emac/emac-phy.c 			adpt->phydev = phy_find_first(mii_bus);
adpt              126 drivers/net/ethernet/qualcomm/emac/emac-phy.c 			adpt->phydev = mdiobus_get_phy(mii_bus, phy_addr);
adpt              133 drivers/net/ethernet/qualcomm/emac/emac-phy.c 		if (adpt->phydev)
adpt              134 drivers/net/ethernet/qualcomm/emac/emac-phy.c 			get_device(&adpt->phydev->mdio.dev);
adpt              145 drivers/net/ethernet/qualcomm/emac/emac-phy.c 		adpt->phydev = of_phy_find_device(phy_np);
adpt              149 drivers/net/ethernet/qualcomm/emac/emac-phy.c 	if (!adpt->phydev) {
adpt               10 drivers/net/ethernet/qualcomm/emac/emac-phy.h int emac_phy_config(struct platform_device *pdev, struct emac_adapter *adpt);
adpt              207 drivers/net/ethernet/qualcomm/emac/emac-sgmii-fsm9900.c int emac_sgmii_init_fsm9900(struct emac_adapter *adpt)
adpt              209 drivers/net/ethernet/qualcomm/emac/emac-sgmii-fsm9900.c 	struct emac_sgmii *phy = &adpt->phy;
adpt              230 drivers/net/ethernet/qualcomm/emac/emac-sgmii-fsm9900.c 		netdev_err(adpt->netdev, "error: ser/des failed to start\n");
adpt              173 drivers/net/ethernet/qualcomm/emac/emac-sgmii-qdf2400.c int emac_sgmii_init_qdf2400(struct emac_adapter *adpt)
adpt              175 drivers/net/ethernet/qualcomm/emac/emac-sgmii-qdf2400.c 	struct emac_sgmii *phy = &adpt->phy;
adpt              202 drivers/net/ethernet/qualcomm/emac/emac-sgmii-qdf2400.c 		netdev_err(adpt->netdev, "SGMII failed to start\n");
adpt              160 drivers/net/ethernet/qualcomm/emac/emac-sgmii-qdf2432.c int emac_sgmii_init_qdf2432(struct emac_adapter *adpt)
adpt              162 drivers/net/ethernet/qualcomm/emac/emac-sgmii-qdf2432.c 	struct emac_sgmii *phy = &adpt->phy;
adpt              189 drivers/net/ethernet/qualcomm/emac/emac-sgmii-qdf2432.c 		netdev_err(adpt->netdev, "SGMII failed to start\n");
adpt               48 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c int emac_sgmii_init(struct emac_adapter *adpt)
adpt               50 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->init))
adpt               53 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	return adpt->phy.sgmii_ops->init(adpt);
adpt               56 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c int emac_sgmii_open(struct emac_adapter *adpt)
adpt               58 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->open))
adpt               61 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	return adpt->phy.sgmii_ops->open(adpt);
adpt               64 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c void emac_sgmii_close(struct emac_adapter *adpt)
adpt               66 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->close))
adpt               69 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	adpt->phy.sgmii_ops->close(adpt);
adpt               72 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c int emac_sgmii_link_change(struct emac_adapter *adpt, bool link_state)
adpt               74 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->link_change))
adpt               77 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	return adpt->phy.sgmii_ops->link_change(adpt, link_state);
adpt               80 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c void emac_sgmii_reset(struct emac_adapter *adpt)
adpt               82 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->reset))
adpt               85 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	adpt->phy.sgmii_ops->reset(adpt);
adpt               89 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c static void emac_sgmii_link_init(struct emac_adapter *adpt)
adpt               91 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	struct emac_sgmii *phy = &adpt->phy;
adpt              103 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c static int emac_sgmii_irq_clear(struct emac_adapter *adpt, u8 irq_bits)
adpt              105 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	struct emac_sgmii *phy = &adpt->phy;
adpt              122 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 				    adpt->netdev->name, status, irq_bits);
adpt              141 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	struct emac_adapter *adpt = data;
adpt              142 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	struct emac_sgmii *phy = &adpt->phy;
adpt              165 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 			schedule_work(&adpt->work_thread);
adpt              173 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	if (emac_sgmii_irq_clear(adpt, status))
adpt              174 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 		schedule_work(&adpt->work_thread);
adpt              179 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c static void emac_sgmii_reset_prepare(struct emac_adapter *adpt)
adpt              181 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	struct emac_sgmii *phy = &adpt->phy;
adpt              198 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c static void emac_sgmii_common_reset(struct emac_adapter *adpt)
adpt              202 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	emac_sgmii_reset_prepare(adpt);
adpt              203 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	emac_sgmii_link_init(adpt);
adpt              205 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	ret = emac_sgmii_init(adpt);
adpt              207 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 		netdev_err(adpt->netdev,
adpt              212 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c static int emac_sgmii_common_open(struct emac_adapter *adpt)
adpt              214 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	struct emac_sgmii *sgmii = &adpt->phy;
adpt              219 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 		ret = emac_sgmii_irq_clear(adpt, 0xff);
adpt              225 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 				  "emac-sgmii", adpt);
adpt              227 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 			netdev_err(adpt->netdev,
adpt              236 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c static void emac_sgmii_common_close(struct emac_adapter *adpt)
adpt              238 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	struct emac_sgmii *sgmii = &adpt->phy;
adpt              242 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	free_irq(sgmii->irq, adpt);
adpt              246 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c static int emac_sgmii_common_link_change(struct emac_adapter *adpt, bool linkup)
adpt              248 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	struct emac_sgmii *sgmii = &adpt->phy;
adpt              253 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 		ret = emac_sgmii_irq_clear(adpt, 0xff);
adpt              349 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c int emac_sgmii_config(struct platform_device *pdev, struct emac_adapter *adpt)
adpt              352 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	struct emac_sgmii *phy = &adpt->phy;
adpt              418 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	ret = emac_sgmii_init(adpt);
adpt              422 drivers/net/ethernet/qualcomm/emac/emac-sgmii.c 	emac_sgmii_link_init(adpt);
adpt               18 drivers/net/ethernet/qualcomm/emac/emac-sgmii.h 	int (*init)(struct emac_adapter *adpt);
adpt               19 drivers/net/ethernet/qualcomm/emac/emac-sgmii.h 	int (*open)(struct emac_adapter *adpt);
adpt               20 drivers/net/ethernet/qualcomm/emac/emac-sgmii.h 	void (*close)(struct emac_adapter *adpt);
adpt               21 drivers/net/ethernet/qualcomm/emac/emac-sgmii.h 	int (*link_change)(struct emac_adapter *adpt, bool link_state);
adpt               22 drivers/net/ethernet/qualcomm/emac/emac-sgmii.h 	void (*reset)(struct emac_adapter *adpt);
adpt               40 drivers/net/ethernet/qualcomm/emac/emac-sgmii.h int emac_sgmii_config(struct platform_device *pdev, struct emac_adapter *adpt);
adpt               42 drivers/net/ethernet/qualcomm/emac/emac-sgmii.h int emac_sgmii_init_fsm9900(struct emac_adapter *adpt);
adpt               43 drivers/net/ethernet/qualcomm/emac/emac-sgmii.h int emac_sgmii_init_qdf2432(struct emac_adapter *adpt);
adpt               44 drivers/net/ethernet/qualcomm/emac/emac-sgmii.h int emac_sgmii_init_qdf2400(struct emac_adapter *adpt);
adpt               46 drivers/net/ethernet/qualcomm/emac/emac-sgmii.h int emac_sgmii_init(struct emac_adapter *adpt);
adpt               47 drivers/net/ethernet/qualcomm/emac/emac-sgmii.h int emac_sgmii_open(struct emac_adapter *adpt);
adpt               48 drivers/net/ethernet/qualcomm/emac/emac-sgmii.h void emac_sgmii_close(struct emac_adapter *adpt);
adpt               49 drivers/net/ethernet/qualcomm/emac/emac-sgmii.h int emac_sgmii_link_change(struct emac_adapter *adpt, bool link_state);
adpt               50 drivers/net/ethernet/qualcomm/emac/emac-sgmii.h void emac_sgmii_reset(struct emac_adapter *adpt);
adpt               81 drivers/net/ethernet/qualcomm/emac/emac.c int emac_reinit_locked(struct emac_adapter *adpt)
adpt               85 drivers/net/ethernet/qualcomm/emac/emac.c 	mutex_lock(&adpt->reset_lock);
adpt               87 drivers/net/ethernet/qualcomm/emac/emac.c 	emac_mac_down(adpt);
adpt               88 drivers/net/ethernet/qualcomm/emac/emac.c 	emac_sgmii_reset(adpt);
adpt               89 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = emac_mac_up(adpt);
adpt               91 drivers/net/ethernet/qualcomm/emac/emac.c 	mutex_unlock(&adpt->reset_lock);
adpt              101 drivers/net/ethernet/qualcomm/emac/emac.c 	struct emac_adapter *adpt = netdev_priv(rx_q->netdev);
adpt              105 drivers/net/ethernet/qualcomm/emac/emac.c 	emac_mac_rx_process(adpt, rx_q, &work_done, budget);
adpt              111 drivers/net/ethernet/qualcomm/emac/emac.c 		writel(irq->mask, adpt->base + EMAC_INT_MASK);
adpt              120 drivers/net/ethernet/qualcomm/emac/emac.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              122 drivers/net/ethernet/qualcomm/emac/emac.c 	return emac_mac_tx_buf_send(adpt, &adpt->tx_q, skb);
adpt              128 drivers/net/ethernet/qualcomm/emac/emac.c 	struct emac_adapter *adpt =
adpt              130 drivers/net/ethernet/qualcomm/emac/emac.c 	struct emac_rx_queue *rx_q = &adpt->rx_q;
adpt              134 drivers/net/ethernet/qualcomm/emac/emac.c 	writel(0, adpt->base + EMAC_INT_MASK);
adpt              136 drivers/net/ethernet/qualcomm/emac/emac.c 	isr = readl_relaxed(adpt->base + EMAC_INT_STATUS);
adpt              144 drivers/net/ethernet/qualcomm/emac/emac.c 				    adpt->netdev->name, status & ISR_ERROR);
adpt              146 drivers/net/ethernet/qualcomm/emac/emac.c 		schedule_work(&adpt->work_thread);
adpt              160 drivers/net/ethernet/qualcomm/emac/emac.c 		emac_mac_tx_process(adpt, &adpt->tx_q);
adpt              164 drivers/net/ethernet/qualcomm/emac/emac.c 				     adpt->netdev->name);
adpt              168 drivers/net/ethernet/qualcomm/emac/emac.c 	writel(irq->mask, adpt->base + EMAC_INT_MASK);
adpt              178 drivers/net/ethernet/qualcomm/emac/emac.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              194 drivers/net/ethernet/qualcomm/emac/emac.c 	return emac_reinit_locked(adpt);
adpt              200 drivers/net/ethernet/qualcomm/emac/emac.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              203 drivers/net/ethernet/qualcomm/emac/emac.c 	emac_mac_mode_config(adpt);
adpt              206 drivers/net/ethernet/qualcomm/emac/emac.c 	emac_mac_multicast_addr_clear(adpt);
adpt              208 drivers/net/ethernet/qualcomm/emac/emac.c 		emac_mac_multicast_addr_set(adpt, ha->addr);
adpt              214 drivers/net/ethernet/qualcomm/emac/emac.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              216 drivers/net/ethernet/qualcomm/emac/emac.c 	netif_info(adpt, hw, adpt->netdev,
adpt              222 drivers/net/ethernet/qualcomm/emac/emac.c 		return emac_reinit_locked(adpt);
adpt              230 drivers/net/ethernet/qualcomm/emac/emac.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              231 drivers/net/ethernet/qualcomm/emac/emac.c 	struct emac_irq	*irq = &adpt->irq;
adpt              236 drivers/net/ethernet/qualcomm/emac/emac.c 		netdev_err(adpt->netdev, "could not request emac-core0 irq\n");
adpt              241 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = emac_mac_rx_tx_rings_alloc_all(adpt);
adpt              243 drivers/net/ethernet/qualcomm/emac/emac.c 		netdev_err(adpt->netdev, "error allocating rx/tx rings\n");
adpt              248 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = emac_sgmii_open(adpt);
adpt              250 drivers/net/ethernet/qualcomm/emac/emac.c 		emac_mac_rx_tx_rings_free_all(adpt);
adpt              255 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = emac_mac_up(adpt);
adpt              257 drivers/net/ethernet/qualcomm/emac/emac.c 		emac_mac_rx_tx_rings_free_all(adpt);
adpt              259 drivers/net/ethernet/qualcomm/emac/emac.c 		emac_sgmii_close(adpt);
adpt              269 drivers/net/ethernet/qualcomm/emac/emac.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              271 drivers/net/ethernet/qualcomm/emac/emac.c 	mutex_lock(&adpt->reset_lock);
adpt              273 drivers/net/ethernet/qualcomm/emac/emac.c 	emac_sgmii_close(adpt);
adpt              274 drivers/net/ethernet/qualcomm/emac/emac.c 	emac_mac_down(adpt);
adpt              275 drivers/net/ethernet/qualcomm/emac/emac.c 	emac_mac_rx_tx_rings_free_all(adpt);
adpt              277 drivers/net/ethernet/qualcomm/emac/emac.c 	free_irq(adpt->irq.irq, &adpt->irq);
adpt              279 drivers/net/ethernet/qualcomm/emac/emac.c 	mutex_unlock(&adpt->reset_lock);
adpt              287 drivers/net/ethernet/qualcomm/emac/emac.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              289 drivers/net/ethernet/qualcomm/emac/emac.c 	schedule_work(&adpt->work_thread);
adpt              312 drivers/net/ethernet/qualcomm/emac/emac.c void emac_update_hw_stats(struct emac_adapter *adpt)
adpt              314 drivers/net/ethernet/qualcomm/emac/emac.c 	struct emac_stats *stats = &adpt->stats;
adpt              315 drivers/net/ethernet/qualcomm/emac/emac.c 	u64 *stats_itr = &adpt->stats.rx_ok;
adpt              316 drivers/net/ethernet/qualcomm/emac/emac.c 	void __iomem *base = adpt->base;
adpt              348 drivers/net/ethernet/qualcomm/emac/emac.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              349 drivers/net/ethernet/qualcomm/emac/emac.c 	struct emac_stats *stats = &adpt->stats;
adpt              353 drivers/net/ethernet/qualcomm/emac/emac.c 	emac_update_hw_stats(adpt);
adpt              400 drivers/net/ethernet/qualcomm/emac/emac.c 	struct emac_adapter *adpt =
adpt              403 drivers/net/ethernet/qualcomm/emac/emac.c 	emac_reinit_locked(adpt);
adpt              407 drivers/net/ethernet/qualcomm/emac/emac.c static void emac_init_adapter(struct emac_adapter *adpt)
adpt              411 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->rrd_size = EMAC_RRD_SIZE;
adpt              412 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->tpd_size = EMAC_TPD_SIZE;
adpt              413 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->rfd_size = EMAC_RFD_SIZE;
adpt              416 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->tx_desc_cnt = EMAC_DEF_TX_DESCS;
adpt              417 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->rx_desc_cnt = EMAC_DEF_RX_DESCS;
adpt              420 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->dma_order = emac_dma_ord_out;
adpt              421 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->dmar_block = emac_dma_req_4096;
adpt              422 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->dmaw_block = emac_dma_req_128;
adpt              423 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->dmar_dly_cnt = DMAR_DLY_CNT_DEF;
adpt              424 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->dmaw_dly_cnt = DMAW_DLY_CNT_DEF;
adpt              425 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->tpd_burst = TXQ0_NUM_TPD_PREF_DEF;
adpt              426 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->rfd_burst = RXQ0_NUM_RFD_PREF_DEF;
adpt              431 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->irq_mod = reg;
adpt              434 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->preamble = EMAC_PREAMBLE_DEF;
adpt              437 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->automatic = true;
adpt              440 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->single_pause_mode = false;
adpt              445 drivers/net/ethernet/qualcomm/emac/emac.c 			 struct emac_adapter *adpt)
adpt              460 drivers/net/ethernet/qualcomm/emac/emac.c 		adpt->clk[i] = clk;
adpt              468 drivers/net/ethernet/qualcomm/emac/emac.c 				 struct emac_adapter *adpt)
adpt              478 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = emac_clks_get(pdev, adpt);
adpt              482 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = clk_prepare_enable(adpt->clk[EMAC_CLK_AXI]);
adpt              486 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = clk_prepare_enable(adpt->clk[EMAC_CLK_CFG_AHB]);
adpt              490 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = clk_set_rate(adpt->clk[EMAC_CLK_HIGH_SPEED], 19200000);
adpt              494 drivers/net/ethernet/qualcomm/emac/emac.c 	return clk_prepare_enable(adpt->clk[EMAC_CLK_HIGH_SPEED]);
adpt              499 drivers/net/ethernet/qualcomm/emac/emac.c 				 struct emac_adapter *adpt)
adpt              506 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = clk_set_rate(adpt->clk[EMAC_CLK_TX], 125000000);
adpt              510 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = clk_prepare_enable(adpt->clk[EMAC_CLK_TX]);
adpt              514 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = clk_set_rate(adpt->clk[EMAC_CLK_HIGH_SPEED], 125000000);
adpt              518 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = clk_set_rate(adpt->clk[EMAC_CLK_MDIO], 25000000);
adpt              522 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = clk_prepare_enable(adpt->clk[EMAC_CLK_MDIO]);
adpt              526 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = clk_prepare_enable(adpt->clk[EMAC_CLK_RX]);
adpt              530 drivers/net/ethernet/qualcomm/emac/emac.c 	return clk_prepare_enable(adpt->clk[EMAC_CLK_SYS]);
adpt              533 drivers/net/ethernet/qualcomm/emac/emac.c static void emac_clks_teardown(struct emac_adapter *adpt)
adpt              539 drivers/net/ethernet/qualcomm/emac/emac.c 		clk_disable_unprepare(adpt->clk[i]);
adpt              544 drivers/net/ethernet/qualcomm/emac/emac.c 				struct emac_adapter *adpt)
adpt              546 drivers/net/ethernet/qualcomm/emac/emac.c 	struct net_device *netdev = adpt->netdev;
adpt              560 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->irq.irq = ret;
adpt              563 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->base = devm_platform_ioremap_resource(pdev, 0);
adpt              564 drivers/net/ethernet/qualcomm/emac/emac.c 	if (IS_ERR(adpt->base))
adpt              565 drivers/net/ethernet/qualcomm/emac/emac.c 		return PTR_ERR(adpt->base);
adpt              568 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->csr = devm_platform_ioremap_resource(pdev, 1);
adpt              569 drivers/net/ethernet/qualcomm/emac/emac.c 	if (IS_ERR(adpt->csr))
adpt              570 drivers/net/ethernet/qualcomm/emac/emac.c 		return PTR_ERR(adpt->csr);
adpt              572 drivers/net/ethernet/qualcomm/emac/emac.c 	netdev->base_addr = (unsigned long)adpt->base;
adpt              598 drivers/net/ethernet/qualcomm/emac/emac.c 	struct emac_adapter *adpt;
adpt              622 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt = netdev_priv(netdev);
adpt              623 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->netdev = netdev;
adpt              624 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->msg_enable = EMAC_MSG_DEFAULT;
adpt              626 drivers/net/ethernet/qualcomm/emac/emac.c 	phy = &adpt->phy;
adpt              629 drivers/net/ethernet/qualcomm/emac/emac.c 	mutex_init(&adpt->reset_lock);
adpt              630 drivers/net/ethernet/qualcomm/emac/emac.c 	spin_lock_init(&adpt->stats.lock);
adpt              632 drivers/net/ethernet/qualcomm/emac/emac.c 	adpt->irq.mask = RX_PKT_INT0 | IMR_NORMAL_MASK;
adpt              634 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = emac_probe_resources(pdev, adpt);
adpt              639 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = emac_clks_phase1_init(pdev, adpt);
adpt              646 drivers/net/ethernet/qualcomm/emac/emac.c 	netdev->irq = adpt->irq.irq;
adpt              650 drivers/net/ethernet/qualcomm/emac/emac.c 	emac_init_adapter(adpt);
adpt              653 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = emac_phy_config(pdev, adpt);
adpt              658 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = emac_sgmii_config(pdev, adpt);
adpt              663 drivers/net/ethernet/qualcomm/emac/emac.c 	ret = emac_clks_phase2_init(pdev, adpt);
adpt              684 drivers/net/ethernet/qualcomm/emac/emac.c 	INIT_WORK(&adpt->work_thread, emac_work_thread);
adpt              687 drivers/net/ethernet/qualcomm/emac/emac.c 	emac_mac_rx_tx_ring_init_all(pdev, adpt);
adpt              689 drivers/net/ethernet/qualcomm/emac/emac.c 	netif_napi_add(netdev, &adpt->rx_q.napi, emac_napi_rtx,
adpt              698 drivers/net/ethernet/qualcomm/emac/emac.c 	reg =  readl_relaxed(adpt->base + EMAC_DMA_MAS_CTRL);
adpt              701 drivers/net/ethernet/qualcomm/emac/emac.c 	reg = readl_relaxed(adpt->base + EMAC_CORE_HW_VERSION);
adpt              703 drivers/net/ethernet/qualcomm/emac/emac.c 	netif_info(adpt, probe, netdev,
adpt              713 drivers/net/ethernet/qualcomm/emac/emac.c 	netif_napi_del(&adpt->rx_q.napi);
adpt              715 drivers/net/ethernet/qualcomm/emac/emac.c 	put_device(&adpt->phydev->mdio.dev);
adpt              716 drivers/net/ethernet/qualcomm/emac/emac.c 	mdiobus_unregister(adpt->mii_bus);
adpt              718 drivers/net/ethernet/qualcomm/emac/emac.c 	emac_clks_teardown(adpt);
adpt              728 drivers/net/ethernet/qualcomm/emac/emac.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              731 drivers/net/ethernet/qualcomm/emac/emac.c 	netif_napi_del(&adpt->rx_q.napi);
adpt              733 drivers/net/ethernet/qualcomm/emac/emac.c 	emac_clks_teardown(adpt);
adpt              735 drivers/net/ethernet/qualcomm/emac/emac.c 	put_device(&adpt->phydev->mdio.dev);
adpt              736 drivers/net/ethernet/qualcomm/emac/emac.c 	mdiobus_unregister(adpt->mii_bus);
adpt              739 drivers/net/ethernet/qualcomm/emac/emac.c 	if (adpt->phy.digital)
adpt              740 drivers/net/ethernet/qualcomm/emac/emac.c 		iounmap(adpt->phy.digital);
adpt              741 drivers/net/ethernet/qualcomm/emac/emac.c 	iounmap(adpt->phy.base);
adpt              749 drivers/net/ethernet/qualcomm/emac/emac.c 	struct emac_adapter *adpt = netdev_priv(netdev);
adpt              753 drivers/net/ethernet/qualcomm/emac/emac.c 		emac_sgmii_close(adpt);
adpt              756 drivers/net/ethernet/qualcomm/emac/emac.c 		emac_mac_reset(adpt);
adpt              380 drivers/net/ethernet/qualcomm/emac/emac.h int emac_reinit_locked(struct emac_adapter *adpt);
adpt              384 drivers/net/ethernet/qualcomm/emac/emac.h void emac_update_hw_stats(struct emac_adapter *adpt);
adpt              172 drivers/staging/most/sound/sound.c 	struct sound_adapter *adpt = iface->priv;
adpt              175 drivers/staging/most/sound/sound.c 	list_for_each_entry_safe(channel, tmp, &adpt->dev_list, list) {
adpt              547 drivers/staging/most/sound/sound.c static void release_adapter(struct sound_adapter *adpt)
adpt              551 drivers/staging/most/sound/sound.c 	list_for_each_entry_safe(channel, tmp, &adpt->dev_list, list) {
adpt              555 drivers/staging/most/sound/sound.c 	if (adpt->card)
adpt              556 drivers/staging/most/sound/sound.c 		snd_card_free(adpt->card);
adpt              557 drivers/staging/most/sound/sound.c 	list_del(&adpt->list);
adpt              558 drivers/staging/most/sound/sound.c 	kfree(adpt);
adpt              578 drivers/staging/most/sound/sound.c 	struct sound_adapter *adpt;
adpt              600 drivers/staging/most/sound/sound.c 	list_for_each_entry(adpt, &adpt_list, list) {
adpt              601 drivers/staging/most/sound/sound.c 		if (adpt->iface != iface)
adpt              603 drivers/staging/most/sound/sound.c 		if (adpt->registered)
adpt              605 drivers/staging/most/sound/sound.c 		adpt->pcm_dev_idx++;
adpt              608 drivers/staging/most/sound/sound.c 	adpt = kzalloc(sizeof(*adpt), GFP_KERNEL);
adpt              609 drivers/staging/most/sound/sound.c 	if (!adpt)
adpt              612 drivers/staging/most/sound/sound.c 	adpt->iface = iface;
adpt              613 drivers/staging/most/sound/sound.c 	INIT_LIST_HEAD(&adpt->dev_list);
adpt              614 drivers/staging/most/sound/sound.c 	iface->priv = adpt;
adpt              615 drivers/staging/most/sound/sound.c 	list_add_tail(&adpt->list, &adpt_list);
adpt              617 drivers/staging/most/sound/sound.c 			   sizeof(*channel), &adpt->card);
adpt              620 drivers/staging/most/sound/sound.c 	snprintf(adpt->card->driver, sizeof(adpt->card->driver),
adpt              622 drivers/staging/most/sound/sound.c 	snprintf(adpt->card->shortname, sizeof(adpt->card->shortname),
adpt              624 drivers/staging/most/sound/sound.c 	snprintf(adpt->card->longname, sizeof(adpt->card->longname),
adpt              625 drivers/staging/most/sound/sound.c 		 "%s at %s", adpt->card->shortname, iface->description);
adpt              645 drivers/staging/most/sound/sound.c 	channel->card = adpt->card;
adpt              650 drivers/staging/most/sound/sound.c 	list_add_tail(&channel->list, &adpt->dev_list);
adpt              657 drivers/staging/most/sound/sound.c 	ret = snd_pcm_new(adpt->card, device_name, adpt->pcm_dev_idx,
adpt              670 drivers/staging/most/sound/sound.c 	release_adapter(adpt);
adpt              677 drivers/staging/most/sound/sound.c 	struct sound_adapter *adpt;
adpt              679 drivers/staging/most/sound/sound.c 	list_for_each_entry(adpt, &adpt_list, list) {
adpt              680 drivers/staging/most/sound/sound.c 		if (!adpt->registered)
adpt              685 drivers/staging/most/sound/sound.c 	ret = snd_card_register(adpt->card);
adpt              687 drivers/staging/most/sound/sound.c 		release_adapter(adpt);
adpt              690 drivers/staging/most/sound/sound.c 	adpt->registered = true;
adpt              707 drivers/staging/most/sound/sound.c 	struct sound_adapter *adpt = iface->priv;
adpt              719 drivers/staging/most/sound/sound.c 	if (list_empty(&adpt->dev_list))
adpt              720 drivers/staging/most/sound/sound.c 		release_adapter(adpt);