Home
last modified time | relevance | path

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

12345678910>>...42

/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 …]
Dslave.c1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2 // Copyright(c) 2015-17 Intel Corporation.
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()
37 slave->dev.parent = bus->dev; in sdw_slave_add()
[all …]
Dbus.h1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
2 /* Copyright(c) 2015-17 Intel Corporation. */
15 return -ENOTSUPP; in sdw_acpi_find_slaves()
21 u64 addr, struct sdw_slave_id *id);
31 void sdw_slave_debugfs_init(struct sdw_slave *slave);
32 void sdw_slave_debugfs_exit(struct sdw_slave *slave);
38 static inline void sdw_slave_debugfs_init(struct sdw_slave *slave) {} in sdw_slave_debugfs_init() argument
39 static inline void sdw_slave_debugfs_exit(struct sdw_slave *slave) {} in sdw_slave_debugfs_exit() argument
50 * struct sdw_msg - Message structure
51 * @addr: Register address accessed in the Slave
[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 …]
Dslave.c1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2 // Copyright(c) 2015-17 Intel Corporation.
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()
37 memcpy(&slave->id, id, sizeof(*id)); in sdw_slave_add()
[all …]
Dbus.h1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
2 /* Copyright(c) 2015-17 Intel Corporation. */
10 u64 sdw_dmi_override_adr(struct sdw_bus *bus, u64 addr);
17 return -ENOTSUPP; in sdw_acpi_find_slaves()
23 u64 addr, struct sdw_slave_id *id);
33 void sdw_slave_debugfs_init(struct sdw_slave *slave);
34 void sdw_slave_debugfs_exit(struct sdw_slave *slave);
40 static inline void sdw_slave_debugfs_init(struct sdw_slave *slave) {} in sdw_slave_debugfs_init() argument
41 static inline void sdw_slave_debugfs_exit(struct sdw_slave *slave) {} in sdw_slave_debugfs_exit() argument
52 * struct sdw_msg - Message structure
[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 */
98 uint8_t slave_id, uint32_t addr, void *val, size_t size);
100 uint8_t slave_id, uint32_t addr, const void *val, size_t size);
[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 */
93 uint32_t size; /* size of slave address space */
112 uint8_t slave_id, uint32_t addr, void *val, size_t size);
114 uint8_t slave_id, uint32_t addr, const void *val, size_t size);
[all …]
/kernel/linux/linux-6.6/include/linux/soundwire/
Dsdw.h1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
2 /* Copyright(c) 2015-17 Intel Corporation. */
75 * enum sdw_slave_status - Slave status
76 * @SDW_SLAVE_UNATTACHED: Slave is not attached with the bus.
77 * @SDW_SLAVE_ATTACHED: Slave is attached with bus.
78 * @SDW_SLAVE_ALERT: Some alert condition on the Slave
93 * @SDW_CLK_PRE_DEPREPARE: pre clock stop de-prepare
94 * @SDW_CLK_POST_DEPREPARE: post clock stop de-prepare
104 * enum sdw_command_response - Command response as defined by SDW spec
190 * enum sdw_p15_behave - Slave Port 15 behaviour when the Master attempts a
[all …]
/kernel/linux/linux-5.10/drivers/spmi/
Dspmi.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
16 #include <dt-bindings/spmi/spmi.h>
36 ida_simple_remove(&ctrl_ida, ctrl->nr); in spmi_ctrl_release()
49 if (drv->name) in spmi_device_match()
50 return strncmp(dev_name(dev), drv->name, in spmi_device_match()
57 * spmi_device_add() - add a device previously constructed via spmi_device_alloc()
62 struct spmi_controller *ctrl = sdev->ctrl; in spmi_device_add()
65 dev_set_name(&sdev->dev, "%d-%02x", ctrl->nr, sdev->usid); in spmi_device_add()
67 err = device_add(&sdev->dev); in spmi_device_add()
[all …]
/kernel/linux/linux-5.10/Documentation/networking/dsa/
Dconfiguration.rst1 .. SPDX-License-Identifier: GPL-2.0
10 .. _dsa-config-showcases:
13 -----------------------
35 All other corresponding linux interfaces are called slave interfaces.
37 The slave interfaces depend on the master interface. They can only brought up,
46 a slave interface
49 another slave interface
52 a third slave interface
55 A slave interface dedicated for upstream traffic
61 * lan1: 192.0.2.1/30 (192.0.2.0 - 192.0.2.3)
[all …]
/kernel/linux/linux-6.6/drivers/spmi/
Dspmi.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
16 #include <dt-bindings/spmi/spmi.h>
38 ida_free(&ctrl_ida, ctrl->nr); in spmi_ctrl_release()
51 if (drv->name) in spmi_device_match()
52 return strncmp(dev_name(dev), drv->name, in spmi_device_match()
59 * spmi_device_add() - add a device previously constructed via spmi_device_alloc()
64 struct spmi_controller *ctrl = sdev->ctrl; in spmi_device_add()
67 dev_set_name(&sdev->dev, "%d-%02x", ctrl->nr, sdev->usid); in spmi_device_add()
69 err = device_add(&sdev->dev); in spmi_device_add()
[all …]
/kernel/linux/linux-6.6/include/trace/events/
Dfsi.h1 /* SPDX-License-Identifier: GPL-2.0 */
13 uint32_t addr, size_t size),
14 TP_ARGS(master, link, id, addr, size),
19 __field(__u32, addr)
23 __entry->master_idx = master->idx;
24 __entry->link = link;
25 __entry->id = id;
26 __entry->addr = addr;
27 __entry->size = size;
30 __entry->master_idx,
[all …]
/kernel/linux/linux-6.6/drivers/staging/sm750fb/
Dddk750_hwi2c.c1 // SPDX-License-Identifier: GPL-2.0
63 timeout--; in hw_i2c_wait_tx_done()
66 return -1; in hw_i2c_wait_tx_done()
72 * This function writes data to the i2c slave device registers.
75 * addr - i2c Slave device address
76 * length - Total number of bytes to be written to the device
77 * buf - The buffer that contains the data to be written to the
83 static unsigned int hw_i2c_write_data(unsigned char addr, in hw_i2c_write_data() argument
91 poke32(I2C_SLAVE_ADDRESS, addr & ~0x01); in hw_i2c_write_data()
107 count = length - 1; in hw_i2c_write_data()
[all …]
/kernel/linux/linux-5.10/drivers/staging/sm750fb/
Dddk750_hwi2c.c1 // SPDX-License-Identifier: GPL-2.0
63 timeout--; in hw_i2c_wait_tx_done()
66 return -1; in hw_i2c_wait_tx_done()
72 * This function writes data to the i2c slave device registers.
75 * addr - i2c Slave device address
76 * length - Total number of bytes to be written to the device
77 * buf - The buffer that contains the data to be written to the
83 static unsigned int hw_i2c_write_data(unsigned char addr, in hw_i2c_write_data() argument
91 poke32(I2C_SLAVE_ADDRESS, addr & ~0x01); in hw_i2c_write_data()
107 count = length - 1; in hw_i2c_write_data()
[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/i2c/busses/
Di2c-mlxbf.c1 // SPDX-License-Identifier: GPL-2.0
57 * memory-mapped region whose addresses are specified in either the DT or
67 /* Reference clock for Bluefield - 156 MHz. */
124 * Slave cause status flags. Note that those bits might be considered
132 /* Slave busy bit reset. */
149 * SMBUS GW0 -> bits[26:25]
150 * SMBUS GW1 -> bits[28:27]
151 * SMBUS GW2 -> bits[30:29]
236 #define MLXBF_I2C_MASTER_SLV_ADDR_SHIFT 12 /* Slave address */
245 #define MLXBF_I2C_MASTER_DATA_W_LENGTH (MLXBF_I2C_MASTER_DATA_DESC_SIZE - 1)
[all …]
/kernel/linux/linux-5.10/include/linux/soundwire/
Dsdw.h1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
2 /* Copyright(c) 2015-17 Intel Corporation. */
71 * enum sdw_slave_status - Slave status
72 * @SDW_SLAVE_UNATTACHED: Slave is not attached with the bus.
73 * @SDW_SLAVE_ATTACHED: Slave is attached with bus.
74 * @SDW_SLAVE_ALERT: Some alert condition on the Slave
89 * @SDW_CLK_PRE_DEPREPARE: pre clock stop de-prepare
90 * @SDW_CLK_POST_DEPREPARE: post clock stop de-prepare
100 * enum sdw_command_response - Command response as defined by SDW spec
180 * enum sdw_p15_behave - Slave Port 15 behaviour when the Master attempts a
[all …]
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-mlxbf.c1 // SPDX-License-Identifier: GPL-2.0
56 * memory-mapped region whose addresses are specified in either the DT or
66 /* Reference clock for Bluefield - 156 MHz. */
123 * Slave cause status flags. Note that those bits might be considered
131 /* Slave busy bit reset. */
152 * SMBUS GW0 -> bits[26:25]
153 * SMBUS GW1 -> bits[28:27]
154 * SMBUS GW2 -> bits[30:29]
240 #define MLXBF_I2C_MASTER_SLV_ADDR_SHIFT 12 /* Slave address shift. */
252 #define MLXBF_I2C_MASTER_DATA_W_LENGTH (MLXBF_I2C_MASTER_DATA_DESC_SIZE - 1)
[all …]
/kernel/linux/linux-5.10/include/linux/
Dfsi.h1 /* SPDX-License-Identifier: GPL-2.0-only */
17 struct fsi_slave *slave; member
18 uint32_t addr; member
22 extern int fsi_device_read(struct fsi_device *dev, uint32_t addr,
24 extern int fsi_device_write(struct fsi_device *dev, uint32_t addr,
52 /* module_fsi_driver() - Helper macro for drivers that don't do
61 /* direct slave API */
62 extern int fsi_slave_claim_range(struct fsi_slave *slave,
63 uint32_t addr, uint32_t size);
64 extern void fsi_slave_release_range(struct fsi_slave *slave,
[all …]
/kernel/linux/linux-6.6/include/linux/
Dfsi.h1 /* SPDX-License-Identifier: GPL-2.0-only */
17 struct fsi_slave *slave; member
18 uint32_t addr; member
22 extern int fsi_device_read(struct fsi_device *dev, uint32_t addr,
24 extern int fsi_device_write(struct fsi_device *dev, uint32_t addr,
52 /* module_fsi_driver() - Helper macro for drivers that don't do
61 /* direct slave API */
62 extern int fsi_slave_claim_range(struct fsi_slave *slave,
63 uint32_t addr, uint32_t size);
64 extern void fsi_slave_release_range(struct fsi_slave *slave,
[all …]
/kernel/linux/linux-6.6/drivers/base/regmap/
Dregmap-sdw.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright(c) 2015-17 Intel Corporation.
15 struct sdw_slave *slave = dev_to_sdw_dev(dev); in regmap_sdw_write() local
17 u32 addr = le32_to_cpu(*(const __le32 *)val_buf); in regmap_sdw_write() local
20 return sdw_nwrite_no_pm(slave, addr, val_size - sizeof(addr), val + sizeof(addr)); in regmap_sdw_write()
28 struct sdw_slave *slave = dev_to_sdw_dev(dev); in regmap_sdw_gather_write() local
29 u32 addr = le32_to_cpu(*(const __le32 *)reg_buf); in regmap_sdw_gather_write() local
31 return sdw_nwrite_no_pm(slave, addr, val_size, val_buf); in regmap_sdw_gather_write()
39 struct sdw_slave *slave = dev_to_sdw_dev(dev); in regmap_sdw_read() local
40 u32 addr = le32_to_cpu(*(const __le32 *)reg_buf); in regmap_sdw_read() local
[all …]
/kernel/linux/linux-6.6/drivers/dma/
Dsa11x0-dma.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Derived in part from arch/arm/mach-sa1100/dma.c,
20 #include "virt-dma.h"
68 u32 addr; member
89 /* protected by c->vc.lock */
93 /* protected by d->lock */
107 /* Protected by c->vc.lock */
118 struct dma_device slave; member
133 return container_of(dmadev, struct sa11x0_dma_dev, slave); in to_sa11x0_dma()
138 struct virt_dma_desc *vd = vchan_next_desc(&c->vc); in sa11x0_dma_next_desc()
[all …]
/kernel/linux/linux-5.10/drivers/dma/
Dsa11x0-dma.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Derived in part from arch/arm/mach-sa1100/dma.c,
20 #include "virt-dma.h"
68 u32 addr; member
89 /* protected by c->vc.lock */
93 /* protected by d->lock */
107 /* Protected by c->vc.lock */
118 struct dma_device slave; member
133 return container_of(dmadev, struct sa11x0_dma_dev, slave); in to_sa11x0_dma()
138 struct virt_dma_desc *vd = vchan_next_desc(&c->vc); in sa11x0_dma_next_desc()
[all …]
/kernel/linux/linux-6.6/drivers/i2c/
Di2c-core-smbus.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * (e.g. smbalert) are handled in a separate i2c-smbus module.
9 * All SMBus-related things are written by Frodo Looijaard <frodol@dds.nl>
16 #include <linux/i2c-smbus.h>
20 #include "i2c-core.h"
42 * i2c_smbus_pec - Incremental CRC8 over the given input data array
59 /* Assume a 7-bit address, which is reasonable for SMBus */
63 u8 addr = i2c_8bit_addr_from_msg(msg); in i2c_smbus_msg_pec() local
64 pec = i2c_smbus_pec(pec, &addr, 1); in i2c_smbus_msg_pec()
67 return i2c_smbus_pec(pec, msg->buf, msg->len); in i2c_smbus_msg_pec()
[all …]

12345678910>>...42