Lines Matching refs:filp
68 def emit(self, filp, name, static=True):
72 to filp.
82 filp.write('%sconst char %s[] = {\n%s\n};\n' % (
121 def emit(self, filp, name, static=True):
125 to filp.
137 filp.write('%sconst %s %s[] = {\n%s\n};\n' % (
211 def emit(self, filp, string_table, idx_table):
215 to filp.
219 filp.write('static const struct si_field sid_fields_table[] = {\n')
222 filp.write('\t/* %s */\n' % (start))
224 filp.write('\t%s,\n' % (field.format(string_table, idx_table)))
226 filp.write('};\n')
229 def parse_packet3(filp):
234 for line in filp:
346 with open(sys.argv[1], 'r') as filp:
347 packets = parse_packet3(filp)
352 with open(filename, 'r') as filp:
354 db = RegisterDatabase.from_json(json.load(filp))