Home
last modified time | relevance | path

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

12345678910>>...18

/linux/drivers/soundwire/
H A Dbus.c1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2 // Copyright(c) 2015-17 Intel Corporation.
25 bus->id = rc; in sdw_get_id()
27 if (bus->controller_id == -1) in sdw_get_id()
28 bus->controller_id = rc; in sdw_get_id()
34 * sdw_bus_master_add() - add a bus Master instance
50 return -ENODEV; in sdw_bus_master_add()
59 ida_init(&bus->slave_ida); in sdw_bus_master_add()
64 bus->link_id); in sdw_bus_master_add()
68 if (!bus->ops) { in sdw_bus_master_add()
[all …]
H A 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 …]
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.
64 struct sdw_slave *slave, in _sdw_program_slave_port_params() argument
72 if (bus->params.next_bank) { in _sdw_program_slave_port_params()
73 addr1 = SDW_DPN_OFFSETCTRL2_B1(t_params->port_num); in _sdw_program_slave_port_params()
74 addr2 = SDW_DPN_BLOCKCTRL3_B1(t_params->port_num); in _sdw_program_slave_port_params()
75 addr3 = SDW_DPN_SAMPLECTRL2_B1(t_params->port_num); in _sdw_program_slave_port_params()
76 addr4 = SDW_DPN_HCTRL_B1(t_params->port_num); in _sdw_program_slave_port_params()
78 addr1 = SDW_DPN_OFFSETCTRL2_B0(t_params->port_num); in _sdw_program_slave_port_params()
[all …]
/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 */
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 …]
H A Dfsi-master-hub.c1 // SPDX-License-Identifier: GPL-2.0-only
14 #include "fsi-master.h"
29 * device (the hub->upstream device), and provides access to the downstream FSI
30 * bus as through an address range on the slave itself (->addr and ->size).
39 uint32_t addr, size; /* slave-relative addr of */ member
46 uint8_t id, uint32_t addr, void *val, size_t size) in hub_master_read() argument
51 return -EINVAL; in hub_master_read()
53 addr += hub->addr + (link * FSI_HUB_LINK_SIZE); in hub_master_read()
54 return fsi_slave_read(hub->upstream->slave, addr, val, size); in hub_master_read()
58 uint8_t id, uint32_t addr, const void *val, size_t size) in hub_master_write() argument
[all …]
/linux/include/trace/events/
H A 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 …]
/linux/drivers/i2c/busses/
H A Di2c-mlxbf.c1 // SPDX-License-Identifier: GPL-2.0
59 * memory-mapped region whose addresses are specified in either the DT or
69 /* Reference clock for Bluefield - 156 MHz. */
126 * Slave cause status flags. Note that those bits might be considered
134 /* Slave busy bit reset. */
151 * SMBUS GW0 -> bits[26:25]
152 * SMBUS GW1 -> bits[28:27]
153 * SMBUS GW2 -> bits[30:29]
239 #define MLXBF_I2C_MASTER_SLV_ADDR_SHIFT 12 /* Slave address */
248 #define MLXBF_I2C_MASTER_DATA_W_LENGTH (MLXBF_I2C_MASTER_DATA_DESC_SIZE - 1)
[all …]
H A Di2c-stm32f7.c1 // SPDX-License-Identifier: GPL-2.0
14 * This driver is based on i2c-stm32f4.c
21 #include <linux/i2c-smbus.h>
39 #include "i2c-stm32.h"
187 * struct stm32f7_i2c_regs - i2c f7 registers backup
203 * struct stm32f7_i2c_spec - private i2c specification timing
225 * struct stm32f7_i2c_setup - private I2C timing setup parameters
245 * struct stm32f7_i2c_timings - private I2C output parameters
263 * struct stm32f7_i2c_msg - client specific data
264 * @addr: 8-bit or 10-bit slave addr, including r/w bit
[all …]
/linux/drivers/i2c/
H A 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>
21 #include "i2c-core.h"
43 * i2c_smbus_pec - Incremental CRC8 over the given input data array
60 /* Assume a 7-bit address, which is reasonable for SMBus */
64 u8 addr = i2c_8bit_addr_from_msg(msg); in i2c_smbus_msg_pec() local
65 pec = i2c_smbus_pec(pec, &addr, 1); in i2c_smbus_msg_pec()
68 return i2c_smbus_pec(pec, msg->buf, msg->len); in i2c_smbus_msg_pec()
[all …]
/linux/include/linux/
H A 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 …]
H A Dspmi.h1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
11 /* Maximum slave identifier */
34 * struct spmi_device - Basic representation of an SPMI device
37 * @usid: This devices' Unique Slave IDentifier.
52 return dev_get_drvdata(&sdev->dev); in spmi_device_get_drvdata()
57 dev_set_drvdata(&sdev->dev, data); in spmi_device_set_drvdata()
65 put_device(&sdev->dev); in spmi_device_put()
73 * struct spmi_controller - interface to the SPMI master controller
75 * @nr: board-specific number identifier for this controller/bus
[all …]
/linux/drivers/base/regmap/
H A 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 …]
/linux/sound/soc/codecs/
H A Dsdw-mockup.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // sdw-mockup.c -- a mockup SoundWire codec for tests where only the host
23 struct sdw_slave *slave; member
59 struct snd_soc_component *component = dai->component; in sdw_mockup_pcm_hw_params()
67 return -EINVAL; in sdw_mockup_pcm_hw_params()
69 if (!sdw_mockup->slave) in sdw_mockup_pcm_hw_params()
70 return -EINVAL; in sdw_mockup_pcm_hw_params()
75 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in sdw_mockup_pcm_hw_params()
80 ret = sdw_stream_add_slave(sdw_mockup->slave, &stream_config, in sdw_mockup_pcm_hw_params()
83 dev_err(dai->dev, "Unable to configure port\n"); in sdw_mockup_pcm_hw_params()
[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
208 rt722_sdca_update_status(struct sdw_slave * slave,enum sdw_slave_status status) rt722_sdca_update_status() argument
242 rt722_sdca_read_prop(struct sdw_slave * slave) rt722_sdca_read_prop() argument
248 unsigned long addr; rt722_sdca_read_prop() local
314 rt722_sdca_interrupt_callback(struct sdw_slave * slave,struct sdw_slave_intr_status * status) rt722_sdca_interrupt_callback() argument
416 rt722_sdca_sdw_probe(struct sdw_slave * slave,const struct sdw_device_id * id) rt722_sdca_sdw_probe() argument
429 rt722_sdca_sdw_remove(struct sdw_slave * slave) rt722_sdca_sdw_remove() argument
471 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt722_sdca_dev_system_suspend() local
502 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt722_sdca_dev_resume() local
[all...]
H A Drt712-sdca-dmic.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // rt712-sdca-dmic.c -- rt712 SDCA DMIC ALSA SoC audio driver
18 #include "rt712-sdca.h"
19 #include "rt712-sdc
137 unsigned int addr = (nid << 20) | reg; rt712_sdca_dmic_index_write() local
153 unsigned int addr = (nid << 20) | reg; rt712_sdca_dmic_index_read() local
178 rt712_sdca_dmic_io_init(struct device * dev,struct sdw_slave * slave) rt712_sdca_dmic_io_init() argument
756 rt712_sdca_dmic_init(struct device * dev,struct regmap * regmap,struct regmap * mbq_regmap,struct sdw_slave * slave) rt712_sdca_dmic_init() argument
811 rt712_sdca_dmic_update_status(struct sdw_slave * slave,enum sdw_slave_status status) rt712_sdca_dmic_update_status() argument
830 rt712_sdca_dmic_read_prop(struct sdw_slave * slave) rt712_sdca_dmic_read_prop() argument
835 unsigned long addr; rt712_sdca_dmic_read_prop() local
909 struct sdw_slave *slave = dev_to_sdw_dev(dev); rt712_sdca_dmic_dev_resume() local
949 rt712_sdca_dmic_sdw_probe(struct sdw_slave * slave,const struct sdw_device_id * id) rt712_sdca_dmic_sdw_probe() argument
966 rt712_sdca_dmic_sdw_remove(struct sdw_slave * slave) rt712_sdca_dmic_sdw_remove() argument
[all...]
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>
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()
63 regmap_write(rt5682->sdw_regmap, RT5682_SDW_CMD, 1); in rt5682_sdw_write()
64 regmap_write(rt5682->sdw_regmap, RT5682_SDW_ADDR_H, (reg >> 8) & 0xff); in rt5682_sdw_write()
[all …]
/linux/drivers/staging/sm750fb/
H A Dddk750_swi2c.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * swi2c.h --- SM750/SM718 DDK
22 * i2cClkGPIO - The GPIO pin to be used as i2c SCL
23 * i2cDataGPIO - The GPIO pin to be used as i2c SDA
26 * -1 - Fail to initialize the i2c
27 * 0 - Success
32 * This function reads the slave device's register
35 * addr - i2c Slave device address which register
37 * reg - Slave device's register to be read
42 unsigned char sm750_sw_i2c_read_reg(unsigned char addr, unsigned char reg);
[all …]
H A Dddk750_swi2c.c1 // SPDX-License-Identifier: GPL-2.0
5 * swi2c.c --- SM750/SM718 DDK
22 * +-------------+-------------+-------------+-------------+
37 * ---------------+---+---+---+---+
40 * ---------------+---+---+---+---+
43 * ---------------+---+---+---+---+
46 * ---------------+---+---+---+---+
49 * ---------------+---+---+---+---+
86 * always be non-zero,which makes the while loop in sw_i2c_wait()
88 * use non-ultimate for loop below is safe in sw_i2c_wait()
[all …]
/linux/drivers/mfd/
H A Dpalmas.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2011-2012 Texas Instruments Inc.
328 struct palmas_pmic_driver_data *pmic_ddata = palmas->pmic_ddata; in palmas_ext_control_req_config()
350 bit_pos = pmic_ddata->sleep_req_info[id].bit_pos; in palmas_ext_control_req_config()
351 reg_add += pmic_ddata->sleep_req_info[id].reg_offset; in palmas_ext_control_req_config()
359 dev_err(palmas->dev, "Resource reg 0x%02x update failed %d\n", in palmas_ext_control_req_config()
368 dev_err(palmas->dev, "POWER_CTRL register update failed %d\n", in palmas_ext_control_req_config()
379 struct irq_data *irq_data = irq_get_irq_data(i2c->irq); in palmas_set_pdata_irq_flag()
381 dev_err(&i2c->dev, "Invalid IRQ: %d\n", i2c->irq); in palmas_set_pdata_irq_flag()
382 return -EINVAL; in palmas_set_pdata_irq_flag()
[all …]
/linux/drivers/media/usb/dvb-usb/
H A Dm920x.h1 /* SPDX-License-Identifier: GPL-2.0 */
6 #include "dvb-usb.h"
27 0x80 write addr
31 0x80 write addr
33 0x80 read addr
38 0x80 read addr
47 always send the 7-bit slave I2C address as the 7 MSB, followed by
51 0x20: Read a byte from the slave. As opposed to writing a byte to the
52 slave. The slave will normally not produce any data unless you
53 set the R/W bit to 1 when sending the slave's address after the
[all …]
/linux/drivers/soc/qcom/
H A Dcmd-db.c1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2016-2018, 2020, The Linux Foundation. All rights reserved.
18 #include <soc/qcom/cmd-db.h>
24 #define SLAVE_ID(addr) FIELD_GET(GENMASK(19, 16), addr) argument
25 #define VRM_ADDR(addr) FIELD_GET(GENMASK(19, 4), addr) argument
32 * @addr: the address of the resource
39 __le32 addr; member
87 * array for header for each slave (depicted by the rsc_header). Each h/w
88 * based accelerator is a 'slave' (shared resource) and has slave id indicating
91 * rsc_hdr.header_offset. In addition each slave could have auxiliary data
[all …]
/linux/tools/testing/selftests/drivers/net/bonding/
H A Dbond_options.sh2 # SPDX-License-Identifier: GPL-2.0
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
46 ip -n ${s_ns} link del bond1
[all …]
/linux/arch/powerpc/platforms/powermac/
H A Dpic.c1 // SPDX-License-Identifier: GPL-2.0-or-later
30 #include <asm/pci-bridge.h>
61 static int pmac_irq_cascade = -1;
88 out_le32(&pmac_irq_hw[i]->enable, ppc_cached_irq_mask[i]); in pmac_mask_and_ack_irq()
89 out_le32(&pmac_irq_hw[i]->ack, bit); in pmac_mask_and_ack_irq()
94 } while((in_le32(&pmac_irq_hw[i]->enable) & bit) in pmac_mask_and_ack_irq()
109 out_le32(&pmac_irq_hw[i]->ack, bit); in pmac_ack_irq()
110 (void)in_le32(&pmac_irq_hw[i]->ack); in pmac_ack_irq()
123 out_le32(&pmac_irq_hw[i]->enable, ppc_cached_irq_mask[i]); in __pmac_set_irq_mask()
129 } while((in_le32(&pmac_irq_hw[i]->enable) & bit) in __pmac_set_irq_mask()
[all …]
/linux/include/linux/i3c/
H A Dccc.h1 /* 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/Documentation/devicetree/bindings/soc/tegra/
H A Dnvidia,nvec.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Thierry Reding <thierry.reding@gmail.com>
11 - Jon Hunter <jonathanh@nvidia.com>
26 - description: divider clock
27 - description: fast clock
29 clock-names:
32 - const: div-clk
33 - const: fast-clk
[all …]

12345678910>>...18