Home
last modified time | relevance | path

Searched refs:gpio_reg (Results 1 – 11 of 11) sorted by relevance

/drivers/gpio/
Dgpio-intel-mid.c81 static void __iomem *gpio_reg(struct gpio_chip *chip, unsigned offset, in gpio_reg() function
116 void __iomem *gplr = gpio_reg(chip, offset, GPLR); in intel_gpio_get()
126 gpsr = gpio_reg(chip, offset, GPSR); in intel_gpio_set()
129 gpcr = gpio_reg(chip, offset, GPCR); in intel_gpio_set()
137 void __iomem *gpdr = gpio_reg(chip, offset, GPDR); in intel_gpio_direction_input()
160 void __iomem *gpdr = gpio_reg(chip, offset, GPDR); in intel_gpio_direction_output()
187 void __iomem *grer = gpio_reg(&priv->chip, gpio, GRER); in intel_mid_irq_type()
188 void __iomem *gfer = gpio_reg(&priv->chip, gpio, GFER); in intel_mid_irq_type()
297 gedr = gpio_reg(&priv->chip, base, GEDR); in intel_mid_irq_handler()
318 reg = gpio_reg(&priv->chip, base, GRER); in intel_mid_irq_init_hw()
[all …]
/drivers/media/pci/cx25821/
Dcx25821-gpio.c60 u32 gpio_reg = GPIO_LO; in cx25821_set_gpiopin_logicvalue() local
72 gpio_reg = GPIO_HI; in cx25821_set_gpiopin_logicvalue()
75 value = cx_read(gpio_reg); in cx25821_set_gpiopin_logicvalue()
82 cx_write(gpio_reg, value); in cx25821_set_gpiopin_logicvalue()
/drivers/gpu/drm/i915/
Dintel_i2c.c94 reserved = I915_READ_NOTRACE(bus->gpio_reg) & in get_reserved()
106 I915_WRITE_NOTRACE(bus->gpio_reg, reserved | GPIO_CLOCK_DIR_MASK); in get_clock()
107 I915_WRITE_NOTRACE(bus->gpio_reg, reserved); in get_clock()
108 return (I915_READ_NOTRACE(bus->gpio_reg) & GPIO_CLOCK_VAL_IN) != 0; in get_clock()
116 I915_WRITE_NOTRACE(bus->gpio_reg, reserved | GPIO_DATA_DIR_MASK); in get_data()
117 I915_WRITE_NOTRACE(bus->gpio_reg, reserved); in get_data()
118 return (I915_READ_NOTRACE(bus->gpio_reg) & GPIO_DATA_VAL_IN) != 0; in get_data()
134 I915_WRITE_NOTRACE(bus->gpio_reg, reserved | clock_bits); in set_clock()
135 POSTING_READ(bus->gpio_reg); in set_clock()
151 I915_WRITE_NOTRACE(bus->gpio_reg, reserved | data_bits); in set_data()
[all …]
Di915_drv.h728 u32 gpio_reg; member
/drivers/hwmon/
Dltc4245.c84 u8 gpio_curr, gpio_next, gpio_reg; in ltc4245_update_gpios() local
123 gpio_reg = (data->cregs[LTC4245_GPIO] & 0x3f) | ((gpio_next + 1) << 6); in ltc4245_update_gpios()
126 i2c_smbus_write_byte_data(client, LTC4245_GPIO, gpio_reg); in ltc4245_update_gpios()
129 data->cregs[LTC4245_GPIO] = gpio_reg; in ltc4245_update_gpios()
/drivers/macintosh/
Dvia-pmu.c147 static unsigned char __iomem *gpio_reg; variable
331 gpio_reg = ioremap(gaddr, 0x10); in find_via_pmu()
333 if (gpio_reg == NULL) { in find_via_pmu()
364 iounmap(gpio_reg); in find_via_pmu()
365 gpio_reg = NULL; in find_via_pmu()
1659 if ((in_8(gpio_reg + 0x9) & 0x02) == 0) { in gpio1_interrupt()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c2070 u32 gpio_reg; in bnx2x_get_gpio() local
2079 gpio_reg = REG_RD(bp, MISC_REG_GPIO); in bnx2x_get_gpio()
2082 if ((gpio_reg & gpio_mask) == gpio_mask) in bnx2x_get_gpio()
2098 u32 gpio_reg; in bnx2x_set_gpio() local
2107 gpio_reg = (REG_RD(bp, MISC_REG_GPIO) & MISC_REGISTERS_GPIO_FLOAT); in bnx2x_set_gpio()
2115 gpio_reg &= ~(gpio_mask << MISC_REGISTERS_GPIO_FLOAT_POS); in bnx2x_set_gpio()
2116 gpio_reg |= (gpio_mask << MISC_REGISTERS_GPIO_CLR_POS); in bnx2x_set_gpio()
2124 gpio_reg &= ~(gpio_mask << MISC_REGISTERS_GPIO_FLOAT_POS); in bnx2x_set_gpio()
2125 gpio_reg |= (gpio_mask << MISC_REGISTERS_GPIO_SET_POS); in bnx2x_set_gpio()
2133 gpio_reg |= (gpio_mask << MISC_REGISTERS_GPIO_FLOAT_POS); in bnx2x_set_gpio()
[all …]
/drivers/media/usb/em28xx/
Dem28xx.h418 u8 gpio_reg; member
Dem28xx-cards.c518 .gpio_reg = EM2874_R80_GPIO_P0_CTRL,
524 .gpio_reg = EM2874_R80_GPIO_P0_CTRL,
534 .gpio_reg = EM2874_R80_GPIO_P0_CTRL,
544 .gpio_reg = EM2874_R80_GPIO_P0_CTRL,
Dem28xx-input.c548 led->gpio_reg, in em28xx_query_buttons()
Dem28xx-core.c681 em28xx_write_reg_bits(dev, led->gpio_reg, in em28xx_capture_start()