/linux-2.6.39/drivers/staging/octeon/ |
D | ethernet-util.h | 50 static inline int INTERFACE(int ipd_port) in INTERFACE() argument 52 if (ipd_port < 32) /* Interface 0 or 1 for RGMII,GMII,SPI, etc */ in INTERFACE() 53 return ipd_port >> 4; in INTERFACE() 54 else if (ipd_port < 36) /* Interface 2 for NPI */ in INTERFACE() 56 else if (ipd_port < 40) /* Interface 3 for loopback */ in INTERFACE() 58 else if (ipd_port == 40) /* Non existent interface for POW0 */ in INTERFACE() 61 panic("Illegal ipd_port %d passed to INTERFACE\n", ipd_port); in INTERFACE() 70 static inline int INDEX(int ipd_port) in INDEX() argument 72 if (ipd_port < 32) in INDEX() 73 return ipd_port & 15; in INDEX() [all …]
|
D | cvmx-helper-board.c | 56 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 …]
|
D | cvmx-helper.c | 67 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() 327 int ipd_port = cvmx_helper_get_ipd_port(interface, 0); in __cvmx_helper_interface_setup_ipd() local 331 __cvmx_helper_port_setup_ipd(ipd_port); in __cvmx_helper_interface_setup_ipd() 332 ipd_port++; in __cvmx_helper_interface_setup_ipd() [all …]
|
D | cvmx-helper-spi.c | 104 int ipd_port; in __cvmx_helper_spi_enable() local 105 for (ipd_port = interface * 16; ipd_port < interface * 16 + num_ports; in __cvmx_helper_spi_enable() 106 ipd_port++) { in __cvmx_helper_spi_enable() 108 port_config.u64 = cvmx_read_csr(CVMX_PIP_PRT_CFGX(ipd_port)); in __cvmx_helper_spi_enable() 110 cvmx_write_csr(CVMX_PIP_PRT_CFGX(ipd_port), port_config.u64); in __cvmx_helper_spi_enable() 135 cvmx_helper_link_info_t __cvmx_helper_spi_link_get(int ipd_port) in __cvmx_helper_spi_link_get() argument 138 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_spi_link_get() 139 int index = cvmx_helper_get_interface_index_num(ipd_port); in __cvmx_helper_spi_link_get() 189 int __cvmx_helper_spi_link_set(int ipd_port, cvmx_helper_link_info_t link_info) in __cvmx_helper_spi_link_set() argument
|
D | cvmx-helper.h | 93 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, 224 extern int cvmx_helper_configure_loopback(int ipd_port, int enable_internal,
|
D | cvmx-helper-util.c | 395 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 …]
|
D | cvmx-helper-sgmii.c | 318 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() 393 cvmx_helper_link_info_t __cvmx_helper_sgmii_link_get(int ipd_port) in __cvmx_helper_sgmii_link_get() argument 397 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_sgmii_link_get() 398 int index = cvmx_helper_get_interface_index_num(ipd_port); in __cvmx_helper_sgmii_link_get() 486 result = __cvmx_helper_board_link_get(ipd_port); in __cvmx_helper_sgmii_link_get() 504 int __cvmx_helper_sgmii_link_set(int ipd_port, in __cvmx_helper_sgmii_link_set() argument 507 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_sgmii_link_set() 508 int index = cvmx_helper_get_interface_index_num(ipd_port); in __cvmx_helper_sgmii_link_set() [all …]
|
D | cvmx-helper-rgmii.c | 270 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() 330 for (i = 0; i < cvmx_pko_get_num_queues(ipd_port); i++) { in __cvmx_helper_rgmii_link_set() 331 int queue = cvmx_pko_get_base_queue(ipd_port) + i; in __cvmx_helper_rgmii_link_set() 334 pko_mem_queue_qos.s.pid = ipd_port; in __cvmx_helper_rgmii_link_set() [all …]
|
D | cvmx-helper-sgmii.h | 70 extern cvmx_helper_link_info_t __cvmx_helper_sgmii_link_get(int ipd_port); 84 extern int __cvmx_helper_sgmii_link_set(int ipd_port, 100 extern int __cvmx_helper_sgmii_configure_loopback(int ipd_port,
|
D | cvmx-helper-xaui.h | 70 extern cvmx_helper_link_info_t __cvmx_helper_xaui_link_get(int ipd_port); 84 extern int __cvmx_helper_xaui_link_set(int ipd_port, 100 extern int __cvmx_helper_xaui_configure_loopback(int ipd_port,
|
D | cvmx-helper-rgmii.h | 76 extern cvmx_helper_link_info_t __cvmx_helper_rgmii_link_get(int ipd_port); 90 extern int __cvmx_helper_rgmii_link_set(int ipd_port, 106 extern int __cvmx_helper_rgmii_configure_loopback(int ipd_port,
|
D | cvmx-helper-board.h | 55 extern cvmx_helper_link_info_t(*cvmx_override_board_link_get) (int ipd_port); 73 extern int cvmx_helper_board_get_mii_address(int ipd_port); 113 extern cvmx_helper_link_info_t __cvmx_helper_board_link_get(int ipd_port);
|
D | cvmx-helper-loop.c | 58 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()
|
D | cvmx-helper-npi.c | 100 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()
|
D | cvmx-helper-xaui.c | 249 cvmx_helper_link_info_t __cvmx_helper_xaui_link_get(int ipd_port) in __cvmx_helper_xaui_link_get() argument 251 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_xaui_link_get() 290 int __cvmx_helper_xaui_link_set(int ipd_port, cvmx_helper_link_info_t link_info) in __cvmx_helper_xaui_link_set() argument 292 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_xaui_link_set() 324 extern int __cvmx_helper_xaui_configure_loopback(int ipd_port, in __cvmx_helper_xaui_configure_loopback() argument 328 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_xaui_configure_loopback()
|
D | cvmx-helper-spi.h | 67 extern cvmx_helper_link_info_t __cvmx_helper_spi_link_get(int ipd_port); 81 extern int __cvmx_helper_spi_link_set(int ipd_port,
|
D | cvmx-helper-util.h | 203 extern int cvmx_helper_get_interface_num(int ipd_port); 213 extern int cvmx_helper_get_interface_index_num(int ipd_port);
|