Home
last modified time | relevance | path

Searched refs:widthInBits (Results 1 – 6 of 6) sorted by relevance

/external/bcc/src/cc/frontends/p4/compiler/
DebpfScalarType.py12 def __init__(self, parent, widthInBits, isSigned, config): argument
14 assert isinstance(widthInBits, int)
16 self.width = widthInBits
19 if widthInBits is P4_AUTO_WIDTH:
22 def widthInBits(self): member in EbpfScalarType
DebpfStructType.py11 def __init__(self, hlirParentType, name, widthInBits, attributes, config): argument
13 self.width = widthInBits
24 self.hlirType, widthInBits, signed, config)
29 def widthInBits(self): member in EbpfField
57 serializer.appendFormat("; /* {0} bits */", field.widthInBits())
73 def widthInBits(self): member in EbpfStructType
DebpfAction.py205 [a.widthInBits() for a in args],
234 [a.widthInBits() for a in args],
253 [a.widthInBits() for a in args],
334 self.width = fieldtype.widthInBits()
345 self.width = fieldtype.widthInBits()
352 self.width = caller.arguments[argument.idx].argtype.widthInBits()
368 self.width = fieldtype.widthInBits()
374 self.width = instancetype.widthInBits()
381 def widthInBits(self): member in ArgInfo
DebpfParser.py71 totalWidth += ebpfField.widthInBits()
79 str(ebpfField.widthInBits()) + ")")
257 width = field.widthInBits()
362 alignment += field.widthInBits()
386 if destField.widthInBits() > 32:
388 bytesToCopy = destField.widthInBits() / 8
389 if destField.widthInBits() % 8 != 0:
DebpfDeparser.py118 alignment += field.widthInBits()
136 width = field.widthInBits()
DebpfTable.py55 size = self.field.widthInBits()