| /arch/mips/mach-octeon/ |
| A D | cvmx-qlm.c | 143 int qlm; in cvmx_qlm_lmac() local 170 for (qlm = 4; qlm < 8; qlm++) { in cvmx_qlm_lmac() 185 int qlm; in cvmx_qlm_lmac() local 235 int qlm; in cvmx_qlm_lmac() local 523 int qlm; in __cvmx_qlm_speed_tweak() local 527 for (qlm = 0; qlm < num_qlms; qlm++) { in __cvmx_qlm_speed_tweak() 572 for (qlm = 0; qlm < num_qlms; qlm++) { in __cvmx_qlm_speed_tweak() 595 int qlm; in __cvmx_qlm_pcie_idle_dac_tweak() local 607 for (qlm = 0; qlm < num_qlms; qlm++) in __cvmx_qlm_pcie_idle_dac_tweak() 1391 int bgx = (qlm < 2) ? qlm : qlm - 2; in cvmx_qlm_get_mode_cn78xx() [all …]
|
| A D | octeon_qlm.c | 2315 bgx = (qlm < 2) ? qlm : (qlm - 2); in octeon_qlm_tune_per_lane_v3() 2317 bgx = (qlm < 4) ? (qlm - 2) : 2; in octeon_qlm_tune_per_lane_v3() 3796 for (qlm = low_qlm; qlm <= high_qlm; qlm++) { in __cvmx_qlm_pcie_errata_ep_cn78xx() 3811 for (qlm = low_qlm; qlm <= high_qlm; qlm++) { in __cvmx_qlm_pcie_errata_ep_cn78xx() 3897 low_qlm = (is_8lanes) ? qlm - 1 : qlm; in __cvmx_qlm_pcie_errata_cn78xx() 3899 qlm = -1; in __cvmx_qlm_pcie_errata_cn78xx() 4481 int bgx = (qlm < 2) ? qlm : qlm - 2; in octeon_configure_qlm_cn78xx() 4604 if (qlm == 2 || qlm == 3 || qlm == 5 || qlm == 6) in __is_qlm_valid_bgx_cn73xx() 5119 int bgx = (qlm < 4) ? qlm - 2 : 2; in octeon_configure_qlm_cn73xx() 5820 int qlm; in octeon_init_qlm() local [all …]
|
| A D | cvmx-helper-jtag.c | 77 uint32_t cvmx_helper_qlm_jtag_shift(int qlm, int bits, uint32_t data) in cvmx_helper_qlm_jtag_shift() argument 83 jtgc.s.mux_sel = qlm; in cvmx_helper_qlm_jtag_shift() 91 jtgd.s.select = 1 << qlm; in cvmx_helper_qlm_jtag_shift() 109 void cvmx_helper_qlm_jtag_shift_zeros(int qlm, int bits) in cvmx_helper_qlm_jtag_shift_zeros() argument 116 cvmx_helper_qlm_jtag_shift(qlm, n, 0); in cvmx_helper_qlm_jtag_shift_zeros() 128 void cvmx_helper_qlm_jtag_update(int qlm) in cvmx_helper_qlm_jtag_update() argument 134 jtgc.s.mux_sel = qlm; in cvmx_helper_qlm_jtag_update() 142 jtgd.s.select = 1 << qlm; in cvmx_helper_qlm_jtag_update() 154 void cvmx_helper_qlm_jtag_capture(int qlm) in cvmx_helper_qlm_jtag_capture() argument 160 jtgc.s.mux_sel = qlm; in cvmx_helper_qlm_jtag_capture() [all …]
|
| A D | cvmx-helper-xaui.c | 118 int qlm = cvmx_qlm_interface(xiface); in __cvmx_helper_xaui_probe() local 226 int qlm = interface; in __cvmx_helper_xaui_link_init() local 229 __func__, __LINE__, qlm); in __cvmx_helper_xaui_link_init() 230 cvmx_qlm_display_registers(qlm); in __cvmx_helper_xaui_link_init() 237 if ((cvmx_qlm_get_gbaud_mhz(qlm) == 6250) && in __cvmx_helper_xaui_link_init() 241 cvmx_qlm_jtag_set(qlm, -1, "clkf_byp", 20); in __cvmx_helper_xaui_link_init() 251 __func__, __LINE__, qlm); in __cvmx_helper_xaui_link_init() 252 cvmx_qlm_display_registers(qlm); in __cvmx_helper_xaui_link_init() 422 int qlm = (interface == 1) ? 0 : interface; in __cvmx_helper_xaui_link_get() local 424 qlm_cfg.u64 = csr_rd(CVMX_MIO_QLMX_CFG(qlm)); in __cvmx_helper_xaui_link_get() [all …]
|
| A D | cvmx-pcie.c | 561 if (qlm >= 5) in __cvmx_pcie_rc_initialize_config_space() 711 int high_qlm = has_8lanes ? qlm + 1 : qlm; in __cvmx_pcie_gser_phy_config() 1026 if (qlm < 0) in __cvmx_pcie_check_qlm_mode() 1049 qlm = 1; in __cvmx_pcie_check_qlm_mode() 1051 qlm = pcie_port; in __cvmx_pcie_check_qlm_mode() 1054 qlm = pcie_port; in __cvmx_pcie_check_qlm_mode() 1062 qlm = 1; in __cvmx_pcie_check_qlm_mode() 1200 int qlm = 0; in __cvmx_pcie_rc_initialize_gen2() local 1761 int qlm; in __cvmx_pcie_rc_initialize_gen2_v3() local 1789 if (qlm < 0) in __cvmx_pcie_rc_initialize_gen2_v3() [all …]
|
| A D | cvmx-ilk.c | 182 int qlm; in cvmx_ilk_start_interface() local 188 for (qlm = 4; qlm < 8; qlm++) { in cvmx_ilk_start_interface() 202 << (4 * (qlm - 4)); in cvmx_ilk_start_interface() 237 int qlm = (interface) ? 2 : 1; in cvmx_ilk_start_interface() local 245 start_qlm = qlm; in cvmx_ilk_start_interface() 246 end_qlm = qlm; in cvmx_ilk_start_interface() 249 for (qlm = start_qlm; qlm <= end_qlm; qlm++) { in cvmx_ilk_start_interface() 252 __func__, __LINE__, qlm); in cvmx_ilk_start_interface() 253 cvmx_qlm_display_registers(qlm); in cvmx_ilk_start_interface() 270 __func__, __LINE__, qlm); in cvmx_ilk_start_interface() [all …]
|
| A D | cvmx-helper.c | 611 int qlm = cvmx_qlm_lmac(xiface, 0); in __cvmx_get_mode_cn78xx() local 614 if (qlm == -1) { in __cvmx_get_mode_cn78xx() 618 qlm_mode = cvmx_qlm_get_mode_cn78xx(xi.node, qlm); in __cvmx_get_mode_cn78xx() 728 int qlm = 0; in __cvmx_get_mode_cn78xx() local 730 for (qlm = 0; qlm < 5; qlm++) { in __cvmx_get_mode_cn78xx() 759 int qlm = cvmx_qlm_lmac(xiface, 0); in __cvmx_get_mode_cn73xx() local 762 if (qlm == -1) { in __cvmx_get_mode_cn73xx() 766 qlm_mode = cvmx_qlm_get_mode(qlm); in __cvmx_get_mode_cn73xx() 837 int qlm = cvmx_qlm_lmac(xiface, 0); in __cvmx_get_mode_cnf75xx() local 839 if (qlm == -1) { in __cvmx_get_mode_cnf75xx() [all …]
|
| A D | cvmx-helper-ilk.c | 739 int qlm, lane_mask; in __cvmx_helper_ilk_link_get() local 741 for (qlm = 4; qlm < 8; qlm++) { in __cvmx_helper_ilk_link_get() 742 lane_mask = 1 << (qlm - 4) * 4; in __cvmx_helper_ilk_link_get() 746 node, qlm, -1)) in __cvmx_helper_ilk_link_get() 850 int qlm = cvmx_qlm_lmac(xiface, 0); in __cvmx_helper_ilk_link_get() local 852 result.s.speed = cvmx_qlm_get_gbaud_mhz(qlm) * 64 / 67; in __cvmx_helper_ilk_link_get()
|
| A D | Makefile | 54 obj-y += cvmx-qlm.o 55 obj-y += cvmx-qlm-tables.o
|
| A D | octeon_fdt.c | 174 char qlm[32]; in __octeon_fdt_patch_rename() local 183 strncpy(qlm, fdt_key, sizeof(qlm)); in __octeon_fdt_patch_rename() 184 mode = qlm; in __octeon_fdt_patch_rename() 186 qlm_key_len = strlen(qlm); in __octeon_fdt_patch_rename() 214 if (strncmp(val, qlm, qlm_key_len) != 0) in __octeon_fdt_patch_rename()
|
| A D | cvmx-helper-sgmii.c | 477 int qlm = cvmx_qlm_interface(xiface); in __cvmx_helper_sgmii_probe() local 479 if (cvmx_qlm_get_mode(qlm) != CVMX_QLM_MODE_SGMII) in __cvmx_helper_sgmii_probe() 623 int qlm; in __cvmx_helper_sgmii_link_get() local 639 qlm = cvmx_qlm_interface(interface); in __cvmx_helper_sgmii_link_get() 640 speed = cvmx_qlm_get_gbaud_mhz(qlm) * 8 / 10; in __cvmx_helper_sgmii_link_get()
|
| A D | cvmx-helper-bgx.c | 820 int qlm = cvmx_qlm_lmac(xiface, index); in __cvmx_helper_bgx_sgmii_link_get() local 826 speed = cvmx_qlm_get_gbaud_mhz(qlm); in __cvmx_helper_bgx_sgmii_link_get() 838 int qlm = cvmx_qlm_lmac(xiface, index); in __cvmx_helper_bgx_sgmii_link_get() local 844 speed = cvmx_qlm_get_gbaud_mhz(qlm); in __cvmx_helper_bgx_sgmii_link_get() 1539 int qlm = cvmx_qlm_lmac(xiface, index); in __cvmx_helper_bgx_xaui_link_init() local 1702 node, xi.interface, index, qlm); in __cvmx_helper_bgx_xaui_link_init() 1712 node, xi.interface, index, qlm); in __cvmx_helper_bgx_xaui_link_init() 1730 node, xi.interface, index, qlm); in __cvmx_helper_bgx_xaui_link_init() 1748 node, xi.interface, index, qlm); in __cvmx_helper_bgx_xaui_link_init() 2110 int qlm = cvmx_qlm_lmac(xiface, index); in __cvmx_helper_bgx_xaui_link_get() local [all …]
|
| /arch/mips/mach-octeon/include/mach/ |
| A D | cvmx-qlm.h | 72 int cvmx_qlm_get_lanes(int qlm); 103 u64 cvmx_qlm_jtag_get(int qlm, int lane, const char *name); 129 void __cvmx_qlm_pcie_cfg_rxd_set_tweak(int qlm, int lane); 138 int cvmx_qlm_get_gbaud_mhz(int qlm); 147 int cvmx_qlm_get_gbaud_mhz_node(int node, int qlm); 238 enum cvmx_qlm_mode cvmx_qlm_get_mode(int qlm); 243 void cvmx_qlm_display_registers(int qlm); 245 int cvmx_qlm_measure_clock(int qlm); 255 int cvmx_qlm_measure_clock_node(int node, int qlm); 279 void cvmx_qlm_gser_errata_25992(int node, int qlm); [all …]
|
| A D | octeon_qlm.h | 45 int octeon_configure_qlm(int qlm, int speed, int mode, int rc, int pcie_mode, int ref_clk_sel, 48 int octeon_configure_qlm_cn78xx(int node, int qlm, int speed, int mode, int rc, int pcie_mode, 65 void octeon_qlm_tune_per_lane_v3(int node, int qlm, int baud_mhz, int lane, int tx_swing, 81 void octeon_qlm_tune_v3(int node, int qlm, int baud_mhz, int tx_swing, int tx_premptap, int tx_gain, 94 void octeon_qlm_dfe_disable(int node, int qlm, int lane, int baud_mhz, int mode); 103 void octeon_qlm_set_channel_v3(int node, int qlm, int pre_ctle);
|
| A D | cvmx-helper-jtag.h | 54 u32 cvmx_helper_qlm_jtag_shift(int qlm, int bits, u32 data); 66 void cvmx_helper_qlm_jtag_shift_zeros(int qlm, int bits); 75 void cvmx_helper_qlm_jtag_update(int qlm); 82 void cvmx_helper_qlm_jtag_capture(int qlm);
|
| A D | cvmx-helper-errata.h | 49 void __cvmx_helper_errata_qlm_disable_2nd_order_cdr(int qlm);
|
| /arch/mips/dts/ |
| A D | mrvl,cn73xx.dtsi | 260 cavium,qlm-trim = "4,sata";
|