Lines Matching refs:vnd
47 def vendor(self, vnd): argument
48 return self.vnd2vendor.get(vnd, UNKNOWN_VENDOR)
50 def bindings(self, vnd, default=None): argument
51 return self.vnd2bindings.get(vnd, default)
53 def target(self, vnd): argument
55 vnd, self.vnd2ref_target[(UNKNOWN_VENDOR,)])
103 vnd = compatible_vnd(binding.compatible)
104 if vnd is None:
106 elif vnd in self.vnd2vendor:
107 unsorted[vnd].append(binding)
112 def vnd_key(vnd): argument
113 return self.vnd2vendor[vnd].casefold()
130 for vnd in sorted(unsorted, key=vnd_key):
131 vnd2bindings[vnd] = sorted(unsorted[vnd], key=binding_key)
151 for vnd in self.vnd2bindings:
152 if vnd is None:
153 vnd2ref_target[vnd] = 'dt_no_vendor'
154 elif isinstance(vnd, str):
155 vnd2ref_target[vnd] = f'dt_vendor_{vnd}'
157 assert vnd == (UNKNOWN_VENDOR,), vnd
158 vnd2ref_target[vnd] = 'dt_unknown_vendor'
383 for vnd, bindings in vnd_lookup.vnd2bindings.items():
412 for vnd, bindings in vnd_lookup.vnd2bindings.items():
413 if isinstance(vnd, tuple):
414 title = vnd[0]
416 title = vnd_lookup.vendor(vnd).strip()
417 if isinstance(vnd, str):
551 vnd = compatible_vnd(compatible)