Lines Matching refs:sbh
25 static int sfi_table_check(struct sfi_table_header *sbh) in sfi_table_check() argument
28 char *pos = (char *)sbh; in sfi_table_check()
31 if (sbh->len < SFI_TABLE_LENGTH) in sfi_table_check()
34 if (sbh->len > SFI_LENGTH) in sfi_table_check()
37 for (i = 0; i < sbh->len; i++) in sfi_table_check()
47 static int sfi_table_is_type(struct sfi_table_header *sbh, const char *signature) in sfi_table_is_type() argument
49 return !strncmp(sbh->sig, signature, SFI_SIGNATURE_SIZE) && in sfi_table_is_type()
50 !sfi_table_check(sbh); in sfi_table_is_type()
70 struct sfi_table_header *sbh; in sfi_search_mmap() local
82 sys_entry_cnt = (sb->header.len - sizeof(*sbh)) / 8; in sfi_search_mmap()
86 sbh = (struct sfi_table_header *)(unsigned long)sb->pentry[i]; in sfi_search_mmap()
88 if (sfi_table_is_type(sbh, SFI_SIG_MMAP)) in sfi_search_mmap()
89 return (struct sfi_table_simple *)sbh; in sfi_search_mmap()