Home
last modified time | relevance | path

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

12345678910>>...19

/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/linux/soundwire/
H A Dsdw.h1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
2 /* Copyright(c) 2015-17 Intel Corporation. */
88 * enum sdw_slave_status - Slave status
89 * @SDW_SLAVE_UNATTACHED: Slave is not attached with the bus.
90 * @SDW_SLAVE_ATTACHED: Slave i
514 SDW_DISCO_LINK_ID(addr) global() argument
515 SDW_VERSION(addr) global() argument
516 SDW_UNIQUE_ID(addr) global() argument
517 SDW_MFG_ID(addr) global() argument
518 SDW_PART_ID(addr) global() argument
519 SDW_CLASS_ID(addr) global() argument
1105 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
1115 sdw_stream_remove_slave(struct sdw_slave * slave,struct sdw_stream_runtime * stream) sdw_stream_remove_slave() argument
1123 sdw_read(struct sdw_slave * slave,u32 addr) sdw_read() argument
1129 sdw_write(struct sdw_slave * slave,u32 addr,u8 value) sdw_write() argument
1135 sdw_write_no_pm(struct sdw_slave * slave,u32 addr,u8 value) sdw_write_no_pm() argument
1141 sdw_read_no_pm(struct sdw_slave * slave,u32 addr) sdw_read_no_pm() argument
1147 sdw_nread(struct sdw_slave * slave,u32 addr,size_t count,u8 * val) sdw_nread() argument
1153 sdw_nread_no_pm(struct sdw_slave * slave,u32 addr,size_t count,u8 * val) sdw_nread_no_pm() argument
1159 sdw_nwrite(struct sdw_slave * slave,u32 addr,size_t count,const u8 * val) sdw_nwrite() argument
1165 sdw_nwrite_no_pm(struct sdw_slave * slave,u32 addr,size_t count,const u8 * val) sdw_nwrite_no_pm() argument
1171 sdw_update(struct sdw_slave * slave,u32 addr,u8 mask,u8 val) sdw_update() argument
1177 sdw_update_no_pm(struct sdw_slave * slave,u32 addr,u8 mask,u8 val) sdw_update_no_pm() argument
[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)->nam
160 struct slave { global() struct
171 backupslave global() argument
173 inactiveslave global() argument
174 rx_disabledslave global() argument
184 ad_infoslave global() argument
185 tlb_infoslave global() argument
191 slave_statsslave global() argument
194 kobjslave to_slave() argument
296 bond_get_bond_by_slave(struct slave * slave) bond_get_bond_by_slave() argument
357 struct slave *slave = rcu_dereference_rtnl(bond->curr_active_slave); bond_option_active_slave_get_rcu() local
362 bond_slave_is_up(struct slave * slave) bond_slave_is_up() argument
367 bond_set_active_slave(struct slave * slave) bond_set_active_slave() argument
376 bond_set_backup_slave(struct slave * slave) bond_set_backup_slave() argument
385 bond_set_slave_state(struct slave * slave,int slave_state,bool notify) bond_set_slave_state() argument
430 bond_slave_state(struct slave * slave) bond_slave_state() argument
435 bond_is_active_slave(struct slave * slave) bond_is_active_slave() argument
440 bond_slave_can_tx(struct slave * slave) bond_slave_can_tx() argument
448 struct slave *slave; bond_is_active_slave_dev() local
495 slave_do_arp_validate(struct bonding * bond,struct slave * slave) slave_do_arp_validate() argument
505 bond_is_ip_target_ok(__be32 addr) bond_is_ip_target_ok() argument
511 bond_is_ip6_target_ok(struct in6_addr * addr) bond_is_ip6_target_ok() argument
523 slave_oldest_target_arp_rx(struct bonding * bond,struct slave * slave) slave_oldest_target_arp_rx() argument
536 slave_last_rx(struct bonding * bond,struct slave * slave) slave_last_rx() argument
544 slave_update_last_tx(struct slave * slave) slave_update_last_tx() argument
549 slave_last_tx(struct slave * slave) slave_last_tx() argument
555 bond_netpoll_send_skb(const struct slave * slave,struct sk_buff * skb) bond_netpoll_send_skb() argument
561 bond_netpoll_send_skb(const struct slave * slave,struct sk_buff * skb) bond_netpoll_send_skb() argument
569 bond_set_slave_inactive_flags(struct slave * slave,bool notify) bond_set_slave_inactive_flags() argument
580 bond_set_slave_tx_disabled_flags(struct slave * slave,bool notify) bond_set_slave_tx_disabled_flags() argument
586 bond_set_slave_active_flags(struct slave * slave,bool notify) bond_set_slave_active_flags() argument
595 bond_set_slave_rx_enabled_flags(struct slave * slave,bool notify) bond_set_slave_rx_enabled_flags() argument
601 bond_is_slave_inactive(struct slave * slave) bond_is_slave_inactive() argument
606 bond_is_slave_rx_disabled(struct slave * slave) bond_is_slave_rx_disabled() argument
611 bond_propose_link_state(struct slave * slave,int state) bond_propose_link_state() argument
616 bond_commit_link_state(struct slave * slave,bool notify) bond_commit_link_state() argument
634 bond_set_slave_link_state(struct slave * slave,int state,bool notify) bond_set_slave_link_state() argument
658 __be32 addr = 0; bond_confirm_addr() local
[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 …]
H A Di2c-bcm-iproc.c1 // SPDX-License-Identifier: GPL-2.0-only
138 #define M_RX_FIFO_MAX_THLD_VALUE (M_TX_RX_FIFO_SIZE - 1)
155 * running for less time, max slave read per tasklet is set to 10 bytes.
197 struct i2c_client *slave; member
213 /* tasklet to process slave rx data */
233 if (iproc_i2c->idm_base) { in iproc_i2c_rd_reg()
234 spin_lock_irqsave(&iproc_i2c->idm_lock, flags); in iproc_i2c_rd_reg()
235 writel(iproc_i2c->ape_addr_mask, in iproc_i2c_rd_reg()
236 iproc_i2c->idm_base + IDM_CTRL_DIRECT_OFFSET); in iproc_i2c_rd_reg()
237 val = readl(iproc_i2c->base + offset); in iproc_i2c_rd_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>
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-sdca-sdw.h"
208 static int rt722_sdca_update_status(struct sdw_slave *slave, in rt722_sdca_update_status() argument
211 struct rt722_sdca_priv *rt722 = dev_get_drvdata(&slave->dev); in rt722_sdca_update_status()
214 rt722->hw_init = false; in rt722_sdca_update_status()
217 if (rt722->hs_jack) { in rt722_sdca_update_status()
224 sdw_write_no_pm(rt722->slave, SDW_SCP_SDCA_INTMASK1, in rt722_sdca_update_status()
226 sdw_write_no_pm(rt722->slave, SDW_SCP_SDCA_INTMASK2, in rt722_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 …]
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/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 …]
/linux/drivers/soundwire/
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 …]

12345678910>>...19