Lines Matching refs:reg

88 inline size_t location_to_offset(const pci_location_t state, uint32_t reg) {  in location_to_offset()  argument
97 offset += reg; in location_to_offset()
103 inline int read_config(const pci_location_t state, uint32_t reg, T *value, const uint8_t *ecam_ptr)… in read_config() argument
104 auto off = location_to_offset(state, reg); in read_config()
112 inline int write_config(const pci_location_t state, uint32_t reg, T value, uint8_t *ecam_ptr) { in write_config() argument
113 auto off = location_to_offset(state, reg); in write_config()
120 int pci_ecam::read_config_byte(const pci_location_t state, uint32_t reg, uint8_t *value) { in read_config_byte() argument
121 …LTRACEF_LEVEL(2, "state bus %#hhx dev %#hhx %#hhx reg %#x\n", state.bus, state.dev, state.fn, reg); in read_config_byte()
122 return read_config(state, reg, value, ecam_ptr_); in read_config_byte()
125 int pci_ecam::read_config_half(const pci_location_t state, uint32_t reg, uint16_t *value) { in read_config_half() argument
126 …LTRACEF_LEVEL(2, "state bus %#hhx dev %#hhx %#hhx reg %#x\n", state.bus, state.dev, state.fn, reg); in read_config_half()
127 return read_config(state, reg, value, ecam_ptr_); in read_config_half()
130 int pci_ecam::read_config_word(const pci_location_t state, uint32_t reg, uint32_t *value) { in read_config_word() argument
131 …LTRACEF_LEVEL(2, "state bus %#hhx dev %#hhx %#hhx reg %#x\n", state.bus, state.dev, state.fn, reg); in read_config_word()
132 return read_config(state, reg, value, ecam_ptr_); in read_config_word()
135 int pci_ecam::write_config_byte(const pci_location_t state, uint32_t reg, uint8_t value) { in write_config_byte() argument
136 …LTRACEF_LEVEL(2, "state bus %#hhx dev %#hhx %#hhx reg %#x\n", state.bus, state.dev, state.fn, reg); in write_config_byte()
137 return write_config(state, reg, value, ecam_ptr_); in write_config_byte()
140 int pci_ecam::write_config_half(const pci_location_t state, uint32_t reg, uint16_t value) { in write_config_half() argument
141 …LTRACEF_LEVEL(2, "state bus %#hhx dev %#hhx %#hhx reg %#x\n", state.bus, state.dev, state.fn, reg); in write_config_half()
142 return write_config(state, reg, value, ecam_ptr_); in write_config_half()
145 int pci_ecam::write_config_word(const pci_location_t state, uint32_t reg, uint32_t value) { in write_config_word() argument
146 …LTRACEF_LEVEL(2, "state bus %#hhx dev %#hhx %#hhx reg %#x\n", state.bus, state.dev, state.fn, reg); in write_config_word()
147 return write_config(state, reg, value, ecam_ptr_); in write_config_word()