Home
last modified time | relevance | path

Searched refs:link_width_cntl (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/gpu/drm/radeon/
H A Drv770.c2022 u32 link_width_cntl, lanes, speed_cntl, tmp; in rv770_pcie_gen2_enable() local
2045 link_width_cntl = RREG32_PCIE_PORT(PCIE_LC_LINK_WIDTH_CNTL); in rv770_pcie_gen2_enable()
2046 link_width_cntl &= ~LC_UPCONFIGURE_DIS; in rv770_pcie_gen2_enable()
2047 WREG32_PCIE_PORT(PCIE_LC_LINK_WIDTH_CNTL, link_width_cntl); in rv770_pcie_gen2_enable()
2048 link_width_cntl = RREG32_PCIE_PORT(PCIE_LC_LINK_WIDTH_CNTL); in rv770_pcie_gen2_enable()
2049 if (link_width_cntl & LC_RENEGOTIATION_SUPPORT) { in rv770_pcie_gen2_enable()
2051 link_width_cntl &= ~(LC_LINK_WIDTH_MASK | in rv770_pcie_gen2_enable()
2053 link_width_cntl |= lanes | LC_RECONFIG_NOW | in rv770_pcie_gen2_enable()
2057 link_width_cntl |= LC_UPCONFIGURE_DIS; in rv770_pcie_gen2_enable()
2094 link_width_cntl |= LC_UPCONFIGURE_DIS; in rv770_pcie_gen2_enable()
[all …]
H A Dr300.c501 uint32_t link_width_cntl, mask; in rv370_set_pcie_lanes() local
536 link_width_cntl = RREG32_PCIE(RADEON_PCIE_LC_LINK_WIDTH_CNTL); in rv370_set_pcie_lanes()
538 if ((link_width_cntl & RADEON_PCIE_LC_LINK_WIDTH_RD_MASK) == in rv370_set_pcie_lanes()
542 link_width_cntl &= ~(RADEON_PCIE_LC_LINK_WIDTH_MASK | in rv370_set_pcie_lanes()
546 link_width_cntl |= mask; in rv370_set_pcie_lanes()
547 WREG32_PCIE(RADEON_PCIE_LC_LINK_WIDTH_CNTL, link_width_cntl); in rv370_set_pcie_lanes()
548 WREG32_PCIE(RADEON_PCIE_LC_LINK_WIDTH_CNTL, (link_width_cntl | in rv370_set_pcie_lanes()
552 link_width_cntl = RREG32_PCIE(RADEON_PCIE_LC_LINK_WIDTH_CNTL); in rv370_set_pcie_lanes()
553 while (link_width_cntl == 0xffffffff) in rv370_set_pcie_lanes()
560 u32 link_width_cntl; in rv370_get_pcie_lanes() local
[all …]
H A Dr600.c4397 u32 link_width_cntl, mask; in r600_set_pcie_lanes() local
4440 link_width_cntl &= ~RADEON_PCIE_LC_LINK_WIDTH_MASK; in r600_set_pcie_lanes()
4441 link_width_cntl |= mask << RADEON_PCIE_LC_LINK_WIDTH_SHIFT; in r600_set_pcie_lanes()
4442 link_width_cntl |= (RADEON_PCIE_LC_RECONFIG_NOW | in r600_set_pcie_lanes()
4450 u32 link_width_cntl; in r600_get_pcie_lanes() local
4525 link_width_cntl &= ~LC_UPCONFIGURE_DIS; in r600_pcie_gen2_enable()
4528 if (link_width_cntl & LC_RENEGOTIATION_SUPPORT) { in r600_pcie_gen2_enable()
4530 link_width_cntl &= ~(LC_LINK_WIDTH_MASK | in r600_pcie_gen2_enable()
4535 link_width_cntl |= LC_UPCONFIGURE_DIS; in r600_pcie_gen2_enable()
4592 link_width_cntl |= LC_UPCONFIGURE_DIS; in r600_pcie_gen2_enable()
[all …]
H A Devergreen.c5328 u32 link_width_cntl, speed_cntl; in evergreen_pcie_gen2_enable() local
5358 link_width_cntl = RREG32_PCIE_PORT(PCIE_LC_LINK_WIDTH_CNTL); in evergreen_pcie_gen2_enable()
5359 link_width_cntl &= ~LC_UPCONFIGURE_DIS; in evergreen_pcie_gen2_enable()
5360 WREG32_PCIE_PORT(PCIE_LC_LINK_WIDTH_CNTL, link_width_cntl); in evergreen_pcie_gen2_enable()
5379 link_width_cntl = RREG32_PCIE_PORT(PCIE_LC_LINK_WIDTH_CNTL); in evergreen_pcie_gen2_enable()
5382 link_width_cntl |= LC_UPCONFIGURE_DIS; in evergreen_pcie_gen2_enable()
5384 link_width_cntl &= ~LC_UPCONFIGURE_DIS; in evergreen_pcie_gen2_enable()
5385 WREG32_PCIE_PORT(PCIE_LC_LINK_WIDTH_CNTL, link_width_cntl); in evergreen_pcie_gen2_enable()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Dsi.c1517 u32 link_width_cntl; in si_get_pcie_lanes() local
1522 link_width_cntl = RREG32_PCIE_PORT(PCIE_LC_LINK_WIDTH_CNTL); in si_get_pcie_lanes()
1524 switch ((link_width_cntl & LC_LINK_WIDTH_RD_MASK) >> LC_LINK_WIDTH_RD_SHIFT) { in si_get_pcie_lanes()
1542 u32 link_width_cntl, mask; in si_set_pcie_lanes() local
1571 link_width_cntl = RREG32_PCIE_PORT(PCIE_LC_LINK_WIDTH_CNTL); in si_set_pcie_lanes()
1572 link_width_cntl &= ~LC_LINK_WIDTH_MASK; in si_set_pcie_lanes()
1573 link_width_cntl |= mask << LC_LINK_WIDTH_SHIFT; in si_set_pcie_lanes()
1574 link_width_cntl |= (LC_RECONFIG_NOW | in si_set_pcie_lanes()
1577 WREG32_PCIE_PORT(PCIE_LC_LINK_WIDTH_CNTL, link_width_cntl); in si_set_pcie_lanes()