Searched hist:c5ebba75c7625e5cb62cb5423883cc3764779420 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/net/ipa/ |
H A D | gsi_reg.h | diff c5ebba75c7625e5cb62cb5423883cc3764779420 Wed Feb 08 14:56:49 CST 2023 Alex Elder <elder@linaro.org> net: ipa: use bitmasks for GSI IRQ values
There are seven GSI interrupt types that can be signaled by a single GSI IRQ. These are represented in a bitmask, and the gsi_irq_type_id enumerated type defines what each bit position represents.
Similarly, the global and general GSI interrupt types each has a set of conditions it signals, and both types have an enumerated type that defines which bit that represents each condition.
When used, these enumerated values are passed as an argument to BIT() in *all* cases. So clean up the code a little bit by defining the enumerated type values as one-bit masks rather than bit positions.
Rename gsi_general_id to be gsi_general_irq_id for consistency.
Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | gsi.c | diff c5ebba75c7625e5cb62cb5423883cc3764779420 Wed Feb 08 14:56:49 CST 2023 Alex Elder <elder@linaro.org> net: ipa: use bitmasks for GSI IRQ values
There are seven GSI interrupt types that can be signaled by a single GSI IRQ. These are represented in a bitmask, and the gsi_irq_type_id enumerated type defines what each bit position represents.
Similarly, the global and general GSI interrupt types each has a set of conditions it signals, and both types have an enumerated type that defines which bit that represents each condition.
When used, these enumerated values are passed as an argument to BIT() in *all* cases. So clean up the code a little bit by defining the enumerated type values as one-bit masks rather than bit positions.
Rename gsi_general_id to be gsi_general_irq_id for consistency.
Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|