/arch/mips/cavium-octeon/executive/ |
D | cvmx-helper-xaui.c | 44 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 …]
|
D | cvmx-helper-sgmii.c | 44 void __cvmx_interrupt_gmxx_enable(int interface); 56 static int __cvmx_helper_sgmii_hardware_init_one_time(int interface, int index) in __cvmx_helper_sgmii_hardware_init_one_time() argument 64 gmxx_prtx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time() 66 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmxx_prtx_cfg.u64); in __cvmx_helper_sgmii_hardware_init_one_time() 74 cvmx_read_csr(CVMX_PCSX_MISCX_CTL_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time() 76 cvmx_read_csr(CVMX_PCSX_LINKX_TIMER_COUNT_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time() 86 cvmx_write_csr(CVMX_PCSX_LINKX_TIMER_COUNT_REG(index, interface), in __cvmx_helper_sgmii_hardware_init_one_time() 102 cvmx_read_csr(CVMX_PCSX_ANX_ADV_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time() 107 cvmx_write_csr(CVMX_PCSX_ANX_ADV_REG(index, interface), in __cvmx_helper_sgmii_hardware_init_one_time() 112 cvmx_read_csr(CVMX_PCSX_MISCX_CTL_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time() [all …]
|
D | cvmx-helper-rgmii.c | 47 void __cvmx_interrupt_gmxx_enable(int interface); 57 int __cvmx_helper_rgmii_probe(int interface) in __cvmx_helper_rgmii_probe() argument 61 mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); in __cvmx_helper_rgmii_probe() 105 int interface = (port >> 4) & 1; in cvmx_helper_rgmii_internal_loopback() local 114 cvmx_write_csr(CVMX_GMXX_TXX_CLK(index, interface), 1); in cvmx_helper_rgmii_internal_loopback() 115 cvmx_write_csr(CVMX_GMXX_TXX_SLOT(index, interface), 0x200); in cvmx_helper_rgmii_internal_loopback() 116 cvmx_write_csr(CVMX_GMXX_TXX_BURST(index, interface), 0x2000); in cvmx_helper_rgmii_internal_loopback() 117 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); in cvmx_helper_rgmii_internal_loopback() 118 tmp = cvmx_read_csr(CVMX_ASXX_PRT_LOOP(interface)); in cvmx_helper_rgmii_internal_loopback() 119 cvmx_write_csr(CVMX_ASXX_PRT_LOOP(interface), (1 << index) | tmp); in cvmx_helper_rgmii_internal_loopback() [all …]
|
D | cvmx-spi.c | 105 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 …]
|
D | cvmx-helper-spi.c | 28 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 …]
|
D | cvmx-helper.c | 101 int cvmx_helper_ports_on_interface(int interface) in cvmx_helper_ports_on_interface() argument 103 return interface_port_count[interface]; in cvmx_helper_ports_on_interface() 116 cvmx_helper_interface_mode_t cvmx_helper_interface_get_mode(int interface) in cvmx_helper_interface_get_mode() argument 119 if (interface == 2) in cvmx_helper_interface_get_mode() 122 if (interface == 3) { in cvmx_helper_interface_get_mode() 130 if (interface == 0 in cvmx_helper_interface_get_mode() 147 if ((interface == 1) in cvmx_helper_interface_get_mode() 153 mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); in cvmx_helper_interface_get_mode() 245 int cvmx_helper_interface_enumerate(int interface) in cvmx_helper_interface_enumerate() argument 247 switch (cvmx_helper_interface_get_mode(interface)) { in cvmx_helper_interface_enumerate() [all …]
|
D | cvmx-helper-util.c | 223 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() 265 int __cvmx_helper_setup_gmx(int interface, int num_ports) in __cvmx_helper_setup_gmx() argument 274 gmx_tx_prts.u64 = cvmx_read_csr(CVMX_GMXX_TX_PRTS(interface)); in __cvmx_helper_setup_gmx() 276 cvmx_write_csr(CVMX_GMXX_TX_PRTS(interface), gmx_tx_prts.u64); in __cvmx_helper_setup_gmx() 280 if (cvmx_helper_interface_get_mode(interface) == in __cvmx_helper_setup_gmx() 282 || cvmx_helper_interface_get_mode(interface) == in __cvmx_helper_setup_gmx() 284 || cvmx_helper_interface_get_mode(interface) == in __cvmx_helper_setup_gmx() [all …]
|
D | cvmx-helper-npi.c | 49 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()
|
D | cvmx-helper-loop.c | 48 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
|
D | cvmx-helper-board.c | 386 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_board_link_get() local 389 cvmx_read_csr(CVMX_GMXX_RXX_RX_INBND(index, interface)); in __cvmx_helper_board_link_get() 615 int __cvmx_helper_board_interface_probe(int interface, int supported_ports) in __cvmx_helper_board_interface_probe() argument 619 if (interface == 0) in __cvmx_helper_board_interface_probe() 623 if (interface == 0) in __cvmx_helper_board_interface_probe() 627 if (interface == 0) in __cvmx_helper_board_interface_probe() 633 if (interface == 1) in __cvmx_helper_board_interface_probe() 650 int __cvmx_helper_board_hardware_enable(int interface) in __cvmx_helper_board_hardware_enable() argument 653 if (interface == 0) { in __cvmx_helper_board_hardware_enable() 655 cvmx_write_csr(CVMX_ASXX_TX_CLK_SETX(1, interface), 0); in __cvmx_helper_board_hardware_enable() [all …]
|
D | cvmx-interrupt-rsl.c | 76 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/ |
D | cvmx-spi.h | 49 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 …]
|
D | cvmx-helper-util.h | 101 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()
|
D | cvmx-helper-loop.h | 46 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);
|
D | cvmx-helper-spi.h | 44 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);
|
D | cvmx-helper.h | 135 extern int cvmx_helper_ports_on_interface(int interface); 158 interface); 209 extern int cvmx_helper_interface_probe(int interface); 210 extern int cvmx_helper_interface_enumerate(int interface);
|
D | cvmx-helper-xaui.h | 47 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);
|
D | cvmx-helper-sgmii.h | 47 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);
|
D | cvmx-helper-npi.h | 47 extern int __cvmx_helper_npi_probe(int interface); 59 extern int __cvmx_helper_npi_enable(int interface);
|
D | cvmx-helper-rgmii.h | 45 extern int __cvmx_helper_rgmii_probe(int interface); 65 extern int __cvmx_helper_rgmii_enable(int interface);
|
D | cvmx-helper-board.h | 142 extern int __cvmx_helper_board_interface_probe(int interface, 155 extern int __cvmx_helper_board_hardware_enable(int interface);
|
/arch/mips/lasat/ |
D | Kconfig | 6 tristate "PICVUE LCD display driver /proc interface" 14 bool "LASAT sysctl interface"
|
/arch/ia64/include/asm/sn/ |
D | bte.h | 54 #define BTE_BASE_ADDR(interface) \ argument 55 (is_shub2() ? (interface == 0) ? SH2_BT_ENG_CSR_0 : \ 56 (interface == 1) ? SH2_BT_ENG_CSR_1 : \ 57 (interface == 2) ? SH2_BT_ENG_CSR_2 : \ 59 : (interface == 0) ? IIO_IBLS0 : IIO_IBLS1)
|
/arch/powerpc/platforms/pseries/ |
D | Kconfig | 47 Provides interface to platform energy management capabilities 53 tristate "Scanlog dump interface" 79 <key word>=<value> pairs through a /proc/ppc64/lparcfg interface. 108 Select this option, if you want to enable the kernel interface 112 will be reused for other LPARs. The interface allows firmware to
|
/arch/mips/include/asm/vr41xx/ |
D | siu.h | 30 extern void vr41xx_select_siu_interface(siu_interface_t interface);
|