Lines Matching refs:ptr

36 static void cb_parse_memory(unsigned char *ptr, struct sysinfo_t *info)
38 struct cb_memory *mem = (struct cb_memory *)ptr;
63 static void cb_parse_serial(unsigned char *ptr, struct sysinfo_t *info)
65 struct cb_serial *ser = (struct cb_serial *)ptr;
70 static void cb_parse_vboot_handoff(unsigned char *ptr, struct sysinfo_t *info)
72 struct lb_range *vbho = (struct lb_range *)ptr;
78 static void cb_parse_vbnv(unsigned char *ptr, struct sysinfo_t *info)
80 struct lb_range *vbnv = (struct lb_range *)ptr;
86 static void cb_parse_cbmem_entry(unsigned char *ptr, struct sysinfo_t *info)
88 struct cb_cbmem_entry *entry = (struct cb_cbmem_entry *)ptr;
97 static void cb_parse_gpios(unsigned char *ptr, struct sysinfo_t *info)
100 struct cb_gpios *gpios = (struct cb_gpios *)ptr;
109 static void cb_parse_vdat(unsigned char *ptr, struct sysinfo_t *info)
111 struct lb_range *vdat = (struct lb_range *)ptr;
117 static void cb_parse_mac_addresses(unsigned char *ptr,
120 struct cb_macs *macs = (struct cb_macs *)ptr;
130 static void cb_parse_tstamp(void *ptr, struct sysinfo_t *info)
132 struct cb_cbmem_tab *const cbmem = ptr;
137 static void cb_parse_cbmem_cons(void *ptr, struct sysinfo_t *info)
139 struct cb_cbmem_tab *const cbmem = ptr;
144 static void cb_parse_acpi_gnvs(unsigned char *ptr, struct sysinfo_t *info)
146 struct cb_cbmem_tab *const cbmem = (struct cb_cbmem_tab *)ptr;
151 static void cb_parse_board_id(unsigned char *ptr, struct sysinfo_t *info)
153 struct cb_board_id *const cbbid = (struct cb_board_id *)ptr;
158 static void cb_parse_ram_code(unsigned char *ptr, struct sysinfo_t *info)
160 struct cb_ram_code *const ram_code = (struct cb_ram_code *)ptr;
165 static void cb_parse_optiontable(void *ptr, struct sysinfo_t *info)
167 /* ptr points to a coreboot table entry and is already virtual */
168 info->option_table = ptr;
171 static void cb_parse_checksum(void *ptr, struct sysinfo_t *info)
173 struct cb_cmos_checksum *cmos_cksum = ptr;
180 static void cb_parse_framebuffer(void *ptr, struct sysinfo_t *info)
182 /* ptr points to a coreboot table entry and is already virtual */
183 info->framebuffer = ptr;
186 static void cb_parse_string(unsigned char *ptr, char **info)
188 *info = (char *)((struct cb_string *)ptr)->string;
191 static void cb_parse_wifi_calibration(void *ptr, struct sysinfo_t *info)
193 struct cb_cbmem_tab *const cbmem = (struct cb_cbmem_tab *)ptr;
198 static void cb_parse_ramoops(void *ptr, struct sysinfo_t *info)
200 struct lb_range *ramoops = (struct lb_range *)ptr;
206 static void cb_parse_mtc(void *ptr, struct sysinfo_t *info)
208 struct lb_range *mtc = (struct lb_range *)ptr;
214 static void cb_parse_spi_flash(void *ptr, struct sysinfo_t *info)
216 struct cb_spi_flash *flash = (struct cb_spi_flash *)ptr;
223 static void cb_parse_boot_media_params(unsigned char *ptr,
227 (struct cb_boot_media_params *)ptr;
235 static void cb_parse_vpd(void *ptr, struct sysinfo_t *info)
237 struct cb_cbmem_tab *const cbmem = (struct cb_cbmem_tab *)ptr;
242 static void cb_parse_tsc_info(void *ptr, struct sysinfo_t *info)
244 const struct cb_tsc_info *tsc_info = ptr;
253 static void cb_parse_x86_rom_var_mtrr(void *ptr, struct sysinfo_t *info)
255 struct cb_x86_rom_mtrr *rom_mtrr = ptr;
260 static void cb_parse_mrc_cache(void *ptr, struct sysinfo_t *info)
262 struct cb_cbmem_tab *const cbmem = (struct cb_cbmem_tab *)ptr;
267 static void cb_parse_acpi_rsdp(void *ptr, struct sysinfo_t *info)
269 struct cb_cbmem_tab *const cbmem = (struct cb_cbmem_tab *)ptr;
274 __weak void cb_parse_unhandled(u32 tag, unsigned char *ptr)
280 unsigned char *ptr = addr;
284 header = (struct cb_header *)ptr;
292 if (compute_ip_checksum(ptr + sizeof(*header), header->table_bytes) !=
307 ptr += header->header_bytes;
313 struct cb_record *rec = (struct cb_record *)ptr;
324 cb_parse_memory(ptr, info);
327 cb_parse_serial(ptr, info);
330 cb_parse_string(ptr, &info->cb_version);
333 cb_parse_string(ptr, &info->extra_version);
336 cb_parse_string(ptr, &info->build);
339 cb_parse_string(ptr, &info->compile_time);
342 cb_parse_string(ptr, &info->compile_by);
345 cb_parse_string(ptr, &info->compile_host);
348 cb_parse_string(ptr, &info->compile_domain);
351 cb_parse_string(ptr, &info->compiler);
354 cb_parse_string(ptr, &info->linker);
357 cb_parse_string(ptr, &info->assembler);
360 cb_parse_optiontable(ptr, info);
363 cb_parse_checksum(ptr, info);
370 cb_parse_framebuffer(ptr, info);
373 info->mainboard = (struct cb_mainboard *)ptr;
376 cb_parse_gpios(ptr, info);
379 cb_parse_vdat(ptr, info);
382 cb_parse_vbnv(ptr, info);
385 cb_parse_vboot_handoff(ptr, info);
388 cb_parse_mac_addresses(ptr, info);
391 cb_parse_string(ptr, &info->serialno);
394 cb_parse_tstamp(ptr, info);
397 cb_parse_cbmem_cons(ptr, info);
400 cb_parse_acpi_gnvs(ptr, info);
403 cb_parse_cbmem_entry(ptr, info);
406 cb_parse_board_id(ptr, info);
409 cb_parse_ram_code(ptr, info);
412 cb_parse_wifi_calibration(ptr, info);
415 cb_parse_ramoops(ptr, info);
418 cb_parse_spi_flash(ptr, info);
421 cb_parse_mtc(ptr, info);
424 cb_parse_boot_media_params(ptr, info);
427 cb_parse_tsc_info(ptr, info);
430 cb_parse_vpd(ptr, info);
444 cb_parse_unhandled(rec->tag, ptr);
448 ptr += rec->size;
450 info->table_size += (void *)ptr - (void *)header;