Lines Matching refs:cur_entry
51 uint16_t cur_entry; member
57 int arch = !!(s->cur_entry & FW_CFG_ARCH_LOCAL); in fw_cfg_write()
58 FWCfgEntry *e = &s->entries[arch][s->cur_entry & FW_CFG_ENTRY_MASK]; in fw_cfg_write()
62 if (s->cur_entry & FW_CFG_WRITE_CHANNEL && s->cur_offset < e->len) { in fw_cfg_write()
77 s->cur_entry = FW_CFG_INVALID; in fw_cfg_select()
80 s->cur_entry = key; in fw_cfg_select()
91 int arch = !!(s->cur_entry & FW_CFG_ARCH_LOCAL); in fw_cfg_read()
92 FWCfgEntry *e = &s->entries[arch][s->cur_entry & FW_CFG_ENTRY_MASK]; in fw_cfg_read()
95 if (s->cur_entry == FW_CFG_INVALID || !e->data || s->cur_offset >= e->len) in fw_cfg_read()
172 qemu_put_be16s(f, &s->cur_entry); in fw_cfg_save()
183 qemu_get_be16s(f, &s->cur_entry); in fw_cfg_load()