Home
last modified time | relevance | path

Searched refs:num_ports (Results 1 – 16 of 16) sorted by relevance

/arch/mips/cavium-octeon/executive/
Dcvmx-interrupt-rsl.c80 int num_ports; in __cvmx_interrupt_gmxx_enable() local
89 num_ports = 1; in __cvmx_interrupt_gmxx_enable()
93 num_ports = 4; in __cvmx_interrupt_gmxx_enable()
96 num_ports = 0; in __cvmx_interrupt_gmxx_enable()
100 num_ports = 0; in __cvmx_interrupt_gmxx_enable()
111 num_ports = 1; in __cvmx_interrupt_gmxx_enable()
113 num_ports = 4; in __cvmx_interrupt_gmxx_enable()
121 num_ports = 2; in __cvmx_interrupt_gmxx_enable()
123 num_ports = 3; in __cvmx_interrupt_gmxx_enable()
126 num_ports = 0; in __cvmx_interrupt_gmxx_enable()
[all …]
Dcvmx-helper-spi.c75 int num_ports = 0; in __cvmx_helper_spi_probe() local
79 num_ports = 10; in __cvmx_helper_spi_probe()
82 num_ports = 16; in __cvmx_helper_spi_probe()
93 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_spi_probe()
94 return num_ports; in __cvmx_helper_spi_probe()
113 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_spi_enable() local
115 for (ipd_port = interface * 16; ipd_port < interface * 16 + num_ports; in __cvmx_helper_spi_enable()
125 CVMX_HELPER_SPI_TIMEOUT, num_ports); in __cvmx_helper_spi_enable()
Dcvmx-helper-util.c266 int __cvmx_helper_setup_gmx(int interface, int num_ports) in __cvmx_helper_setup_gmx() argument
276 gmx_tx_prts.s.prts = num_ports; in __cvmx_helper_setup_gmx()
289 if (num_ports > 4) { in __cvmx_helper_setup_gmx()
296 gmx_rx_prts.s.prts = num_ports; in __cvmx_helper_setup_gmx()
306 if (num_ports == 1) in __cvmx_helper_setup_gmx()
308 else if (num_ports == 2) in __cvmx_helper_setup_gmx()
310 else if (num_ports <= 4) in __cvmx_helper_setup_gmx()
312 else if (num_ports <= 8) in __cvmx_helper_setup_gmx()
317 if (num_ports == 1) in __cvmx_helper_setup_gmx()
319 else if (num_ports == 2) in __cvmx_helper_setup_gmx()
[all …]
Dcvmx-helper-loop.c51 int num_ports = 4; in __cvmx_helper_loop_probe() local
56 for (port = 0; port < num_ports; port++) { in __cvmx_helper_loop_probe()
69 return num_ports; in __cvmx_helper_loop_probe()
Dcvmx-helper-rgmii.c57 int num_ports = 0; in __cvmx_helper_rgmii_probe() local
73 num_ports = 2; in __cvmx_helper_rgmii_probe()
81 num_ports = 4; in __cvmx_helper_rgmii_probe()
85 num_ports = 3; in __cvmx_helper_rgmii_probe()
91 return num_ports; in __cvmx_helper_rgmii_probe()
164 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_rgmii_enable() local
182 asx_tx.s.prt_en = cvmx_build_mask(num_ports); in __cvmx_helper_rgmii_enable()
186 asx_rx.s.prt_en = cvmx_build_mask(num_ports); in __cvmx_helper_rgmii_enable()
190 for (port = 0; port < num_ports; port++) { in __cvmx_helper_rgmii_enable()
239 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_rgmii_enable()
[all …]
Dcvmx-helper-npi.c96 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_npi_enable() local
98 for (port = 0; port < num_ports; port++) { in __cvmx_helper_npi_enable()
Dcvmx-helper-sgmii.c310 static int __cvmx_helper_sgmii_hardware_init(int interface, int num_ports) in __cvmx_helper_sgmii_hardware_init() argument
314 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_sgmii_hardware_init()
316 for (index = 0; index < num_ports; index++) { in __cvmx_helper_sgmii_hardware_init()
371 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_sgmii_enable() local
374 __cvmx_helper_sgmii_hardware_init(interface, num_ports); in __cvmx_helper_sgmii_enable()
376 for (index = 0; index < num_ports; index++) { in __cvmx_helper_sgmii_enable()
Dcvmx-spi.c106 int num_ports) in cvmx_spi_start_interface() argument
118 num_ports); in cvmx_spi_start_interface()
312 int num_ports) in cvmx_spi_calendar_setup_cb() argument
322 srxx_com_ctl.s.prts = num_ports - 1; in cvmx_spi_calendar_setup_cb()
330 while (port < num_ports) { in cvmx_spi_calendar_setup_cb()
344 srxx_spi4_stat.s.len = num_ports; in cvmx_spi_calendar_setup_cb()
393 while (port < num_ports) { in cvmx_spi_calendar_setup_cb()
407 stxx_spi4_stat.s.len = num_ports; in cvmx_spi_calendar_setup_cb()
Dcvmx-helper.c605 int num_ports = interface_port_count[interface]; in __cvmx_helper_interface_setup_ipd() local
607 while (num_ports--) { in __cvmx_helper_interface_setup_ipd()
668 int num_ports = interface_port_count[interface]; in __cvmx_helper_interface_setup_pko() local
669 while (num_ports--) { in __cvmx_helper_interface_setup_pko()
/arch/mips/include/asm/octeon/
Dcvmx-spi.h53 int num_ports);
98 int timeout, int num_ports);
201 int num_ports);
Dcvmx-helper-util.h101 extern int __cvmx_helper_setup_gmx(int interface, int num_ports);
Dcvmx-pko-defs.h2596 uint64_t num_ports:4; member
2598 uint64_t num_ports:4;
/arch/mips/include/asm/mach-bcm63xx/
Dbcm63xx_dev_enet.h81 int num_ports; member
/arch/mips/bcm63xx/
Ddev-enet.c297 enetsw_pd.num_ports = ENETSW_PORTS_6328; in bcm63xx_enetsw_register()
299 enetsw_pd.num_ports = ENETSW_PORTS_6368; in bcm63xx_enetsw_register()
/arch/arm/mach-cns3xxx/
Dcns3420vb.c193 .num_ports = 1,
Dcore.c344 .num_ports = 1,