Lines Matching full:line
29 nv10_gpio_sense(struct nvkm_gpio *gpio, int line) in nv10_gpio_sense() argument
32 if (line < 2) { in nv10_gpio_sense()
33 line = line * 16; in nv10_gpio_sense()
34 line = nvkm_rd32(device, 0x600818) >> line; in nv10_gpio_sense()
35 return !!(line & 0x0100); in nv10_gpio_sense()
37 if (line < 10) { in nv10_gpio_sense()
38 line = (line - 2) * 4; in nv10_gpio_sense()
39 line = nvkm_rd32(device, 0x60081c) >> line; in nv10_gpio_sense()
40 return !!(line & 0x04); in nv10_gpio_sense()
42 if (line < 14) { in nv10_gpio_sense()
43 line = (line - 10) * 4; in nv10_gpio_sense()
44 line = nvkm_rd32(device, 0x600850) >> line; in nv10_gpio_sense()
45 return !!(line & 0x04); in nv10_gpio_sense()
52 nv10_gpio_drive(struct nvkm_gpio *gpio, int line, int dir, int out) in nv10_gpio_drive() argument
57 if (line < 2) { in nv10_gpio_drive()
58 line = line * 16; in nv10_gpio_drive()
63 if (line < 10) { in nv10_gpio_drive()
64 line = (line - 2) * 4; in nv10_gpio_drive()
69 if (line < 14) { in nv10_gpio_drive()
70 line = (line - 10) * 4; in nv10_gpio_drive()
78 nvkm_mask(device, reg, mask << line, data << line); in nv10_gpio_drive()