Lines Matching full:model
17 """Holds information about the microcode for a particular model of CPU.
22 model: Model code string (this is cpuid(1).eax, e.g. '206a7')
35 # The model is in the 4rd hex word
36 self.model = '%x' % self.words[3]
121 def List(date, microcodes, model):
127 model: Model string to search for, or None
130 if model:
131 mcode_list, tried = FindMicrocode(microcodes, model.lower())
137 print '%-20s: model %s' % (mcode.name, mcode.model)
139 def FindMicrocode(microcodes, model):
140 """Find all the microcode chunks which match the given model.
142 This model is something like 306a9 (the value returned in eax from
147 If the model name is ambiguous we return a list of matches.
151 model: String containing model name to find
158 mcode = microcodes.get(model)
165 abbrev = model[:-i] if i else model
168 if mcode.model.startswith(abbrev):
252 parser.add_option('-m', '--model', type='string', action='store',
253 help="Model name to extract ('all' for all)")
263 create Create microcode .dtsi file for a model
290 List(date, microcodes, options.model)
294 if not options.model:
295 parser.error('You must specify a model to create')
296 model = options.model.lower()
297 if options.model == 'all':
302 mcode_list, tried = FindMicrocode(microcodes, model)
304 parser.error("Unknown model '%s' (%s) - try 'list' to list" %
305 (model, ', '.join(tried)))
307 parser.error("Ambiguous model '%s' (%s) matched %s - try 'list' "
309 (model, ', '.join(tried),