Lines Matching refs:index
382 index = (start + field.start) // 32
383 if not index in dwords:
384 dwords[index] = self.DWord()
390 dwords[index].fields.append(clone)
393 # assert dwords[index].address == None
394 dwords[index].address = clone
400 while index < (start + field.end) // 32:
401 if index + 1 in dwords and not dwords[index] == dwords[index + 1]:
402 dwords[index].fields.extend(dwords[index + 1].fields)
403 dwords[index].size = 64
404 dwords[index + 1] = dwords[index]
405 index = index + 1
414 # index we've seen plus one.
425 for index in range(length):
427 if not index in dwords:
429 print(" dw[%d] = 0;" % index)
435 dw = dwords[index]
436 if index > 0 and index - 1 in dwords and dw == dwords[index - 1]:
449 (self.parser.gen_prefix(safe_name(field.type)), index, name))
459 print(" uint32_t v%d_%d;" % (index, field_index))
461 (self.parser.gen_prefix(safe_name(field.type)), index, field_index, name))
465 dword_start = index * 32
473 print(" dw[%d] =" % index)
475 v = "v%d" % index
520 (index, field_index, field.start - dword_start, field.end - dword_start))
532 (index, index, dw.address.name + field.dim, v,
537 v_address = "v%d_address" % index
539 (v_address, index, dw.address.name + field.dim, v,
542 print(" dw[%d] = %s;" % (index, v_address))
543 print(" dw[%d] = (%s >> 32) | (%s >> 32);" % (index + 1, v_address, v))
547 print(" dw[%d] = %s;" % (index, v))
548 print(" dw[%d] = %s >> 32;" % (index + 1, v))