Lines Matching refs:encode
32 # should contain enough information to re-encode it again.)
44 # ... encode field A ...
45 # ... encode field B ...
51 # ... encode field C ...
53 # ... encode field C ...
63 # by an override, so the exact choice to encode a given field
100 # to the ones which are directly used to encode the
134 if bitset.encode is not None:
135 for name, val in bitset.encode.forced.items():
205 return bitset.encode.case_prefix + name.upper().replace('.', '_').replace('-', '_').replace('#', '')
209 if root.encode is None:
231 if bitset.encode is not None:
232 if name in bitset.encode.maps:
233 return bitset.encode.maps[name]
244 print('WARNING: no encode mapping for {}.{}'.format(bitset.name, name))
255 # for an expr, we need to encode the field so we end up with an
270 extr = 'encode' + isa.roots[field.type].get_c_name() + '(s, ' + p + ', ' + extr + ')'
291 if bitset.encode is not None:
292 if bitset.encode.type is not None:
293 return bitset.encode.type
397 static bitmask_t encode${root.get_c_name()}(struct encode_state *s, struct bitset_params *p, ${root.encode.type} src);
425 ${s.expr_name(leaf.get_root(), expr)}(struct encode_state *s, struct bitset_params *p, ${leaf.get_root().encode.type} src)
475 ${snippet_name}(struct encode_state *s, struct bitset_params *p, ${root.encode.type} src)
486 encode${root.get_c_name()}(struct encode_state *s, struct bitset_params *p, ${root.encode.type} src)
488 % if root.encode.case_prefix is not None:
506 mesa_loge("Unhandled ${root.name} encode case: 0x%x\\n", ${root.get_c_name()}_case(s, src));
576 bitmask_t tmp = encode${isa.roots[f.field.type].get_c_name()}(s, &bp, ${s.extractor(leaf, f.field.name)});