Home
last modified time | relevance | path

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

123

/drivers/net/ethernet/atheros/atlx/
Datl1.c279 iowrite32(MASTER_CTRL_SOFT_RST, hw->hw_addr + REG_MASTER_CTRL); in atl1_reset_hw()
280 ioread32(hw->hw_addr + REG_MASTER_CTRL); in atl1_reset_hw()
282 iowrite16(1, hw->hw_addr + REG_PHY_ENABLE); in atl1_reset_hw()
283 ioread16(hw->hw_addr + REG_PHY_ENABLE); in atl1_reset_hw()
290 icr = ioread32(hw->hw_addr + REG_IDLE_STATUS); in atl1_reset_hw()
316 value = ioread32(hw->hw_addr + REG_SPI_FLASH_CTRL); in atl1_check_eeprom_exist()
319 iowrite32(value, hw->hw_addr + REG_SPI_FLASH_CTRL); in atl1_check_eeprom_exist()
322 value = ioread16(hw->hw_addr + REG_PCIE_CAP_LIST); in atl1_check_eeprom_exist()
335 iowrite32(0, hw->hw_addr + REG_VPD_DATA); in atl1_read_eeprom()
337 iowrite32(control, hw->hw_addr + REG_VPD_CAP); in atl1_read_eeprom()
[all …]
Datlx.c136 rctl = ioread32(hw->hw_addr + REG_MAC_CTRL); in atlx_set_multi()
145 iowrite32(rctl, hw->hw_addr + REG_MAC_CTRL); in atlx_set_multi()
148 iowrite32(0, hw->hw_addr + REG_RX_HASH_TABLE); in atlx_set_multi()
149 iowrite32(0, (hw->hw_addr + REG_RX_HASH_TABLE) + (1 << 2)); in atlx_set_multi()
164 iowrite32(IMR_NORMAL_MASK, adapter->hw.hw_addr + REG_IMR); in atlx_irq_enable()
165 ioread32(adapter->hw.hw_addr + REG_IMR); in atlx_irq_enable()
174 iowrite32(0, adapter->hw.hw_addr + REG_IMR); in atlx_irq_disable()
175 ioread32(adapter->hw.hw_addr + REG_IMR); in atlx_irq_disable()
235 ctrl = ioread32(adapter->hw.hw_addr + REG_MAC_CTRL); in atlx_vlan_mode()
237 iowrite32(ctrl, adapter->hw.hw_addr + REG_MAC_CTRL); in atlx_vlan_mode()
Datl2.h52 ((a)->hw_addr + (reg))))
54 #define ATL2_WRITE_FLUSH(a) (ioread32((a)->hw_addr))
56 #define ATL2_READ_REG(a, reg) (ioread32((a)->hw_addr + (reg)))
59 ((a)->hw_addr + (reg))))
61 #define ATL2_READ_REGB(a, reg) (ioread8((a)->hw_addr + (reg)))
64 ((a)->hw_addr + (reg))))
66 #define ATL2_READ_REGW(a, reg) (ioread16((a)->hw_addr + (reg)))
69 (iowrite32((value), (((a)->hw_addr + (reg)) + ((offset) << 2))))
72 (ioread32(((a)->hw_addr + (reg)) + ((offset) << 2)))
383 u8 __iomem *hw_addr; member
/drivers/net/ethernet/intel/e1000/
De1000_osdep.h55 (readl(hw->hw_addr + ((hw->mac_type >= e1000_82543) \
59 (writel((value), (hw->hw_addr + ((hw->mac_type >= e1000_82543) \
63 writel((value), ((a)->hw_addr + \
68 readl((a)->hw_addr + \
76 writew((value), ((a)->hw_addr + \
81 readw((a)->hw_addr + \
86 writeb((value), ((a)->hw_addr + \
91 readb((a)->hw_addr + \
De1000_main.c997 hw->hw_addr = pci_ioremap_bar(pdev, BAR_0); in e1000_probe()
998 if (!hw->hw_addr) in e1000_probe()
1256 iounmap(hw->hw_addr); in e1000_probe()
1294 iounmap(hw->hw_addr); in e1000_remove()
2012 writel(0, hw->hw_addr + tx_ring->tdh); in e1000_clean_tx_ring()
2013 writel(0, hw->hw_addr + tx_ring->tdt); in e1000_clean_tx_ring()
2124 writel(0, hw->hw_addr + rx_ring->rdh); in e1000_clean_rx_ring()
2125 writel(0, hw->hw_addr + rx_ring->rdt); in e1000_clean_rx_ring()
3035 writel(i, hw->hw_addr + tx_ring->tdt); in e1000_tx_queue()
3453 readl(adapter->hw.hw_addr + i+4), in e1000_dump()
[all …]
/drivers/net/ethernet/micrel/
Dks8842.c163 void __iomem *hw_addr; member
180 iowrite32(1, adapter->hw_addr + REQ_TIMB_DMA_RESUME); in ks8842_resume_dma()
185 iowrite16(bank, adapter->hw_addr + REG_SELECT_BANK); in ks8842_select_bank()
192 iowrite8(value, adapter->hw_addr + offset); in ks8842_write8()
199 iowrite16(value, adapter->hw_addr + offset); in ks8842_write16()
207 reg = ioread16(adapter->hw_addr + offset); in ks8842_enable_bits()
209 iowrite16(reg, adapter->hw_addr + offset); in ks8842_enable_bits()
217 reg = ioread16(adapter->hw_addr + offset); in ks8842_clear_bits()
219 iowrite16(reg, adapter->hw_addr + offset); in ks8842_clear_bits()
226 iowrite32(value, adapter->hw_addr + offset); in ks8842_write32()
[all …]
Dks8851_mll.c432 void __iomem *hw_addr; member
490 data = ioread16(ks->hw_addr); in ks_rdreg8()
506 return ioread16(ks->hw_addr); in ks_rdreg16()
522 iowrite16(value_write, ks->hw_addr); in ks_wrreg8()
537 iowrite16(value, ks->hw_addr); in ks_wrreg16()
551 *wptr++ = (u16)ioread16(ks->hw_addr); in ks_inblk()
565 iowrite16(*wptr++, ks->hw_addr); in ks_outblk()
759 ioread8(ks->hw_addr); in ks_read_qmu()
1536 ks->hw_addr = ioremap(io_d->start, resource_size(io_d)); in ks8851_probe()
1538 if (!ks->hw_addr) in ks8851_probe()
[all …]
/drivers/net/ethernet/atheros/atl1c/
Datl1c.h385 u8 __iomem *hw_addr; /* inner register address */ member
598 writel((value), ((a)->hw_addr + reg)))
601 readl((a)->hw_addr))
605 readl((a)->hw_addr + reg); \
606 *(u32 *)pdata = readl((a)->hw_addr + reg); \
608 *(u32 *)pdata = readl((a)->hw_addr + reg); \
613 writeb((value), ((a)->hw_addr + reg)))
616 readb((a)->hw_addr + reg))
619 writew((value), ((a)->hw_addr + reg)))
622 readw((a)->hw_addr + reg))
[all …]
/drivers/net/ethernet/atheros/atl1e/
Datl1e.h316 u8 __iomem *hw_addr; /* inner register address */ member
473 writel((value), ((a)->hw_addr + reg)))
476 readl((a)->hw_addr))
479 readl((a)->hw_addr + reg))
482 writeb((value), ((a)->hw_addr + reg)))
485 readb((a)->hw_addr + reg))
488 writew((value), ((a)->hw_addr + reg)))
491 readw((a)->hw_addr + reg))
494 writel((value), (((a)->hw_addr + reg) + ((offset) << 2))))
497 readl(((a)->hw_addr + reg) + ((offset) << 2)))
/drivers/net/ethernet/intel/ixgb/
Dixgb_osdep.h49 writel((value), ((a)->hw_addr + IXGB_##reg)))
52 readl((a)->hw_addr + IXGB_##reg))
55 writel((value), ((a)->hw_addr + IXGB_##reg + ((offset) << 2))))
58 readl((a)->hw_addr + IXGB_##reg + ((offset) << 2)))
/drivers/gpu/drm/via/
Dvia_dma.c86 uint32_t hw_addr = *(dev_priv->hw_addr_ptr) - agp_base; in via_cmdbuf_space() local
88 return ((hw_addr <= dev_priv->dma_low) ? in via_cmdbuf_space()
89 (dev_priv->dma_high + hw_addr - dev_priv->dma_low) : in via_cmdbuf_space()
90 (hw_addr - dev_priv->dma_low)); in via_cmdbuf_space()
100 uint32_t hw_addr = *(dev_priv->hw_addr_ptr) - agp_base; in via_cmdbuf_lag() local
102 return ((hw_addr <= dev_priv->dma_low) ? in via_cmdbuf_lag()
103 (dev_priv->dma_low - hw_addr) : in via_cmdbuf_lag()
104 (dev_priv->dma_wrap + dev_priv->dma_low - hw_addr)); in via_cmdbuf_lag()
115 uint32_t cur_addr, hw_addr, next_addr; in via_cmdbuf_wait() local
123 hw_addr = *hw_addr_ptr - agp_base; in via_cmdbuf_wait()
[all …]
/drivers/net/ethernet/intel/ixgbevf/
Dregs.h73 #define IXGBE_WRITE_REG(a, reg, value) writel((value), ((a)->hw_addr + (reg)))
75 #define IXGBE_READ_REG(a, reg) readl((a)->hw_addr + (reg))
78 writel((value), ((a)->hw_addr + (reg) + ((offset) << 2))))
81 readl((a)->hw_addr + (reg) + ((offset) << 2)))
Dethtool.c531 before = readl(adapter->hw.hw_addr + R); \
533 (adapter->hw.hw_addr + R)); \
534 val = readl(adapter->hw.hw_addr + R); \
541 writel(before, adapter->hw.hw_addr + R); \
544 writel(before, adapter->hw.hw_addr + R); \
551 before = readl(adapter->hw.hw_addr + R); \
552 writel((W & M), (adapter->hw.hw_addr + R)); \
553 val = readl(adapter->hw.hw_addr + R); \
558 writel(before, (adapter->hw.hw_addr + R)); \
561 writel(before, (adapter->hw.hw_addr + R)); \
[all …]
/drivers/net/ethernet/intel/igbvf/
Dregs.h100 #define er32(reg) readl(hw->hw_addr + E1000_##reg)
101 #define ew32(reg, val) writel((val), hw->hw_addr + E1000_##reg)
103 readl(hw->hw_addr + E1000_##reg + (offset << 2))
105 writel((val), hw->hw_addr + E1000_##reg + (offset << 2))
Dnetdev.c232 writel(i, adapter->hw.hw_addr + rx_ring->tail); in igbvf_alloc_rx_buffers()
519 writel(0, adapter->hw.hw_addr + tx_ring->head); in igbvf_clean_tx_ring()
520 writel(0, adapter->hw.hw_addr + tx_ring->tail); in igbvf_clean_tx_ring()
602 writel(0, adapter->hw.hw_addr + rx_ring->head); in igbvf_clean_rx_ring()
603 writel(0, adapter->hw.hw_addr + rx_ring->tail); in igbvf_clean_rx_ring()
866 adapter->hw.hw_addr + tx_ring->itr_register); in igbvf_intr_msix_tx()
896 adapter->hw.hw_addr + adapter->rx_ring->itr_register); in igbvf_intr_msix_rx()
971 writel(tx_ring->itr_val, hw->hw_addr + tx_ring->itr_register); in igbvf_configure_msix()
974 writel(rx_ring->itr_val, hw->hw_addr + rx_ring->itr_register); in igbvf_configure_msix()
2175 writel(i, adapter->hw.hw_addr + tx_ring->tail); in igbvf_tx_queue_adv()
[all …]
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_common.h110 #define IXGBE_WRITE_REG(a, reg, value) writel((value), ((a)->hw_addr + (reg)))
117 #define IXGBE_WRITE_REG64(a, reg, value) writeq((value), ((a)->hw_addr + (reg)))
119 #define IXGBE_READ_REG(a, reg) readl((a)->hw_addr + (reg))
122 writel((value), ((a)->hw_addr + (reg) + ((offset) << 2))))
125 readl((a)->hw_addr + (reg) + ((offset) << 2)))
Dixgbe_ethtool.c1276 before = readl(adapter->hw.hw_addr + reg); in reg_pattern_test()
1278 (adapter->hw.hw_addr + reg)); in reg_pattern_test()
1279 val = readl(adapter->hw.hw_addr + reg); in reg_pattern_test()
1285 writel(before, adapter->hw.hw_addr + reg); in reg_pattern_test()
1288 writel(before, adapter->hw.hw_addr + reg); in reg_pattern_test()
1297 before = readl(adapter->hw.hw_addr + reg); in reg_set_and_check()
1298 writel((write & mask), (adapter->hw.hw_addr + reg)); in reg_set_and_check()
1299 val = readl(adapter->hw.hw_addr + reg); in reg_set_and_check()
1304 writel(before, (adapter->hw.hw_addr + reg)); in reg_set_and_check()
1307 writel(before, (adapter->hw.hw_addr + reg)); in reg_set_and_check()
[all …]
/drivers/net/ethernet/intel/igb/
De1000_regs.h330 #define wr32(reg, value) (writel(value, hw->hw_addr + reg))
331 #define rd32(reg) (readl(hw->hw_addr + reg))
335 (writel(value, hw->hw_addr + reg + ((offset) << 2)))
337 (readl(hw->hw_addr + reg + ((offset) << 2)))
/drivers/net/ethernet/i825xx/
Deexpress.c1065 unsigned short hw_addr[3]; in eexp_hw_probe() local
1079 hw_addr[0] = eexp_hw_readeeprom(ioaddr,2); in eexp_hw_probe()
1080 hw_addr[1] = eexp_hw_readeeprom(ioaddr,3); in eexp_hw_probe()
1081 hw_addr[2] = eexp_hw_readeeprom(ioaddr,4); in eexp_hw_probe()
1084 if (!((hw_addr[2]==0x00aa && ((hw_addr[1] & 0xff00)==0x0000)) || in eexp_hw_probe()
1085 (hw_addr[2]==0x0080 && ((hw_addr[1] & 0xff00)==0x5F00)))) in eexp_hw_probe()
1088 hw_addr[2],hw_addr[1],hw_addr[0]); in eexp_hw_probe()
1102 dev->dev_addr[i] = ((unsigned char *)hw_addr)[5-i]; in eexp_hw_probe()
/drivers/net/ethernet/chelsio/cxgb4vf/
Dadapter.h466 u8 hw_addr[]) in t4_os_set_hw_addr() argument
468 memcpy(adapter->port[pidx]->dev_addr, hw_addr, ETH_ALEN); in t4_os_set_hw_addr()
469 memcpy(adapter->port[pidx]->perm_addr, hw_addr, ETH_ALEN); in t4_os_set_hw_addr()
/drivers/net/wireless/ath/ath6kl/
Dmain.c1120 if (memcmp(ha->addr, mc_filter->hw_addr, in ath6kl_set_multicast_list()
1134 mc_filter->hw_addr); in ath6kl_set_multicast_list()
1136 vif->fw_vif_idx, mc_filter->hw_addr, in ath6kl_set_multicast_list()
1140 mc_filter->hw_addr); in ath6kl_set_multicast_list()
1154 if (memcmp(ha->addr, mc_filter->hw_addr, in ath6kl_set_multicast_list()
1169 memcpy(mc_filter->hw_addr, ha->addr, in ath6kl_set_multicast_list()
1174 mc_filter->hw_addr); in ath6kl_set_multicast_list()
1176 vif->fw_vif_idx, mc_filter->hw_addr, in ath6kl_set_multicast_list()
1180 mc_filter->hw_addr); in ath6kl_set_multicast_list()
/drivers/net/ethernet/ti/
Ddavinci_cpdma.c79 u32 hw_addr; member
141 cpdma_desc_pool_create(struct device *dev, u32 phys, u32 hw_addr, in cpdma_desc_pool_create() argument
166 pool->hw_addr = hw_addr; in cpdma_desc_pool_create()
171 pool->hw_addr = pool->phys; in cpdma_desc_pool_create()
208 return pool->hw_addr + (__force dma_addr_t)desc - in desc_phys()
215 return dma ? pool->iomap + dma - pool->hw_addr : NULL; in desc_from_phys()
/drivers/net/usb/
Dkaweth.c205 eth_addr_t hw_addr; member
1101 dev_info(&intf->dev, "Read MAC address %pM\n", kaweth->configuration.hw_addr); in kaweth_probe()
1103 if(!memcmp(&kaweth->configuration.hw_addr, in kaweth_probe()
1158 memcpy(netdev->dev_addr, &kaweth->configuration.hw_addr, in kaweth_probe()
1159 sizeof(kaweth->configuration.hw_addr)); in kaweth_probe()
/drivers/net/ethernet/intel/e1000e/
Dhw.h44 (writel((value), ((a)->hw_addr + reg + ((offset) << 2))))
47 (readl((a)->hw_addr + reg + ((offset) << 2)))
974 void __iomem *hw_addr; member
/drivers/net/ethernet/chelsio/cxgb/
Dsubr.c1089 u8 hw_addr[6]; in t1_init_sw_modules() local
1113 mac->ops->macaddress_get(mac, hw_addr); in t1_init_sw_modules()
1114 else if (vpd_macaddress_get(adapter, i, hw_addr)) { in t1_init_sw_modules()
1119 memcpy(adapter->port[i].dev->dev_addr, hw_addr, ETH_ALEN); in t1_init_sw_modules()

123