Lines Matching refs:port

27 nvkm_rdport(struct nvkm_device *device, int head, u16 port)  in nvkm_rdport()  argument
30 return nvkm_rd08(device, 0x601000 + port); in nvkm_rdport()
32 if (port == 0x03c0 || port == 0x03c1 || /* AR */ in nvkm_rdport()
33 port == 0x03c2 || port == 0x03da || /* INP0 */ in nvkm_rdport()
34 port == 0x03d4 || port == 0x03d5) /* CR */ in nvkm_rdport()
35 return nvkm_rd08(device, 0x601000 + (head * 0x2000) + port); in nvkm_rdport()
37 if (port == 0x03c2 || port == 0x03cc || /* MISC */ in nvkm_rdport()
38 port == 0x03c4 || port == 0x03c5 || /* SR */ in nvkm_rdport()
39 port == 0x03ce || port == 0x03cf) { /* GR */ in nvkm_rdport()
42 return nvkm_rd08(device, 0x0c0000 + (head * 0x2000) + port); in nvkm_rdport()
49 nvkm_wrport(struct nvkm_device *device, int head, u16 port, u8 data) in nvkm_wrport() argument
52 nvkm_wr08(device, 0x601000 + port, data); in nvkm_wrport()
54 if (port == 0x03c0 || port == 0x03c1 || /* AR */ in nvkm_wrport()
55 port == 0x03c2 || port == 0x03da || /* INP0 */ in nvkm_wrport()
56 port == 0x03d4 || port == 0x03d5) /* CR */ in nvkm_wrport()
57 nvkm_wr08(device, 0x601000 + (head * 0x2000) + port, data); in nvkm_wrport()
59 if (port == 0x03c2 || port == 0x03cc || /* MISC */ in nvkm_wrport()
60 port == 0x03c4 || port == 0x03c5 || /* SR */ in nvkm_wrport()
61 port == 0x03ce || port == 0x03cf) { /* GR */ in nvkm_wrport()
64 nvkm_wr08(device, 0x0c0000 + (head * 0x2000) + port, data); in nvkm_wrport()
111 nvkm_rdvgai(struct nvkm_device *device, int head, u16 port, u8 index) in nvkm_rdvgai() argument
113 if (port == 0x03c4) return nvkm_rdvgas(device, head, index); in nvkm_rdvgai()
114 if (port == 0x03ce) return nvkm_rdvgag(device, head, index); in nvkm_rdvgai()
115 if (port == 0x03d4) return nvkm_rdvgac(device, head, index); in nvkm_rdvgai()
120 nvkm_wrvgai(struct nvkm_device *device, int head, u16 port, u8 index, u8 value) in nvkm_wrvgai() argument
122 if (port == 0x03c4) nvkm_wrvgas(device, head, index, value); in nvkm_wrvgai()
123 else if (port == 0x03ce) nvkm_wrvgag(device, head, index, value); in nvkm_wrvgai()
124 else if (port == 0x03d4) nvkm_wrvgac(device, head, index, value); in nvkm_wrvgai()