Lines Matching full:model
18 """Holds information about the microcode for a particular model of CPU.
23 model: Model code string (this is cpuid(1).eax, e.g. '206a7')
36 # The model is in the 4rd hex word
37 self.model = '%x' % self.words[3]
122 def List(date, microcodes, model):
128 model: Model string to search for, or None
131 if model:
132 mcode_list, tried = FindMicrocode(microcodes, model.lower())
138 print '%-20s: model %s' % (mcode.name, mcode.model)
140 def FindMicrocode(microcodes, model):
141 """Find all the microcode chunks which match the given model.
143 This model is something like 306a9 (the value returned in eax from
148 If the model name is ambiguous we return a list of matches.
152 model: String containing model name to find
159 mcode = microcodes.get(model)
166 abbrev = model[:-i] if i else model
169 if mcode.model.startswith(abbrev):
253 parser.add_option('-m', '--model', type='string', action='store',
254 help="Model name to extract ('all' for all)")
264 create Create microcode .dtsi file for a model
291 List(date, microcodes, options.model)
295 if not options.model:
296 parser.error('You must specify a model to create')
297 model = options.model.lower()
298 if options.model == 'all':
303 mcode_list, tried = FindMicrocode(microcodes, model)
305 parser.error("Unknown model '%s' (%s) - try 'list' to list" %
306 (model, ', '.join(tried)))
308 parser.error("Ambiguous model '%s' (%s) matched %s - try 'list' "
310 (model, ', '.join(tried),