Home
last modified time | relevance | path

Searched refs:interface (Results 1 – 25 of 219) sorted by relevance

123456789

/arch/mips/cavium-octeon/executive/
Dcvmx-helper-xaui.c45 int __cvmx_helper_xaui_enumerate(int interface) in __cvmx_helper_xaui_enumerate() argument
50 gmx_hg2_control.u64 = cvmx_read_csr(CVMX_GMXX_HG2_CONTROL(interface)); in __cvmx_helper_xaui_enumerate()
66 int __cvmx_helper_xaui_probe(int interface) in __cvmx_helper_xaui_probe() argument
76 mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); in __cvmx_helper_xaui_probe()
78 cvmx_write_csr(CVMX_GMXX_INF_MODE(interface), mode.u64); in __cvmx_helper_xaui_probe()
80 __cvmx_helper_setup_gmx(interface, 1); in __cvmx_helper_xaui_probe()
98 pko_mem_port_ptrs.s.eid = interface * 4; in __cvmx_helper_xaui_probe()
99 pko_mem_port_ptrs.s.pid = interface * 16 + i; in __cvmx_helper_xaui_probe()
102 return __cvmx_helper_xaui_enumerate(interface); in __cvmx_helper_xaui_probe()
114 int __cvmx_helper_xaui_enable(int interface) in __cvmx_helper_xaui_enable() argument
[all …]
Dcvmx-helper-sgmii.c52 static int __cvmx_helper_sgmii_hardware_init_one_time(int interface, int index) in __cvmx_helper_sgmii_hardware_init_one_time() argument
60 gmxx_prtx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
62 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmxx_prtx_cfg.u64); in __cvmx_helper_sgmii_hardware_init_one_time()
70 cvmx_read_csr(CVMX_PCSX_MISCX_CTL_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
72 cvmx_read_csr(CVMX_PCSX_LINKX_TIMER_COUNT_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
82 cvmx_write_csr(CVMX_PCSX_LINKX_TIMER_COUNT_REG(index, interface), in __cvmx_helper_sgmii_hardware_init_one_time()
98 cvmx_read_csr(CVMX_PCSX_ANX_ADV_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
103 cvmx_write_csr(CVMX_PCSX_ANX_ADV_REG(index, interface), in __cvmx_helper_sgmii_hardware_init_one_time()
108 cvmx_read_csr(CVMX_PCSX_MISCX_CTL_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
114 (index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
[all …]
Dcvmx-helper-rgmii.c52 int __cvmx_helper_rgmii_probe(int interface) in __cvmx_helper_rgmii_probe() argument
56 mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); in __cvmx_helper_rgmii_probe()
100 int interface = (port >> 4) & 1; in cvmx_helper_rgmii_internal_loopback() local
109 cvmx_write_csr(CVMX_GMXX_TXX_CLK(index, interface), 1); in cvmx_helper_rgmii_internal_loopback()
110 cvmx_write_csr(CVMX_GMXX_TXX_SLOT(index, interface), 0x200); in cvmx_helper_rgmii_internal_loopback()
111 cvmx_write_csr(CVMX_GMXX_TXX_BURST(index, interface), 0x2000); in cvmx_helper_rgmii_internal_loopback()
112 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); in cvmx_helper_rgmii_internal_loopback()
113 tmp = cvmx_read_csr(CVMX_ASXX_PRT_LOOP(interface)); in cvmx_helper_rgmii_internal_loopback()
114 cvmx_write_csr(CVMX_ASXX_PRT_LOOP(interface), (1 << index) | tmp); in cvmx_helper_rgmii_internal_loopback()
115 tmp = cvmx_read_csr(CVMX_ASXX_TX_PRT_EN(interface)); in cvmx_helper_rgmii_internal_loopback()
[all …]
Dcvmx-helper.c82 int cvmx_helper_ports_on_interface(int interface) in cvmx_helper_ports_on_interface() argument
84 return interface_port_count[interface]; in cvmx_helper_ports_on_interface()
92 static cvmx_helper_interface_mode_t __cvmx_get_mode_cn68xx(int interface) in __cvmx_get_mode_cn68xx() argument
95 switch (interface) { in __cvmx_get_mode_cn68xx()
111 qlm_cfg.u64 = cvmx_read_csr(CVMX_MIO_QLMX_CFG(interface)); in __cvmx_get_mode_cn68xx()
144 static cvmx_helper_interface_mode_t __cvmx_get_mode_octeon2(int interface) in __cvmx_get_mode_octeon2() argument
149 return __cvmx_get_mode_cn68xx(interface); in __cvmx_get_mode_octeon2()
151 if (interface == 2) in __cvmx_get_mode_octeon2()
154 if (interface == 3) in __cvmx_get_mode_octeon2()
159 (interface == 4 || interface == 5)) || in __cvmx_get_mode_octeon2()
[all …]
Dcvmx-spi.c105 int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, int timeout, in cvmx_spi_start_interface() argument
114 INVOKE_CB(cvmx_spi_callbacks.reset_cb, interface, mode); in cvmx_spi_start_interface()
117 INVOKE_CB(cvmx_spi_callbacks.calendar_setup_cb, interface, mode, in cvmx_spi_start_interface()
121 INVOKE_CB(cvmx_spi_callbacks.clock_detect_cb, interface, mode, timeout); in cvmx_spi_start_interface()
124 INVOKE_CB(cvmx_spi_callbacks.training_cb, interface, mode, timeout); in cvmx_spi_start_interface()
127 INVOKE_CB(cvmx_spi_callbacks.calendar_sync_cb, interface, mode, in cvmx_spi_start_interface()
131 INVOKE_CB(cvmx_spi_callbacks.interface_up_cb, interface, mode); in cvmx_spi_start_interface()
150 int cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode, int timeout) in cvmx_spi_restart_interface() argument
157 cvmx_dprintf("SPI%d: Restart %s\n", interface, modes[mode]); in cvmx_spi_restart_interface()
160 INVOKE_CB(cvmx_spi_callbacks.reset_cb, interface, mode); in cvmx_spi_restart_interface()
[all …]
Dcvmx-helper-spi.c52 int __cvmx_helper_spi_enumerate(int interface) in __cvmx_helper_spi_enumerate() argument
55 cvmx_spi4000_is_present(interface)) { in __cvmx_helper_spi_enumerate()
71 int __cvmx_helper_spi_probe(int interface) in __cvmx_helper_spi_probe() argument
76 cvmx_spi4000_is_present(interface)) { in __cvmx_helper_spi_probe()
88 enable.s.enable |= 0xffff << (interface * 16); in __cvmx_helper_spi_probe()
91 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_spi_probe()
104 int __cvmx_helper_spi_enable(int interface) in __cvmx_helper_spi_enable() argument
111 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_spi_enable()
113 for (ipd_port = interface * 16; ipd_port < interface * 16 + num_ports; in __cvmx_helper_spi_enable()
122 cvmx_spi_start_interface(interface, CVMX_SPI_MODE_DUPLEX, in __cvmx_helper_spi_enable()
[all …]
Dcvmx-helper-util.c137 int interface; in cvmx_helper_setup_red() local
144 for (interface = 0; interface < 2; interface++) { in cvmx_helper_setup_red()
145 for (port = cvmx_helper_get_first_ipd_port(interface); in cvmx_helper_setup_red()
146 port < cvmx_helper_get_last_ipd_port(interface); port++) in cvmx_helper_setup_red()
180 int __cvmx_helper_setup_gmx(int interface, int num_ports) in __cvmx_helper_setup_gmx() argument
189 gmx_tx_prts.u64 = cvmx_read_csr(CVMX_GMXX_TX_PRTS(interface)); in __cvmx_helper_setup_gmx()
191 cvmx_write_csr(CVMX_GMXX_TX_PRTS(interface), gmx_tx_prts.u64); in __cvmx_helper_setup_gmx()
195 if (cvmx_helper_interface_get_mode(interface) == in __cvmx_helper_setup_gmx()
197 || cvmx_helper_interface_get_mode(interface) == in __cvmx_helper_setup_gmx()
199 || cvmx_helper_interface_get_mode(interface) == in __cvmx_helper_setup_gmx()
[all …]
Dcvmx-helper-npi.c49 int __cvmx_helper_npi_probe(int interface) in __cvmx_helper_npi_probe() argument
75 int __cvmx_helper_npi_enable(int interface) in __cvmx_helper_npi_enable() argument
84 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_npi_enable()
89 cvmx_helper_get_ipd_port(interface, port); in __cvmx_helper_npi_enable()
Dcvmx-helper-board.c239 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_board_link_get() local
242 cvmx_read_csr(CVMX_GMXX_RXX_RX_INBND(index, interface)); in __cvmx_helper_board_link_get()
298 int __cvmx_helper_board_interface_probe(int interface, int supported_ports) in __cvmx_helper_board_interface_probe() argument
302 if (interface == 0) in __cvmx_helper_board_interface_probe()
306 if (interface == 0) in __cvmx_helper_board_interface_probe()
310 if (interface == 0) in __cvmx_helper_board_interface_probe()
316 if (interface == 1) in __cvmx_helper_board_interface_probe()
Dcvmx-helper-loop.c48 int __cvmx_helper_loop_probe(int interface) in __cvmx_helper_loop_probe() argument
58 int ipd_port = cvmx_helper_get_ipd_port(interface, port); in __cvmx_helper_loop_probe()
81 int __cvmx_helper_loop_enable(int interface) in __cvmx_helper_loop_enable() argument
Dcvmx-interrupt-rsl.c76 void __cvmx_interrupt_gmxx_enable(int interface) in __cvmx_interrupt_gmxx_enable() argument
83 mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); in __cvmx_interrupt_gmxx_enable()
137 cvmx_write_csr(CVMX_GMXX_TX_INT_EN(interface), gmx_tx_int_en.u64); in __cvmx_interrupt_gmxx_enable()
139 __cvmx_interrupt_gmxx_rxx_int_en_enable(index, interface); in __cvmx_interrupt_gmxx_enable()
/arch/mips/include/asm/octeon/
Dcvmx-spi.h49 int (*reset_cb) (int interface, cvmx_spi_mode_t mode);
52 int (*calendar_setup_cb) (int interface, cvmx_spi_mode_t mode,
56 int (*clock_detect_cb) (int interface, cvmx_spi_mode_t mode,
60 int (*training_cb) (int interface, cvmx_spi_mode_t mode, int timeout);
63 int (*calendar_sync_cb) (int interface, cvmx_spi_mode_t mode,
67 int (*interface_up_cb) (int interface, cvmx_spi_mode_t mode);
77 static inline int cvmx_spi_is_spi_interface(int interface) in cvmx_spi_is_spi_interface() argument
79 uint64_t gmxState = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); in cvmx_spi_is_spi_interface()
97 extern int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode,
113 extern int cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode,
[all …]
Dcvmx-helper-util.h78 extern int __cvmx_helper_setup_gmx(int interface, int num_ports);
89 extern int cvmx_helper_get_ipd_port(int interface, int port);
99 static inline int cvmx_helper_get_first_ipd_port(int interface) in cvmx_helper_get_first_ipd_port() argument
101 return cvmx_helper_get_ipd_port(interface, 0); in cvmx_helper_get_first_ipd_port()
112 static inline int cvmx_helper_get_last_ipd_port(int interface) in cvmx_helper_get_last_ipd_port() argument
114 extern int cvmx_helper_ports_on_interface(int interface); in cvmx_helper_get_last_ipd_port()
116 return cvmx_helper_get_first_ipd_port(interface) + in cvmx_helper_get_last_ipd_port()
117 cvmx_helper_ports_on_interface(interface) - 1; in cvmx_helper_get_last_ipd_port()
Dcvmx-helper.h113 extern int cvmx_helper_ports_on_interface(int interface);
136 interface);
175 extern int cvmx_helper_interface_probe(int interface);
176 extern int cvmx_helper_interface_enumerate(int interface);
Dcvmx-helper-loop.h46 extern int __cvmx_helper_loop_probe(int interface);
47 static inline int __cvmx_helper_loop_enumerate(int interface) {return 4; } in __cvmx_helper_loop_enumerate() argument
58 extern int __cvmx_helper_loop_enable(int interface);
Dcvmx-helper-sgmii.h47 extern int __cvmx_helper_sgmii_probe(int interface);
48 extern int __cvmx_helper_sgmii_enumerate(int interface);
59 extern int __cvmx_helper_sgmii_enable(int interface);
Dcvmx-helper-spi.h44 extern int __cvmx_helper_spi_probe(int interface);
45 extern int __cvmx_helper_spi_enumerate(int interface);
56 extern int __cvmx_helper_spi_enable(int interface);
Dcvmx-helper-xaui.h47 extern int __cvmx_helper_xaui_probe(int interface);
48 extern int __cvmx_helper_xaui_enumerate(int interface);
59 extern int __cvmx_helper_xaui_enable(int interface);
Dcvmx-helper-npi.h47 extern int __cvmx_helper_npi_probe(int interface);
59 extern int __cvmx_helper_npi_enable(int interface);
Dcvmx-helper-rgmii.h45 extern int __cvmx_helper_rgmii_probe(int interface);
65 extern int __cvmx_helper_rgmii_enable(int interface);
/arch/arm/boot/dts/
Dkeystone-k2e-netcp.dtsi177 gbe0: interface-0 {
179 link-interface = <1>;
182 gbe1: interface-1 {
184 link-interface = <1>;
192 link-interface = <2>;
196 link-interface = <2>;
200 link-interface = <2>;
204 link-interface = <2>;
208 link-interface = <2>;
212 link-interface = <2>;
[all …]
Domap34xx-omap36xx-clocks.dtsi18 compatible = "ti,omap3-interface-clock";
26 compatible = "ti,omap3-interface-clock";
34 compatible = "ti,omap3-interface-clock";
42 compatible = "ti,omap3-interface-clock";
59 compatible = "ti,omap3-no-wait-interface-clock";
83 compatible = "ti,omap3-interface-clock";
91 compatible = "ti,omap3-interface-clock";
99 compatible = "ti,omap3-interface-clock";
107 compatible = "ti,omap3-interface-clock";
115 compatible = "ti,omap3-interface-clock";
[all …]
Domap2430-clocks.dtsi78 compatible = "ti,composite-interface-clock";
100 compatible = "ti,omap3-interface-clock";
108 compatible = "ti,omap3-interface-clock";
124 compatible = "ti,omap3-interface-clock";
140 compatible = "ti,omap3-interface-clock";
156 compatible = "ti,omap3-interface-clock";
172 compatible = "ti,omap3-interface-clock";
180 compatible = "ti,omap2430-interface-clock";
188 compatible = "ti,omap2430-interface-clock";
196 compatible = "ti,omap3-interface-clock";
[all …]
Domap24xx-clocks.dtsi336 compatible = "ti,omap3-no-wait-interface-clock";
496 compatible = "ti,composite-interface-clock";
519 compatible = "ti,omap3-interface-clock";
527 compatible = "ti,omap3-interface-clock";
556 compatible = "ti,omap3-interface-clock";
586 compatible = "ti,omap3-interface-clock";
616 compatible = "ti,omap3-interface-clock";
646 compatible = "ti,omap3-interface-clock";
676 compatible = "ti,omap3-interface-clock";
706 compatible = "ti,omap3-interface-clock";
[all …]
Dkeystone-k2l-netcp.dtsi175 gbe0: interface-0 {
177 link-interface = <1>;
180 gbe1: interface-1 {
182 link-interface = <1>;
190 link-interface = <2>;
194 link-interface = <2>;
201 interface-0 {
213 interface-1 {

123456789