/linux-6.12.1/drivers/gpio/ |
D | gpio-reg.c | 21 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 …]
|
D | gpio-tangier.c | 63 static void __iomem *gpio_reg(struct gpio_chip *chip, unsigned int offset, in gpio_reg() function 254 void __iomem *grer = gpio_reg(&priv->chip, gpio, GRER); in tng_irq_set_type() 255 void __iomem *gfer = gpio_reg(&priv->chip, gpio, GFER); in tng_irq_set_type() 256 void __iomem *gitr = gpio_reg(&priv->chip, gpio, GITR); in tng_irq_set_type() 257 void __iomem *glpr = gpio_reg(&priv->chip, gpio, GLPR); in tng_irq_set_type() 310 void __iomem *gwmr = gpio_reg(&priv->chip, gpio, priv->wake_regs.gwmr); in tng_irq_set_wake() 311 void __iomem *gwsr = gpio_reg(&priv->chip, gpio, priv->wake_regs.gwsr); in tng_irq_set_wake() 354 void __iomem *gisr = gpio_reg(&priv->chip, base, GISR); in tng_irq_handler() 355 void __iomem *gimr = gpio_reg(&priv->chip, base, GIMR); in tng_irq_handler() 379 reg = gpio_reg(&priv->chip, base, GRER); in tng_irq_init_hw() [all …]
|
D | gpio-amd-fch.c | 44 return priv->base + priv->pdata->gpio_reg[gpio]*sizeof(u32); in amd_fch_gpio_addr()
|
/linux-6.12.1/drivers/media/pci/cx25821/ |
D | cx25821-gpio.c | 46 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.12.1/drivers/gpu/drm/i915/display/ |
D | intel_gmbus.c | 49 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.12.1/drivers/input/misc/ |
D | cs40l50-vibra.c | 60 u32 gpio_reg; member 201 effect->gpio_reg = vib->dsp.gpio_base_reg + (gpio_num * 8) - gpio_edge; in cs40l50_effect_gpio_mapping_set() 203 return regmap_write(vib->regmap, effect->gpio_reg, button); in cs40l50_effect_gpio_mapping_set() 206 effect->gpio_reg = CS40L50_GPIO_MAPPING_NONE; in cs40l50_effect_gpio_mapping_set() 433 if (erase_effect->gpio_reg != CS40L50_GPIO_MAPPING_NONE) { in cs40l50_erase_worker() 434 error = regmap_write(vib->regmap, erase_effect->gpio_reg, in cs40l50_erase_worker()
|
/linux-6.12.1/drivers/hwmon/ |
D | ltc4245.c | 80 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.12.1/include/linux/platform_data/gpio/ |
D | gpio-amd-fch.h | 42 int *gpio_reg; member
|
/linux-6.12.1/drivers/platform/x86/ |
D | pcengines-apuv2.c | 71 .gpio_reg = apu2_gpio_regs,
|
/linux-6.12.1/drivers/media/usb/em28xx/ |
D | em28xx-cards.c | 617 .gpio_reg = EM2874_R80_GPIO_P0_CTRL, 623 .gpio_reg = EM2874_R80_GPIO_P0_CTRL, 633 .gpio_reg = EM2874_R80_GPIO_P0_CTRL, 643 .gpio_reg = EM2874_R80_GPIO_P0_CTRL, 653 .gpio_reg = EM2820_R08_GPIO_CTRL, 663 .gpio_reg = EM2874_R80_GPIO_P0_CTRL, 669 .gpio_reg = EM2874_R80_GPIO_P0_CTRL, 679 .gpio_reg = EM2874_R80_GPIO_P0_CTRL, 685 .gpio_reg = EM2874_R80_GPIO_P0_CTRL,
|
D | em28xx.h | 453 u8 gpio_reg; member
|
D | em28xx-input.c | 558 led->gpio_reg, in em28xx_query_buttons()
|
D | em28xx-core.c | 698 em28xx_write_reg_bits(dev, led->gpio_reg, in em28xx_capture_start()
|
/linux-6.12.1/drivers/macintosh/ |
D | via-pmu.c | 159 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.12.1/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-phy-v2.c | 1367 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.12.1/drivers/media/pci/netup_unidvb/ |
D | netup_unidvb_core.c | 170 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.12.1/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 2087 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.12.1/drivers/net/ethernet/intel/ice/ |
D | ice_ptp.c | 1665 u32 func, aux_reg, gpio_reg, irq_reg; in ice_ptp_cfg_extts() local 1699 gpio_reg = FIELD_PREP(GLGEN_GPIO_CTL_PIN_FUNC_M, func); in ice_ptp_cfg_extts() 1704 gpio_reg = 0; in ice_ptp_cfg_extts() 1712 wr32(hw, GLGEN_GPIO_CTL(config->gpio_pin), gpio_reg); in ice_ptp_cfg_extts()
|
/linux-6.12.1/drivers/ptp/ |
D | ptp_ocp.c | 148 struct gpio_reg { struct 337 struct gpio_reg __iomem *pps_select; 338 struct gpio_reg __iomem *sma_map1; 339 struct gpio_reg __iomem *sma_map2;
|