Home
last modified time | relevance | path

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

12345678910>>...20

/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/drivers/soundwire/
H A Dslave.c1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2 // Copyright(c) 2015-17 Intel Corporation.
14 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_slave_release() local
16 mutex_destroy(&slave->sdw_dev_lock); in sdw_slave_release()
17 kfree(slave); in sdw_slave_release()
29 struct sdw_slave *slave; in sdw_slave_add() local
33 slave = kzalloc(sizeof(*slave), GFP_KERNEL); in sdw_slave_add()
34 if (!slave) in sdw_slave_add()
35 return -ENOMEM; in sdw_slave_add()
38 memcpy(&slave->id, id, sizeof(*id)); in sdw_slave_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);
40 sdw_slave_debugfs_init(struct sdw_slave * slave) sdw_slave_debugfs_init() argument
41 sdw_slave_debugfs_exit(struct sdw_slave * slave) sdw_slave_debugfs_exit() argument
64 u16 addr; global() member
116 struct sdw_slave *slave; global() member
[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_nu in _sdw_program_slave_port_params()
309 u32 addr; sdw_enable_disable_slave_ports() local
406 struct sdw_slave *slave = s_rt->slave; sdw_do_port_prep() local
437 u32 addr; sdw_prep_deprep_slave_ports() local
587 struct sdw_slave *slave; sdw_notify_config() local
681 u16 addr; sdw_bank_switch() local
925 sdw_slave_port_free(struct sdw_slave * slave,struct sdw_stream_runtime * stream) sdw_slave_port_free() argument
945 sdw_slave_port_alloc(struct sdw_slave * slave,struct sdw_slave_runtime * s_rt,unsigned int num_config) sdw_slave_port_alloc() argument
972 sdw_slave_port_config(struct sdw_slave * slave,struct sdw_slave_runtime * s_rt,const struct sdw_port_config * port_config) sdw_slave_port_config() argument
1056 sdw_slave_rt_alloc(struct sdw_slave * slave,struct sdw_master_runtime * m_rt) sdw_slave_rt_alloc() argument
1090 sdw_slave_rt_find(struct sdw_slave * slave,struct sdw_stream_runtime * stream) sdw_slave_rt_find() argument
1115 sdw_slave_rt_free(struct sdw_slave * slave,struct sdw_stream_runtime * stream) sdw_slave_rt_free() argument
1289 sdw_get_slave_dpn_prop(struct sdw_slave * slave,enum sdw_data_direction direction,unsigned int port_num) sdw_get_slave_dpn_prop() argument
1988 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
2092 sdw_stream_remove_slave(struct sdw_slave * slave,struct sdw_stream_runtime * stream) sdw_stream_remove_slave() argument
[all...]
/linux/drivers/spmi/
H A 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() - ad
107 spmi_read_cmd(struct spmi_controller * ctrl,u8 opcode,u8 sid,u16 addr,u8 * buf,size_t len) spmi_read_cmd() argument
121 spmi_write_cmd(struct spmi_controller * ctrl,u8 opcode,u8 sid,u16 addr,const u8 * buf,size_t len) spmi_write_cmd() argument
142 spmi_register_read(struct spmi_device * sdev,u8 addr,u8 * buf) spmi_register_read() argument
163 spmi_ext_register_read(struct spmi_device * sdev,u8 addr,u8 * buf,size_t len) spmi_ext_register_read() argument
185 spmi_ext_register_readl(struct spmi_device * sdev,u16 addr,u8 * buf,size_t len) spmi_ext_register_readl() argument
205 spmi_register_write(struct spmi_device * sdev,u8 addr,u8 data) spmi_register_write() argument
240 spmi_ext_register_write(struct spmi_device * sdev,u8 addr,const u8 * buf,size_t len) spmi_ext_register_write() argument
262 spmi_ext_register_writel(struct spmi_device * sdev,u16 addr,const u8 * buf,size_t len) spmi_ext_register_writel() 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/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 …]
/linux/drivers/staging/sm750fb/
H A 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 …]
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 …]
/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>
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 …]
/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 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"
128 .name = "sdw-mbq",
141 static int rt711_sdca_update_status(struct sdw_slave *slave, in rt711_sdca_update_status() argument
144 struct rt711_sdca_priv *rt711 = dev_get_drvdata(&slave->dev); in rt711_sdca_update_status()
147 rt711->hw_init = false; in rt711_sdca_update_status()
150 if (rt711->hs_jack) { in rt711_sdca_update_status()
157 sdw_write_no_pm(rt711->slave, SDW_SCP_SDCA_INTMASK1, in rt711_sdca_update_status()
[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"
143 .name = "sdw-mbq",
156 static int rt712_sdca_update_status(struct sdw_slave *slave, in rt712_sdca_update_status() argument
159 struct rt712_sdca_priv *rt712 = dev_get_drvdata(&slave->dev); in rt712_sdca_update_status()
162 rt712->hw_init = false; in rt712_sdca_update_status()
165 if (rt712->hs_jack) { in rt712_sdca_update_status()
172 sdw_write_no_pm(rt712->slave, SDW_SCP_SDCA_INTMASK1, in rt712_sdca_update_status()
[all …]
H A Drt715-sdca-sdw.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // rt715-sdca-sdw.c -- rt715 ALSA SoC audio driver
19 #include "rt715-sdca.h"
20 #include "rt715-sdca-sdw.h"
106 .name = "sdw-mbq",
119 static int rt715_sdca_update_status(struct sdw_slave *slave, in rt715_sdca_update_status() argument
122 struct rt715_sdca_priv *rt715 = dev_get_drvdata(&slave->dev); in rt715_sdca_update_status()
125 * Perform initialization only if slave status is present and in rt715_sdca_update_status()
128 if (rt715->hw_init || status != SDW_SLAVE_ATTACHED) in rt715_sdca_update_status()
131 /* perform I/O transfers required for Slave initialization */ in rt715_sdca_update_status()
[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-sdca-dmic.h"
119 .name = "sdw-mbq",
136 struct regmap *regmap = rt712->mbq_regmap; in rt712_sdca_dmic_index_write()
137 unsigned int addr = (nid << 20) | reg; in rt712_sdca_dmic_index_write() local
139 ret = regmap_write(regmap, addr, value); in rt712_sdca_dmic_index_write()
141 dev_err(&rt712->slave->dev, in rt712_sdca_dmic_index_write()
143 __func__, addr, value, ret); in rt712_sdca_dmic_index_write()
[all …]
/linux/drivers/net/bonding/
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 …]
/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/drivers/char/ipmi/
H A Dipmi_ipmb.c1 // SPDX-License-Identifier: GPL-2.0
22 #define DEVICE_NAME "ipmi-ipmb"
36 /* Add room for the two slave addresses, two checksums, and rqSeq. */
42 struct i2c_client *slave; member
74 u8 *msg = iidev->rcvmsg; in valid_ipmb()
77 if (iidev->overrun) in valid_ipmb()
81 if (iidev->rcvlen < 7) in valid_ipmb()
88 if (iidev->rcvlen < 8) in valid_ipmb()
94 if (ipmb_checksum(msg + 3, iidev->rcvlen - 3) != 0) in valid_ipmb()
103 u8 *msg = iidev->rcvmsg; in ipmi_ipmb_check_msg_done()
[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 …]

12345678910>>...20