Lines Matching +full:reg +full:- +full:offset
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 1999 - 2006 Intel Corporation. */
22 #define GBE_CONFIG_FLASH_WRITE(base, offset, count, data) \ argument
23 (iowrite16_rep(base + offset, data, count))
25 #define GBE_CONFIG_FLASH_READ(base, offset, count, data) \ argument
26 (ioread16_rep(base + (offset << 1), data, count))
28 #define er32(reg) \ argument
29 (readl(hw->hw_addr + ((hw->mac_type >= e1000_82543) \
30 ? E1000_##reg : E1000_82542_##reg)))
32 #define ew32(reg, value) \ argument
33 (writel((value), (hw->hw_addr + ((hw->mac_type >= e1000_82543) \
34 ? E1000_##reg : E1000_82542_##reg))))
36 #define E1000_WRITE_REG_ARRAY(a, reg, offset, value) ( \ argument
37 writel((value), ((a)->hw_addr + \
38 (((a)->mac_type >= e1000_82543) ? E1000_##reg : E1000_82542_##reg) + \
39 ((offset) << 2))))
41 #define E1000_READ_REG_ARRAY(a, reg, offset) ( \ argument
42 readl((a)->hw_addr + \
43 (((a)->mac_type >= e1000_82543) ? E1000_##reg : E1000_82542_##reg) + \
44 ((offset) << 2)))
49 #define E1000_WRITE_REG_ARRAY_WORD(a, reg, offset, value) ( \ argument
50 writew((value), ((a)->hw_addr + \
51 (((a)->mac_type >= e1000_82543) ? E1000_##reg : E1000_82542_##reg) + \
52 ((offset) << 1))))
54 #define E1000_READ_REG_ARRAY_WORD(a, reg, offset) ( \ argument
55 readw((a)->hw_addr + \
56 (((a)->mac_type >= e1000_82543) ? E1000_##reg : E1000_82542_##reg) + \
57 ((offset) << 1)))
59 #define E1000_WRITE_REG_ARRAY_BYTE(a, reg, offset, value) ( \ argument
60 writeb((value), ((a)->hw_addr + \
61 (((a)->mac_type >= e1000_82543) ? E1000_##reg : E1000_82542_##reg) + \
62 (offset))))
64 #define E1000_READ_REG_ARRAY_BYTE(a, reg, offset) ( \ argument
65 readb((a)->hw_addr + \
66 (((a)->mac_type >= e1000_82543) ? E1000_##reg : E1000_82542_##reg) + \
67 (offset)))
71 #define E1000_WRITE_ICH_FLASH_REG(a, reg, value) ( \ argument
72 writel((value), ((a)->flash_address + reg)))
74 #define E1000_READ_ICH_FLASH_REG(a, reg) ( \ argument
75 readl((a)->flash_address + reg))
77 #define E1000_WRITE_ICH_FLASH_REG16(a, reg, value) ( \ argument
78 writew((value), ((a)->flash_address + reg)))
80 #define E1000_READ_ICH_FLASH_REG16(a, reg) ( \ argument
81 readw((a)->flash_address + reg))