Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/gpio/
Dgpio-reg.c21 struct gpio_reg { struct
31 #define to_gpio_reg(x) container_of(x, struct gpio_reg, gc) argument
35 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_get_direction()
44 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_output()
55 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_input()
62 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_set()
79 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_get()
98 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_set_multiple()
109 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_to_irq()
143 struct gpio_reg *r; in gpio_reg_init()
[all …]
Dgpio-tangier.c61 static void __iomem *gpio_reg(struct gpio_chip *chip, unsigned int offset, in gpio_reg() function
265 void __iomem *grer = gpio_reg(&priv->chip, gpio, GRER); in tng_irq_set_type()
266 void __iomem *gfer = gpio_reg(&priv->chip, gpio, GFER); in tng_irq_set_type()
267 void __iomem *gitr = gpio_reg(&priv->chip, gpio, GITR); in tng_irq_set_type()
268 void __iomem *glpr = gpio_reg(&priv->chip, gpio, GLPR); in tng_irq_set_type()
324 void __iomem *gwmr = gpio_reg(&priv->chip, gpio, priv->wake_regs.gwmr); in tng_irq_set_wake()
325 void __iomem *gwsr = gpio_reg(&priv->chip, gpio, priv->wake_regs.gwsr); in tng_irq_set_wake()
370 void __iomem *gisr = gpio_reg(&priv->chip, base, GISR); in tng_irq_handler()
371 void __iomem *gimr = gpio_reg(&priv->chip, base, GIMR); in tng_irq_handler()
395 reg = gpio_reg(&priv->chip, base, GRER); in tng_irq_init_hw()
[all …]
Dgpio-amd-fch.c44 return priv->base + priv->pdata->gpio_reg[gpio]*sizeof(u32); in amd_fch_gpio_addr()
/linux-6.6.21/drivers/media/pci/cx25821/
Dcx25821-gpio.c46 u32 gpio_reg = GPIO_LO; in cx25821_set_gpiopin_logicvalue() local
58 gpio_reg = GPIO_HI; in cx25821_set_gpiopin_logicvalue()
61 value = cx_read(gpio_reg); in cx25821_set_gpiopin_logicvalue()
68 cx_write(gpio_reg, value); in cx25821_set_gpiopin_logicvalue()
/linux-6.6.21/drivers/gpu/drm/i915/display/
Dintel_gmbus.c49 i915_reg_t gpio_reg; member
244 reserved = intel_de_read_notrace(i915, bus->gpio_reg) & in get_reserved()
256 intel_de_write_notrace(i915, bus->gpio_reg, reserved | GPIO_CLOCK_DIR_MASK); in get_clock()
257 intel_de_write_notrace(i915, bus->gpio_reg, reserved); in get_clock()
259 return (intel_de_read_notrace(i915, bus->gpio_reg) & GPIO_CLOCK_VAL_IN) != 0; in get_clock()
268 intel_de_write_notrace(i915, bus->gpio_reg, reserved | GPIO_DATA_DIR_MASK); in get_data()
269 intel_de_write_notrace(i915, bus->gpio_reg, reserved); in get_data()
271 return (intel_de_read_notrace(i915, bus->gpio_reg) & GPIO_DATA_VAL_IN) != 0; in get_data()
287 intel_de_write_notrace(i915, bus->gpio_reg, reserved | clock_bits); in set_clock()
288 intel_de_posting_read(i915, bus->gpio_reg); in set_clock()
[all …]
/linux-6.6.21/drivers/hwmon/
Dltc4245.c80 u8 gpio_curr, gpio_next, gpio_reg; in ltc4245_update_gpios() local
119 gpio_reg = (data->cregs[LTC4245_GPIO] & 0x3f) | ((gpio_next + 1) << 6); in ltc4245_update_gpios()
122 i2c_smbus_write_byte_data(client, LTC4245_GPIO, gpio_reg); in ltc4245_update_gpios()
125 data->cregs[LTC4245_GPIO] = gpio_reg; in ltc4245_update_gpios()
/linux-6.6.21/include/linux/platform_data/gpio/
Dgpio-amd-fch.h42 int *gpio_reg; member
/linux-6.6.21/drivers/platform/x86/
Dpcengines-apuv2.c71 .gpio_reg = apu2_gpio_regs,
/linux-6.6.21/drivers/media/usb/em28xx/
Dem28xx-cards.c593 .gpio_reg = EM2874_R80_GPIO_P0_CTRL,
599 .gpio_reg = EM2874_R80_GPIO_P0_CTRL,
609 .gpio_reg = EM2874_R80_GPIO_P0_CTRL,
619 .gpio_reg = EM2874_R80_GPIO_P0_CTRL,
629 .gpio_reg = EM2820_R08_GPIO_CTRL,
639 .gpio_reg = EM2874_R80_GPIO_P0_CTRL,
645 .gpio_reg = EM2874_R80_GPIO_P0_CTRL,
655 .gpio_reg = EM2874_R80_GPIO_P0_CTRL,
661 .gpio_reg = EM2874_R80_GPIO_P0_CTRL,
Dem28xx.h452 u8 gpio_reg; member
Dem28xx-input.c558 led->gpio_reg, in em28xx_query_buttons()
Dem28xx-core.c697 em28xx_write_reg_bits(dev, led->gpio_reg, in em28xx_capture_start()
/linux-6.6.21/drivers/macintosh/
Dvia-pmu.c159 static unsigned char __iomem *gpio_reg; variable
338 gpio_reg = ioremap(res.start, 0x10); in find_via_pmu()
341 if (gpio_reg == NULL) { in find_via_pmu()
370 iounmap(gpio_reg); in find_via_pmu()
371 gpio_reg = NULL; in find_via_pmu()
1697 if ((in_8(gpio_reg + 0x9) & 0x02) == 0) { in gpio1_interrupt()
/linux-6.6.21/drivers/net/ethernet/amd/xgbe/
Dxgbe-phy-v2.c1367 u8 gpio_reg, gpio_ports[2]; in xgbe_phy_sfp_signals() local
1371 gpio_reg = 0; in xgbe_phy_sfp_signals()
1373 &gpio_reg, sizeof(gpio_reg), in xgbe_phy_sfp_signals()
3037 u8 gpio_reg, gpio_ports[2], gpio_data[3]; in xgbe_phy_i2c_mdio_reset() local
3041 gpio_reg = 2; in xgbe_phy_i2c_mdio_reset()
3043 &gpio_reg, sizeof(gpio_reg), in xgbe_phy_i2c_mdio_reset()
/linux-6.6.21/drivers/media/pci/netup_unidvb/
Dnetup_unidvb_core.c170 u16 gpio_reg; in netup_unidvb_dev_enable() local
177 gpio_reg = in netup_unidvb_dev_enable()
181 writeb(gpio_reg, ndev->bmmio0 + GPIO_REG_IO); in netup_unidvb_dev_enable()
/linux-6.6.21/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c2087 u32 gpio_reg; in bnx2x_get_gpio() local
2096 gpio_reg = REG_RD(bp, MISC_REG_GPIO); in bnx2x_get_gpio()
2099 if ((gpio_reg & gpio_mask) == gpio_mask) in bnx2x_get_gpio()
2115 u32 gpio_reg; in bnx2x_set_gpio() local
2124 gpio_reg = (REG_RD(bp, MISC_REG_GPIO) & MISC_REGISTERS_GPIO_FLOAT); in bnx2x_set_gpio()
2132 gpio_reg &= ~(gpio_mask << MISC_REGISTERS_GPIO_FLOAT_POS); in bnx2x_set_gpio()
2133 gpio_reg |= (gpio_mask << MISC_REGISTERS_GPIO_CLR_POS); in bnx2x_set_gpio()
2141 gpio_reg &= ~(gpio_mask << MISC_REGISTERS_GPIO_FLOAT_POS); in bnx2x_set_gpio()
2142 gpio_reg |= (gpio_mask << MISC_REGISTERS_GPIO_SET_POS); in bnx2x_set_gpio()
2150 gpio_reg |= (gpio_mask << MISC_REGISTERS_GPIO_FLOAT_POS); in bnx2x_set_gpio()
[all …]
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_ptp.c1514 u32 func, aux_reg, gpio_reg, irq_reg; in ice_ptp_cfg_extts() local
1544 gpio_reg = ((func << GLGEN_GPIO_CTL_PIN_FUNC_S) & in ice_ptp_cfg_extts()
1550 gpio_reg = 0; in ice_ptp_cfg_extts()
1558 wr32(hw, GLGEN_GPIO_CTL(gpio_pin), gpio_reg); in ice_ptp_cfg_extts()
/linux-6.6.21/drivers/ptp/
Dptp_ocp.c137 struct gpio_reg { struct
307 struct gpio_reg __iomem *pps_select;
308 struct gpio_reg __iomem *sma_map1;
309 struct gpio_reg __iomem *sma_map2;