Lines Matching refs:field

304             for field in self.fields:
305 field.emit_template_struct(dim)
314 for field in self.fields:
315 if type(field) is Group:
316 if field.count == 1:
317 field.collect_dwords(dwords, start + field.start, dim)
319 for i in range(field.count):
320 field.collect_dwords(dwords,
321 start + field.start + i * field.size,
325 index = (start + field.start) // 32
329 clone = copy.copy(field)
335 if field.type == "address":
337 dwords[index].address = field
339 # Coalesce all the dwords covered by this field. The two cases we
341 # and address and a few bits) or where a single struct field
343 while index < (start + field.end) // 32:
377 # Special case: only one field and it's a struct at the beginning
382 field = dw.fields[0]
383 name = field.name + field.dim
384 if field.type in self.parser.structs and field.start % 32 == 0:
387 (self.parser.gen_prefix(safe_name(field.type)), index, name))
393 for field in dw.fields:
394 if type(field) is Field and field.type in self.parser.structs:
395 name = field.name + field.dim
399 (self.parser.gen_prefix(safe_name(field.type)), index, field_index, name))
419 for field in dw.fields:
420 if field.type != "mbo":
421 name = field.name + field.dim
423 if field.type == "mbo":
425 (field.start - dword_start, field.end - dword_start)
426 elif field.type == "address":
428 elif field.type == "uint":
430 (name, field.start - dword_start, field.end - dword_start)
431 elif field.type in self.parser.enums:
433 (name, field.start - dword_start, field.end - dword_start)
434 elif field.type == "int":
436 (name, field.start - dword_start, field.end - dword_start)
437 elif field.type == "bool":
439 (name, field.start - dword_start, field.end - dword_start)
440 elif field.type == "float":
442 elif field.type == "offset":
444 (name, field.start - dword_start, field.end - dword_start)
445 elif field.type == 'ufixed':
447 (name, field.start - dword_start, field.end - dword_start, field.fractional_size)
448 elif field.type == 'sfixed':
450 (name, field.start - dword_start, field.end - dword_start, field.fractional_size)
451 elif field.type in self.parser.structs:
453 (index, field_index, field.start - dword_start, field.end - dword_start)
456 print("/* unhandled field %s, type %s */\n" % (name, field.type))
460 if field == dw.fields[-1]:
533 elif name == "field":
563 elif name == "field":
597 for field in self.group.fields:
598 if not type(field) is Field:
600 if field.default == None:
602 default_fields.append(" .%-35s = %6d" % (field.name, field.default))