aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorIan Abbott <[email protected]>2016-06-20 14:05:48 +0100
committerGreg Kroah-Hartman <[email protected]>2016-08-21 17:00:31 +0200
commit6ad124d53a761b01b5b2ab78e6e77f0cef7a2b9e (patch)
tree5e08bf594ec9c6e959f69da4e921e0bd0b810c74 /tools/perf/scripts/python/event_analyzing_sample.py
parent5bf9bd8d19834f9ace200af06a58a032542fc427 (diff)
staging: comedi: plx9080.h: define PLX_<REG>_TO_<FIELD>(r) macros
Various macros in "plx9080.h" take the form `PLX_<REG>_<FIELD>(x)`, where `<REG>` is a register name, `<FIELD>` is a field within the register, and `x` is a value for the field specified by the caller. The macros construct a partial register register with the specified field value placed in the appropriate bits of the register value, and other bits of the register value zeroed. Add corresponding macros of the form `PLX_<REG>_TO_<FIELD>(r)` that extract a field value from a specified register values. Remove macros of the form `PLX_<REG>_<FIELD>_SHIFT` that specified the bit position of a field within a register value as they are no longer useful. Signed-off-by: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions