| /linux/include/net/ |
| H A D | bonding.h | 1 /* SPDX-License-Identifier: GPL-1.0+ */ 5 * Portions are (c) Copyright 1995 Simon "Guru Aleph-Null" Janes 43 netdev_info(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__) 45 netdev_warn(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__) 47 netdev_dbg(bond_dev, "(slave %s): " fmt, (slave_dev)->nam 121 int mode; global() member 160 struct slave { global() struct 171 backupslave global() argument 173 inactiveslave global() argument 174 rx_disabledslave global() argument 184 ad_infoslave global() argument 185 tlb_infoslave global() argument 191 slave_statsslave global() argument 194 kobjslave to_slave() argument 296 bond_get_bond_by_slave(struct slave * slave) bond_get_bond_by_slave() argument 338 bond_mode_uses_arp(int mode) bond_mode_uses_arp() argument 344 bond_mode_uses_primary(int mode) bond_mode_uses_primary() argument 357 struct slave *slave = rcu_dereference_rtnl(bond->curr_active_slave); bond_option_active_slave_get_rcu() local 362 bond_slave_is_up(struct slave * slave) bond_slave_is_up() argument 367 bond_set_active_slave(struct slave * slave) bond_set_active_slave() argument 376 bond_set_backup_slave(struct slave * slave) bond_set_backup_slave() argument 385 bond_set_slave_state(struct slave * slave,int slave_state,bool notify) bond_set_slave_state() argument 430 bond_slave_state(struct slave * slave) bond_slave_state() argument 435 bond_is_active_slave(struct slave * slave) bond_is_active_slave() argument 440 bond_slave_can_tx(struct slave * slave) bond_slave_can_tx() argument 448 struct slave *slave; bond_is_active_slave_dev() local 495 slave_do_arp_validate(struct bonding * bond,struct slave * slave) slave_do_arp_validate() argument 523 slave_oldest_target_arp_rx(struct bonding * bond,struct slave * slave) slave_oldest_target_arp_rx() argument 536 slave_last_rx(struct bonding * bond,struct slave * slave) slave_last_rx() argument 544 slave_update_last_tx(struct slave * slave) slave_update_last_tx() argument 549 slave_last_tx(struct slave * slave) slave_last_tx() argument 555 bond_netpoll_send_skb(const struct slave * slave,struct sk_buff * skb) bond_netpoll_send_skb() argument 561 bond_netpoll_send_skb(const struct slave * slave,struct sk_buff * skb) bond_netpoll_send_skb() argument 569 bond_set_slave_inactive_flags(struct slave * slave,bool notify) bond_set_slave_inactive_flags() argument 580 bond_set_slave_tx_disabled_flags(struct slave * slave,bool notify) bond_set_slave_tx_disabled_flags() argument 586 bond_set_slave_active_flags(struct slave * slave,bool notify) bond_set_slave_active_flags() argument 595 bond_set_slave_rx_enabled_flags(struct slave * slave,bool notify) bond_set_slave_rx_enabled_flags() argument 601 bond_is_slave_inactive(struct slave * slave) bond_is_slave_inactive() argument 606 bond_is_slave_rx_disabled(struct slave * slave) bond_is_slave_rx_disabled() argument 611 bond_propose_link_state(struct slave * slave,int state) bond_propose_link_state() argument 616 bond_commit_link_state(struct slave * slave,bool notify) bond_commit_link_state() argument 634 bond_set_slave_link_state(struct slave * slave,int state,bool notify) bond_set_slave_link_state() argument [all...] |
| /linux/tools/testing/selftests/drivers/net/bonding/ |
| H A D | bond_options.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # Test bonding options with mode 1,5,6 24 ip -n ${s_ns} link set eth0 type bond_slave prio 10 25 [[ $? -ne 0 ]] && skip=0 28 ip -n ${s_ns} -d link show eth0 | grep -q "prio 10" 29 [[ $? -ne 0 ]] && skip=0 39 ip -n ${s_ns} link add bond1 type bond ns_ip6_target ${g_ip6} 40 [[ $? -ne 0 ]] && skip=0 43 ip -n ${s_ns} -d link show bond1 | grep -q "ns_ip6_target ${g_ip6}" 44 [[ $? -ne 0 ]] && skip=0 [all …]
|
| /linux/drivers/net/ethernet/ti/ |
| H A D | cpsw-phy-sel.c | 1 // SPDX-License-Identifier: GPL-2.0 35 phy_interface_t phy_mode, int slave); 40 phy_interface_t phy_mode, int slave) in cpsw_gmii_sel_am3352() argument 44 u32 mode = 0; in cpsw_gmii_sel_am3352() local 47 reg = readl(priv->gmii_sel); in cpsw_gmii_sel_am3352() 51 mode = AM33XX_GMII_SEL_MODE_RMII; in cpsw_gmii_sel_am3352() 55 mode = AM33XX_GMII_SEL_MODE_RGMII; in cpsw_gmii_sel_am3352() 61 mode = AM33XX_GMII_SEL_MODE_RGMII; in cpsw_gmii_sel_am3352() 66 dev_warn(priv->dev, in cpsw_gmii_sel_am3352() 67 "Unsupported PHY mode: \"%s\". Defaulting to MII.\n", in cpsw_gmii_sel_am3352() [all …]
|
| H A D | am65-cpsw-nuss.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ 32 #include <linux/dma/ti-cppi5.h> 33 #include <linux/dma/k3-udma-glue.h> 40 #include "am65-cpsw-nuss.h" 41 #include "am65-cpsw-switchdev.h" 42 #include "k3-cppi-desc-pool.h" 43 #include "am65-cpts.h" 132 /* The PTP event messages - Sync, Delay_Req, Pdelay_Req, and Pdelay_Resp. */ 176 static void am65_cpsw_port_set_sl_mac(struct am65_cpsw_port *slave, in am65_cpsw_port_set_sl_mac() argument [all …]
|
| /linux/Documentation/w1/masters/ |
| H A D | omap-hdq.rst | 2 Kernel driver for omap HDQ/1-wire module 7 HDQ/1-wire controller on the TI OMAP 2430/3430 platforms. 15 The HDQ/1-Wire module of TI OMAP2430/3430 platforms implement the hardware 17 Semiconductor 1-Wire protocols. These protocols use a single wire for 18 communication between the master (HDQ/1-Wire controller) and the slave 19 (HDQ/1-Wire external compliant device). 21 A typical application of the HDQ/1-Wire module is the communication with battery 24 The controller supports operation in both HDQ and 1-wire mode. The essential 25 difference between the HDQ and 1-wire mode is how the slave device responds to 26 initialization pulse.In HDQ mode, the firmware does not require the host to [all …]
|
| /linux/Documentation/devicetree/bindings/sound/ |
| H A D | fsl,ssi.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Shengjiu Wang <shengjiu.wang@nxp.com> 13 Notes on fsl,playback-dma and fsl,capture-dma 14 On SOCs that have an SSI, specific DMA channels are hard-wired for playback 18 DMA controller to use, but the channels themselves are hard-wired. The 22 "fsl,playback-dma" and "fsl,capture-dma" must be marked as compatible with 23 "fsl,ssi-dma-channel". The SOC-specific compatible string (e.g. 24 "fsl,mpc8610-dma-channel") can remain. If these nodes are left as [all …]
|
| /linux/drivers/net/bonding/ |
| H A D | bond_main.c | 1 // SPDX-License-Identifier: GPL-1.0+ 21 * the first slave bonded to the channel. All slaves will then use 28 * will attach eth0 to bond0 as a slave. eth0 hw mac address will either 98 /*---------------------------- Module parameters ----------------------------*/ 109 static char *mode; variable 146 module_param(mode, charp, 0); 147 MODULE_PARM_DESC(mode, "Mode of operation; 0 for balance-rr, " 148 "1 for active-backup, 2 for balance-xor, " 149 "3 for broadcast, 4 for 802.3ad, 5 for balance-tlb, " 150 "6 for balance-alb"); [all …]
|
| /linux/include/linux/soundwire/ |
| H A D | sdw.h | 1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */ 2 /* Copyright(c) 2015-17 Intel Corporation. */ 88 * enum sdw_slave_status - Slave status 89 * @SDW_SLAVE_UNATTACHED: Slave is not attached with the bus. 90 * @SDW_SLAVE_ATTACHED: Slave i 1105 sdw_stream_add_slave(struct sdw_slave * slave,struct sdw_stream_config * stream_config,const struct sdw_port_config * port_config,unsigned int num_ports,struct sdw_stream_runtime * stream) sdw_stream_add_slave() argument 1115 sdw_stream_remove_slave(struct sdw_slave * slave,struct sdw_stream_runtime * stream) sdw_stream_remove_slave() argument 1123 sdw_read(struct sdw_slave * slave,u32 addr) sdw_read() argument 1129 sdw_write(struct sdw_slave * slave,u32 addr,u8 value) sdw_write() argument 1135 sdw_write_no_pm(struct sdw_slave * slave,u32 addr,u8 value) sdw_write_no_pm() argument 1141 sdw_read_no_pm(struct sdw_slave * slave,u32 addr) sdw_read_no_pm() argument 1147 sdw_nread(struct sdw_slave * slave,u32 addr,size_t count,u8 * val) sdw_nread() argument 1153 sdw_nread_no_pm(struct sdw_slave * slave,u32 addr,size_t count,u8 * val) sdw_nread_no_pm() argument 1159 sdw_nwrite(struct sdw_slave * slave,u32 addr,size_t count,const u8 * val) sdw_nwrite() argument 1165 sdw_nwrite_no_pm(struct sdw_slave * slave,u32 addr,size_t count,const u8 * val) sdw_nwrite_no_pm() argument 1171 sdw_update(struct sdw_slave * slave,u32 addr,u8 mask,u8 val) sdw_update() argument 1177 sdw_update_no_pm(struct sdw_slave * slave,u32 addr,u8 mask,u8 val) sdw_update_no_pm() argument [all...] |
| /linux/Documentation/devicetree/bindings/net/ |
| H A D | cpsw.txt | 2 ------------------------------------------------------ 5 - compatible : Should be one of the below:- 7 "ti,am335x-cpsw" for AM335x controllers 8 "ti,am4372-cpsw" for AM437x controllers 9 "ti,dra7-cpsw" for DRA7x controllers 10 - reg : physical base address and size of the cpsw 12 - interrupts : property with a value describing the interrupt 14 - cpdma_channels : Specifies number of channels in CPDMA 15 - ale_entries : Specifies No of entries ALE can hold 16 - bd_ram_size : Specifies internal descriptor RAM size [all …]
|
| H A D | keystone-netcp.txt | 6 switch sub-module to send and receive packets. NetCP also includes a packet 13 includes a 3-port Ethernet switch sub-module capable of 10Gb/s and 1Gb/s rates 16 Keystone NetCP driver has a plug-in module architecture where each of the NetCP 17 sub-modules exist as a loadable kernel module which plug in to the netcp core. 18 These sub-modules are represented as "netcp-devices" in the dts bindings. It is 19 mandatory to have the ethernet switch sub-module for the ethernet interface to 20 be operational. Any other sub-module like the PA is optional. 24 ----------------------------- 26 ----------------------------- 28 |-> NetCP Devices -> | [all …]
|
| /linux/Documentation/devicetree/bindings/ata/ |
| H A D | cortina,gemini-sata-bridge.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/ata/cortina,gemini-sata-bridge.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 13 The Gemini SATA bridge in a SoC-internal PATA to SATA bridge that 19 const: cortina,gemini-sata-bridge 28 reset-names: 30 - const: sata0 31 - const: sata1 [all …]
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-emev2.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2015 Wolfram Sang <wsa@sang-engineering.com> 7 * Copyright 2010-2015 Renesas Electronics Corporation 27 #define I2C_OFS_SVA0 0x0c /* slave address */ 70 struct i2c_client *slave; member 76 writeb((readb(priv->base + reg) & ~clear) | set, priv->base + reg); in em_clear_set_bit() 84 reinit_completion(&priv->msg_done); in em_i2c_wait_for_event() 86 time_left = wait_for_completion_timeout(&priv->msg_done, priv->adap.timeout); in em_i2c_wait_for_event() 89 return -ETIMEDOUT; in em_i2c_wait_for_event() 91 status = readb(priv->base + I2C_OFS_IICSE0); in em_i2c_wait_for_event() [all …]
|
| H A D | i2c-pxa.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright (C) 2004-2005 Deep Blue Solutions Ltd. 13 * Jan 2003: Fixed several bugs concerning interrupt handling [Kai-Uwe Bloem] 14 * Jan 2003: added limited signal handling [Kai-Uwe Bloem] 16 * Dec 2004: Added support for PXA27x and slave device probing [Liam Girdwood] 17 * Feb 2005: Rework slave mode handling [RMK] 34 #include <linux/platform_data/i2c-pxa.h> 53 #define ICR_SSDIE (1 << 11) /* slave STOP detected int enable */ 55 #define ICR_SADIE (1 << 13) /* slave address detected int enable */ 57 #define ICR_FM (1 << 15) /* fast mode */ [all …]
|
| H A D | i2c-at91.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * i2c Support for Atmel's AT91 Two-Wire Interface (TWI) 18 #include <linux/dma-mapping.h> 34 #define AT91_TWI_SVEN BIT(4) /* Slave Transfer Enable */ 35 #define AT91_TWI_SVDIS BIT(5) /* Slave Transfer Disable */ 39 #define AT91_TWI_ACMEN BIT(16) /* Alternative Command Mode Enable */ 40 #define AT91_TWI_ACMDIS BIT(17) /* Alternative Command Mode Disable */ 47 #define AT91_TWI_MMR 0x0004 /* Master Mode Register */ 51 #define AT91_TWI_SMR 0x0008 /* Slave Mode Register */ 65 #define AT91_TWI_SVREAD BIT(3) /* Slave Read */ [all …]
|
| H A D | i2c-axxia.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * (-EINVAL) is returned. 65 #define MST_STATUS_SNS (1 << 11) /* Manual mode done */ 66 #define MST_STATUS_SS (1 << 10) /* Automatic mode done */ 84 #define SLV_ADDR_DEC_SA1M BIT(3) /* 10-bit addressing for addr_1 enabled */ 86 #define SLV_ADDR_DEC_SA2M BIT(5) /* 10-bit addressing for addr_2 enabled */ 107 #define SLV_STATUS_SRS1 BIT(2) /* Slave read from addr 1 */ 111 #define SLV_STATUS_SRAT1 BIT(6) /* Slave Read timed out */ 121 * struct axxia_i2c_dev - I2C device context 134 * @slave: associated &i2c_client [all …]
|
| /linux/Documentation/gpu/ |
| H A D | komeda-kms.rst | 1 .. SPDX-License-Identifier: GPL-2.0 23 ----- 30 ------ 39 ------------------- 47 -------------------------- 52 ----------------------------- 57 -------------------------------- 62 ------ 72 -------- 81 types of working mode: [all …]
|
| /linux/drivers/fsi/ |
| H A D | fsi-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * - Rework topology 9 * - s/chip_id/chip_loc 10 * - s/cfam/chip (cfam_id -> chip_id etc...) 27 #include "fsi-master.h" 28 #include "fsi-slave.h" 51 * FSI slave engine control register offsets 53 #define FSI_SMODE 0x0 /* R/W: Mode register */ 55 #define FSI_SSTAT 0x14 /* R : Slave status */ 57 #define FSI_LLMODE 0x100 /* R/W: Link layer mode register */ [all …]
|
| /linux/Documentation/networking/ |
| H A D | ipvlan.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 exception of using L3 for mux-ing /demux-ing among slaves. This property makes 14 the master device share the L2 with its slave devices. I have developed this 34 ip link add link <master> name <slave> type ipvlan [ mode MODE ] [ FLAGS ] 36 MODE: l3 (default) | l3s | l2 42 L3 bridge mode:: 45 (b) This command will create IPvlan link in L2 bridge mode:: 47 bash# ip link add link eth0 name ipvl0 type ipvlan mode l2 bridge 49 (c) This command will create an IPvlan device in L2 private mode:: 51 bash# ip link add link eth0 name ipvlan type ipvlan mode l2 private [all …]
|
| /linux/drivers/ata/ |
| H A D | pata_ftide010.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 * struct ftide010 - state container for the Faraday FTIDE010 30 * @slave_cbl: slave cable type 34 * @slave_to_sata0: Gemini SATA bridge: the ATA slave is connected 38 * @slave_to_sata1: Gemini SATA bridge: the ATA slave is connected 48 /* Gemini-specific properties */ 63 #define FTIDE010_UDMA_TIMING1 0x13 /* Slave */ 76 /* Set this bit for UDMA mode 5 and 6 */ 98 * pio_active_time: array of 5 elements for T2 timing for Mode 0, 100 * pio_recovery_time: array of 5 elements for T2l timing for Mode 0, [all …]
|
| H A D | sata_gemini.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Cortina Systems Gemini SATA bridge add-on to Faraday FTIDE010 23 * struct sata_gemini - a state container for a Gemini SATA bridge 26 * @muxmode: the current muxing mode 52 * master/slave configuration. 57 * 111-100 - Reserved 58 * Mode 0: 000 - ata0 master <-> sata0 59 * ata1 master <-> sata1 60 * ata0 slave interface brought out on IDE pads 61 * Mode 1: 001 - ata0 master <-> sata0 [all …]
|
| /linux/drivers/i2c/ |
| H A D | i2c-slave-eeprom.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * I2C slave mode EEPROM simulator 5 * Copyright (C) 2014 by Wolfram Sang, Sang Engineering <wsa@sang-engineering.com> 8 * Because most slave IP cores can only detect one I2C slave address anyhow, 15 * The ST-M24C64 sends only 0xff then. Needs verification with other 43 #define I2C_SLAVE_DEVICE_MAGIC(_len, _flags) ((_flags) | ((_len) - 1)) 52 if (eeprom->idx_write_cnt < eeprom->num_address_bytes) { in i2c_slave_eeprom_slave_cb() 53 if (eeprom->idx_write_cnt == 0) in i2c_slave_eeprom_slave_cb() 54 eeprom->buffer_idx = 0; in i2c_slave_eeprom_slave_cb() 55 eeprom->buffer_idx = *val | (eeprom->buffer_idx << 8); in i2c_slave_eeprom_slave_cb() [all …]
|
| /linux/include/linux/i3c/ |
| H A D | ccc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 30 /* Broadcast-only commands */ 36 /* Unicast-only commands */ 56 * struct i3c_ccc_events - payload passed to ENEC/DISEC CCC 69 * struct i3c_ccc_mwl - payload passed to SETMWL/GETMWL CCC 81 * struct i3c_ccc_mrl - payload passed to SETMRL/GETMRL CCC 88 * The IBI length is only valid if the I3C slave is IBI capable 97 * struct i3c_ccc_dev_desc - I3C/I2C device descriptor used for DEFSLVS 99 * @dyn_addr: dynamic address assigned to the I3C slave or 0 if the entry is 100 * describing an I2C slave. [all …]
|
| /linux/drivers/infiniband/hw/mlx4/ |
| H A D | sysfs.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 42 * 0 - requests opensm to assign a value. 43 * ffffffffffffffff - delete this entry. 44 * other - value assigned by administrator. 51 struct mlx4_ib_iov_port *port = mlx4_ib_iov_dentry->ctx; in show_admin_alias_guid() 52 struct mlx4_ib_dev *mdev = port->dev; in show_admin_alias_guid() 55 sysadmin_ag_val = mlx4_get_admin_guid(mdev->dev, in show_admin_alias_guid() 56 mlx4_ib_iov_dentry->entry_num, in show_admin_alias_guid() 57 port->num); in show_admin_alias_guid() [all …]
|
| /linux/Documentation/driver-api/dmaengine/ |
| H A D | client.rst | 8 ``Documentation/crypto/async-tx-api.rst`` 11 Below is a guide to device driver writers on how to use the Slave-DMA API of the 12 DMA Engine. This is applicable only for slave DMA usage only. 17 The slave DMA usage consists of following steps: 19 - Allocate a DMA slave channel 21 - Set slave and controller specific parameters 23 - Get a descriptor for transaction 25 - Submit the transaction 27 - Issue pending requests and wait for callback notification 31 1. Allocate a DMA slave channel [all …]
|
| /linux/include/linux/amba/ |
| H A D | pl022.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Copyright (C) 2008-2009 ST-Ericsson AB 11 * linux-2.6.17-rc3-mm1/drivers/spi/pxa2xx_spi.c 23 * whether SSP is in loopback mode or not 31 * enum ssp_interface - interfaces allowed for this SSP Controller 48 * enum ssp_hierarchy - whether SSP is configured as Master or Slave 56 * enum ssp_clock_params - clock parameters, to set SSP clock at a 65 * enum ssp_rx_endian - endianess of Rx FIFO Data 74 * enum ssp_tx_endian - endianess of Tx FIFO Data 82 * enum ssp_data_size - number of bits in one data element [all …]
|