IRQ_TYPE_SENSE_MASK
type &= IRQ_TYPE_SENSE_MASK;
if ((type & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_EDGE_BOTH) {
flow_type &= IRQ_TYPE_SENSE_MASK;
switch (flow_type & IRQ_TYPE_SENSE_MASK) {
switch (flow_type & IRQ_TYPE_SENSE_MASK) {
if ((flow_type & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_EDGE_FALLING)
switch (type & IRQ_TYPE_SENSE_MASK) {
if ((flow_type & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_EDGE_FALLING) {
switch(type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
if ((irq_type & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_EDGE_BOTH)
static unsigned char em_gio_sense_table[IRQ_TYPE_SENSE_MASK + 1] = {
unsigned char value = em_gio_sense_table[type & IRQ_TYPE_SENSE_MASK];
unsigned int sense = flow_type & IRQ_TYPE_SENSE_MASK;
if ((type & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_EDGE_BOTH) {
switch (type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
type &= IRQ_TYPE_SENSE_MASK;
if ((type & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_EDGE_BOTH) {
switch (type & IRQ_TYPE_SENSE_MASK) {
if ((trigger & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_EDGE_BOTH)
if (type & ~IRQ_TYPE_SENSE_MASK)
if (!(type & IRQ_TYPE_SENSE_MASK)) {
switch (type & IRQ_TYPE_SENSE_MASK) {
switch (flow_type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
*type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK;
*out_type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK;
switch (type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
if ((type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_LEVEL_LOW)
if (((flow_type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_LEVEL_HIGH) &&
((flow_type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_EDGE_RISING)) {
*type = args[1] & IRQ_TYPE_SENSE_MASK;
*out_type = intspec[1] & IRQ_TYPE_SENSE_MASK;
gc->chip_types[0].type = IRQ_TYPE_SENSE_MASK;
*type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK;
switch (type & IRQ_TYPE_SENSE_MASK) {
*out_type = intspec[1] & IRQ_TYPE_SENSE_MASK;
*type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK;
*type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK;
*type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK;
*type = hwirq_trigger & IRQ_TYPE_SENSE_MASK;
*type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK;
*out_type = intspec[2] & IRQ_TYPE_SENSE_MASK;
*out_type = intspec[1] & IRQ_TYPE_SENSE_MASK;
*type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK;
*type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK;
type &= IRQ_TYPE_SENSE_MASK;
type &= IRQ_TYPE_SENSE_MASK;
unsigned int sense = type & IRQ_TYPE_SENSE_MASK;
type &= ~IRQ_TYPE_SENSE_MASK;
switch (type & IRQ_TYPE_SENSE_MASK) {
*out_type = intspec[2] & IRQ_TYPE_SENSE_MASK;
*type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK;
switch (type & IRQ_TYPE_SENSE_MASK) {
*type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK;
*type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK;
*type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK;
*type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK;
if ((type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_LEVEL_HIGH)
if ((type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_EDGE_RISING)
if (priv->irq_types[hw] & IRQ_TYPE_SENSE_MASK) {
*out_type = intspec[1] & IRQ_TYPE_SENSE_MASK;
priv->irq_types[intspec[0]] = intspec[1] & IRQ_TYPE_SENSE_MASK;
static unsigned char intc_irqpin_sense[IRQ_TYPE_SENSE_MASK + 1] = {
unsigned char value = intc_irqpin_sense[type & IRQ_TYPE_SENSE_MASK];
static unsigned char irqc_sense[IRQ_TYPE_SENSE_MASK + 1] = {
unsigned char value = irqc_sense[type & IRQ_TYPE_SENSE_MASK];
switch (type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
if ((type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_EDGE_RISING)
switch (type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
*type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK;
*type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK;
*type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK;
*type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK;
*type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK;
*type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK;
switch (type & IRQ_TYPE_SENSE_MASK) {
*out_type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK;
*type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK;
if ((flow_type & IRQ_TYPE_SENSE_MASK) != IRQ_TYPE_LEVEL_HIGH)
*out_type = intspec[2] & IRQ_TYPE_SENSE_MASK;
_IRQ(PM8008_IRQ_TEMP_ALARM, PM8008_TEMP_ALARM,BIT(0), IRQ_TYPE_SENSE_MASK),
_IRQ(PM8008_IRQ_GPIO1, PM8008_GPIO1, BIT(0), IRQ_TYPE_SENSE_MASK),
_IRQ(PM8008_IRQ_GPIO2, PM8008_GPIO2, BIT(0), IRQ_TYPE_SENSE_MASK),
switch (type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
gpiochip->irq_type[data->hwirq] = type & IRQ_TYPE_SENSE_MASK;
if ((type & IRQ_TYPE_SENSE_MASK) ==
if ((t & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_EDGE_BOTH) {
switch (type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
if ((type & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_NONE)
switch (type & IRQ_TYPE_SENSE_MASK) {
switch (type & IRQ_TYPE_SENSE_MASK) {
static unsigned char intc_irq_sense_table[IRQ_TYPE_SENSE_MASK + 1] = {
unsigned char value = intc_irq_sense_table[type & IRQ_TYPE_SENSE_MASK];
switch (flow_type & IRQ_TYPE_SENSE_MASK) {
*out_type = intspec[2] & IRQ_TYPE_SENSE_MASK;
*out_type = intspec[3] & IRQ_TYPE_SENSE_MASK;
*out_type = intspec[1] & IRQ_TYPE_SENSE_MASK;
(IRQ_TYPE_SENSE_MASK | IRQ_NOPROBE | IRQ_NOREQUEST | \
IRQ_TYPE_DEFAULT = IRQ_TYPE_SENSE_MASK,
*out_type = intspec[1] & IRQ_TYPE_SENSE_MASK;
*out_type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK;
*out_type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK;
*out_type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK;
if (WARN_ON(type & ~IRQ_TYPE_SENSE_MASK))
type &= IRQ_TYPE_SENSE_MASK;
type &= IRQ_TYPE_SENSE_MASK;
flags &= IRQ_TYPE_SENSE_MASK;
return desc->status_use_accessors & IRQ_TYPE_SENSE_MASK;
desc->status_use_accessors &= ~IRQ_TYPE_SENSE_MASK;
desc->status_use_accessors |= mask & IRQ_TYPE_SENSE_MASK;