Home
last modified time | relevance | path

Searched full:interface (Results 1 – 25 of 4789) sorted by relevance

12345678910>>...192

/linux-3.3/arch/mips/include/asm/octeon/
Dcvmx-spi.h30 * This file contains defines for the SPI interface
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,
66 /** Called when interface is up */
67 int (*interface_up_cb) (int interface, cvmx_spi_mode_t mode);
72 * Return true if the supplied interface is configured for SPI
74 * @interface: Interface to check
[all …]
Dcvmx-helper-util.h38 * Convert a interface mode into a human readable string
96 * @interface: Interface to configure
97 * @num_ports: Number of ports on the interface
101 extern int __cvmx_helper_setup_gmx(int interface, int num_ports);
105 * interface.
107 * @interface: Interface to use
108 * @port: Port on the interface
112 extern int cvmx_helper_get_ipd_port(int interface, int port);
116 * interface.
118 * @interface: Interface to use
[all …]
Dcvmx-helper.h126 * Returns the number of ports on the given interface.
127 * The interface must be initialized before the port count
130 * @interface: Which interface to return port count for.
132 * Returns Port count for interface
133 * -1 for uninitialized interface
135 extern int cvmx_helper_ports_on_interface(int interface);
138 * Return the number of interfaces the chip has. Each interface
141 * one interface.
148 * Get the operating mode of an interface. Depending on the Octeon
150 * of the type of packet I/O supported by an interface.
[all …]
/linux-3.3/arch/mips/cavium-octeon/executive/
Dcvmx-helper-xaui.c44 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()
61 * Probe a XAUI interface and determine the number of ports
62 * connected to it. The XAUI interface should still be down
65 * @interface: Interface to probe
67 * Returns Number of ports on the interface. Zero to disable.
69 int __cvmx_helper_xaui_probe(int interface) in __cvmx_helper_xaui_probe() argument
76 * interface needs to be enabled before IPD otherwise per port in __cvmx_helper_xaui_probe()
79 mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); in __cvmx_helper_xaui_probe()
[all …]
Dcvmx-spi.c92 * Initialize and start the SPI interface.
94 * @interface: The identifier of the packet interface to configure and
95 * use as a SPI interface.
96 * @mode: The operating mode for the SPI interface. The interface
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()
[all …]
Dcvmx-helper-sgmii.c44 void __cvmx_interrupt_gmxx_enable(int interface);
51 * @interface: Interface to init
52 * @index: Index of prot on the 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()
[all …]
Dcvmx-helper.c69 /* Port count per interface */
77 * Return the number of interfaces the chip has. Each interface
80 * one interface.
93 * Return the number of ports on an interface. Depending on the
95 * specifies that the interface doesn't exist or isn't usable.
97 * @interface: Interface to get the port count for
99 * Returns Number of ports on interface. Can be Zero.
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()
107 * Get the operating mode of an interface. Depending on the Octeon
[all …]
Dcvmx-helper-rgmii.c47 void __cvmx_interrupt_gmxx_enable(int interface);
53 * @interface: Interface to probe
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()
67 "SPI interface\n"); in __cvmx_helper_rgmii_probe()
97 * Put an RGMII interface in loopback mode. Internal packets sent
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()
[all …]
Dcvmx-helper-spi.c28 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()
65 * Probe a SPI interface and determine the number of ports
66 * connected to it. The SPI interface should still be down after
69 * @interface: Interface to probe
71 * Returns Number of ports on the interface. Zero to disable.
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()
[all …]
Dcvmx-helper-util.c49 * Convert a interface mode into a human readable string
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()
260 * @interface: Interface to configure
261 * @num_ports: Number of ports on the interface
265 int __cvmx_helper_setup_gmx(int interface, int num_ports) in __cvmx_helper_setup_gmx() argument
273 /* Tell GMX the number of TX ports on this interface */ in __cvmx_helper_setup_gmx()
274 gmx_tx_prts.u64 = cvmx_read_csr(CVMX_GMXX_TX_PRTS(interface)); in __cvmx_helper_setup_gmx()
[all …]
/linux-3.3/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c59 static void __bnx2fc_destroy(struct bnx2fc_interface *interface);
66 static void bnx2fc_start_disc(struct bnx2fc_interface *interface);
74 static struct fc_lport *bnx2fc_if_create(struct bnx2fc_interface *interface,
81 static inline void bnx2fc_interface_put(struct bnx2fc_interface *interface);
88 static void bnx2fc_stop(struct bnx2fc_interface *interface);
168 struct bnx2fc_interface *interface = port->priv; in bnx2fc_cleanup() local
169 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_cleanup()
246 struct bnx2fc_interface *interface; in bnx2fc_xmit() local
258 interface = port->priv; in bnx2fc_xmit()
259 hba = interface->hba; in bnx2fc_xmit()
[all …]
/linux-3.3/security/selinux/
Dnetif.c2 * Network interface table.
5 * maintain a table associating each interface with a SID.
47 * sel_netif_hashfn - Hashing function for the interface table
48 * @ifindex: the network interface
51 * This is the hashing function for the network interface table, it returns the
52 * bucket number for the given interface.
61 * sel_netif_find - Search for an interface record
62 * @ifindex: the network interface
65 * Search the network interface table and return the record matching @ifindex.
84 * sel_netif_insert - Insert a new interface into the table
[all …]
/linux-3.3/drivers/mmc/host/
DKconfig8 tristate "ARM AMBA Multimedia Card Interface support"
12 Interface (PL180 and PL181) support. If you have an ARM(R)
18 tristate "Intel PXA25x/26x/27x Multimedia Card Interface support"
21 This selects the Intel(R) PXA(R) Multimedia card Interface.
28 tristate "Secure Digital Host Controller Interface support"
31 This selects the generic Secure Digital Host Controller Interface.
35 If you have a controller with this interface, say Y or M here. You
36 also need to enable an appropriate bus interface.
64 This selects the PCI Secure Digital Host Controller Interface.
67 If you have a controller with this interface, say Y or M here.
[all …]
/linux-3.3/Documentation/devicetree/bindings/powerpc/nintendo/
Dwii.txt23 1.a) The Video Interface (VI) node
25 Represents the interface between the graphics processor and a external
34 1.b) The Processor Interface (PI) node
36 Represents the data and control interface between the main processor
58 Represents the digital signal processor interface, designed to offload
67 1.d) The Serial Interface (SI) node
69 Represents the interface to the four single bit serial interfaces.
70 The SI is a proprietary serial interface used normally to control gamepads.
71 It's NOT a RS232-type interface.
79 1.e) The Audio Interface (AI) node
[all …]
Dgamecube.txt14 1.a) The Video Interface (VI) node
16 Represents the interface between the graphics processor and a external
25 1.b) The Processor Interface (PI) node
27 Represents the data and control interface between the main processor
47 Represents the digital signal processor interface, designed to offload
67 1.d) The Disk Interface (DI) node
69 Represents the interface used to communicate with mass storage devices.
77 1.e) The Audio Interface (AI) node
79 Represents the interface to the external 16-bit stereo digital-to-analog
88 1.f) The Serial Interface (SI) node
[all …]
/linux-3.3/drivers/staging/octeon/
Dethernet-rgmii.c81 int interface = INTERFACE(priv->port); in cvm_oct_rgmii_poll() local
86 (index, interface)); in cvm_oct_rgmii_poll()
103 (index, interface)); in cvm_oct_rgmii_poll()
106 (index, interface), in cvm_oct_rgmii_poll()
119 (index, interface), in cvm_oct_rgmii_poll()
143 int interface = INTERFACE(priv->port); in cvm_oct_rgmii_poll() local
148 cvmx_read_csr(CVMX_GMXX_RXX_FRM_CTL(index, interface)); in cvm_oct_rgmii_poll()
150 cvmx_write_csr(CVMX_GMXX_RXX_FRM_CTL(index, interface), in cvm_oct_rgmii_poll()
158 cvmx_read_csr(CVMX_GMXX_RXX_INT_REG(index, interface)); in cvm_oct_rgmii_poll()
159 cvmx_write_csr(CVMX_GMXX_RXX_INT_REG(index, interface), in cvm_oct_rgmii_poll()
[all …]
Dethernet-spi.c65 pr_err("SPI1: SRX Spi4 interface down\n"); in cvm_oct_spi_rml_interrupt()
102 pr_err("SPI1: STX Interface encountered a " in cvm_oct_spi_rml_interrupt()
145 pr_err("SPI0: SRX Spi4 interface down\n"); in cvm_oct_spi_rml_interrupt()
182 pr_err("SPI0: STX Interface encountered a " in cvm_oct_spi_rml_interrupt()
218 static void cvm_oct_spi_enable_error_reporting(int interface) in cvm_oct_spi_enable_error_reporting() argument
223 spxx_int_msk.u64 = cvmx_read_csr(CVMX_SPXX_INT_MSK(interface)); in cvm_oct_spi_enable_error_reporting()
234 cvmx_write_csr(CVMX_SPXX_INT_MSK(interface), spxx_int_msk.u64); in cvm_oct_spi_enable_error_reporting()
236 stxx_int_msk.u64 = cvmx_read_csr(CVMX_STXX_INT_MSK(interface)); in cvm_oct_spi_enable_error_reporting()
245 cvmx_write_csr(CVMX_STXX_INT_MSK(interface), stxx_int_msk.u64); in cvm_oct_spi_enable_error_reporting()
252 int interface; in cvm_oct_spi_poll() local
[all …]
/linux-3.3/drivers/staging/usbip/
Dstub_dev.c236 ret = usb_lock_device_for_reset(udev, sdev->interface); in stub_device_reset()
269 * @interface: usb_interface of a new device
274 struct usb_interface *interface) in stub_device_alloc() argument
277 int busnum = interface_to_busnum(interface); in stub_device_alloc()
278 int devnum = interface_to_devnum(interface); in stub_device_alloc()
280 dev_dbg(&interface->dev, "allocating stub device"); in stub_device_alloc()
285 dev_err(&interface->dev, "no memory for stub_device\n"); in stub_device_alloc()
289 sdev->interface = usb_get_intf(interface); in stub_device_alloc()
320 dev_dbg(&interface->dev, "register new interface\n"); in stub_device_alloc()
339 * active interface). Currently, a userland program must ensure that it
[all …]
/linux-3.3/Documentation/networking/
Doperstates.txt5 interface. Administrative state is the result of "ip link set dev
9 However, an interface is not usable just because the admin enabled it
13 shows the ability of an interface to transmit this user data.
28 These values contain interface state:
31 Interface is admin up
33 Interface is in RFC2863 operational state UP or UNKNOWN. This is for
35 flag to determine whether they should use the interface.
43 contains RFC2863 state of the interface in numeric representation:
46 Interface is in unknown state, neither driver nor userspace has set
47 operational state. Interface must be considered for user data as
[all …]
/linux-3.3/include/linux/mmc/
Dsdio_ids.h2 * SDIO Classes, Interface Types, Manufacturer IDs, etc.
12 #define SDIO_CLASS_NONE 0x00 /* Not a SDIO standard interface */
13 #define SDIO_CLASS_UART 0x01 /* standard UART interface */
14 #define SDIO_CLASS_BT_A 0x02 /* Type-A BlueTooth std interface */
15 #define SDIO_CLASS_BT_B 0x03 /* Type-B BlueTooth std interface */
16 #define SDIO_CLASS_GPS 0x04 /* GPS standard interface */
17 #define SDIO_CLASS_CAMERA 0x05 /* Camera standard interface */
18 #define SDIO_CLASS_PHS 0x06 /* PHS standard interface */
19 #define SDIO_CLASS_WLAN 0x07 /* WLAN interface */
20 #define SDIO_CLASS_ATA 0x08 /* Embedded SDIO-ATA std interface */
[all …]
/linux-3.3/drivers/usb/misc/
Dcytherm.c6 * This driver works with Elektor magazine USB Interface as published in
40 struct usb_interface *interface; /* the interface for this device */ member
46 static int cytherm_probe(struct usb_interface *interface,
48 static void cytherm_disconnect(struct usb_interface *interface);
347 static int cytherm_probe(struct usb_interface *interface, in cytherm_probe() argument
350 struct usb_device *udev = interface_to_usbdev(interface); in cytherm_probe()
356 dev_err (&interface->dev, "Out of memory\n"); in cytherm_probe()
362 usb_set_intfdata (interface, dev); in cytherm_probe()
366 retval = device_create_file(&interface->dev, &dev_attr_brightness); in cytherm_probe()
369 retval = device_create_file(&interface->dev, &dev_attr_temp); in cytherm_probe()
[all …]
Dusbled.c142 static int led_probe(struct usb_interface *interface, in led_probe() argument
145 struct usb_device *udev = interface_to_usbdev(interface); in led_probe()
151 dev_err(&interface->dev, "out of memory\n"); in led_probe()
158 usb_set_intfdata(interface, dev); in led_probe()
160 retval = device_create_file(&interface->dev, &dev_attr_blue); in led_probe()
163 retval = device_create_file(&interface->dev, &dev_attr_red); in led_probe()
166 retval = device_create_file(&interface->dev, &dev_attr_green); in led_probe()
175 dev_err(&interface->dev, "out of memory\n"); in led_probe()
195 dev_info(&interface->dev, "USB LED device now attached\n"); in led_probe()
199 device_remove_file(&interface->dev, &dev_attr_blue); in led_probe()
[all …]
/linux-3.3/drivers/nfc/
Dpn533.c258 struct usb_interface *interface; member
418 nfc_dev_dbg(&dev->interface->dev, "Urb shutting down with" in pn533_recv_response()
423 nfc_dev_err(&dev->interface->dev, "Nonzero urb status received:" in pn533_recv_response()
432 nfc_dev_err(&dev->interface->dev, "Received an invalid frame"); in pn533_recv_response()
438 nfc_dev_err(&dev->interface->dev, "The received frame is not " in pn533_recv_response()
444 nfc_dev_dbg(&dev->interface->dev, "Received a valid frame"); in pn533_recv_response()
472 nfc_dev_dbg(&dev->interface->dev, "Urb shutting down with" in pn533_recv_ack()
477 nfc_dev_err(&dev->interface->dev, "Nonzero urb status received:" in pn533_recv_ack()
486 nfc_dev_err(&dev->interface->dev, "Received an invalid ack"); in pn533_recv_ack()
491 nfc_dev_dbg(&dev->interface->dev, "Received a valid ack"); in pn533_recv_ack()
[all …]
/linux-3.3/drivers/media/video/usbvision/
Dusbvision-cards.c36 .interface = -1,
50 .interface = -1,
66 .interface = -1,
80 .interface = -1,
96 .interface = 0,
112 .interface = -1,
126 .interface = -1,
142 .interface = -1,
156 .interface = -1,
172 .interface = -1,
[all …]
/linux-3.3/drivers/staging/line6/
Ddriver.c92 Code to request version of POD, Variax interface
464 "PODxt Live interface %d not supported\n", in line6_data_received()
691 struct usb_interface *interface = to_usb_interface(dev); in line6_set_raw() local
692 struct usb_line6 *line6 = usb_get_intfdata(interface); in line6_set_raw()
701 static void line6_destruct(struct usb_interface *interface) in line6_destruct() argument
705 if (interface == NULL) in line6_destruct()
707 line6 = usb_get_intfdata(interface); in line6_destruct()
719 usb_set_intfdata(interface, NULL); in line6_destruct()
721 /* free interface data: */ in line6_destruct()
728 static int line6_probe(struct usb_interface *interface, in line6_probe() argument
[all …]

12345678910>>...192