Home
last modified time | relevance | path

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

12345678910>>...44

/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A 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 …]
H A 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 …]
H A Deq.c15 * - Redistributions of source code must retain the above
19 * - Redistributions in binary form must reproduce the above
38 #include <linux/dma-mapping.h>
86 static u64 get_async_ev_mask(struct mlx4_dev *dev) in get_async_ev_mask() argument
89 if (dev->caps.flags & MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV) in get_async_ev_mask()
91 if (dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_RECOVERABLE_ERROR_EVENT) in get_async_ev_mask()
99 __raw_writel((__force u32) cpu_to_be32((eq->cons_index & 0xffffff) | in eq_set_ci()
101 eq->doorbell); in eq_set_ci()
109 /* (entry & (eq->nent - 1)) gives us a cyclic array */ in get_eqe()
110 unsigned long offset = (entry & (eq->nent - 1)) * eqe_size; in get_eqe()
[all …]
H A Dmlx4.h18 * - Redistributions of source code must retain the above
22 * - Redistributions in binary form must reproduce the above
41 #include <linux/radix-tree.h>
60 #define DRV_VERSION "4.0-0"
88 MLX4_MAX_QP_PER_MGM = 4 * ((1 << MLX4_MAX_MGM_LOG_ENTRY_SIZE) / 16 - 2),
134 /*The flag indicates that the slave should delay the RESET cmd*/
205 int (*verify)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
207 int (*wrapper)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
223 &(mdev)->persist->pdev->dev, format, \
228 dev_err(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
[all …]
/openbmc/linux/drivers/soundwire/
H A 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 …]
H A 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 …]
H A 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 …]
H A Dsysfs_slave.c1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright(c) 2015-2020 Intel Corporation.
14 * Slave sysfs
18 * The sysfs for Slave reflects the MIPI description as given
24 * |---- status
25 * |---- device_number
26 * |---- modalias
27 * |---- dev-properties
28 * |---- mipi_revision
29 * |---- wake_capable
[all …]
H A Dstream.c1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2 // Copyright(c) 2015-18 Intel Corporation.
5 * stream.c - SoundWire Bus stream operations.
63 struct sdw_slave *slave, in _sdw_program_slave_port_params() argument
71 if (bus->params.next_bank) { in _sdw_program_slave_port_params()
72 addr1 = SDW_DPN_OFFSETCTRL2_B1(t_params->port_num); in _sdw_program_slave_port_params()
73 addr2 = SDW_DPN_BLOCKCTRL3_B1(t_params->port_num); in _sdw_program_slave_port_params()
74 addr3 = SDW_DPN_SAMPLECTRL2_B1(t_params->port_num); in _sdw_program_slave_port_params()
75 addr4 = SDW_DPN_HCTRL_B1(t_params->port_num); in _sdw_program_slave_port_params()
77 addr1 = SDW_DPN_OFFSETCTRL2_B0(t_params->port_num); in _sdw_program_slave_port_params()
[all …]
/openbmc/linux/drivers/fsi/
H A 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 …]
/openbmc/linux/drivers/i2c/busses/
H A 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 …]
H A 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 …]
/openbmc/linux/drivers/net/bonding/
H A 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 …]
H A 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 …]
H A Dbond_3ad.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright(c) 1999 - 2004 Intel Corporation. All rights reserved.
52 * --------------------------------------------------------------
54 * --------------------------------------------------------------
123 * __get_bond_by_port - get the port's bonding struct
130 if (port->slave == NULL) in __get_bond_by_port()
133 return bond_get_bond_by_slave(port->slave); in __get_bond_by_port()
137 * __get_first_agg - get the first aggregator in the bond
140 * Return the aggregator of the first slave in @bond, or %NULL if it can't be
147 struct slave *first_slave; in __get_first_agg()
[all …]
/openbmc/linux/drivers/net/
H A 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 …]
/openbmc/linux/include/net/
H A 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 …]
/openbmc/u-boot/drivers/spi/
H A Dspi-uclass.c1 // SPDX-License-Identifier: GPL-2.0+
11 #include <dm/device-internal.h>
12 #include <dm/uclass-internal.h>
26 if (ops->set_speed) in spi_set_speed_mode()
27 ret = ops->set_speed(bus, speed); in spi_set_speed_mode()
29 ret = -EINVAL; in spi_set_speed_mode()
35 if (ops->set_mode) in spi_set_speed_mode()
36 ret = ops->set_mode(bus, mode); in spi_set_speed_mode()
38 ret = -EINVAL; in spi_set_speed_mode()
47 int dm_spi_claim_bus(struct udevice *dev) in dm_spi_claim_bus() argument
[all …]
/openbmc/u-boot/include/
H A Dspi.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Common SPI Interface: Controller-specific definitions
22 #define SPI_LSB_FIRST BIT(3) /* per-word bits-on-wire */
25 #define SPI_SLAVE BIT(6) /* slave mode */
46 * struct dm_spi_platdata - platform data for all SPI slaves
48 * This describes a SPI slave, a child device of the SPI bus. To obtain this
49 * struct from a spi_slave, use dev_get_parent_platdata(dev) or
50 * dev_get_parent_platdata(slave->dev).
55 * @cs: Chip select number (0..n-1)
56 * @max_hz: Maximum bus speed that this slave can tolerate
[all …]
/openbmc/linux/sound/soc/codecs/
H A Drt5682-sdw.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // rt5682-sdw.c -- RT5682 ALSA SoC audio component driver
27 #include <sound/soc-dapm.h>
41 struct device *dev = context; in rt5682_sdw_read() local
42 struct rt5682_priv *rt5682 = dev_get_drvdata(dev); in rt5682_sdw_read()
45 regmap_write(rt5682->sdw_regmap, RT5682_SDW_CMD, 0); in rt5682_sdw_read()
46 regmap_write(rt5682->sdw_regmap, RT5682_SDW_ADDR_H, (reg >> 8) & 0xff); in rt5682_sdw_read()
47 regmap_write(rt5682->sdw_regmap, RT5682_SDW_ADDR_L, (reg & 0xff)); in rt5682_sdw_read()
48 regmap_read(rt5682->sdw_regmap, RT5682_SDW_DATA_H, &data_h); in rt5682_sdw_read()
49 regmap_read(rt5682->sdw_regmap, RT5682_SDW_DATA_L, &data_l); in rt5682_sdw_read()
[all …]
H A Drt712-sdca-sdw.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // rt712-sdca-sdw.c -- rt712 SDCA ALSA SoC audio driver
15 #include "rt712-sdca.h"
16 #include "rt712-sdca-sdw.h"
18 static bool rt712_sdca_readable_register(struct device *dev, unsigned int reg) in rt712_sdca_readable_register() argument
44 static bool rt712_sdca_volatile_register(struct device *dev, unsigned int reg) in rt712_sdca_volatile_register() argument
66 static bool rt712_sdca_mbq_readable_register(struct device *dev, unsigned int reg) in rt712_sdca_mbq_readable_register() argument
94 static bool rt712_sdca_mbq_volatile_register(struct device *dev, unsigned int reg) in rt712_sdca_mbq_volatile_register() argument
125 .name = "sdw-mbq",
138 static int rt712_sdca_update_status(struct sdw_slave *slave, in rt712_sdca_update_status() argument
[all …]
H A Drt711-sdca-sdw.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // rt711-sdw-sdca.c -- rt711 SDCA ALSA SoC audio driver
16 #include "rt711-sdca.h"
17 #include "rt711-sdca-sdw.h"
19 static bool rt711_sdca_readable_register(struct device *dev, unsigned int reg) in rt711_sdca_readable_register() argument
45 static bool rt711_sdca_volatile_register(struct device *dev, unsigned int reg) in rt711_sdca_volatile_register() argument
68 static bool rt711_sdca_mbq_readable_register(struct device *dev, unsigned int reg) in rt711_sdca_mbq_readable_register() argument
95 static bool rt711_sdca_mbq_volatile_register(struct device *dev, unsigned int reg) in rt711_sdca_mbq_volatile_register() argument
128 .name = "sdw-mbq",
141 static int rt711_sdca_update_status(struct sdw_slave *slave, in rt711_sdca_update_status() argument
[all …]
H A Drt722-sdca-sdw.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // rt722-sdca-sdw.c -- rt722 SDCA ALSA SoC audio driver
16 #include "rt722-sdca.h"
17 #include "rt722-sdc
19 rt722_sdca_readable_register(struct device * dev,unsigned int reg) rt722_sdca_readable_register() argument
41 rt722_sdca_volatile_register(struct device * dev,unsigned int reg) rt722_sdca_volatile_register() argument
58 rt722_sdca_mbq_readable_register(struct device * dev,unsigned int reg) rt722_sdca_mbq_readable_register() argument
117 rt722_sdca_mbq_volatile_register(struct device * dev,unsigned int reg) rt722_sdca_mbq_volatile_register() argument
163 rt722_sdca_update_status(struct sdw_slave * slave,enum sdw_slave_status status) rt722_sdca_update_status() argument
197 rt722_sdca_read_prop(struct sdw_slave * slave) rt722_sdca_read_prop() argument
264 rt722_sdca_interrupt_callback(struct sdw_slave * slave,struct sdw_slave_intr_status * status) rt722_sdca_interrupt_callback() argument
370 rt722_sdca_sdw_probe(struct sdw_slave * slave,const struct sdw_device_id * id) rt722_sdca_sdw_probe() argument
387 rt722_sdca_sdw_remove(struct sdw_slave * slave) rt722_sdca_sdw_remove() argument
411 rt722_sdca_dev_suspend(struct device * dev) rt722_sdca_dev_suspend() argument
427 rt722_sdca_dev_system_suspend(struct device * dev) rt722_sdca_dev_system_suspend() argument
430 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt722_sdca_dev_system_suspend() local
459 rt722_sdca_dev_resume(struct device * dev) rt722_sdca_dev_resume() argument
461 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt722_sdca_dev_resume() local
[all...]
/openbmc/linux/drivers/infiniband/hw/mlx4/
H A Dmad.c14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
63 #define GET_BLK_PTR_FROM_EQE(eqe) be32_to_cpu(eqe->event.port_mgmt_change.params.tbl_change_info.bl…
64 #define GET_MASK_FROM_EQE(eqe) be32_to_cpu(eqe->event.port_mgmt_change.params.tbl_change_info.tbl_e…
91 static void handle_client_rereg_event(struct mlx4_ib_dev *dev, u32 port_num);
92 static void handle_lid_change_event(struct mlx4_ib_dev *dev, u32 port_num);
93 static void __propagate_pkey_ev(struct mlx4_ib_dev *dev, int port_num,
104 return cpu_to_be64(atomic_inc_return(&ctx->tid)) | in mlx4_ib_get_new_demux_tid()
108 int mlx4_MAD_IFC(struct mlx4_ib_dev *dev, int mad_ifc_flags, in mlx4_MAD_IFC() argument
119 inmailbox = mlx4_alloc_cmd_mailbox(dev->dev); in mlx4_MAD_IFC()
[all …]
/openbmc/linux/drivers/net/ethernet/ti/
H A Dnetcp_ethss.c1 // SPDX-License-Identifier: GPL-2.0
7 * Sandeep Paulraj <s-paulraj@ti.com>
10 * Wingman Kwok <w-kwok2@ti.com>
37 #define GBE_MODULE_NAME "netcp-gbe"
56 #define GBENU_MODULE_NAME "netcp-gbenu"
61 ((GBE_IDENT((d)->ss_version) == GBE_SS_ID_NU) || \
62 (GBE_IDENT((d)->ss_version) == GBE_SS_ID_2U))
65 (GBE_IDENT((d)->ss_version) == GBE_SS_ID_NU)
68 (GBE_IDENT((d)->ss_version) == GBE_SS_VERSION_14)
70 (GBE_IDENT((d)->ss_version) == GBE_SS_ID_2U)
[all …]

12345678910>>...44