Lines Matching refs:pci

27 gk104_pcie_version_supported(struct nvkm_pci *pci)  in gk104_pcie_version_supported()  argument
29 return (nvkm_rd32(pci->subdev.device, 0x8c1c0) & 0x4) == 0x4 ? 2 : 1; in gk104_pcie_version_supported()
33 gk104_pcie_set_cap_speed(struct nvkm_pci *pci, enum nvkm_pcie_speed speed) in gk104_pcie_set_cap_speed() argument
35 struct nvkm_device *device = pci->subdev.device; in gk104_pcie_set_cap_speed()
39 gf100_pcie_set_cap_speed(pci, false); in gk104_pcie_set_cap_speed()
43 gf100_pcie_set_cap_speed(pci, true); in gk104_pcie_set_cap_speed()
47 gf100_pcie_set_cap_speed(pci, true); in gk104_pcie_set_cap_speed()
54 gk104_pcie_cap_speed(struct nvkm_pci *pci) in gk104_pcie_cap_speed() argument
56 int speed = gf100_pcie_cap_speed(pci); in gk104_pcie_cap_speed()
62 int speed2 = nvkm_rd32(pci->subdev.device, 0x8c1c0) & 0x30000; in gk104_pcie_cap_speed()
78 gk104_pcie_set_lnkctl_speed(struct nvkm_pci *pci, enum nvkm_pcie_speed speed) in gk104_pcie_set_lnkctl_speed() argument
92 nvkm_pci_mask(pci, 0xa8, 0x3, reg_v); in gk104_pcie_set_lnkctl_speed()
96 gk104_pcie_lnkctl_speed(struct nvkm_pci *pci) in gk104_pcie_lnkctl_speed() argument
98 u8 reg_v = nvkm_pci_rd32(pci, 0xa8) & 0x3; in gk104_pcie_lnkctl_speed()
112 gk104_pcie_max_speed(struct nvkm_pci *pci) in gk104_pcie_max_speed() argument
114 u32 max_speed = nvkm_rd32(pci->subdev.device, 0x8c1c0) & 0x300000; in gk104_pcie_max_speed()
127 gk104_pcie_set_link_speed(struct nvkm_pci *pci, enum nvkm_pcie_speed speed) in gk104_pcie_set_link_speed() argument
129 struct nvkm_device *device = pci->subdev.device; in gk104_pcie_set_link_speed()
150 gk104_pcie_init(struct nvkm_pci * pci) in gk104_pcie_init() argument
153 struct nvkm_subdev *subdev = &pci->subdev; in gk104_pcie_init()
155 if (gf100_pcie_version(pci) < 2) in gk104_pcie_init()
158 lnkctl_speed = gk104_pcie_lnkctl_speed(pci); in gk104_pcie_init()
159 max_speed = gk104_pcie_max_speed(pci); in gk104_pcie_init()
160 cap_speed = gk104_pcie_cap_speed(pci); in gk104_pcie_init()
164 gk104_pcie_set_cap_speed(pci, max_speed); in gk104_pcie_init()
165 cap_speed = gk104_pcie_cap_speed(pci); in gk104_pcie_init()
172 gk104_pcie_set_lnkctl_speed(pci, max_speed); in gk104_pcie_init()
173 lnkctl_speed = gk104_pcie_lnkctl_speed(pci); in gk104_pcie_init()
182 gk104_pcie_set_link(struct nvkm_pci *pci, enum nvkm_pcie_speed speed, u8 width) in gk104_pcie_set_link() argument
184 struct nvkm_subdev *subdev = &pci->subdev; in gk104_pcie_set_link()
185 enum nvkm_pcie_speed lnk_ctl_speed = gk104_pcie_lnkctl_speed(pci); in gk104_pcie_set_link()
186 enum nvkm_pcie_speed lnk_cap_speed = gk104_pcie_cap_speed(pci); in gk104_pcie_set_link()
200 gk104_pcie_set_link_speed(pci, speed); in gk104_pcie_set_link()