/linux-6.12.1/drivers/soundwire/ |
D | bus.c | 1 // 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 …]
|
D | slave.c | 1 // 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 …]
|
D | bus.h | 1 /* 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 …]
|
/linux-6.12.1/drivers/fsi/ |
D | fsi-core.c | 1 // 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 …]
|
D | fsi-master-hub.c | 1 // 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-6.12.1/include/linux/soundwire/ |
D | sdw.h | 1 /* 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 …]
|
/linux-6.12.1/drivers/spmi/ |
D | spmi.c | 1 // 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 …]
|
/linux-6.12.1/include/trace/events/ |
D | fsi.h | 1 /* 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-6.12.1/drivers/staging/sm750fb/ |
D | ddk750_hwi2c.c | 1 // 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 …]
|
D | ddk750_swi2c.h | 1 /* 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-6.12.1/include/net/ |
D | bonding.h | 1 /* 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-6.12.1/drivers/i2c/busses/ |
D | i2c-mlxbf.c | 1 // 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 …]
|
D | i2c-stm32f7.c | 1 // SPDX-License-Identifier: GPL-2.0 14 * This driver is based on i2c-stm32f4.c 21 #include <linux/i2c-smbus.h> 38 #include "i2c-stm32.h" 186 * struct stm32f7_i2c_regs - i2c f7 registers backup 202 * struct stm32f7_i2c_spec - private i2c specification timing 224 * struct stm32f7_i2c_setup - private I2C timing setup parameters 244 * struct stm32f7_i2c_timings - private I2C output parameters 262 * struct stm32f7_i2c_msg - client specific data 263 * @addr: 8-bit or 10-bit slave addr, including r/w bit [all …]
|
/linux-6.12.1/include/linux/ |
D | fsi.h | 1 /* 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 …]
|
D | spmi.h | 1 /* 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-6.12.1/drivers/dma/ |
D | sa11x0-dma.c | 1 // 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 …]
|
/linux-6.12.1/drivers/base/regmap/ |
D | regmap-sdw.c | 1 // 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-6.12.1/drivers/i2c/ |
D | i2c-core-smbus.c | 1 // 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-6.12.1/drivers/net/ethernet/ti/ |
D | cpsw.c | 1 // SPDX-License-Identifier: GPL-2.0 68 struct cpsw_slave *slave; \ 69 struct cpsw_common *cpsw = (priv)->cpsw; \ 71 if (cpsw->data.dual_emac) \ 72 (func)((cpsw)->slaves + priv->emac_port, ##arg);\ 74 for (n = cpsw->data.slaves, \ 75 slave = cpsw->slaves; \ 76 n; n--) \ 77 (func)(slave++, ##arg); \ 83 return cpsw->data.dual_emac ? priv->emac_port : cpsw->data.active_slave; in cpsw_slave_index_priv() [all …]
|
/linux-6.12.1/sound/soc/codecs/ |
D | sdw-mockup.c | 1 // 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 …]
|
/linux-6.12.1/drivers/media/usb/dvb-usb/ |
D | m920x.h | 1 /* 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-6.12.1/drivers/net/bonding/ |
D | bond_alb.c | 1 // 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-6.12.1/drivers/media/pci/intel/ipu6/ |
D | ipu6-isys-dwc-phy.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2013--2024 Intel Corporation 13 #include "ipu6-bus.h" 14 #include "ipu6-isys.h" 15 #include "ipu6-platform-isys-csi2-reg.h" 31 * - req: 0 for read, 1 for write 32 * - 12 bits address 33 * - 8bits data (will ignore for read) 34 * --24----16------4-----0 35 * --|-data-|-addr-|-req-| [all …]
|
/linux-6.12.1/drivers/mfd/ |
D | palmas.c | 1 // 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-6.12.1/drivers/soc/qcom/ |
D | cmd-db.c | 1 /* 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 …]
|