Lines Matching refs:func

31 	return gpio->func->drive(gpio, line, dir, out);  in nvkm_gpio_drive()
37 return gpio->func->sense(gpio, line); in nvkm_gpio_sense()
41 nvkm_gpio_reset(struct nvkm_gpio *gpio, u8 func) in nvkm_gpio_reset() argument
43 if (gpio->func->reset) in nvkm_gpio_reset()
44 gpio->func->reset(gpio, func); in nvkm_gpio_reset()
49 struct dcb_gpio_func *func) in nvkm_gpio_find() argument
59 data = dcb_gpio_match(bios, idx, tag, line, &ver, &len, func); in nvkm_gpio_find()
66 *func = (struct dcb_gpio_func) { in nvkm_gpio_find()
67 .func = DCB_GPIO_TVDAC0, in nvkm_gpio_find()
82 struct dcb_gpio_func func; in nvkm_gpio_set() local
85 ret = nvkm_gpio_find(gpio, idx, tag, line, &func); in nvkm_gpio_set()
87 int dir = !!(func.log[state] & 0x02); in nvkm_gpio_set()
88 int out = !!(func.log[state] & 0x01); in nvkm_gpio_set()
89 ret = nvkm_gpio_drive(gpio, idx, func.line, dir, out); in nvkm_gpio_set()
98 struct dcb_gpio_func func; in nvkm_gpio_get() local
101 ret = nvkm_gpio_find(gpio, idx, tag, line, &func); in nvkm_gpio_get()
103 ret = nvkm_gpio_sense(gpio, idx, func.line); in nvkm_gpio_get()
105 ret = (ret == (func.log[1] & 1)); in nvkm_gpio_get()
115 gpio->func->intr_mask(gpio, type, 1 << index, 0); in nvkm_gpio_intr_fini()
122 gpio->func->intr_mask(gpio, type, 1 << index, 1 << index); in nvkm_gpio_intr_init()
137 gpio->func->intr_stat(gpio, &hi, &lo); in nvkm_gpio_intr()
139 for (i = 0; (hi | lo) && i < gpio->func->lines; i++) { in nvkm_gpio_intr()
150 u32 mask = (1ULL << gpio->func->lines) - 1; in nvkm_gpio_fini()
152 gpio->func->intr_mask(gpio, NVKM_GPIO_TOGGLED, mask, 0); in nvkm_gpio_fini()
153 gpio->func->intr_stat(gpio, &mask, &mask); in nvkm_gpio_fini()
178 struct dcb_gpio_func func; in nvkm_gpio_init() local
188 DCB_GPIO_UNUSED, &func); in nvkm_gpio_init()
192 ret = nvkm_gpio_get(gpio, 0, func.func, func.line); in nvkm_gpio_init()
225 nvkm_gpio_new_(const struct nvkm_gpio_func *func, struct nvkm_device *device, in nvkm_gpio_new_() argument
234 gpio->func = func; in nvkm_gpio_new_()
236 return nvkm_event_init(&nvkm_gpio_intr_func, &gpio->subdev, 2, func->lines, &gpio->event); in nvkm_gpio_new_()