Lines Matching refs:func

32 	return gpio->func->drive(gpio, line, dir, out);  in nvkm_gpio_drive()
38 return gpio->func->sense(gpio, line); in nvkm_gpio_sense()
42 nvkm_gpio_reset(struct nvkm_gpio *gpio, u8 func) in nvkm_gpio_reset() argument
44 if (gpio->func->reset) in nvkm_gpio_reset()
45 gpio->func->reset(gpio, func); in nvkm_gpio_reset()
50 struct dcb_gpio_func *func) in nvkm_gpio_find() argument
60 data = dcb_gpio_match(bios, idx, tag, line, &ver, &len, func); in nvkm_gpio_find()
67 *func = (struct dcb_gpio_func) { in nvkm_gpio_find()
68 .func = DCB_GPIO_TVDAC0, in nvkm_gpio_find()
83 struct dcb_gpio_func func; in nvkm_gpio_set() local
86 ret = nvkm_gpio_find(gpio, idx, tag, line, &func); in nvkm_gpio_set()
88 int dir = !!(func.log[state] & 0x02); in nvkm_gpio_set()
89 int out = !!(func.log[state] & 0x01); in nvkm_gpio_set()
90 ret = nvkm_gpio_drive(gpio, idx, func.line, dir, out); in nvkm_gpio_set()
99 struct dcb_gpio_func func; in nvkm_gpio_get() local
102 ret = nvkm_gpio_find(gpio, idx, tag, line, &func); in nvkm_gpio_get()
104 ret = nvkm_gpio_sense(gpio, idx, func.line); in nvkm_gpio_get()
106 ret = (ret == (func.log[1] & 1)); in nvkm_gpio_get()
116 gpio->func->intr_mask(gpio, type, 1 << index, 0); in nvkm_gpio_intr_fini()
123 gpio->func->intr_mask(gpio, type, 1 << index, 1 << index); in nvkm_gpio_intr_init()
153 gpio->func->intr_stat(gpio, &hi, &lo); in nvkm_gpio_intr()
155 for (i = 0; (hi | lo) && i < gpio->func->lines; i++) { in nvkm_gpio_intr()
168 u32 mask = (1ULL << gpio->func->lines) - 1; in nvkm_gpio_fini()
170 gpio->func->intr_mask(gpio, NVKM_GPIO_TOGGLED, mask, 0); in nvkm_gpio_fini()
171 gpio->func->intr_stat(gpio, &mask, &mask); in nvkm_gpio_fini()
196 struct dcb_gpio_func func; in nvkm_gpio_init() local
206 DCB_GPIO_UNUSED, &func); in nvkm_gpio_init()
210 ret = nvkm_gpio_get(gpio, 0, func.func, func.line); in nvkm_gpio_init()
243 nvkm_gpio_new_(const struct nvkm_gpio_func *func, struct nvkm_device *device, in nvkm_gpio_new_() argument
252 gpio->func = func; in nvkm_gpio_new_()
254 return nvkm_event_init(&nvkm_gpio_intr_func, 2, func->lines, in nvkm_gpio_new_()