Home
last modified time | relevance | path

Searched refs:ipd_port (Results 1 – 17 of 17) sorted by relevance

/linux-3.4.99/arch/mips/cavium-octeon/executive/
Dcvmx-helper-board.c56 cvmx_helper_link_info_t(*cvmx_override_board_link_get) (int ipd_port) =
75 int cvmx_helper_board_get_mii_address(int ipd_port) in cvmx_helper_board_get_mii_address() argument
86 if ((ipd_port >= 16) && (ipd_port < 20)) in cvmx_helper_board_get_mii_address()
87 return ipd_port - 16; in cvmx_helper_board_get_mii_address()
100 if (ipd_port == 0) in cvmx_helper_board_get_mii_address()
102 else if (ipd_port == 1) in cvmx_helper_board_get_mii_address()
108 if ((ipd_port >= 0) && (ipd_port < 4)) in cvmx_helper_board_get_mii_address()
109 return ipd_port; in cvmx_helper_board_get_mii_address()
110 else if ((ipd_port >= 16) && (ipd_port < 20)) in cvmx_helper_board_get_mii_address()
111 return ipd_port - 16 + 4; in cvmx_helper_board_get_mii_address()
[all …]
Dcvmx-helper.c67 void (*cvmx_override_ipd_port_setup) (int ipd_port);
194 static int __cvmx_helper_port_setup_ipd(int ipd_port) in __cvmx_helper_port_setup_ipd() argument
199 port_config.u64 = cvmx_read_csr(CVMX_PIP_PRT_CFGX(ipd_port)); in __cvmx_helper_port_setup_ipd()
200 tag_config.u64 = cvmx_read_csr(CVMX_PIP_PRT_TAGX(ipd_port)); in __cvmx_helper_port_setup_ipd()
203 port_config.s.qos = ipd_port & 0x7; in __cvmx_helper_port_setup_ipd()
227 cvmx_pip_config_port(ipd_port, port_config, tag_config); in __cvmx_helper_port_setup_ipd()
231 cvmx_override_ipd_port_setup(ipd_port); in __cvmx_helper_port_setup_ipd()
390 int ipd_port = cvmx_helper_get_ipd_port(interface, 0); in __cvmx_helper_interface_setup_ipd() local
394 __cvmx_helper_port_setup_ipd(ipd_port); in __cvmx_helper_interface_setup_ipd()
395 ipd_port++; in __cvmx_helper_interface_setup_ipd()
[all …]
Dcvmx-helper-spi.c114 int ipd_port; in __cvmx_helper_spi_enable() local
115 for (ipd_port = interface * 16; ipd_port < interface * 16 + num_ports; in __cvmx_helper_spi_enable()
116 ipd_port++) { in __cvmx_helper_spi_enable()
118 port_config.u64 = cvmx_read_csr(CVMX_PIP_PRT_CFGX(ipd_port)); in __cvmx_helper_spi_enable()
120 cvmx_write_csr(CVMX_PIP_PRT_CFGX(ipd_port), port_config.u64); in __cvmx_helper_spi_enable()
145 cvmx_helper_link_info_t __cvmx_helper_spi_link_get(int ipd_port) in __cvmx_helper_spi_link_get() argument
148 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_spi_link_get()
149 int index = cvmx_helper_get_interface_index_num(ipd_port); in __cvmx_helper_spi_link_get()
199 int __cvmx_helper_spi_link_set(int ipd_port, cvmx_helper_link_info_t link_info) in __cvmx_helper_spi_link_set() argument
Dcvmx-helper-util.c395 int cvmx_helper_get_interface_num(int ipd_port) in cvmx_helper_get_interface_num() argument
397 if (ipd_port < 16) in cvmx_helper_get_interface_num()
399 else if (ipd_port < 32) in cvmx_helper_get_interface_num()
401 else if (ipd_port < 36) in cvmx_helper_get_interface_num()
403 else if (ipd_port < 40) in cvmx_helper_get_interface_num()
420 int cvmx_helper_get_interface_index_num(int ipd_port) in cvmx_helper_get_interface_index_num() argument
422 if (ipd_port < 32) in cvmx_helper_get_interface_index_num()
423 return ipd_port & 15; in cvmx_helper_get_interface_index_num()
424 else if (ipd_port < 36) in cvmx_helper_get_interface_index_num()
425 return ipd_port & 3; in cvmx_helper_get_interface_index_num()
[all …]
Dcvmx-helper-sgmii.c318 int ipd_port = cvmx_helper_get_ipd_port(interface, index); in __cvmx_helper_sgmii_hardware_init() local
320 __cvmx_helper_sgmii_link_set(ipd_port, in __cvmx_helper_sgmii_hardware_init()
322 (ipd_port)); in __cvmx_helper_sgmii_hardware_init()
397 cvmx_helper_link_info_t __cvmx_helper_sgmii_link_get(int ipd_port) in __cvmx_helper_sgmii_link_get() argument
401 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_sgmii_link_get()
402 int index = cvmx_helper_get_interface_index_num(ipd_port); in __cvmx_helper_sgmii_link_get()
490 result = __cvmx_helper_board_link_get(ipd_port); in __cvmx_helper_sgmii_link_get()
508 int __cvmx_helper_sgmii_link_set(int ipd_port, in __cvmx_helper_sgmii_link_set() argument
511 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_sgmii_link_set()
512 int index = cvmx_helper_get_interface_index_num(ipd_port); in __cvmx_helper_sgmii_link_set()
[all …]
Dcvmx-helper-rgmii.c270 cvmx_helper_link_info_t __cvmx_helper_rgmii_link_get(int ipd_port) in __cvmx_helper_rgmii_link_get() argument
272 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_rgmii_link_get()
273 int index = cvmx_helper_get_interface_index_num(ipd_port); in __cvmx_helper_rgmii_link_get()
286 return __cvmx_helper_board_link_get(ipd_port); in __cvmx_helper_rgmii_link_get()
301 int __cvmx_helper_rgmii_link_set(int ipd_port, in __cvmx_helper_rgmii_link_set() argument
305 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_rgmii_link_set()
306 int index = cvmx_helper_get_interface_index_num(ipd_port); in __cvmx_helper_rgmii_link_set()
331 for (i = 0; i < cvmx_pko_get_num_queues(ipd_port); i++) { in __cvmx_helper_rgmii_link_set()
332 int queue = cvmx_pko_get_base_queue(ipd_port) + i; in __cvmx_helper_rgmii_link_set()
335 pko_mem_queue_qos.s.pid = ipd_port; in __cvmx_helper_rgmii_link_set()
[all …]
Dcvmx-helper-loop.c58 int ipd_port = cvmx_helper_get_ipd_port(interface, port); in __cvmx_helper_loop_probe() local
59 port_cfg.u64 = cvmx_read_csr(CVMX_PIP_PRT_CFGX(ipd_port)); in __cvmx_helper_loop_probe()
62 cvmx_write_csr(CVMX_PIP_PRT_CFGX(ipd_port), port_cfg.u64); in __cvmx_helper_loop_probe()
Dcvmx-helper-npi.c100 int ipd_port = in __cvmx_helper_npi_enable() local
103 cvmx_read_csr(CVMX_PIP_PRT_CFGX(ipd_port)); in __cvmx_helper_npi_enable()
106 cvmx_write_csr(CVMX_PIP_PRT_CFGX(ipd_port), in __cvmx_helper_npi_enable()
Dcvmx-helper-xaui.c255 cvmx_helper_link_info_t __cvmx_helper_xaui_link_get(int ipd_port) in __cvmx_helper_xaui_link_get() argument
257 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_xaui_link_get()
296 int __cvmx_helper_xaui_link_set(int ipd_port, cvmx_helper_link_info_t link_info) in __cvmx_helper_xaui_link_set() argument
298 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_xaui_link_set()
330 extern int __cvmx_helper_xaui_configure_loopback(int ipd_port, in __cvmx_helper_xaui_configure_loopback() argument
334 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_xaui_configure_loopback()
/linux-3.4.99/drivers/staging/octeon/
Dethernet-util.h46 static inline int INTERFACE(int ipd_port) in INTERFACE() argument
48 if (ipd_port < 32) /* Interface 0 or 1 for RGMII,GMII,SPI, etc */ in INTERFACE()
49 return ipd_port >> 4; in INTERFACE()
50 else if (ipd_port < 36) /* Interface 2 for NPI */ in INTERFACE()
52 else if (ipd_port < 40) /* Interface 3 for loopback */ in INTERFACE()
54 else if (ipd_port == 40) /* Non existent interface for POW0 */ in INTERFACE()
57 panic("Illegal ipd_port %d passed to INTERFACE\n", ipd_port); in INTERFACE()
66 static inline int INDEX(int ipd_port) in INDEX() argument
68 if (ipd_port < 32) in INDEX()
69 return ipd_port & 15; in INDEX()
[all …]
/linux-3.4.99/arch/mips/include/asm/octeon/
Dcvmx-helper.h93 extern void (*cvmx_override_ipd_port_setup) (int ipd_port);
169 extern cvmx_helper_link_info_t cvmx_helper_link_autoconf(int ipd_port);
181 extern cvmx_helper_link_info_t cvmx_helper_link_get(int ipd_port);
195 extern int cvmx_helper_link_set(int ipd_port,
225 extern int cvmx_helper_configure_loopback(int ipd_port, int enable_internal,
Dcvmx-helper-sgmii.h71 extern cvmx_helper_link_info_t __cvmx_helper_sgmii_link_get(int ipd_port);
85 extern int __cvmx_helper_sgmii_link_set(int ipd_port,
101 extern int __cvmx_helper_sgmii_configure_loopback(int ipd_port,
Dcvmx-helper-xaui.h71 extern cvmx_helper_link_info_t __cvmx_helper_xaui_link_get(int ipd_port);
85 extern int __cvmx_helper_xaui_link_set(int ipd_port,
101 extern int __cvmx_helper_xaui_configure_loopback(int ipd_port,
Dcvmx-helper-rgmii.h77 extern cvmx_helper_link_info_t __cvmx_helper_rgmii_link_get(int ipd_port);
91 extern int __cvmx_helper_rgmii_link_set(int ipd_port,
107 extern int __cvmx_helper_rgmii_configure_loopback(int ipd_port,
Dcvmx-helper-board.h61 extern cvmx_helper_link_info_t(*cvmx_override_board_link_get) (int ipd_port);
79 extern int cvmx_helper_board_get_mii_address(int ipd_port);
119 extern cvmx_helper_link_info_t __cvmx_helper_board_link_get(int ipd_port);
Dcvmx-helper-spi.h68 extern cvmx_helper_link_info_t __cvmx_helper_spi_link_get(int ipd_port);
82 extern int __cvmx_helper_spi_link_set(int ipd_port,
Dcvmx-helper-util.h203 extern int cvmx_helper_get_interface_num(int ipd_port);
213 extern int cvmx_helper_get_interface_index_num(int ipd_port);