Lines Matching refs:bar_access
144 BarAccessMsg *bar_access = &msg->data.bar_access; in process_bar_write() local
146 bar_access->memory ? &address_space_memory : &address_space_io; in process_bar_write()
151 if (!is_power_of_2(bar_access->size) || in process_bar_write()
152 (bar_access->size > sizeof(uint64_t))) { in process_bar_write()
157 val = cpu_to_le64(bar_access->val); in process_bar_write()
159 res = address_space_rw(as, bar_access->addr, MEMTXATTRS_UNSPECIFIED, in process_bar_write()
160 (void *)&val, bar_access->size, true); in process_bar_write()
164 bar_access->addr, getpid()); in process_bar_write()
181 BarAccessMsg *bar_access = &msg->data.bar_access; in process_bar_read() local
187 as = bar_access->memory ? &address_space_memory : &address_space_io; in process_bar_read()
189 if (!is_power_of_2(bar_access->size) || in process_bar_read()
190 (bar_access->size > sizeof(uint64_t))) { in process_bar_read()
195 res = address_space_rw(as, bar_access->addr, MEMTXATTRS_UNSPECIFIED, in process_bar_read()
196 (void *)&val, bar_access->size, false); in process_bar_read()
200 bar_access->addr, getpid()); in process_bar_read()