Home
last modified time | relevance | path

Searched +full:slave +full:- +full:dev (Results 1 – 25 of 1022) sorted by relevance

12345678910>>...41

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dresource_tracker.c17 * - Redistributions of source code must retain the above
21 * - Redistributions in binary form must reproduce the above
228 /* > 0 --> apply mirror when getting into HA mode */
229 /* = 0 --> un-apply mirror when getting out of HA mode */
237 struct rb_node *node = root->rb_node; in res_tracker_lookup()
243 if (res_id < res->res_id) in res_tracker_lookup()
244 node = node->rb_left; in res_tracker_lookup()
245 else if (res_id > res->res_id) in res_tracker_lookup()
246 node = node->rb_right; in res_tracker_lookup()
255 struct rb_node **new = &(root->rb_node), *parent = NULL; in res_tracker_insert()
[all …]
Dcmd.c16 * - Redistributions of source code must retain the above
20 * - Redistributions in binary form must reproduce the above
136 static int mlx4_master_process_vhcr(struct mlx4_dev *dev, int slave,
142 [CMD_STAT_INTERNAL_ERR] = -EIO, in mlx4_status_to_errno()
143 [CMD_STAT_BAD_OP] = -EPERM, in mlx4_status_to_errno()
144 [CMD_STAT_BAD_PARAM] = -EINVAL, in mlx4_status_to_errno()
145 [CMD_STAT_BAD_SYS_STATE] = -ENXIO, in mlx4_status_to_errno()
146 [CMD_STAT_BAD_RESOURCE] = -EBADF, in mlx4_status_to_errno()
147 [CMD_STAT_RESOURCE_BUSY] = -EBUSY, in mlx4_status_to_errno()
148 [CMD_STAT_EXCEED_LIM] = -ENOMEM, in mlx4_status_to_errno()
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/
Dresource_tracker.c17 * - Redistributions of source code must retain the above
21 * - Redistributions in binary form must reproduce the above
228 /* > 0 --> apply mirror when getting into HA mode */
229 /* = 0 --> un-apply mirror when getting out of HA mode */
237 struct rb_node *node = root->rb_node; in res_tracker_lookup()
243 if (res_id < res->res_id) in res_tracker_lookup()
244 node = node->rb_left; in res_tracker_lookup()
245 else if (res_id > res->res_id) in res_tracker_lookup()
246 node = node->rb_right; in res_tracker_lookup()
255 struct rb_node **new = &(root->rb_node), *parent = NULL; in res_tracker_insert()
[all …]
Dcmd.c16 * - Redistributions of source code must retain the above
20 * - Redistributions in binary form must reproduce the above
136 static int mlx4_master_process_vhcr(struct mlx4_dev *dev, int slave,
142 [CMD_STAT_INTERNAL_ERR] = -EIO, in mlx4_status_to_errno()
143 [CMD_STAT_BAD_OP] = -EPERM, in mlx4_status_to_errno()
144 [CMD_STAT_BAD_PARAM] = -EINVAL, in mlx4_status_to_errno()
145 [CMD_STAT_BAD_SYS_STATE] = -ENXIO, in mlx4_status_to_errno()
146 [CMD_STAT_BAD_RESOURCE] = -EBADF, in mlx4_status_to_errno()
147 [CMD_STAT_RESOURCE_BUSY] = -EBUSY, in mlx4_status_to_errno()
148 [CMD_STAT_EXCEED_LIM] = -ENOMEM, in mlx4_status_to_errno()
[all …]
/kernel/linux/linux-5.10/drivers/soundwire/
Dbus.c1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2 // Copyright(c) 2015-17 Intel Corporation.
22 bus->id = rc; in sdw_get_id()
27 * sdw_bus_master_add() - add a bus Master instance
43 return -ENODEV; in sdw_bus_master_add()
55 bus->link_id); in sdw_bus_master_add()
59 if (!bus->ops) { in sdw_bus_master_add()
60 dev_err(bus->dev, "SoundWire Bus ops are not set\n"); in sdw_bus_master_add()
61 return -EINVAL; in sdw_bus_master_add()
64 if (!bus->compute_params) { in sdw_bus_master_add()
[all …]
Dbus_type.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright(c) 2015-17 Intel Corporation.
13 * sdw_get_device_id - find the matching SoundWire device id
14 * @slave: SoundWire Slave Device
15 * @drv: SoundWire Slave Driver
21 sdw_get_device_id(struct sdw_slave *slave, struct sdw_driver *drv) in sdw_get_device_id() argument
25 for (id = drv->id_table; id && id->mfg_id; id++) in sdw_get_device_id()
26 if (slave->id.mfg_id == id->mfg_id && in sdw_get_device_id()
27 slave->id.part_id == id->part_id && in sdw_get_device_id()
28 (!id->sdw_version || in sdw_get_device_id()
[all …]
Dslave.c1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2 // Copyright(c) 2015-17 Intel Corporation.
11 static void sdw_slave_release(struct device *dev) in sdw_slave_release() argument
13 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_slave_release() local
15 kfree(slave); in sdw_slave_release()
27 struct sdw_slave *slave; in sdw_slave_add() local
31 slave = kzalloc(sizeof(*slave), GFP_KERNEL); in sdw_slave_add()
32 if (!slave) in sdw_slave_add()
33 return -ENOMEM; in sdw_slave_add()
36 memcpy(&slave->id, id, sizeof(*id)); in sdw_slave_add()
[all …]
/kernel/linux/linux-6.6/drivers/soundwire/
Dbus.c1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2 // Copyright(c) 2015-17 Intel Corporation.
24 bus->id = rc; in sdw_get_id()
26 if (bus->controller_id == -1) in sdw_get_id()
27 bus->controller_id = rc; in sdw_get_id()
33 * sdw_bus_master_add() - add a bus Master instance
49 return -ENODEV; in sdw_bus_master_add()
61 bus->link_id); in sdw_bus_master_add()
65 if (!bus->ops) { in sdw_bus_master_add()
66 dev_err(bus->dev, "SoundWire Bus ops are not set\n"); in sdw_bus_master_add()
[all …]
Dbus_type.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright(c) 2015-17 Intel Corporation.
14 * sdw_get_device_id - find the matching SoundWire device id
15 * @slave: SoundWire Slave Device
16 * @drv: SoundWire Slave Driver
22 sdw_get_device_id(struct sdw_slave *slave, struct sdw_driver *drv) in sdw_get_device_id() argument
26 for (id = drv->id_table; id && id->mfg_id; id++) in sdw_get_device_id()
27 if (slave->id.mfg_id == id->mfg_id && in sdw_get_device_id()
28 slave->id.part_id == id->part_id && in sdw_get_device_id()
29 (!id->sdw_version || in sdw_get_device_id()
[all …]
Dslave.c1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2 // Copyright(c) 2015-17 Intel Corporation.
11 static void sdw_slave_release(struct device *dev) in sdw_slave_release() argument
13 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_slave_release() local
15 mutex_destroy(&slave->sdw_dev_lock); in sdw_slave_release()
16 kfree(slave); in sdw_slave_release()
28 struct sdw_slave *slave; in sdw_slave_add() local
32 slave = kzalloc(sizeof(*slave), GFP_KERNEL); in sdw_slave_add()
33 if (!slave) in sdw_slave_add()
34 return -ENOMEM; in sdw_slave_add()
[all …]
/kernel/linux/linux-6.6/drivers/fsi/
Dfsi-core.c1 // 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
55 #define FSI_SSTAT 0x14 /* R : Slave status */
94 /* Legacy /dev numbering: 4 devices per chip, 16 chips */
106 * FSI endpoint-device support
[all …]
/kernel/linux/linux-5.10/drivers/fsi/
Dfsi-core.c1 // 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...)
25 #include "fsi-master.h"
48 * FSI slave engine control register offsets
52 #define FSI_SSTAT 0x14 /* R : Slave status */
85 struct device dev; member
93 uint32_t size; /* size of slave address space */
98 #define to_fsi_master(d) container_of(d, struct fsi_master, dev)
[all …]
/kernel/linux/linux-5.10/drivers/net/bonding/
Dbond_main.c20 * the first slave bonded to the channel. All slaves will then use
27 * will attach eth0 to bond0 as a slave. eth0 hw mac address will either
89 /*---------------------------- Module parameters ----------------------------*/
139 MODULE_PARM_DESC(mode, "Mode of operation; 0 for balance-rr, "
140 "1 for active-backup, 2 for balance-xor, "
141 "3 for broadcast, 4 for 802.3ad, 5 for balance-tlb, "
142 "6 for balance-alb");
146 MODULE_PARM_DESC(primary_reselect, "Reselect primary slave "
151 "2 for only on active slave "
164 MODULE_PARM_DESC(xmit_hash_policy, "balance-alb, balance-tlb, balance-xor, 802.3ad hashing method; "
[all …]
Dbond_alb.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright(c) 1999 - 2004 Intel Corporation. All rights reserved.
37 u8 padding[ETH_ZLEN - ETH_HLEN];
54 static void alb_send_learning_packets(struct slave *slave, u8 mac_addr[],
77 entry->load_history = 1 + entry->tx_bytes / in tlb_init_table_entry()
79 entry->tx_bytes = 0; in tlb_init_table_entry()
82 entry->tx_slave = NULL; in tlb_init_table_entry()
83 entry->next = TLB_NULL_INDEX; in tlb_init_table_entry()
84 entry->prev = TLB_NULL_INDEX; in tlb_init_table_entry()
87 static inline void tlb_init_slave(struct slave *slave) in tlb_init_slave() argument
[all …]
/kernel/linux/linux-6.6/drivers/net/bonding/
Dbond_main.c1 // 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
97 /*---------------------------- Module parameters ----------------------------*/
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");
154 MODULE_PARM_DESC(primary_reselect, "Reselect primary slave "
159 "2 for only on active slave "
[all …]
Dbond_alb.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright(c) 1999 - 2004 Intel Corporation. All rights reserved.
37 u8 padding[ETH_ZLEN - ETH_HLEN];
54 static void alb_send_learning_packets(struct slave *slave, const u8 mac_addr[],
77 entry->load_history = 1 + entry->tx_bytes / in tlb_init_table_entry()
79 entry->tx_bytes = 0; in tlb_init_table_entry()
82 entry->tx_slave = NULL; in tlb_init_table_entry()
83 entry->next = TLB_NULL_INDEX; in tlb_init_table_entry()
84 entry->prev = TLB_NULL_INDEX; in tlb_init_table_entry()
87 static inline void tlb_init_slave(struct slave *slave) in tlb_init_slave() argument
[all …]
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-at91-slave.c1 // SPDX-License-Identifier: GPL-2.0
3 * i2c slave support for Atmel's AT91 Two-Wire Interface (TWI)
13 #include "i2c-at91.h"
17 struct at91_twi_dev *dev = dev_id; in atmel_twi_interrupt_slave() local
18 const unsigned status = at91_twi_read(dev, AT91_TWI_SR); in atmel_twi_interrupt_slave()
19 const unsigned irqstatus = status & at91_twi_read(dev, AT91_TWI_IMR); in atmel_twi_interrupt_slave()
25 /* slave address has been detected on I2C bus */ in atmel_twi_interrupt_slave()
28 i2c_slave_event(dev->slave, in atmel_twi_interrupt_slave()
30 writeb_relaxed(value, dev->base + AT91_TWI_THR); in atmel_twi_interrupt_slave()
31 at91_twi_write(dev, AT91_TWI_IER, in atmel_twi_interrupt_slave()
[all …]
Di2c-designware-slave.c1 // SPDX-License-Identifier: GPL-2.0
3 * Synopsys DesignWare I2C adapter driver (slave only).
19 #include "i2c-designware-core.h"
21 static void i2c_dw_configure_fifo_slave(struct dw_i2c_dev *dev) in i2c_dw_configure_fifo_slave() argument
24 regmap_write(dev->map, DW_IC_TX_TL, 0); in i2c_dw_configure_fifo_slave()
25 regmap_write(dev->map, DW_IC_RX_TL, 0); in i2c_dw_configure_fifo_slave()
27 /* Configure the I2C slave. */ in i2c_dw_configure_fifo_slave()
28 regmap_write(dev->map, DW_IC_CON, dev->slave_cfg); in i2c_dw_configure_fifo_slave()
29 regmap_write(dev->map, DW_IC_INTR_MASK, DW_IC_INTR_SLAVE_MASK); in i2c_dw_configure_fifo_slave()
33 * i2c_dw_init_slave() - Initialize the designware i2c slave hardware
[all …]
/kernel/linux/linux-6.6/drivers/i2c/busses/
Di2c-at91-slave.c1 // SPDX-License-Identifier: GPL-2.0
3 * i2c slave support for Atmel's AT91 Two-Wire Interface (TWI)
13 #include "i2c-at91.h"
17 struct at91_twi_dev *dev = dev_id; in atmel_twi_interrupt_slave() local
18 const unsigned status = at91_twi_read(dev, AT91_TWI_SR); in atmel_twi_interrupt_slave()
19 const unsigned irqstatus = status & at91_twi_read(dev, AT91_TWI_IMR); in atmel_twi_interrupt_slave()
25 /* slave address has been detected on I2C bus */ in atmel_twi_interrupt_slave()
28 i2c_slave_event(dev->slave, in atmel_twi_interrupt_slave()
30 writeb_relaxed(value, dev->base + AT91_TWI_THR); in atmel_twi_interrupt_slave()
31 at91_twi_write(dev, AT91_TWI_IER, in atmel_twi_interrupt_slave()
[all …]
Di2c-designware-slave.c1 // SPDX-License-Identifier: GPL-2.0
3 * Synopsys DesignWare I2C adapter driver (slave only).
19 #include "i2c-designware-core.h"
21 static void i2c_dw_configure_fifo_slave(struct dw_i2c_dev *dev) in i2c_dw_configure_fifo_slave() argument
24 regmap_write(dev->map, DW_IC_TX_TL, 0); in i2c_dw_configure_fifo_slave()
25 regmap_write(dev->map, DW_IC_RX_TL, 0); in i2c_dw_configure_fifo_slave()
27 /* Configure the I2C slave. */ in i2c_dw_configure_fifo_slave()
28 regmap_write(dev->map, DW_IC_CON, dev->slave_cfg); in i2c_dw_configure_fifo_slave()
29 regmap_write(dev->map, DW_IC_INTR_MASK, DW_IC_INTR_SLAVE_MASK); in i2c_dw_configure_fifo_slave()
33 * i2c_dw_init_slave() - Initialize the designware i2c slave hardware
[all …]
/kernel/linux/linux-5.10/include/net/
Dbonding.h4 * Portions are (c) Copyright 1995 Simon "Guru Aleph-Null" Janes
42 netdev_info(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
44 netdev_warn(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
46 netdev_dbg(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
48 netdev_err(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
50 #define BOND_MODE(bond) ((bond)->params.mode)
52 /* slave list primitives */
53 #define bond_slave_list(bond) (&(bond)->dev->adj_list.lower)
60 netdev_adjacent_get_private(bond_slave_list(bond)->next) : \
64 netdev_adjacent_get_private(bond_slave_list(bond)->prev) : \
[all …]
/kernel/linux/linux-6.6/include/net/
Dbonding.h1 /* 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)->name, ##__VA_ARGS__)
49 netdev_err(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
51 #define BOND_MODE(bond) ((bond)->params.mode)
53 /* slave list primitives */
54 #define bond_slave_list(bond) (&(bond)->dev->adj_list.lower)
61 netdev_adjacent_get_private(bond_slave_list(bond)->next) : \
[all …]
/kernel/linux/linux-6.6/drivers/net/
Deql.c2 * Equalizer Load-balancer for serial network interfaces.
4 * (c) Copyright 1995 Simon "Guru Aleph-Null" Janes
17 * Phone: 1-703-847-0040 ext 103
33 * Added one-line eql_remove_slave patch.
47 * slave_load = (ULONG_MAX - (ULONG_MAX / 2)) -
52 * slave_load = (ULONG_MAX - (ULONG_MAX / 2)) -
56 * slave_load = (ULONG_MAX - (ULONG_MAX / 2)) -
60 * slave_load = (ULONG_MAX - (ULONG_MAX / 2)) -
74 * Broken set-bit locking snapshot
80 * Log trimmed of non-pertinent 1.x branch messages
[all …]
/kernel/linux/linux-5.10/drivers/net/
Deql.c2 * Equalizer Load-balancer for serial network interfaces.
4 * (c) Copyright 1995 Simon "Guru Aleph-Null" Janes
17 * Phone: 1-703-847-0040 ext 103
33 * Added one-line eql_remove_slave patch.
47 * slave_load = (ULONG_MAX - (ULONG_MAX / 2)) -
52 * slave_load = (ULONG_MAX - (ULONG_MAX / 2)) -
56 * slave_load = (ULONG_MAX - (ULONG_MAX / 2)) -
60 * slave_load = (ULONG_MAX - (ULONG_MAX / 2)) -
74 * Broken set-bit locking snapshot
80 * Log trimmed of non-pertinent 1.x branch messages
[all …]
/kernel/linux/linux-5.10/drivers/net/wan/
Ddlci.c1 // SPDX-License-Identifier: GPL-2.0-or-later
21 * sent back to Linux for re-transmission
65 static int dlci_header(struct sk_buff *skb, struct net_device *dev, in dlci_header() argument
101 static void dlci_receive(struct sk_buff *skb, struct net_device *dev) in dlci_receive() argument
107 netdev_notice(dev, "invalid data no header\n"); in dlci_receive()
108 dev->stats.rx_errors++; in dlci_receive()
113 hdr = (struct frhdr *) skb->data; in dlci_receive()
116 skb->dev = dev; in dlci_receive()
118 if (hdr->control != FRAD_I_UI) in dlci_receive()
120 netdev_notice(dev, "Invalid header flag 0x%02X\n", in dlci_receive()
[all …]

12345678910>>...41