Home
last modified time | relevance | path

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

12345678

/arch/mips/cavium-octeon/executive/
Dcvmx-helper-xaui.c44 void __cvmx_interrupt_gmxx_enable(int interface);
48 int __cvmx_helper_xaui_enumerate(int interface) in __cvmx_helper_xaui_enumerate() argument
53 gmx_hg2_control.u64 = cvmx_read_csr(CVMX_GMXX_HG2_CONTROL(interface)); in __cvmx_helper_xaui_enumerate()
69 int __cvmx_helper_xaui_probe(int interface) in __cvmx_helper_xaui_probe() argument
79 mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); in __cvmx_helper_xaui_probe()
81 cvmx_write_csr(CVMX_GMXX_INF_MODE(interface), mode.u64); in __cvmx_helper_xaui_probe()
83 __cvmx_helper_setup_gmx(interface, 1); in __cvmx_helper_xaui_probe()
101 pko_mem_port_ptrs.s.eid = interface * 4; in __cvmx_helper_xaui_probe()
102 pko_mem_port_ptrs.s.pid = interface * 16 + i; in __cvmx_helper_xaui_probe()
105 return __cvmx_helper_xaui_enumerate(interface); in __cvmx_helper_xaui_probe()
[all …]
Dcvmx-helper-sgmii.c43 void __cvmx_interrupt_gmxx_enable(int interface);
55 static int __cvmx_helper_sgmii_hardware_init_one_time(int interface, int index) in __cvmx_helper_sgmii_hardware_init_one_time() argument
63 gmxx_prtx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
65 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmxx_prtx_cfg.u64); in __cvmx_helper_sgmii_hardware_init_one_time()
73 cvmx_read_csr(CVMX_PCSX_MISCX_CTL_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
75 cvmx_read_csr(CVMX_PCSX_LINKX_TIMER_COUNT_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
85 cvmx_write_csr(CVMX_PCSX_LINKX_TIMER_COUNT_REG(index, interface), in __cvmx_helper_sgmii_hardware_init_one_time()
101 cvmx_read_csr(CVMX_PCSX_ANX_ADV_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
106 cvmx_write_csr(CVMX_PCSX_ANX_ADV_REG(index, interface), in __cvmx_helper_sgmii_hardware_init_one_time()
111 cvmx_read_csr(CVMX_PCSX_MISCX_CTL_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
[all …]
Dcvmx-helper-rgmii.c45 void __cvmx_interrupt_gmxx_enable(int interface);
55 int __cvmx_helper_rgmii_probe(int interface) in __cvmx_helper_rgmii_probe() argument
59 mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); in __cvmx_helper_rgmii_probe()
103 int interface = (port >> 4) & 1; in cvmx_helper_rgmii_internal_loopback() local
112 cvmx_write_csr(CVMX_GMXX_TXX_CLK(index, interface), 1); in cvmx_helper_rgmii_internal_loopback()
113 cvmx_write_csr(CVMX_GMXX_TXX_SLOT(index, interface), 0x200); in cvmx_helper_rgmii_internal_loopback()
114 cvmx_write_csr(CVMX_GMXX_TXX_BURST(index, interface), 0x2000); in cvmx_helper_rgmii_internal_loopback()
115 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); in cvmx_helper_rgmii_internal_loopback()
116 tmp = cvmx_read_csr(CVMX_ASXX_PRT_LOOP(interface)); in cvmx_helper_rgmii_internal_loopback()
117 cvmx_write_csr(CVMX_ASXX_PRT_LOOP(interface), (1 << index) | tmp); in cvmx_helper_rgmii_internal_loopback()
[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.c102 int cvmx_helper_ports_on_interface(int interface) in cvmx_helper_ports_on_interface() argument
104 return interface_port_count[interface]; in cvmx_helper_ports_on_interface()
112 static cvmx_helper_interface_mode_t __cvmx_get_mode_cn68xx(int interface) in __cvmx_get_mode_cn68xx() argument
115 switch (interface) { in __cvmx_get_mode_cn68xx()
131 qlm_cfg.u64 = cvmx_read_csr(CVMX_MIO_QLMX_CFG(interface)); in __cvmx_get_mode_cn68xx()
164 static cvmx_helper_interface_mode_t __cvmx_get_mode_octeon2(int interface) in __cvmx_get_mode_octeon2() argument
169 return __cvmx_get_mode_cn68xx(interface); in __cvmx_get_mode_octeon2()
171 if (interface == 2) in __cvmx_get_mode_octeon2()
174 if (interface == 3) in __cvmx_get_mode_octeon2()
179 (interface == 4 || interface == 5)) || in __cvmx_get_mode_octeon2()
[all …]
Dcvmx-helper-spi.c28 void __cvmx_interrupt_gmxx_enable(int interface);
54 int __cvmx_helper_spi_enumerate(int interface) in __cvmx_helper_spi_enumerate() argument
57 cvmx_spi4000_is_present(interface)) { in __cvmx_helper_spi_enumerate()
73 int __cvmx_helper_spi_probe(int interface) in __cvmx_helper_spi_probe() argument
78 cvmx_spi4000_is_present(interface)) { in __cvmx_helper_spi_probe()
90 enable.s.enable |= 0xffff << (interface * 16); in __cvmx_helper_spi_probe()
93 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_spi_probe()
106 int __cvmx_helper_spi_enable(int interface) in __cvmx_helper_spi_enable() argument
113 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_spi_enable()
115 for (ipd_port = interface * 16; ipd_port < interface * 16 + num_ports; in __cvmx_helper_spi_enable()
[all …]
Dcvmx-helper-board.c276 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_board_link_get() local
279 cvmx_read_csr(CVMX_GMXX_RXX_RX_INBND(index, interface)); in __cvmx_helper_board_link_get()
335 int __cvmx_helper_board_interface_probe(int interface, int supported_ports) in __cvmx_helper_board_interface_probe() argument
339 if (interface == 0) in __cvmx_helper_board_interface_probe()
343 if (interface == 0) in __cvmx_helper_board_interface_probe()
347 if (interface == 0) in __cvmx_helper_board_interface_probe()
353 if (interface == 1) in __cvmx_helper_board_interface_probe()
370 int __cvmx_helper_board_hardware_enable(int interface) in __cvmx_helper_board_hardware_enable() argument
373 if (interface == 0) { in __cvmx_helper_board_hardware_enable()
375 cvmx_write_csr(CVMX_ASXX_TX_CLK_SETX(1, interface), 0); in __cvmx_helper_board_hardware_enable()
[all …]
Dcvmx-helper-util.c223 int interface; in cvmx_helper_setup_red() local
230 for (interface = 0; interface < 2; interface++) { in cvmx_helper_setup_red()
231 for (port = cvmx_helper_get_first_ipd_port(interface); in cvmx_helper_setup_red()
232 port < cvmx_helper_get_last_ipd_port(interface); port++) in cvmx_helper_setup_red()
266 int __cvmx_helper_setup_gmx(int interface, int num_ports) in __cvmx_helper_setup_gmx() argument
275 gmx_tx_prts.u64 = cvmx_read_csr(CVMX_GMXX_TX_PRTS(interface)); in __cvmx_helper_setup_gmx()
277 cvmx_write_csr(CVMX_GMXX_TX_PRTS(interface), gmx_tx_prts.u64); in __cvmx_helper_setup_gmx()
281 if (cvmx_helper_interface_get_mode(interface) == in __cvmx_helper_setup_gmx()
283 || cvmx_helper_interface_get_mode(interface) == in __cvmx_helper_setup_gmx()
285 || 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
87 int __cvmx_helper_npi_enable(int interface) in __cvmx_helper_npi_enable() argument
96 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_npi_enable()
101 cvmx_helper_get_ipd_port(interface, port); in __cvmx_helper_npi_enable()
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/blackfin/mach-bf609/
DKconfig39 The slave interface id of each slot should be set according following table.
56 int "Slot 0 slave interface id"
61 int "Slot 1 slave interface id"
66 int "Slot 2 slave interface id"
71 int "Slot 3 slave interface id"
76 int "Slot 4 slave interface id"
81 int "Slot 5 slave interface id"
86 int "Slot 6 slave interface id"
91 int "Slot 7 slave interface id"
96 int "Slot 8 slave interface id"
[all …]
/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.h101 extern int __cvmx_helper_setup_gmx(int interface, int num_ports);
112 extern int cvmx_helper_get_ipd_port(int interface, int port);
122 static inline int cvmx_helper_get_first_ipd_port(int interface) in cvmx_helper_get_first_ipd_port() argument
124 return cvmx_helper_get_ipd_port(interface, 0); in cvmx_helper_get_first_ipd_port()
135 static inline int cvmx_helper_get_last_ipd_port(int interface) in cvmx_helper_get_last_ipd_port() argument
137 extern int cvmx_helper_ports_on_interface(int interface); in cvmx_helper_get_last_ipd_port()
139 return cvmx_helper_get_first_ipd_port(interface) + in cvmx_helper_get_last_ipd_port()
140 cvmx_helper_ports_on_interface(interface) - 1; in cvmx_helper_get_last_ipd_port()
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.h133 extern int cvmx_helper_ports_on_interface(int interface);
156 interface);
195 extern int cvmx_helper_interface_probe(int interface);
196 extern int cvmx_helper_interface_enumerate(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-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-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);
/arch/arm/boot/dts/
Dkeystone-k2e-netcp.dtsi163 gbe0: interface-0 {
165 link-interface = <1>;
168 gbe1: interface-1 {
170 link-interface = <1>;
178 link-interface = <2>;
182 link-interface = <2>;
186 link-interface = <2>;
190 link-interface = <2>;
194 link-interface = <2>;
198 link-interface = <2>;
[all …]
Domap34xx-omap36xx-clocks.dtsi21 compatible = "ti,omap3-interface-clock";
29 compatible = "ti,omap3-interface-clock";
37 compatible = "ti,omap3-interface-clock";
45 compatible = "ti,omap3-interface-clock";
62 compatible = "ti,omap3-no-wait-interface-clock";
86 compatible = "ti,omap3-interface-clock";
94 compatible = "ti,omap3-interface-clock";
102 compatible = "ti,omap3-interface-clock";
110 compatible = "ti,omap3-interface-clock";
118 compatible = "ti,omap3-interface-clock";
[all …]
Domap2430-clocks.dtsi81 compatible = "ti,composite-interface-clock";
103 compatible = "ti,omap3-interface-clock";
111 compatible = "ti,omap3-interface-clock";
127 compatible = "ti,omap3-interface-clock";
143 compatible = "ti,omap3-interface-clock";
159 compatible = "ti,omap3-interface-clock";
175 compatible = "ti,omap3-interface-clock";
183 compatible = "ti,omap2430-interface-clock";
191 compatible = "ti,omap2430-interface-clock";
199 compatible = "ti,omap3-interface-clock";
[all …]
Domap24xx-clocks.dtsi339 compatible = "ti,omap3-no-wait-interface-clock";
499 compatible = "ti,composite-interface-clock";
522 compatible = "ti,omap3-interface-clock";
530 compatible = "ti,omap3-interface-clock";
559 compatible = "ti,omap3-interface-clock";
589 compatible = "ti,omap3-interface-clock";
619 compatible = "ti,omap3-interface-clock";
649 compatible = "ti,omap3-interface-clock";
679 compatible = "ti,omap3-interface-clock";
709 compatible = "ti,omap3-interface-clock";
[all …]
/arch/mips/loongson32/common/
Dplatform.c141 switch (plat_dat->interface) { in ls1x_eth_mux_init()
150 plat_dat->interface); in ls1x_eth_mux_init()
155 switch (plat_dat->interface) { in ls1x_eth_mux_init()
164 plat_dat->interface); in ls1x_eth_mux_init()
174 if (plat_dat->interface == PHY_INTERFACE_MODE_RMII) in ls1x_eth_mux_init()
189 .interface = PHY_INTERFACE_MODE_MII,
191 .interface = PHY_INTERFACE_MODE_RMII,
229 .interface = PHY_INTERFACE_MODE_MII,

12345678