Lines Matching full:interface
52 int __cvmx_helper_spi_enumerate(int interface) in __cvmx_helper_spi_enumerate() argument
55 cvmx_spi4000_is_present(interface)) { in __cvmx_helper_spi_enumerate()
63 * Probe a SPI interface and determine the number of ports
64 * connected to it. The SPI interface should still be down after
67 * @interface: Interface to probe
69 * Returns Number of ports on the interface. Zero to disable.
71 int __cvmx_helper_spi_probe(int interface) in __cvmx_helper_spi_probe() argument
76 cvmx_spi4000_is_present(interface)) { in __cvmx_helper_spi_probe()
88 enable.s.enable |= 0xffff << (interface * 16); in __cvmx_helper_spi_probe()
91 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_spi_probe()
96 * Bringup and enable a SPI interface. After this call packet I/O
100 * @interface: Interface to bring up
104 int __cvmx_helper_spi_enable(int interface) in __cvmx_helper_spi_enable() argument
111 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_spi_enable()
113 for (ipd_port = interface * 16; ipd_port < interface * 16 + num_ports; in __cvmx_helper_spi_enable()
122 cvmx_spi_start_interface(interface, CVMX_SPI_MODE_DUPLEX, in __cvmx_helper_spi_enable()
124 if (cvmx_spi4000_is_present(interface)) in __cvmx_helper_spi_enable()
125 cvmx_spi4000_initialize(interface); in __cvmx_helper_spi_enable()
127 __cvmx_interrupt_spxx_int_msk_enable(interface); in __cvmx_helper_spi_enable()
128 __cvmx_interrupt_stxx_int_msk_enable(interface); in __cvmx_helper_spi_enable()
129 __cvmx_interrupt_gmxx_enable(interface); in __cvmx_helper_spi_enable()
146 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_spi_link_get() local
155 } else if (cvmx_spi4000_is_present(interface)) { in __cvmx_helper_spi_link_get()
157 cvmx_spi4000_check_speed(interface, index); in __cvmx_helper_spi_link_get()