Lines Matching refs:bdb
94 const struct bdb_header *bdb = _bdb; in find_raw_section() local
101 index += bdb->header_size; in find_raw_section()
102 total = bdb->bdb_size; in find_raw_section()
126 static u32 raw_block_offset(const void *bdb, enum bdb_block_id section_id) in raw_block_offset() argument
130 block = find_raw_section(bdb, section_id); in raw_block_offset()
134 return block - bdb; in raw_block_offset()
216 static bool validate_lfp_data_ptrs(const void *bdb, in validate_lfp_data_ptrs() argument
224 data_block = find_raw_section(bdb, BDB_LVDS_LFP_DATA); in validate_lfp_data_ptrs()
310 static bool fixup_lfp_data_ptrs(const void *bdb, void *ptrs_block) in fixup_lfp_data_ptrs() argument
316 offset = raw_block_offset(bdb, BDB_LVDS_LFP_DATA); in fixup_lfp_data_ptrs()
336 return validate_lfp_data_ptrs(bdb, ptrs); in fixup_lfp_data_ptrs()
360 const void *bdb) in generate_lfp_data_ptrs() argument
378 block = find_raw_section(bdb, BDB_LVDS_LFP_DATA); in generate_lfp_data_ptrs()
435 offset = block - bdb; in generate_lfp_data_ptrs()
451 const void *bdb, enum bdb_block_id section_id, in init_bdb_block() argument
459 block = find_raw_section(bdb, section_id); in init_bdb_block()
463 temp_block = generate_lfp_data_ptrs(i915, bdb); in init_bdb_block()
498 !fixup_lfp_data_ptrs(bdb, entry->data + 3)) { in init_bdb_block()
508 const void *bdb) in init_bdb_blocks() argument
519 init_bdb_block(i915, bdb, section_id, min_size); in init_bdb_blocks()
2878 const struct bdb_header *bdb; in intel_bios_is_valid_vbt() local
2908 bdb = get_bdb_header(vbt); in intel_bios_is_valid_vbt()
2909 if (range_overflows_t(size_t, vbt->bdb_offset, bdb->bdb_size, size)) { in intel_bios_is_valid_vbt()
3048 const struct bdb_header *bdb; in intel_bios_init() local
3078 bdb = get_bdb_header(vbt); in intel_bios_init()
3079 i915->display.vbt.version = bdb->version; in intel_bios_init()
3085 init_bdb_blocks(i915, bdb); in intel_bios_init()