Lines Matching refs:desc
14 def irq_settings_is_hidden(desc): argument
15 return desc['status_use_accessors'] & constants.LX_IRQ_HIDDEN
17 def irq_desc_is_chained(desc): argument
18 return desc['action'] and desc['action'] == gdb.parse_and_eval("&chained_action")
20 def irqd_is_level(desc): argument
21 return desc['irq_data']['common']['state_use_accessors'] & constants.LX_IRQD_LEVEL
26 desc = radixtree.lookup(gdb.parse_and_eval("&irq_desc_tree"), irq)
27 if desc is None:
30 desc = desc.cast(irq_desc_type.get_type())
31 if desc is None:
34 if irq_settings_is_hidden(desc):
38 if desc['kstat_irqs']:
40 any_count += cpus.per_cpu(desc['kstat_irqs'], cpu)
42 if (desc['action'] == 0 or irq_desc_is_chained(desc)) and any_count == 0:
47 if desc['kstat_irqs']:
48 count = cpus.per_cpu(desc['kstat_irqs'], cpu)
54 if desc['irq_data']['chip']:
55 chip = desc['irq_data']['chip']
63 if desc['irq_data']['domain']:
64 text += " %*lu" % (prec, desc['irq_data']['hwirq'])
69 text += " %-8s" % ("Level" if irqd_is_level(desc) else "Edge")
71 if desc['name']:
72 text += "-%-8s" % (desc['name'].string())
77 action = desc['action']
100 def x86_show_irqstat(prec, pfx, field, desc): argument
106 text += " %s\n" % (desc)
109 def x86_show_mce(prec, var, pfx, desc): argument
114 text += " %s\n" % (desc)
176 desc = ipi_desc[ipi].cast(irq_desc_type.get_type().pointer())
177 if desc == 0:
180 text += "%10u" % (cpus.per_cpu(desc['kstat_irqs'], cpu))