Lines Matching refs:p

99         names = [p.field_name for p in res]
103 for p in res:
104 if p.field_name != dname:
106 if len(duplicates.intersection([p.field_name])) != 0:
107 p.group = str(i_count)
120 names = [p.field_name for p in self]
127 for p in self:
128 field_name = p.field_name + p.group
132 (p.field_name, p.efuse_block, p.bit_start, p.bit_count))
138 for p in self:
139 if '.' in p.field_name:
141 for sub in p.field_name.split('.')[:-1]:
145 if p is not d and p.efuse_block == d.efuse_block and name == d.field_name:
151 def check(p, n): argument
154 start = p.bit_start
155 end = p.bit_start + p.bit_count - 1
166 def print_error(p, n, state): argument
168 (p.field_name, p.efuse_block, p.bit_start, p.bit_count, state,
170 for p in self:
171 p.verify(type_table)
179 for p in self:
181 if p is not n and p.efuse_block == n.efuse_block:
182 state = check(p, n)
184 if '.' in p.field_name:
186 for sub in p.field_name.split('.'):
189 … if p is not d and p.efuse_block == d.efuse_block and name == d.field_name:
190 state = check(p, d)
195 print_error(p, d, state)
199 print_error(p, n, state)
203 for p in self:
204 …txt_table += '%s %s %d %s %s' % (p.field_name, p.efuse_block, p.bit_start, str(p.get_bit_count()),…
213 for p in sorted(self, key=lambda x:(x.efuse_block, x.bit_start)):
214 …+= '{0} \t{1:<30} \t{2} \t{3:^8} \t{4:^8}'.format(num, p.field_name, p.efuse_block, p.bit_start, p
219 for p in sorted(self, key=lambda x:(x.efuse_block, x.bit_start)):
221 rows += '%s \n[%d ' % (p.efuse_block, p.bit_start)
223 if last.efuse_block != p.efuse_block:
224 … rows += '%d] \n\n%s \n[%d ' % (last.bit_start + last.bit_count - 1, p.efuse_block, p.bit_start)
225 elif last.bit_start + last.bit_count != p.bit_start:
226 rows += '%d] [%d ' % (last.bit_start + last.bit_count - 1, p.bit_start)
227 last = p
234 for p in self:
235 if p.efuse_block == blk:
236 if p.define is not None:
237 return p.get_bit_count()
239 if last_used_bit < p.bit_start + p.bit_count:
240 last_used_bit = p.bit_start + p.bit_count
262 for p in self:
263 if (p.field_name != last_field_name):
264 name = 'ESP_EFUSE_' + p.field_name.replace('.', '_')
266 for alt_name in p.get_alt_names():
269 last_field_name = p.field_name
325 for p in self:
326 if (p.field_name != last_name):
329 … rows += ['static const esp_efuse_desc_t ' + p.field_name.replace('.', '_') + '[] = {']
330 last_name = p.field_name
331 rows += [p.to_struct(debug) + ',']
336 for p in self:
337 if (p.field_name != last_name):
341 … rows += ['const esp_efuse_desc_t* ' + 'ESP_EFUSE_' + p.field_name.replace('.', '_') + '[] = {']
342 last_name = p.field_name
343 index = str(0) if str(p.group) == '' else str(p.group)
344 … rows += [' &' + p.field_name.replace('.', '_') + '[' + index + '], \t\t// ' + p.comment]
546 def __init__(self, p, message): argument
547 super(ValidationError, self).__init__('Entry %s invalid: %s' % (p.field_name, message))