Home | History | Annotate | Download | only in smbios

Lines Matching refs:offset

42  * @v offset		Offset to start of strings
43 * @ret offset Offset to strings terminator, or 0 if not found
45 static size_t find_strings_terminator ( size_t offset ) {
49 for ( ; offset <= max_offset ; offset++ ) {
50 copy_from_user ( &nulnul, smbios.address, offset, 2 );
52 return ( offset + 1 );
67 size_t offset = 0;
79 while ( ( ( offset + sizeof ( structure->header ) ) < smbios.len )
83 copy_from_user ( &structure->header, smbios.address, offset,
87 strings_offset = ( offset + structure->header.len );
89 DBG ( "SMBIOS structure at offset %zx with length "
90 "%x extends beyond SMBIOS\n", offset,
96 DBG ( "SMBIOS structure at offset %zx has "
97 "unterminated strings section\n", offset );
102 DBG ( "SMBIOS structure at offset %zx has type %d, length %x, "
103 "strings length %zx\n", offset, structure->header.type,
108 structure->offset = offset;
113 offset = ( terminator_offset + 1 );
136 copy_from_user ( data, smbios.address, structure->offset, len );
151 size_t strings_start = ( structure->offset + structure->header.len );
153 size_t offset;
162 for ( offset = strings_start ; offset < strings_end ;
163 offset += ( string_len + 1 ) ) {
168 string_len = strlen_user ( smbios.address, offset );
173 copy_from_user ( data, smbios.address, offset, len );