/linux/drivers/net/ethernet/atheros/atlx/ |
H A D | atl1.c | 260 iowrite32(MASTER_CTRL_SOFT_RST, hw->hw_addr + REG_MASTER_CTRL); in atl1_reset_hw() 261 ioread32(hw->hw_addr + REG_MASTER_CTRL); in atl1_reset_hw() 263 iowrite16(1, hw->hw_addr + REG_PHY_ENABLE); in atl1_reset_hw() 264 ioread16(hw->hw_addr + REG_PHY_ENABLE); in atl1_reset_hw() 271 icr = ioread32(hw->hw_addr + REG_IDLE_STATUS); in atl1_reset_hw() 297 value = ioread32(hw->hw_addr + REG_SPI_FLASH_CTRL); in atl1_check_eeprom_exist() 300 iowrite32(value, hw->hw_addr + REG_SPI_FLASH_CTRL); in atl1_check_eeprom_exist() 303 value = ioread16(hw->hw_addr + REG_PCIE_CAP_LIST); in atl1_check_eeprom_exist() 316 iowrite32(0, hw->hw_addr + REG_VPD_DATA); in atl1_read_eeprom() 318 iowrite32(control, hw->hw_addr + REG_VPD_CAP); in atl1_read_eeprom() [all …]
|
H A D | atlx.c | 122 rctl = ioread32(hw->hw_addr + REG_MAC_CTRL); in atlx_set_multi() 131 iowrite32(rctl, hw->hw_addr + REG_MAC_CTRL); in atlx_set_multi() 134 iowrite32(0, hw->hw_addr + REG_RX_HASH_TABLE); in atlx_set_multi() 135 iowrite32(0, (hw->hw_addr + REG_RX_HASH_TABLE) + (1 << 2)); in atlx_set_multi() 147 iowrite32(imr, adapter->hw.hw_addr + REG_IMR); in atlx_imr_set() 148 ioread32(adapter->hw.hw_addr + REG_IMR); in atlx_imr_set() 228 ctrl = ioread32(adapter->hw.hw_addr + REG_MAC_CTRL); in atlx_vlan_mode() 230 iowrite32(ctrl, adapter->hw.hw_addr + REG_MAC_CTRL); in atlx_vlan_mode()
|
H A D | atl2.h | 39 ((a)->hw_addr + (reg)))) 41 #define ATL2_WRITE_FLUSH(a) (ioread32((a)->hw_addr)) 43 #define ATL2_READ_REG(a, reg) (ioread32((a)->hw_addr + (reg))) 46 ((a)->hw_addr + (reg)))) 48 #define ATL2_READ_REGB(a, reg) (ioread8((a)->hw_addr + (reg))) 51 ((a)->hw_addr + (reg)))) 53 #define ATL2_READ_REGW(a, reg) (ioread16((a)->hw_addr + (reg))) 56 (iowrite32((value), (((a)->hw_addr + (reg)) + ((offset) << 2)))) 59 (ioread32(((a)->hw_addr + (reg)) + ((offset) << 2))) 367 u8 __iomem *hw_addr; member
|
/linux/drivers/net/ethernet/intel/e1000/ |
H A 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/drivers/net/ethernet/intel/fm10k/ |
H A 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/drivers/net/ethernet/atheros/atl1c/ |
H A D | atl1c.h | 353 u8 __iomem *hw_addr; /* inner register address */ member 550 writel((value), ((a)->hw_addr + reg))) 553 readl((a)->hw_addr)) 557 readl((a)->hw_addr + reg); \ 558 *(u32 *)pdata = readl((a)->hw_addr + reg); \ 560 *(u32 *)pdata = readl((a)->hw_addr + reg); \ 565 writeb((value), ((a)->hw_addr + reg))) 568 readb((a)->hw_addr + reg)) 571 writew((value), ((a)->hw_addr + reg))) 575 readw((a)->hw_addr + reg); \ [all …]
|
/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_osdep.h | 16 #define wr32(a, reg, value) writel((value), ((a)->hw_addr + (reg))) 17 #define rd32(a, reg) readl((a)->hw_addr + (reg)) 19 #define wr64(a, reg, value) writeq((value), ((a)->hw_addr + (reg))) 20 #define rd64(a, reg) readq((a)->hw_addr + (reg)) 21 #define iavf_flush(a) readl((a)->hw_addr + IAVF_VFGEN_RSTAT)
|
/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_io.h | 10 #define wr32(a, reg, value) writel((value), ((a)->hw_addr + (reg))) 11 #define rd32(a, reg) readl((a)->hw_addr + (reg)) 13 #define rd64(a, reg) readq((a)->hw_addr + (reg)) 14 #define i40e_flush(a) readl((a)->hw_addr + I40E_GLGEN_STAT)
|
/linux/drivers/net/ethernet/intel/idpf/ |
H A D | idpf_mem.h | 15 #define wr32(a, reg, value) writel((value), ((a)->hw_addr + (reg))) 16 #define rd32(a, reg) readl((a)->hw_addr + (reg)) 17 #define wr64(a, reg, value) writeq((value), ((a)->hw_addr + (reg))) 18 #define rd64(a, reg) readq((a)->hw_addr + (reg))
|
/linux/drivers/net/ethernet/atheros/atl1e/ |
H A D | atl1e.h | 302 u8 __iomem *hw_addr; /* inner register address */ member 458 writel((value), ((a)->hw_addr + reg))) 461 readl((a)->hw_addr)) 464 readl((a)->hw_addr + reg)) 467 writeb((value), ((a)->hw_addr + reg))) 470 readb((a)->hw_addr + reg)) 473 writew((value), ((a)->hw_addr + reg))) 476 readw((a)->hw_addr + reg)) 479 writel((value), (((a)->hw_addr + reg) + ((offset) << 2)))) 482 readl(((a)->hw_addr + reg) + ((offset) << 2)))
|
/linux/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-nvm-parse.c | 1298 const u8 *hw_addr; in iwl_flip_hw_address() local 1300 hw_addr = (const u8 *)&mac_addr0; in iwl_flip_hw_address() 1301 dest[0] = hw_addr[3]; in iwl_flip_hw_address() 1302 dest[1] = hw_addr[2]; in iwl_flip_hw_address() 1303 dest[2] = hw_addr[1]; in iwl_flip_hw_address() 1304 dest[3] = hw_addr[0]; in iwl_flip_hw_address() 1306 hw_addr = (const u8 *)&mac_addr1; in iwl_flip_hw_address() 1307 dest[4] = hw_addr[1]; in iwl_flip_hw_address() 1308 dest[5] = hw_addr[0]; in iwl_flip_hw_address() 1319 iwl_flip_hw_address(mac_addr0, mac_addr1, data->hw_addr); in iwl_set_hw_address_from_csr() [all …]
|
/linux/drivers/net/ethernet/intel/igbvf/ |
H A 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/drivers/net/ethernet/intel/ice/devlink/ |
H A D | devlink_port.c | 389 u8 *hw_addr, int *hw_addr_len, in ice_devlink_port_get_vf_fn_mac() argument 394 ether_addr_copy(hw_addr, vf->dev_lan_addr); in ice_devlink_port_get_vf_fn_mac() 411 const u8 *hw_addr, in ice_devlink_port_set_vf_fn_mac() argument 426 return __ice_set_vf_mac(pf, vf_id, hw_addr); in ice_devlink_port_set_vf_fn_mac() 689 ice_devlink_port_fn_hw_addr_set(struct devlink_port *port, const u8 *hw_addr, in ice_devlink_port_fn_hw_addr_set() argument 703 if (hw_addr_len != ETH_ALEN || !is_valid_ether_addr(hw_addr)) { in ice_devlink_port_fn_hw_addr_set() 708 ether_addr_copy(dyn_port->hw_addr, hw_addr); in ice_devlink_port_fn_hw_addr_set() 725 ice_devlink_port_fn_hw_addr_get(struct devlink_port *port, u8 *hw_addr, in ice_devlink_port_fn_hw_addr_get() argument 733 ether_addr_copy(hw_addr, dyn_port->hw_addr); in ice_devlink_port_fn_hw_addr_get() 937 eth_random_addr(dyn_port->hw_addr); in ice_alloc_dynamic_port()
|
/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_hw.h | 147 u32 hw_addr, 161 u32 hw_addr); 177 u32 hw_addr, 193 u32 hw_addr,
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_osdep.h | 22 #define wr32(a, reg, value) writel((value), ((a)->hw_addr + (reg))) 23 #define rd32(a, reg) readl((a)->hw_addr + (reg)) 24 #define wr64(a, reg, value) writeq((value), ((a)->hw_addr + (reg))) 25 #define rd64(a, reg) readq((a)->hw_addr + (reg))
|
/linux/drivers/net/ethernet/atheros/alx/ |
H A 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/drivers/infiniband/hw/irdma/ |
H A D | icrdma_hw.c | 166 u8 __iomem *hw_addr; in icrdma_init_hw() local 169 hw_addr = dev->hw->hw_addr; in icrdma_init_hw() 172 hw_addr = NULL; in icrdma_init_hw() 174 dev->hw_regs[i] = (u32 __iomem *)(hw_addr + icrdma_regs[i]); in icrdma_init_hw()
|
H A D | i40iw_hw.c | 207 u8 __iomem *hw_addr; in i40iw_init_hw() local 210 hw_addr = dev->hw->hw_addr; in i40iw_init_hw() 213 hw_addr = NULL; in i40iw_init_hw() 215 dev->hw_regs[i] = (u32 __iomem *)(i40iw_regs[i] + hw_addr); in i40iw_init_hw()
|
/linux/drivers/net/ethernet/marvell/octeon_ep_vf/ |
H A D | octep_vf_main.h | 50 u8 __iomem *hw_addr; member 306 writel(value, (octep_vf_dev)->mmio.hw_addr + (reg_off)) 309 writeq(val64, (octep_vf_dev)->mmio.hw_addr + (reg_off)) 312 readl((octep_vf_dev)->mmio.hw_addr + (reg_off)) 315 readq((octep_vf_dev)->mmio.hw_addr + (reg_off))
|
H A D | octep_vf_cn9k.c | 185 iq->doorbell_reg = oct->mmio.hw_addr + CN93_VF_SDP_R_IN_INSTR_DBELL(iq_no); in octep_vf_setup_iq_regs_cn93() 186 iq->inst_cnt_reg = oct->mmio.hw_addr + CN93_VF_SDP_R_IN_CNTS(iq_no); in octep_vf_setup_iq_regs_cn93() 187 iq->intr_lvl_reg = oct->mmio.hw_addr + CN93_VF_SDP_R_IN_INT_LEVELS(iq_no); in octep_vf_setup_iq_regs_cn93() 236 oq->pkts_sent_reg = oct->mmio.hw_addr + CN93_VF_SDP_R_OUT_CNTS(oq_no); in octep_vf_setup_oq_regs_cn93() 237 oq->pkts_credit_reg = oct->mmio.hw_addr + CN93_VF_SDP_R_OUT_SLIST_DBELL(oq_no); in octep_vf_setup_oq_regs_cn93() 250 mbox->mbox_read_reg = oct->mmio.hw_addr + CN93_VF_SDP_R_MBOX_PF_VF_DATA(q_no); in octep_vf_setup_mbox_regs_cn93() 253 mbox->mbox_int_reg = oct->mmio.hw_addr + CN93_VF_SDP_R_MBOX_PF_VF_INT(q_no); in octep_vf_setup_mbox_regs_cn93() 256 mbox->mbox_write_reg = oct->mmio.hw_addr + CN93_VF_SDP_R_MBOX_VF_PF_DATA(q_no); in octep_vf_setup_mbox_regs_cn93()
|
/linux/drivers/net/fddi/ |
H A D | defza.c | 319 fza_writes(&hw_addr_purger, &buf->cam.hw_addr[i++], in fza_cmd_send() 320 sizeof(*buf->cam.hw_addr)); in fza_cmd_send() 321 fza_writes(&hw_addr_beacon, &buf->cam.hw_addr[i++], in fza_cmd_send() 322 sizeof(*buf->cam.hw_addr)); in fza_cmd_send() 326 fza_writes(ha->addr, &buf->cam.hw_addr[i++], in fza_cmd_send() 327 sizeof(*buf->cam.hw_addr)); in fza_cmd_send() 330 fza_zeros(&buf->cam.hw_addr[i++], in fza_cmd_send() 331 sizeof(*buf->cam.hw_addr)); in fza_cmd_send() 1292 uint hw_addr[2]; in fza_probe() local 1382 fza_reads(&init->hw_addr, &hw_addr, sizeof(hw_addr)); in fza_probe() [all …]
|
/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_regs.h | 335 u8 __iomem *hw_addr = READ_ONCE((hw)->hw_addr); \ 336 if (!IGC_REMOVED(hw_addr)) \ 337 writel((val), &hw_addr[(reg)]); \
|
/linux/Documentation/networking/devlink/ |
H A D | devlink-port.rst | 122 `devlink port function set hw_addr` command. For Ethernet port function 153 hw_addr 00:00:00:00:00:00 157 $ devlink port function set pci/0000:06:00.0/2 hw_addr 00:11:22:33:44:55 162 hw_addr 00:11:22:33:44:55 169 hw_addr 00:00:00:00:00:00 173 $ devlink port function set pci/0000:06:00.0/32768 hw_addr 00:00:00:00:88:88 178 hw_addr 00:00:00:00:88:88 198 hw_addr 00:00:00:00:00:00 roce enable 207 hw_addr 00:00:00:00:00:00 roce disable 231 hw_addr 00:00:00:00:00:00 migratable disable [all …]
|
/linux/drivers/net/ethernet/marvell/octeon_ep/ |
H A D | octep_main.h | 65 u8 __iomem *hw_addr; member 337 writel(value, (octep_dev)->mmio[0].hw_addr + (reg_off)) 340 writeq(val64, (octep_dev)->mmio[0].hw_addr + (reg_off)) 343 readl((octep_dev)->mmio[0].hw_addr + (reg_off)) 346 readq((octep_dev)->mmio[0].hw_addr + (reg_off))
|
/linux/drivers/crypto/cavium/cpt/ |
H A D | cpt_common.h | 143 static inline void cpt_write_csr64(u8 __iomem *hw_addr, u64 offset, in cpt_write_csr64() argument 146 writeq(val, hw_addr + offset); in cpt_write_csr64() 149 static inline u64 cpt_read_csr64(u8 __iomem *hw_addr, u64 offset) in cpt_read_csr64() argument 151 return readq(hw_addr + offset); in cpt_read_csr64()
|