Lines Matching defs:fields
284 def fields(self) -> t.List[Field]:
287 fields = []
290 fields += child.fields
292 fields.append(child)
294 return fields
324 for field in (f for f in self.fields if f.default is not None):
350 for field in (f for f in self.fields if f.defines):
365 group = Group(0, 1, self.size, self.fields)
382 group = Group(0, 1, self.size, self.fields)
448 raise RuntimeError("Only address fields can have a shift attribute. Field: '%s'" % self.name)
558 def fields(self) -> t.List[Field]:
560 # child nodes have been added and then cache the fields in here on the
565 fields = []
569 fields += child.fields
571 fields.append(child)
574 fields += self._child_branch.fields
576 return fields
677 __slots__ = ["start", "count", "size", "fields"]
682 fields: t.List[Field]
684 def __init__(self, start: int, count: int, size: int, fields) -> None:
688 self.fields = fields
691 __slots__ = ["size", "fields", "addresses"]
694 fields: t.List[Field]
699 self.fields = []
703 for field in self.fields:
711 dwords[index].fields.append(clone)
718 # handle are where multiple fields are in a 64 bit word (typically
723 dwords[index].fields.extend(dwords[index + 1].fields)
765 if len(dw.fields) == 1:
766 field = dw.fields[0]
773 # Pack any fields of struct type first so we have integer values
774 # to the dword for those fields.
776 for field in dw.fields:
791 elif len(dw.fields) > address_count:
799 for field in dw.fields:
853 if len(dw.fields) > address_count:
880 if len(dw.fields) == 1:
881 field = dw.fields[0]
898 # Unpack any fields of struct type first.
899 for field_index, field in enumerate(f for f in dw.fields if root.is_known_struct(f.type)):
907 for field in dw.fields: