Home
last modified time | relevance | path

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

/openbmc/linux/arch/arm/mach-mvebu/
H A Dpm-board.c22 static void __iomem *gpio_ctrl; variable
32 reg = readl(gpio_ctrl); in mvebu_armada_pm_enter()
36 writel(reg, gpio_ctrl); in mvebu_armada_pm_enter()
39 ackcmd = readl(gpio_ctrl); in mvebu_armada_pm_enter()
73 [ackcmd] "r" (ackcmd), [gpio_ctrl] "r" (gpio_ctrl) : "r1"); in mvebu_armada_pm_enter()
122 gpio_ctrl = of_iomap(gpio_ctrl_np, 0); in mvebu_armada_pm_init()
123 if (!gpio_ctrl) { in mvebu_armada_pm_init()
/openbmc/linux/drivers/staging/media/atomisp/i2c/
H A Datomisp-gc2235.c399 static int gpio_ctrl(struct v4l2_subdev *sd, bool flag) in gpio_ctrl() function
439 ret = gpio_ctrl(sd, 1); in power_up()
441 ret = gpio_ctrl(sd, 1); in power_up()
450 gpio_ctrl(sd, 0); in power_up()
470 ret = gpio_ctrl(sd, 0); in power_down()
472 ret = gpio_ctrl(sd, 0); in power_down()
H A Datomisp-ov2722.c503 static int gpio_ctrl(struct v4l2_subdev *sd, bool flag) in gpio_ctrl() function
543 ret = gpio_ctrl(sd, 1); in power_up()
545 ret = gpio_ctrl(sd, 0); in power_up()
562 gpio_ctrl(sd, 0); in power_up()
590 ret = gpio_ctrl(sd, 0); in power_down()
592 ret = gpio_ctrl(sd, 0); in power_down()
H A Datomisp-mt9m114.c470 static int gpio_ctrl(struct v4l2_subdev *sd, bool flag) in gpio_ctrl() function
520 ret = gpio_ctrl(sd, 1); in power_up()
556 ret = gpio_ctrl(sd, 0); in power_down()
/openbmc/linux/drivers/hwmon/
H A Dltc2992.c262 unsigned long gpio_ctrl; in ltc2992_gpio_set() local
272 gpio_ctrl = reg; in ltc2992_gpio_set()
273 assign_bit(ltc2992_gpio_addr_map[offset].ctrl_bit, &gpio_ctrl, value); in ltc2992_gpio_set()
275 ltc2992_write_reg(st, ltc2992_gpio_addr_map[offset].ctrl, 1, gpio_ctrl); in ltc2992_gpio_set()
284 unsigned long gpio_ctrl = 0; in ltc2992_gpio_set_multiple() local
292 assign_bit(ltc2992_gpio_addr_map[gpio_nr].ctrl_bit, &gpio_ctrl, true); in ltc2992_gpio_set_multiple()
297 ltc2992_write_reg(st, LTC2992_GPIO_CTRL, 1, gpio_ctrl); in ltc2992_gpio_set_multiple()
/openbmc/linux/drivers/net/ethernet/wangxun/ngbe/
H A Dngbe_main.c74 wx->gpio_ctrl = 1; in ngbe_init_type_code()
77 wx->gpio_ctrl = 0; in ngbe_init_type_code()
170 wr32(wx, WX_GPIO_POLARITY, wx->gpio_ctrl ? 0 : 0x3); in ngbe_irq_enable()
324 if (wx->gpio_ctrl) in ngbe_disable_device()
357 if (wx->gpio_ctrl) in ngbe_up()
H A Dngbe_hw.c42 if (wx->gpio_ctrl) { in ngbe_reset_misc()
/openbmc/linux/drivers/hte/
H A Dhte-tegra194.c694 struct device_node *gpio_ctrl; in tegra_hte_probe() local
766 gpio_ctrl = of_parse_phandle(dev->of_node, in tegra_hte_probe()
769 if (!gpio_ctrl) { in tegra_hte_probe()
775 hte_dev->c = gpiochip_find(gpio_ctrl, in tegra_hte_probe()
777 of_node_put(gpio_ctrl); in tegra_hte_probe()
/openbmc/linux/drivers/staging/media/atomisp/i2c/ov5693/
H A Datomisp-ov5693.c1116 static int gpio_ctrl(struct v4l2_subdev *sd, bool flag) in gpio_ctrl() function
1148 ret = gpio_ctrl(sd, 1); in __power_up()
1150 ret = gpio_ctrl(sd, 1); in __power_up()
1165 gpio_ctrl(sd, 0); in __power_up()
1191 ret = gpio_ctrl(sd, 0); in power_down()
1193 ret = gpio_ctrl(sd, 0); in power_down()
/openbmc/linux/drivers/usb/serial/
H A Dcp210x.c1830 u8 gpio_ctrl; in cp2102n_gpioconf_init() local
1857 gpio_ctrl = config_buf[CP210X_2NCONFIG_GPIO_CONTROL_IDX]; in cp2102n_gpioconf_init()
1880 if (gpio_ctrl & CP2102N_QFN20_GPIO0_CLK_MODE) /* GPIO 0 */ in cp2102n_gpioconf_init()
1882 if (gpio_ctrl & CP2102N_QFN20_GPIO1_RS485_MODE) /* GPIO 1 */ in cp2102n_gpioconf_init()
1884 if (gpio_ctrl & CP2102N_QFN20_GPIO2_TXLED_MODE) /* GPIO 2 */ in cp2102n_gpioconf_init()
1886 if (gpio_ctrl & CP2102N_QFN20_GPIO3_RXLED_MODE) /* GPIO 3 */ in cp2102n_gpioconf_init()
1889 priv->gpio_altfunc = (gpio_ctrl >> 2) & 0x0f; in cp2102n_gpioconf_init()
/openbmc/u-boot/arch/m68k/include/asm/
H A Dimmap_520x.h94 typedef struct gpio_ctrl { struct
H A Dimmap_5235.h104 typedef struct gpio_ctrl { struct
H A Dimmap_5301x.h160 typedef struct gpio_ctrl { struct
H A Dimmap_5272.h78 typedef struct gpio_ctrl { struct
H A Dimmap_5275.h115 typedef struct gpio_ctrl { struct
H A Dimmap_5329.h145 typedef struct gpio_ctrl { struct
/openbmc/u-boot/arch/arm/include/asm/arch-tegra/
H A Ddc.h118 uint gpio_ctrl; /* _COM_GPIO_CTRL_0 */ member
/openbmc/linux/drivers/net/ethernet/wangxun/libwx/
H A Dwx_type.h882 bool gpio_ctrl; member