Lines Matching refs:opaque

104 static uint32_t fw_cfg_io_readb(void *opaque, uint32_t addr)
106 return fw_cfg_read(opaque);
109 static void fw_cfg_io_writeb(void *opaque, uint32_t addr, uint32_t value)
111 fw_cfg_write(opaque, (uint8_t)value);
114 static void fw_cfg_io_writew(void *opaque, uint32_t addr, uint32_t value)
116 fw_cfg_select(opaque, (uint16_t)value);
119 static uint32_t fw_cfg_mem_readb(void *opaque, target_phys_addr_t addr)
121 return fw_cfg_read(opaque);
124 static void fw_cfg_mem_writeb(void *opaque, target_phys_addr_t addr,
127 fw_cfg_write(opaque, (uint8_t)value);
130 static void fw_cfg_mem_writew(void *opaque, target_phys_addr_t addr,
133 fw_cfg_select(opaque, (uint16_t)value);
160 static void fw_cfg_reset(void *opaque)
162 FWCfgState *s = opaque;
167 static void fw_cfg_save(QEMUFile *f, void *opaque)
169 FWCfgState *s = opaque;
175 static int fw_cfg_load(QEMUFile *f, void *opaque, int version_id)
177 FWCfgState *s = opaque;
188 int fw_cfg_add_bytes(void *opaque, uint16_t key, uint8_t *data, uint16_t len)
190 FWCfgState *s = opaque;
204 int fw_cfg_add_i16(void *opaque, uint16_t key, uint16_t value)
210 return fw_cfg_add_bytes(opaque, key, (uint8_t *)copy, sizeof(value));
213 int fw_cfg_add_i32(void *opaque, uint16_t key, uint32_t value)
219 return fw_cfg_add_bytes(opaque, key, (uint8_t *)copy, sizeof(value));
222 int fw_cfg_add_i64(void *opaque, uint16_t key, uint64_t value)
228 return fw_cfg_add_bytes(opaque, key, (uint8_t *)copy, sizeof(value));
231 int fw_cfg_add_callback(void *opaque, uint16_t key, FWCfgCallback callback,
234 FWCfgState *s = opaque;