Lines Matching refs:comment
72 Generate a user-friendly comment describing the given set of chips.
74 The return value may be None, if such a comment is deemed unnecessary.
79 the idea being that no comment is necessary if all chips that support the
103 comment = []
105 comment.append('<= {0}'.format(CHIPS[prefix - 1].name))
108 comment.append(chip.name)
110 comment.append('>= {0}'.format(CHIPS[suffix].name))
112 return ', '.join(comment)
304 comment = get_chips_comment(register_line.chips)
310 comment = ' /* {0} */'.format(comment) if comment else ''
311 print('#define {define_name} 0x{address}{comment}'.format(**locals()), file=filp)
323 comment = get_chips_comment(field_line.chips, register_line.chips)
327 comment = ' /* {0} */'.format(comment) if comment else ''
329 '#define S{define_name} (((unsigned)(x) & 0x{mask:X}) << {field_line.bits[0]}){comment}'
349 comment = get_chips_comment(value_line.chips, field_line.chips)
352 comment = ' /* {0} */'.format(comment) if comment else ''
353 print('#define {define_name} {value_line.enumentry.value}{comment}'