HomeSort by: relevance | last modified time | path
    Searched defs:gpio (Results 1 - 25 of 88) sorted by relevancy

1 2 3 4

  /src/lib/lua/gpio/
Makefile 3 LUA_MODULES= gpio
4 LUA_SRCS.gpio= gpio.c
  /src/sys/arch/arm/imx/
imx51_gpio.c 38 #include "gpio.h"
62 #include <sys/gpio.h>
63 #include <dev/gpio/gpiovar.h>
91 struct imxgpio_softc * const gpio = device_private(self); local
118 gpio->gpio_is = intr_establish(aa->aa_irq,
119 IPL_HIGH, IST_LEVEL, pic_handle_intr, &gpio->gpio_pic);
120 KASSERT(gpio->gpio_is != NULL );
121 gpio->gpio_is_high = intr_establish(aa->aa_irq + 1,
122 IPL_HIGH, IST_LEVEL, pic_handle_intr, &gpio->gpio_pic);
123 KASSERT(gpio->gpio_is_high != NULL)
    [all...]
imxgpio.c 37 #include "gpio.h"
54 /* GPIO access from userland */
55 #include <sys/gpio.h>
56 #include <dev/gpio/gpiovar.h>
83 #define GPIO_READ(gpio, reg) \
84 bus_space_read_4((gpio)->gpio_memt, (gpio)->gpio_memh, (reg))
85 #define GPIO_WRITE(gpio, reg, val) \
86 bus_space_write_4((gpio)->gpio_memt, (gpio)->gpio_memh, (reg), (val)
91 struct imxgpio_softc * const gpio = PIC_TO_SOFTC(pic); local
103 struct imxgpio_softc * const gpio = PIC_TO_SOFTC(pic); local
113 struct imxgpio_softc * const gpio = PIC_TO_SOFTC(pic); local
178 struct imxgpio_softc * const gpio = PIC_TO_SOFTC(pic); local
231 struct imxgpio_softc * const gpio = arg; local
242 struct imxgpio_softc * const gpio = arg; local
264 struct imxgpio_softc * const gpio = arg; local
328 struct imxgpio_softc * const gpio = device_private(self); local
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bus/
nouveau_nvkm_subdev_bus_nv04.c 32 #include <subdev/gpio.h>
48 struct nvkm_gpio *gpio = device->gpio; local
49 if (gpio)
50 nvkm_subdev_intr(&gpio->subdev);
nouveau_nvkm_subdev_bus_nv31.c 32 #include <subdev/gpio.h>
41 u32 gpio = nvkm_rd32(device, 0x001104) & nvkm_rd32(device, 0x001144); local
43 if (gpio) {
44 struct nvkm_gpio *gpio = device->gpio; local
45 if (gpio)
46 nvkm_subdev_intr(&gpio->subdev);
  /src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/volt/
nouveau_nvkm_subdev_volt_gpio.c 31 #include <subdev/bios/gpio.h>
32 #include <subdev/gpio.h>
45 struct nvkm_gpio *gpio = volt->subdev.device->gpio; local
51 int ret = nvkm_gpio_get(gpio, 0, tags[i], 0xff);
64 struct nvkm_gpio *gpio = volt->subdev.device->gpio; local
69 int ret = nvkm_gpio_set(gpio, 0, tags[i], 0xff, vid & 1);
82 struct nvkm_gpio *gpio = subdev->device->gpio; local
    [all...]
nouveau_nvkm_subdev_volt_gk104.c 32 #include <subdev/gpio.h>
106 struct dcb_gpio_func gpio; local
115 if (!nvkm_gpio_find(device->gpio, 0, DCB_GPIO_VID_PWM, 0xff, &gpio) &&
128 * did not find the right GPIO for it.
133 "the GPIO table. Fallback to GPIO mode.\n");
138 mode = "GPIO";
  /src/sys/arch/arm/xscale/
pxa2x0_com.c 78 u_int gpio; local
115 gpio = pxa2x0_gpio_get_function(gpioconf[i].pin);
116 if (GPIO_FN(gpio) != GPIO_FN(gpioconf[i].value) ||
117 GPIO_FN_IS_OUT(gpio) != GPIO_FN_IS_OUT(gpioconf[i].value))
  /src/sys/external/bsd/drm2/dist/drm/amd/display/dc/gpio/
amdgpu_hw_gpio.c 40 gpio->regs->field_name ## _shift, gpio->regs->field_name ## _mask
43 gpio->base.ctx
45 (gpio->regs->reg)
48 struct hw_gpio *gpio)
50 REG_GET(MASK_reg, MASK, &gpio->store.mask);
51 REG_GET(A_reg, A, &gpio->store.a);
52 REG_GET(EN_reg, EN, &gpio->store.en);
57 struct hw_gpio *gpio)
59 REG_UPDATE(MASK_reg, MASK, gpio->store.mask)
82 const struct hw_gpio *gpio = const_container_of(ptr, struct hw_gpio, base); local
104 const struct hw_gpio *gpio = const_container_of(ptr, struct hw_gpio, base); local
    [all...]
amdgpu_hw_hpd.c 52 struct gpio;
76 const struct hw_gpio *gpio = const_container_of(ptr, struct hw_gpio, base); local
77 const struct hw_hpd *hpd = const_container_of(gpio, struct hw_hpd, base);
91 /* in any other modes, operate as normal GPIO */
152 struct hw_gpio_pin *dal_hw_hpd_get_pin(struct gpio *gpio)
154 struct hw_hpd *hw_hpd = dal_gpio_get_hpd(gpio);
generic_regs.h 55 struct gpio_registers gpio; member in struct:generic_registers
hpd_regs.h 66 struct gpio_registers gpio; member in struct:hpd_registers
amdgpu_gpio_base.c 60 struct gpio *gpio,
63 return dal_gpio_open_ex(gpio, mode);
67 struct gpio *gpio,
70 if (gpio->pin) {
75 // No action if allocation failed during gpio construct
76 if (!gpio->hw_container.ddc) {
80 gpio->mode = mode;
82 return dal_gpio_service_open(gpio);
280 struct gpio *gpio = kzalloc(sizeof(struct gpio), GFP_KERNEL); local
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/amd/display/dc/inc/hw/
gpio.h 1 /* $NetBSD: gpio.h,v 1.2 2021/12/18 23:45:05 riastradh Exp $ */
40 struct gpio { struct
49 /* when GPIO comes from VBIOS, it has defined output state */
  /src/sys/external/bsd/drm2/dist/drm/nouveau/
nouveau_led.c 39 #include <nvkm/subdev/gpio.h>
86 struct nvkm_gpio *gpio = nvxx_gpio(&drm->client.device); local
90 if (!gpio)
93 /* check that there is a GPIO controlling the logo LED */
94 if (nvkm_gpio_find(gpio, 0, DCB_GPIO_LOGO_LED_PWM, 0xff, &logo_led))
  /src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/disp/
nouveau_nvkm_engine_disp_conn.c 33 #include <subdev/gpio.h>
42 struct nvkm_gpio *gpio = disp->engine.subdev.device->gpio; local
49 if (!nvkm_gpio_get(gpio, 0, DCB_GPIO_UNUSED, conn->hpd.index))
87 struct nvkm_gpio *gpio = disp->engine.subdev.device->gpio; local
106 ret = nvkm_gpio_find(gpio, 0, info->hpd, DCB_GPIO_UNUSED, &func);
113 ret = nvkm_notify_init(NULL, &gpio->event, nvkm_conn_hpd,
  /src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/
nouveau_nvkm_subdev_bios_gpio.c 31 #include <subdev/bios/gpio.h>
68 u8 hdr, cnt, xver; /* use gpio version for xpio entry parsing */
69 u16 gpio; local
72 gpio = dcb_gpio_table(bios, ver, &hdr, &cnt, len);
74 gpio = dcb_xpio_table(bios, idx, &xver, &hdr, &cnt, len);
76 if (gpio && ent < cnt)
77 return gpio + hdr + (ent * *len);
84 struct dcb_gpio_func *gpio)
90 *gpio = (struct dcb_gpio_func) {
100 *gpio = (struct dcb_gpio_func)
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/therm/
nouveau_nvkm_subdev_therm_fanpwm.c 35 #include <subdev/gpio.h>
47 struct nvkm_gpio *gpio = device->gpio; local
60 return nvkm_gpio_get(gpio, 0, fan->func.func, fan->func.line) * 100;
nouveau_nvkm_subdev_therm_gf119.c 36 u32 gpio = nvkm_rd32(device, 0x00d610 + (line * 0x04)); local
38 switch (gpio & 0x000000c0) {
41 switch (gpio & 0x0000001f) {
53 nvkm_error(subdev, "GPIO %d unknown PWM: %08x\n", line, gpio);
nouveau_nvkm_subdev_therm_fantog.c 31 #include <subdev/gpio.h>
49 struct nvkm_gpio *gpio = device->gpio; local
58 duty = !nvkm_gpio_get(gpio, 0, DCB_GPIO_FAN, 0xff);
59 nvkm_gpio_set(gpio, 0, DCB_GPIO_FAN, 0xff, duty);
  /src/sys/arch/evbarm/gumstix/
gxpcic.c 137 * Check GPIO configuration. If you use these, it is sure already
290 u_int shift = 0, gpio; local
294 gpio = pxa2x0_gpio_get_function(11);
295 result |= ((gpio & GPIO_SET) == GPIO_SET) << shift;
  /src/sys/dev/fdt/
pl061gpio_fdt.c 39 #include <sys/gpio.h>
41 #include <dev/gpio/gpiovar.h>
110 aprint_normal(": GPIO\n");
123 const u_int *gpio = data; local
128 const u_int pin = be32toh(gpio[1]);
129 const bool actlo = be32toh(gpio[2]) & 1;
  /src/sys/dev/ic/
dl10019.c 217 u_int8_t gpio; local
220 gpio = bus_space_read_1(sc->sc_regt, sc->sc_regh, NEDL_DL0_GPIO);
222 (val & ~DL0_GPIO_PRESERVE) | (gpio & DL0_GPIO_PRESERVE));
  /src/sys/external/bsd/drm2/dist/drm/i915/display/
intel_dvo_dev.h 40 /* GPIO register used for i2c bus to control this device */
41 u32 gpio; member in struct:intel_dvo_device
  /src/sys/arch/arm/nxp/
imx_gpio.c 32 #include "gpio.h"
43 #include <sys/gpio.h>
45 #include <dev/gpio/gpiovar.h>
81 { .compat = "fsl,imx35-gpio" },
117 aprint_normal(": GPIO (%s)\n", fdtbus_get_string(phandle, "name"));
167 const u_int *gpio = data; local
172 const u_int pin = be32toh(gpio[1]);
173 const bool actlo = be32toh(gpio[2]) & 1;
273 snprintf(buf, buflen, "irq %d (gpio%d %d)",

Completed in 29 milliseconds

1 2 3 4