Lines Matching refs:filp
66 def emit(self, filp, name, static=True): argument
79 filp.write('%sconst char %s[] =\n%s;\n' % (
118 def emit(self, filp, name, static=True): argument
134 filp.write('%sconst %s %s[] = {\n%s\n};\n' % (
208 def emit(self, filp, string_table, idx_table): argument
216 filp.write('static const struct si_field sid_fields_table[] = {\n')
219 filp.write('\t/* %s */\n' % (start))
221 filp.write('\t%s,\n' % (field.format(string_table, idx_table)))
223 filp.write('};\n')
226 def parse_packet3(filp): argument
231 for line in filp:
343 with open(sys.argv[1], 'r') as filp:
344 packets = parse_packet3(filp)
349 with open(filename, 'r') as filp:
351 db = RegisterDatabase.from_json(json.load(filp))