Lines Matching refs:fw_cfg

28     QFWCFG *fw_cfg;  in test_fw_cfg_signature()  local
33 fw_cfg = pc_fw_cfg_init(s); in test_fw_cfg_signature()
35 qfw_cfg_get(fw_cfg, FW_CFG_SIGNATURE, buf, 4); in test_fw_cfg_signature()
39 pc_fw_cfg_uninit(fw_cfg); in test_fw_cfg_signature()
45 QFWCFG *fw_cfg; in test_fw_cfg_id() local
50 fw_cfg = pc_fw_cfg_init(s); in test_fw_cfg_id()
52 id = qfw_cfg_get_u32(fw_cfg, FW_CFG_ID); in test_fw_cfg_id()
55 pc_fw_cfg_uninit(fw_cfg); in test_fw_cfg_id()
61 QFWCFG *fw_cfg; in test_fw_cfg_uuid() local
71 fw_cfg = pc_fw_cfg_init(s); in test_fw_cfg_uuid()
73 qfw_cfg_get(fw_cfg, FW_CFG_UUID, buf, 16); in test_fw_cfg_uuid()
76 pc_fw_cfg_uninit(fw_cfg); in test_fw_cfg_uuid()
83 QFWCFG *fw_cfg; in test_fw_cfg_ram_size() local
87 fw_cfg = pc_fw_cfg_init(s); in test_fw_cfg_ram_size()
89 g_assert_cmpint(qfw_cfg_get_u64(fw_cfg, FW_CFG_RAM_SIZE), ==, ram_size); in test_fw_cfg_ram_size()
91 pc_fw_cfg_uninit(fw_cfg); in test_fw_cfg_ram_size()
97 QFWCFG *fw_cfg; in test_fw_cfg_nographic() local
101 fw_cfg = pc_fw_cfg_init(s); in test_fw_cfg_nographic()
103 g_assert_cmpint(qfw_cfg_get_u16(fw_cfg, FW_CFG_NOGRAPHIC), ==, 0); in test_fw_cfg_nographic()
105 pc_fw_cfg_uninit(fw_cfg); in test_fw_cfg_nographic()
111 QFWCFG *fw_cfg; in test_fw_cfg_nb_cpus() local
115 fw_cfg = pc_fw_cfg_init(s); in test_fw_cfg_nb_cpus()
117 g_assert_cmpint(qfw_cfg_get_u16(fw_cfg, FW_CFG_NB_CPUS), ==, nb_cpus); in test_fw_cfg_nb_cpus()
119 pc_fw_cfg_uninit(fw_cfg); in test_fw_cfg_nb_cpus()
125 QFWCFG *fw_cfg; in test_fw_cfg_max_cpus() local
129 fw_cfg = pc_fw_cfg_init(s); in test_fw_cfg_max_cpus()
131 g_assert_cmpint(qfw_cfg_get_u16(fw_cfg, FW_CFG_MAX_CPUS), ==, max_cpus); in test_fw_cfg_max_cpus()
132 pc_fw_cfg_uninit(fw_cfg); in test_fw_cfg_max_cpus()
138 QFWCFG *fw_cfg; in test_fw_cfg_numa() local
144 fw_cfg = pc_fw_cfg_init(s); in test_fw_cfg_numa()
146 g_assert_cmpint(qfw_cfg_get_u64(fw_cfg, FW_CFG_NUMA), ==, nb_nodes); in test_fw_cfg_numa()
151 qfw_cfg_read_data(fw_cfg, cpu_mask, sizeof(uint64_t) * max_cpus); in test_fw_cfg_numa()
152 qfw_cfg_read_data(fw_cfg, node_mask, sizeof(uint64_t) * nb_nodes); in test_fw_cfg_numa()
161 pc_fw_cfg_uninit(fw_cfg); in test_fw_cfg_numa()
167 QFWCFG *fw_cfg; in test_fw_cfg_boot_menu() local
171 fw_cfg = pc_fw_cfg_init(s); in test_fw_cfg_boot_menu()
173 g_assert_cmpint(qfw_cfg_get_u16(fw_cfg, FW_CFG_BOOT_MENU), ==, boot_menu); in test_fw_cfg_boot_menu()
174 pc_fw_cfg_uninit(fw_cfg); in test_fw_cfg_boot_menu()
180 QFWCFG *fw_cfg; in test_fw_cfg_reboot_timeout() local
186 fw_cfg = pc_fw_cfg_init(s); in test_fw_cfg_reboot_timeout()
188 filesize = qfw_cfg_get_file(fw_cfg, "etc/boot-fail-wait", in test_fw_cfg_reboot_timeout()
193 pc_fw_cfg_uninit(fw_cfg); in test_fw_cfg_reboot_timeout()
199 QFWCFG *fw_cfg; in test_fw_cfg_no_reboot_timeout() local
206 fw_cfg = pc_fw_cfg_init(s); in test_fw_cfg_no_reboot_timeout()
208 filesize = qfw_cfg_get_file(fw_cfg, "etc/boot-fail-wait", in test_fw_cfg_no_reboot_timeout()
213 pc_fw_cfg_uninit(fw_cfg); in test_fw_cfg_no_reboot_timeout()
219 QFWCFG *fw_cfg; in test_fw_cfg_splash_time() local
225 fw_cfg = pc_fw_cfg_init(s); in test_fw_cfg_splash_time()
227 filesize = qfw_cfg_get_file(fw_cfg, "etc/boot-menu-wait", in test_fw_cfg_splash_time()
232 pc_fw_cfg_uninit(fw_cfg); in test_fw_cfg_splash_time()