Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/gpio/
A Dgpio-reg.c13 struct gpio_reg { struct
23 #define to_gpio_reg(x) container_of(x, struct gpio_reg, gc) argument
27 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_get_direction()
36 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_output()
47 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_input()
54 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_set()
71 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_get()
90 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_set_multiple()
101 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_to_irq()
135 struct gpio_reg *r; in gpio_reg_init()
[all …]
A Dgpio-merrifield.c98 void __iomem *gplr = gpio_reg(chip, offset, GPLR); in mrfld_gpio_get()
113 gpsr = gpio_reg(chip, offset, GPSR); in mrfld_gpio_set()
116 gpcr = gpio_reg(chip, offset, GPCR); in mrfld_gpio_set()
127 void __iomem *gpdr = gpio_reg(chip, offset, GPDR); in mrfld_gpio_direction_input()
146 void __iomem *gpdr = gpio_reg(chip, offset, GPDR); in mrfld_gpio_direction_output()
164 void __iomem *gpdr = gpio_reg(chip, offset, GPDR); in mrfld_gpio_get_direction()
176 void __iomem *gfbr = gpio_reg(chip, offset, GFBR); in mrfld_gpio_set_debounce()
214 void __iomem *gisr = gpio_reg(&priv->chip, gpio, GISR); in mrfld_irq_ack()
226 void __iomem *gimr = gpio_reg(&priv->chip, gpio, GIMR); in mrfld_irq_unmask_mask()
386 reg = gpio_reg(&priv->chip, base, GRER); in mrfld_irq_init_hw()
[all …]
A Dgpio-amd-fch.c44 return priv->base + priv->pdata->gpio_reg[gpio]*sizeof(u32); in amd_fch_gpio_addr()
/linux-6.3-rc2/drivers/media/pci/cx25821/
A 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.3-rc2/drivers/gpu/drm/i915/display/
A Dintel_gmbus.c49 i915_reg_t gpio_reg; member
262 reserved = intel_de_read_notrace(i915, bus->gpio_reg) & in get_reserved()
275 intel_de_write_notrace(i915, bus->gpio_reg, reserved); in get_clock()
286 intel_de_write_notrace(i915, bus->gpio_reg, reserved | GPIO_DATA_DIR_MASK); in get_data()
287 intel_de_write_notrace(i915, bus->gpio_reg, reserved); in get_data()
305 intel_de_write_notrace(i915, bus->gpio_reg, reserved | clock_bits); in set_clock()
306 intel_de_posting_read(i915, bus->gpio_reg); in set_clock()
322 intel_de_write_notrace(i915, bus->gpio_reg, reserved | data_bits); in set_data()
323 intel_de_posting_read(i915, bus->gpio_reg); in set_data()
357 intel_gpio_setup(struct intel_gmbus *bus, i915_reg_t gpio_reg) in intel_gpio_setup() argument
[all …]
/linux-6.3-rc2/drivers/hwmon/
A 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.3-rc2/include/linux/platform_data/gpio/
A Dgpio-amd-fch.h42 int *gpio_reg; member
/linux-6.3-rc2/drivers/platform/x86/
A Dpcengines-apuv2.c71 .gpio_reg = apu2_gpio_regs,
/linux-6.3-rc2/drivers/media/usb/em28xx/
A 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,
A Dem28xx.h452 u8 gpio_reg; member
A Dem28xx-input.c558 led->gpio_reg, in em28xx_query_buttons()
A Dem28xx-core.c697 em28xx_write_reg_bits(dev, led->gpio_reg, in em28xx_capture_start()
/linux-6.3-rc2/drivers/macintosh/
A Dvia-pmu.c159 static unsigned char __iomem *gpio_reg; variable
345 gpio_reg = ioremap(gaddr, 0x10); in find_via_pmu()
348 if (gpio_reg == NULL) { in find_via_pmu()
377 iounmap(gpio_reg); in find_via_pmu()
378 gpio_reg = NULL; in find_via_pmu()
1704 if ((in_8(gpio_reg + 0x9) & 0x02) == 0) { in gpio1_interrupt()
/linux-6.3-rc2/drivers/net/ethernet/amd/xgbe/
A 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()
3036 u8 gpio_reg, gpio_ports[2], gpio_data[3]; in xgbe_phy_i2c_mdio_reset() local
3040 gpio_reg = 2; in xgbe_phy_i2c_mdio_reset()
3042 &gpio_reg, sizeof(gpio_reg), in xgbe_phy_i2c_mdio_reset()
/linux-6.3-rc2/drivers/media/pci/netup_unidvb/
A 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.3-rc2/drivers/net/ethernet/broadcom/bnx2x/
A Dbnx2x_main.c2088 u32 gpio_reg; in bnx2x_get_gpio() local
2097 gpio_reg = REG_RD(bp, MISC_REG_GPIO); in bnx2x_get_gpio()
2100 if ((gpio_reg & gpio_mask) == gpio_mask) in bnx2x_get_gpio()
2116 u32 gpio_reg; in bnx2x_set_gpio() local
2158 REG_WR(bp, MISC_REG_GPIO, gpio_reg); in bnx2x_set_gpio()
2166 u32 gpio_reg = 0; in bnx2x_set_mult_gpio() local
2173 gpio_reg = REG_RD(bp, MISC_REG_GPIO); in bnx2x_set_mult_gpio()
2204 REG_WR(bp, MISC_REG_GPIO, gpio_reg); in bnx2x_set_mult_gpio()
2219 u32 gpio_reg; in bnx2x_set_gpio_int() local
2228 gpio_reg = REG_RD(bp, MISC_REG_GPIO_INT); in bnx2x_set_gpio_int()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/intel/ice/
A Dice_ptp.c1509 u32 func, aux_reg, gpio_reg, irq_reg; in ice_ptp_cfg_extts() local
1539 gpio_reg = ((func << GLGEN_GPIO_CTL_PIN_FUNC_S) & in ice_ptp_cfg_extts()
1545 gpio_reg = 0; in ice_ptp_cfg_extts()
1553 wr32(hw, GLGEN_GPIO_CTL(gpio_pin), gpio_reg); in ice_ptp_cfg_extts()
/linux-6.3-rc2/drivers/ptp/
A Dptp_ocp.c138 struct gpio_reg { struct
308 struct gpio_reg __iomem *pps_select;
309 struct gpio_reg __iomem *sma_map1;
310 struct gpio_reg __iomem *sma_map2;

Completed in 122 milliseconds