Lines Matching refs:start
102 if str(attrs["start"]).endswith("b"):
103 self.start = int(attrs["start"][:-1]) * 8
105 self.start = int(attrs["start"])
106 # packet <field> entries in XML start from the bit after the
110 self.start += 8
112 self.end = self.start + int(attrs["size"]) - 1
115 if self.type == 'bool' and self.start != self.end:
157 elif self.type == 'uint' and self.end - self.start > 32:
182 return self != field and max(self.start, field.start) <= min(self.end, field.end)
186 def __init__(self, parser, parent, start, count):
189 self.start = start
214 first_byte = field.start // 8
227 def emit_pack_function(self, start):
265 if field.type in ["float", "uint", "int"] and field.start % 8 == 0 and field.end - field.start == 31 and not field.minus_one:
270 assert(field.start == index * 8)
287 start = field.start
289 field_byte_start = (field.start // 8) * 8
290 start -= field_byte_start
300 (start, end)
302 extra_shift = (31 - (end - start)) // 8 * 8
306 (value, start, end)
309 (value, start, end)
312 (value, start, end)
315 (value, start, end)
320 (value, start, end)
323 (value, start, end)
326 (value, start, end, field.fractional_size)
329 (value, start, end, field.fractional_size)
332 (index, field_index, start, end)
352 def emit_unpack_function(self, start):
359 args.append(str(start + field.start))
360 args.append(str(start + field.end))
453 # start from bit 0 after of the opcode.
458 "start" : -8,