/Linux-v4.19/drivers/net/ethernet/intel/e1000/ |
D | e1000_osdep.h | 29 (readl(hw->hw_addr + ((hw->mac_type >= e1000_82543) \ 33 (writel((value), (hw->hw_addr + ((hw->mac_type >= e1000_82543) \ 37 writel((value), ((a)->hw_addr + \ 42 readl((a)->hw_addr + \ 50 writew((value), ((a)->hw_addr + \ 55 readw((a)->hw_addr + \ 60 writeb((value), ((a)->hw_addr + \ 65 readb((a)->hw_addr + \
|
/Linux-v4.19/drivers/net/ethernet/atheros/atlx/ |
D | atl1.c | 279 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 …]
|
D | atlx.c | 135 rctl = ioread32(hw->hw_addr + REG_MAC_CTRL); in atlx_set_multi() 144 iowrite32(rctl, hw->hw_addr + REG_MAC_CTRL); in atlx_set_multi() 147 iowrite32(0, hw->hw_addr + REG_RX_HASH_TABLE); in atlx_set_multi() 148 iowrite32(0, (hw->hw_addr + REG_RX_HASH_TABLE) + (1 << 2)); in atlx_set_multi() 160 iowrite32(imr, adapter->hw.hw_addr + REG_IMR); in atlx_imr_set() 161 ioread32(adapter->hw.hw_addr + REG_IMR); in atlx_imr_set() 241 ctrl = ioread32(adapter->hw.hw_addr + REG_MAC_CTRL); in atlx_vlan_mode() 243 iowrite32(ctrl, adapter->hw.hw_addr + REG_MAC_CTRL); in atlx_vlan_mode()
|
D | atl2.h | 52 ((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))) 380 u8 __iomem *hw_addr; member
|
/Linux-v4.19/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_common.h | 9 #define FM10K_REMOVED(hw_addr) unlikely(!(hw_addr)) argument 20 u32 __iomem *hw_addr = READ_ONCE((hw)->hw_addr); \ 21 if (!FM10K_REMOVED(hw_addr)) \ 22 writel((val), &hw_addr[(reg)]); \
|
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-nvm-parse.c | 674 const u8 *hw_addr; in iwl_flip_hw_address() local 676 hw_addr = (const u8 *)&mac_addr0; in iwl_flip_hw_address() 677 dest[0] = hw_addr[3]; in iwl_flip_hw_address() 678 dest[1] = hw_addr[2]; in iwl_flip_hw_address() 679 dest[2] = hw_addr[1]; in iwl_flip_hw_address() 680 dest[3] = hw_addr[0]; in iwl_flip_hw_address() 682 hw_addr = (const u8 *)&mac_addr1; in iwl_flip_hw_address() 683 dest[4] = hw_addr[1]; in iwl_flip_hw_address() 684 dest[5] = hw_addr[0]; in iwl_flip_hw_address() 697 iwl_flip_hw_address(mac_addr0, mac_addr1, data->hw_addr); in iwl_set_hw_address_from_csr() [all …]
|
/Linux-v4.19/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c.h | 368 u8 __iomem *hw_addr; /* inner register address */ member 560 writel((value), ((a)->hw_addr + reg))) 563 readl((a)->hw_addr)) 567 readl((a)->hw_addr + reg); \ 568 *(u32 *)pdata = readl((a)->hw_addr + reg); \ 570 *(u32 *)pdata = readl((a)->hw_addr + reg); \ 575 writeb((value), ((a)->hw_addr + reg))) 578 readb((a)->hw_addr + reg)) 581 writew((value), ((a)->hw_addr + reg))) 585 readw((a)->hw_addr + reg); \ [all …]
|
/Linux-v4.19/drivers/net/ethernet/intel/i40evf/ |
D | i40e_osdep.h | 22 #define wr32(a, reg, value) writel((value), ((a)->hw_addr + (reg))) 23 #define rd32(a, reg) readl((a)->hw_addr + (reg)) 25 #define wr64(a, reg, value) writeq((value), ((a)->hw_addr + (reg))) 26 #define rd64(a, reg) readq((a)->hw_addr + (reg)) 27 #define i40e_flush(a) readl((a)->hw_addr + I40E_VFGEN_RSTAT)
|
/Linux-v4.19/drivers/net/ethernet/intel/i40e/ |
D | i40e_osdep.h | 23 #define wr32(a, reg, value) writel((value), ((a)->hw_addr + (reg))) 24 #define rd32(a, reg) readl((a)->hw_addr + (reg)) 26 #define wr64(a, reg, value) writeq((value), ((a)->hw_addr + (reg))) 27 #define rd64(a, reg) readq((a)->hw_addr + (reg)) 28 #define i40e_flush(a) readl((a)->hw_addr + I40E_GLGEN_STAT)
|
/Linux-v4.19/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_osdep.h | 24 writel((value), ((a)->hw_addr + IXGB_##reg))) 27 readl((a)->hw_addr + IXGB_##reg)) 30 writel((value), ((a)->hw_addr + IXGB_##reg + ((offset) << 2)))) 33 readl((a)->hw_addr + IXGB_##reg + ((offset) << 2)))
|
/Linux-v4.19/drivers/net/ethernet/micrel/ |
D | ks8842.c | 163 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 …]
|
/Linux-v4.19/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e.h | 315 u8 __iomem *hw_addr; /* inner register address */ member 471 writel((value), ((a)->hw_addr + reg))) 474 readl((a)->hw_addr)) 477 readl((a)->hw_addr + reg)) 480 writeb((value), ((a)->hw_addr + reg))) 483 readb((a)->hw_addr + reg)) 486 writew((value), ((a)->hw_addr + reg))) 489 readw((a)->hw_addr + reg)) 492 writel((value), (((a)->hw_addr + reg) + ((offset) << 2)))) 495 readl(((a)->hw_addr + reg) + ((offset) << 2)))
|
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/ |
D | qed_hw.c | 191 struct qed_ptt *p_ptt, u32 hw_addr) in qed_set_ptt() argument 196 offset = hw_addr - win_hw_addr; in qed_set_ptt() 204 if (hw_addr < win_hw_addr || in qed_set_ptt() 206 qed_ptt_set_win(p_hwfn, p_ptt, hw_addr); in qed_set_ptt() 227 u32 hw_addr, u32 val) in qed_wr() argument 229 u32 bar_addr = qed_set_ptt(p_hwfn, p_ptt, hw_addr); in qed_wr() 234 bar_addr, hw_addr, val); in qed_wr() 239 u32 hw_addr) in qed_rd() argument 241 u32 bar_addr = qed_set_ptt(p_hwfn, p_ptt, hw_addr); in qed_rd() 246 bar_addr, hw_addr, val); in qed_rd() [all …]
|
D | qed_hw.h | 164 u32 hw_addr, 177 u32 hw_addr); 192 u32 hw_addr, 207 u32 hw_addr,
|
/Linux-v4.19/drivers/gpu/drm/via/ |
D | via_dma.c | 85 uint32_t hw_addr = *(dev_priv->hw_addr_ptr) - agp_base; in via_cmdbuf_space() local 87 return ((hw_addr <= dev_priv->dma_low) ? in via_cmdbuf_space() 88 (dev_priv->dma_high + hw_addr - dev_priv->dma_low) : in via_cmdbuf_space() 89 (hw_addr - dev_priv->dma_low)); in via_cmdbuf_space() 99 uint32_t hw_addr = *(dev_priv->hw_addr_ptr) - agp_base; in via_cmdbuf_lag() local 101 return ((hw_addr <= dev_priv->dma_low) ? in via_cmdbuf_lag() 102 (dev_priv->dma_low - hw_addr) : in via_cmdbuf_lag() 103 (dev_priv->dma_wrap + dev_priv->dma_low - hw_addr)); in via_cmdbuf_lag() 114 uint32_t cur_addr, hw_addr, next_addr; in via_cmdbuf_wait() local 122 hw_addr = *hw_addr_ptr - agp_base; in via_cmdbuf_wait() [all …]
|
/Linux-v4.19/drivers/net/ethernet/intel/igbvf/ |
D | regs.h | 76 #define er32(reg) readl(hw->hw_addr + E1000_##reg) 77 #define ew32(reg, val) writel((val), hw->hw_addr + E1000_##reg) 79 readl(hw->hw_addr + E1000_##reg + (offset << 2)) 81 writel((val), hw->hw_addr + E1000_##reg + (offset << 2))
|
/Linux-v4.19/drivers/net/ethernet/intel/ice/ |
D | ice_osdep.h | 13 #define wr32(a, reg, value) writel((value), ((a)->hw_addr + (reg))) 14 #define rd32(a, reg) readl((a)->hw_addr + (reg)) 15 #define wr64(a, reg, value) writeq((value), ((a)->hw_addr + (reg))) 16 #define rd64(a, reg) readq((a)->hw_addr + (reg))
|
/Linux-v4.19/drivers/net/ethernet/atheros/alx/ |
D | hw.h | 466 u8 __iomem *hw_addr; member 518 writeb(val, hw->hw_addr + reg); in alx_write_mem8() 523 writew(val, hw->hw_addr + reg); in alx_write_mem16() 528 return readw(hw->hw_addr + reg); in alx_read_mem16() 533 writel(val, hw->hw_addr + reg); in alx_write_mem32() 538 return readl(hw->hw_addr + reg); in alx_read_mem32() 543 readl(hw->hw_addr); in alx_post_write()
|
/Linux-v4.19/drivers/crypto/cavium/cpt/ |
D | cpt_common.h | 146 static inline void cpt_write_csr64(u8 __iomem *hw_addr, u64 offset, in cpt_write_csr64() argument 149 writeq(val, hw_addr + offset); in cpt_write_csr64() 152 static inline u64 cpt_read_csr64(u8 __iomem *hw_addr, u64 offset) in cpt_read_csr64() argument 154 return readq(hw_addr + offset); in cpt_read_csr64()
|
/Linux-v4.19/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_main.h | 94 iounmap(oct->mmio[baridx].hw_addr); in octeon_unmap_pci_barx() 127 oct->mmio[baridx].hw_addr = in octeon_map_pci_barx() 135 if (!oct->mmio[baridx].hw_addr) { in octeon_map_pci_barx()
|
D | cn23xx_vf_device.c | 121 inst_cnt_reg = (u8 *)oct->mmio[0].hw_addr + in cn23xx_vf_setup_global_input_regs() 226 (u8 *)oct->mmio[0].hw_addr + CN23XX_VF_SLI_IQ_DOORBELL(iq_no); in cn23xx_setup_vf_iq_regs() 228 (u8 *)oct->mmio[0].hw_addr + CN23XX_VF_SLI_IQ_INSTR_COUNT64(iq_no); in cn23xx_setup_vf_iq_regs() 258 (u8 *)oct->mmio[0].hw_addr + CN23XX_VF_SLI_OQ_PKTS_SENT(oq_no); in cn23xx_setup_vf_oq_regs() 260 (u8 *)oct->mmio[0].hw_addr + CN23XX_VF_SLI_OQ_PKTS_CREDIT(oq_no); in cn23xx_setup_vf_oq_regs() 298 (u8 *)oct->mmio[0].hw_addr + CN23XX_VF_SLI_PKT_MBOX_INT(0); in cn23xx_setup_vf_mbox() 301 (u8 *)oct->mmio[0].hw_addr + CN23XX_SLI_PKT_PF_VF_MBOX_SIG(0, 0); in cn23xx_setup_vf_mbox() 304 (u8 *)oct->mmio[0].hw_addr + CN23XX_SLI_PKT_PF_VF_MBOX_SIG(0, 1); in cn23xx_setup_vf_mbox()
|
D | octeon_device.h | 179 u8 __iomem *hw_addr; member 746 writel(value, (oct_dev)->mmio[0].hw_addr + (reg_off)) 749 writeq(val64, (oct_dev)->mmio[0].hw_addr + (reg_off)) 752 readl((oct_dev)->mmio[0].hw_addr + (reg_off)) 755 readq((oct_dev)->mmio[0].hw_addr + (reg_off))
|
/Linux-v4.19/drivers/staging/comedi/drivers/ |
D | comedi_isadma.c | 28 set_dma_addr(desc->chan, desc->hw_addr); in comedi_isadma_program() 196 &desc->hw_addr, in comedi_isadma_alloc() 229 desc->hw_addr); in comedi_isadma_free()
|
/Linux-v4.19/drivers/net/ethernet/intel/igb/ |
D | e1000_regs.h | 358 u8 __iomem *hw_addr = READ_ONCE((hw)->hw_addr); \ 359 if (!E1000_REMOVED(hw_addr)) \ 360 writel((val), &hw_addr[(reg)]); \
|
/Linux-v4.19/include/linux/ |
D | logic_pio.h | 118 resource_size_t hw_addr, resource_size_t size); 121 unsigned long logic_pio_trans_cpuaddr(resource_size_t hw_addr);
|