Lines Matching +full:gpio +full:- +full:dir
29 nv10_gpio_sense(struct nvkm_gpio *gpio, int line) in nv10_gpio_sense() argument
31 struct nvkm_device *device = gpio->subdev.device; in nv10_gpio_sense()
38 line = (line - 2) * 4; in nv10_gpio_sense()
43 line = (line - 10) * 4; in nv10_gpio_sense()
48 return -EINVAL; in nv10_gpio_sense()
52 nv10_gpio_drive(struct nvkm_gpio *gpio, int line, int dir, int out) in nv10_gpio_drive() argument
54 struct nvkm_device *device = gpio->subdev.device; in nv10_gpio_drive()
61 data = (dir << 4) | out; in nv10_gpio_drive()
64 line = (line - 2) * 4; in nv10_gpio_drive()
67 data = (dir << 1) | out; in nv10_gpio_drive()
70 line = (line - 10) * 4; in nv10_gpio_drive()
73 data = (dir << 1) | out; in nv10_gpio_drive()
75 return -EINVAL; in nv10_gpio_drive()
83 nv10_gpio_intr_stat(struct nvkm_gpio *gpio, u32 *hi, u32 *lo) in nv10_gpio_intr_stat() argument
85 struct nvkm_device *device = gpio->subdev.device; in nv10_gpio_intr_stat()
94 nv10_gpio_intr_mask(struct nvkm_gpio *gpio, u32 type, u32 mask, u32 data) in nv10_gpio_intr_mask() argument
96 struct nvkm_device *device = gpio->subdev.device; in nv10_gpio_intr_mask()