Searched refs:gpio_reg (Results 1 – 7 of 7) sorted by relevance
/drivers/gpu/drm/i915/ |
D | intel_i2c.c | 82 reserved = I915_READ_NOTRACE(bus->gpio_reg) & in get_reserved() 94 I915_WRITE_NOTRACE(bus->gpio_reg, reserved | GPIO_CLOCK_DIR_MASK); in get_clock() 95 I915_WRITE_NOTRACE(bus->gpio_reg, reserved); in get_clock() 96 return (I915_READ_NOTRACE(bus->gpio_reg) & GPIO_CLOCK_VAL_IN) != 0; in get_clock() 104 I915_WRITE_NOTRACE(bus->gpio_reg, reserved | GPIO_DATA_DIR_MASK); in get_data() 105 I915_WRITE_NOTRACE(bus->gpio_reg, reserved); in get_data() 106 return (I915_READ_NOTRACE(bus->gpio_reg) & GPIO_DATA_VAL_IN) != 0; in get_data() 122 I915_WRITE_NOTRACE(bus->gpio_reg, reserved | clock_bits); in set_clock() 123 POSTING_READ(bus->gpio_reg); in set_clock() 139 I915_WRITE_NOTRACE(bus->gpio_reg, reserved | data_bits); in set_data() [all …]
|
D | i915_drv.h | 309 u32 gpio_reg; member
|
/drivers/media/video/cx25821/ |
D | cx25821-gpio.c | 59 u32 gpio_reg = GPIO_LO; in cx25821_set_gpiopin_logicvalue() local 71 gpio_reg = GPIO_HI; in cx25821_set_gpiopin_logicvalue() 74 value = cx_read(gpio_reg); in cx25821_set_gpiopin_logicvalue() 81 cx_write(gpio_reg, value); in cx25821_set_gpiopin_logicvalue()
|
/drivers/gpio/ |
D | gpio-langwell.c | 73 static void __iomem *gpio_reg(struct gpio_chip *chip, unsigned offset, in gpio_reg() function 112 void __iomem *gplr = gpio_reg(chip, offset, GPLR); in lnw_gpio_get() 122 gpsr = gpio_reg(chip, offset, GPSR); in lnw_gpio_set() 125 gpcr = gpio_reg(chip, offset, GPCR); in lnw_gpio_set() 133 void __iomem *gpdr = gpio_reg(chip, offset, GPDR); in lnw_gpio_direction_input() 156 void __iomem *gpdr = gpio_reg(chip, offset, GPDR); in lnw_gpio_direction_output() 188 void __iomem *grer = gpio_reg(&lnw->chip, gpio, GRER); in lnw_irq_type() 189 void __iomem *gfer = gpio_reg(&lnw->chip, gpio, GFER); in lnw_irq_type() 251 gedr = gpio_reg(&lnw->chip, base, GEDR); in lnw_irq_handler()
|
/drivers/hwmon/ |
D | ltc4245.c | 81 u8 gpio_curr, gpio_next, gpio_reg; in ltc4245_update_gpios() local 121 gpio_reg = (data->cregs[LTC4245_GPIO] & 0x3f) | ((gpio_next + 1) << 6); in ltc4245_update_gpios() 124 i2c_smbus_write_byte_data(client, LTC4245_GPIO, gpio_reg); in ltc4245_update_gpios() 127 data->cregs[LTC4245_GPIO] = gpio_reg; in ltc4245_update_gpios()
|
/drivers/macintosh/ |
D | via-pmu.c | 145 static unsigned char __iomem *gpio_reg; variable 329 gpio_reg = ioremap(gaddr, 0x10); in find_via_pmu() 331 if (gpio_reg == NULL) { in find_via_pmu() 362 iounmap(gpio_reg); in find_via_pmu() 363 gpio_reg = NULL; in find_via_pmu() 1656 if ((in_8(gpio_reg + 0x9) & 0x02) == 0) { in gpio1_interrupt()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 1898 u32 gpio_reg; in bnx2x_get_gpio() local 1907 gpio_reg = REG_RD(bp, MISC_REG_GPIO); in bnx2x_get_gpio() 1910 if ((gpio_reg & gpio_mask) == gpio_mask) in bnx2x_get_gpio() 1928 u32 gpio_reg; in bnx2x_set_gpio() local 1937 gpio_reg = (REG_RD(bp, MISC_REG_GPIO) & MISC_REGISTERS_GPIO_FLOAT); in bnx2x_set_gpio() 1945 gpio_reg &= ~(gpio_mask << MISC_REGISTERS_GPIO_FLOAT_POS); in bnx2x_set_gpio() 1946 gpio_reg |= (gpio_mask << MISC_REGISTERS_GPIO_CLR_POS); in bnx2x_set_gpio() 1954 gpio_reg &= ~(gpio_mask << MISC_REGISTERS_GPIO_FLOAT_POS); in bnx2x_set_gpio() 1955 gpio_reg |= (gpio_mask << MISC_REGISTERS_GPIO_SET_POS); in bnx2x_set_gpio() 1963 gpio_reg |= (gpio_mask << MISC_REGISTERS_GPIO_FLOAT_POS); in bnx2x_set_gpio() [all …]
|