Home
last modified time | relevance | path

Searched full:master (Results 1 – 25 of 2543) sorted by relevance

12345678910>>...102

/Linux-v6.1/drivers/fsi/
Dfsi-master-ast-cf.c4 * A FSI master controller, using a simple GPIO bit-banging interface
25 #include "fsi-master.h"
88 struct fsi_master master; member
120 #define to_fsi_master_acf(m) container_of(m, struct fsi_master_acf, master)
159 static bool check_same_address(struct fsi_master_acf *master, int id, in check_same_address() argument
163 return master->last_addr == (((id & 0x3) << 21) | (addr & ~0x3)); in check_same_address()
166 static bool check_relative_address(struct fsi_master_acf *master, int id, in check_relative_address() argument
169 uint32_t last_addr = master->last_addr; in check_relative_address()
196 static void last_address_update(struct fsi_master_acf *master, in last_address_update() argument
200 master->last_addr = LAST_ADDR_INVALID; in last_address_update()
[all …]
Dfsi-master-gpio.c3 * A FSI master controller, using a simple GPIO bit-banging interface
18 #include "fsi-master.h"
24 struct fsi_master master; member
42 #define to_fsi_master_gpio(m) container_of(m, struct fsi_master_gpio, master)
49 static void clock_toggle(struct fsi_master_gpio *master, int count) in clock_toggle() argument
54 if (!master->no_delays) in clock_toggle()
56 gpiod_set_value(master->gpio_clk, 0); in clock_toggle()
57 if (!master->no_delays) in clock_toggle()
59 gpiod_set_value(master->gpio_clk, 1); in clock_toggle()
63 static int sda_clock_in(struct fsi_master_gpio *master) in sda_clock_in() argument
[all …]
Dfsi-core.c25 #include "fsi-master.h"
83 struct fsi_master *master; member
111 static int fsi_master_read(struct fsi_master *master, int link,
113 static int fsi_master_write(struct fsi_master *master, int link,
115 static int fsi_master_break(struct fsi_master *master, int link);
211 struct fsi_master *master = slave->master; in fsi_slave_report_and_clear_errors() local
219 rc = fsi_master_read(master, link, id, FSI_SLAVE_BASE + FSI_SISC, in fsi_slave_report_and_clear_errors()
224 rc = fsi_master_read(master, link, id, FSI_SLAVE_BASE + FSI_SSTAT, in fsi_slave_report_and_clear_errors()
233 return fsi_master_write(master, link, id, FSI_SLAVE_BASE + FSI_SISC, in fsi_slave_report_and_clear_errors()
280 return fsi_master_write(slave->master, slave->link, slave->id, in fsi_slave_set_smode()
[all …]
Dfsi-master-hub.c3 * FSI hub master driver
14 #include "fsi-master.h"
21 * FSI hub master support
23 * A hub master increases the number of potential target devices that the
24 * primary FSI master can access. For each link a primary master supports,
25 * each of those links can in turn be chained to a hub master with multiple
37 struct fsi_master master; member
40 /* master address space */
43 #define to_fsi_master_hub(m) container_of(m, struct fsi_master_hub, master)
45 static int hub_master_read(struct fsi_master *master, int link, in hub_master_read() argument
[all …]
/Linux-v6.1/drivers/clk/at91/
Dclk-master.c46 static inline bool clk_master_ready(struct clk_master *master) in clk_master_ready() argument
48 unsigned int bit = master->id ? AT91_PMC_MCKXRDY : AT91_PMC_MCKRDY; in clk_master_ready()
51 regmap_read(master->regmap, AT91_PMC_SR, &status); in clk_master_ready()
58 struct clk_master *master = to_clk_master(hw); in clk_master_prepare() local
61 spin_lock_irqsave(master->lock, flags); in clk_master_prepare()
63 while (!clk_master_ready(master)) in clk_master_prepare()
66 spin_unlock_irqrestore(master->lock, flags); in clk_master_prepare()
73 struct clk_master *master = to_clk_master(hw); in clk_master_is_prepared() local
77 spin_lock_irqsave(master->lock, flags); in clk_master_is_prepared()
78 status = clk_master_ready(master); in clk_master_is_prepared()
[all …]
/Linux-v6.1/drivers/i3c/master/
Dsvc-i3c-master.c3 * Silvaco dual-role I3C master driver
14 #include <linux/i3c/master.h>
24 /* Master Mode Registers */
149 * struct svc_i3c_master - Silvaco I3C Master structure
150 * @base: I3C master controller
202 * @index: Index in the master tables corresponding to this device
203 * @ibi: IBI slot index in the master structure
212 static bool svc_i3c_master_error(struct svc_i3c_master *master) in svc_i3c_master_error() argument
216 mstatus = readl(master->regs + SVC_I3C_MSTATUS); in svc_i3c_master_error()
218 merrwarn = readl(master->regs + SVC_I3C_MERRWARN); in svc_i3c_master_error()
[all …]
Ddw-i3c-master.c13 #include <linux/i3c/master.h>
296 to_dw_i3c_master(struct i3c_master_controller *master) in to_dw_i3c_master() argument
298 return container_of(master, struct dw_i3c_master, base); in to_dw_i3c_master()
301 static void dw_i3c_master_disable(struct dw_i3c_master *master) in dw_i3c_master_disable() argument
303 writel(readl(master->regs + DEVICE_CTRL) & ~DEV_CTRL_ENABLE, in dw_i3c_master_disable()
304 master->regs + DEVICE_CTRL); in dw_i3c_master_disable()
307 static void dw_i3c_master_enable(struct dw_i3c_master *master) in dw_i3c_master_enable() argument
309 writel(readl(master->regs + DEVICE_CTRL) | DEV_CTRL_ENABLE, in dw_i3c_master_enable()
310 master->regs + DEVICE_CTRL); in dw_i3c_master_enable()
313 static int dw_i3c_master_get_addr_pos(struct dw_i3c_master *master, u8 addr) in dw_i3c_master_get_addr_pos() argument
[all …]
Di3c-master-cdns.c12 #include <linux/i3c/master.h>
422 to_cdns_i3c_master(struct i3c_master_controller *master) in to_cdns_i3c_master() argument
424 return container_of(master, struct cdns_i3c_master, base); in to_cdns_i3c_master()
427 static void cdns_i3c_master_wr_to_tx_fifo(struct cdns_i3c_master *master, in cdns_i3c_master_wr_to_tx_fifo() argument
430 writesl(master->regs + TX_FIFO, bytes, nbytes / 4); in cdns_i3c_master_wr_to_tx_fifo()
435 writesl(master->regs + TX_FIFO, &tmp, 1); in cdns_i3c_master_wr_to_tx_fifo()
439 static void cdns_i3c_master_rd_from_rx_fifo(struct cdns_i3c_master *master, in cdns_i3c_master_rd_from_rx_fifo() argument
442 readsl(master->regs + RX_FIFO, bytes, nbytes / 4); in cdns_i3c_master_rd_from_rx_fifo()
446 readsl(master->regs + RX_FIFO, &tmp, 1); in cdns_i3c_master_rd_from_rx_fifo()
492 static int cdns_i3c_master_disable(struct cdns_i3c_master *master) in cdns_i3c_master_disable() argument
[all …]
/Linux-v6.1/drivers/gpu/drm/
Ddrm_auth.c43 * DOC: master and authentication
47 * least once successfully became the device master (either through the
49 * no one else is the current master that time) there exists one &drm_master.
53 * In addition only one &drm_master can be the current master for a &drm_device.
58 * Clients can authenticate against the current master (if it matches their own)
69 return fpriv->is_master && drm_lease_owner(fpriv->master) == fpriv->minor->dev->master; in drm_is_current_master_locked()
73 * drm_is_current_master - checks whether @priv is the current master
76 * Checks whether @fpriv is current master on its device. This decides whether a
80 * - the current master is assumed to own the non-shareable display hardware.
101 ret = idr_alloc(&file_priv->master->magic_map, file_priv, in drm_getmagic()
[all …]
Ddrm_lease.c21 * DRM leases provide information about whether a DRM master may control a DRM
25 * The original DRM master of a device 'owns' the available drm resources. It
27 * to the new DRM master. This gives the new DRM master control over the
28 * leased resources until the owner revokes the lease, or the new DRM master
62 * through the SETMASTER or DROPMASTER IOCTL, so &drm_device.master points to
74 struct drm_master *drm_lease_owner(struct drm_master *master) in drm_lease_owner() argument
76 while (master->lessor != NULL) in drm_lease_owner()
77 master = master->lessor; in drm_lease_owner()
78 return master; in drm_lease_owner()
82 _drm_find_lessee(struct drm_master *master, int lessee_id) in _drm_find_lessee() argument
[all …]
/Linux-v6.1/include/trace/events/
Dfsi_master_gpio.h12 TP_PROTO(const struct fsi_master_gpio *master, int bits, uint64_t msg),
13 TP_ARGS(master, bits, msg),
20 __entry->master_idx = master->master.idx;
33 TP_PROTO(const struct fsi_master_gpio *master, int bits, uint64_t msg),
34 TP_ARGS(master, bits, msg),
41 __entry->master_idx = master->master.idx;
54 TP_PROTO(const struct fsi_master_gpio *master, int clocks),
55 TP_ARGS(master, clocks),
61 __entry->master_idx = master->master.idx;
70 TP_PROTO(const struct fsi_master_gpio *master),
[all …]
Dfsi_master_ast_cf.h11 TP_PROTO(const struct fsi_master_acf *master, uint32_t op),
12 TP_ARGS(master, op),
18 __entry->master_idx = master->master.idx;
27 TP_PROTO(const struct fsi_master_acf *master, const struct fsi_msg *cmd, u8 rbits),
28 TP_ARGS(master, cmd, rbits),
36 __entry->master_idx = master->master.idx;
48 TP_PROTO(const struct fsi_master_acf *master, u8 rtag, u8 rcrc, __be32 rdata, bool crc_ok),
49 TP_ARGS(master, rtag, rcrc, rdata, crc_ok),
58 __entry->master_idx = master->master.idx;
71 TP_PROTO(const struct fsi_master_acf *master, int retries),
[all …]
/Linux-v6.1/drivers/i3c/
Dmaster.c71 * In other words, transfer requests passed to the I3C master can be submitted
72 * in parallel and I3C master drivers have to use their own locking to make
109 struct i3c_master_controller *master; in dev_to_i3cbus() local
114 master = dev_to_i3cmaster(dev); in dev_to_i3cbus()
116 return &master->bus; in dev_to_i3cbus()
121 struct i3c_master_controller *master; in dev_to_i3cdesc() local
126 master = dev_to_i3cmaster(dev); in dev_to_i3cdesc()
128 return master->this; in dev_to_i3cdesc()
533 struct i3c_master_controller *master = dev_to_i3cmaster(dev); in i3c_masterdev_release() local
536 if (master->wq) in i3c_masterdev_release()
[all …]
/Linux-v6.1/sound/core/
Dvmaster.c3 * Virtual master and follower controls
24 * link master - this contains a list of follower controls that are
28 * The master control is so far only mono volume/switch for simplicity.
34 int val; /* the master value */
44 * master control. A follower may have either one or two channels.
49 struct link_master *master; member
114 /* initialize master volume */
115 static int master_init(struct link_master *master) in master_init() argument
119 if (master->info.count) in master_init()
122 list_for_each_entry(follower, &master->followers, list) { in master_init()
[all …]
/Linux-v6.1/drivers/spi/
Dspi-uniphier.c29 struct spi_master *master; member
130 struct uniphier_spi_priv *priv = spi_master_get_devdata(spi->master); in uniphier_spi_set_mode()
183 struct uniphier_spi_priv *priv = spi_master_get_devdata(spi->master); in uniphier_spi_set_transfer_size()
201 struct uniphier_spi_priv *priv = spi_master_get_devdata(spi->master); in uniphier_spi_set_baudrate()
220 struct uniphier_spi_priv *priv = spi_master_get_devdata(spi->master); in uniphier_spi_setup_transfer()
336 struct uniphier_spi_priv *priv = spi_master_get_devdata(spi->master); in uniphier_spi_set_cs()
349 static bool uniphier_spi_can_dma(struct spi_master *master, in uniphier_spi_can_dma() argument
353 struct uniphier_spi_priv *priv = spi_master_get_devdata(master); in uniphier_spi_can_dma()
356 if ((!master->dma_tx && !master->dma_rx) in uniphier_spi_can_dma()
357 || (!master->dma_tx && t->tx_buf) in uniphier_spi_can_dma()
[all …]
Dspi-ep93xx.c107 * @master: SPI master
112 static int ep93xx_spi_calc_divisors(struct spi_master *master, in ep93xx_spi_calc_divisors() argument
115 struct ep93xx_spi *espi = spi_master_get_devdata(master); in ep93xx_spi_calc_divisors()
123 rate = clamp(rate, master->min_speed_hz, master->max_speed_hz); in ep93xx_spi_calc_divisors()
146 static int ep93xx_spi_chip_setup(struct spi_master *master, in ep93xx_spi_chip_setup() argument
150 struct ep93xx_spi *espi = spi_master_get_devdata(master); in ep93xx_spi_chip_setup()
157 err = ep93xx_spi_calc_divisors(master, xfer->speed_hz, in ep93xx_spi_chip_setup()
169 dev_dbg(&master->dev, "setup: mode %d, cpsr %d, scr %d, dss %d\n", in ep93xx_spi_chip_setup()
171 dev_dbg(&master->dev, "setup: cr0 %#x\n", cr0); in ep93xx_spi_chip_setup()
179 static void ep93xx_do_write(struct spi_master *master) in ep93xx_do_write() argument
[all …]
Dspi-omap-100k.c80 static void spi100k_enable_clock(struct spi_master *master) in spi100k_enable_clock() argument
83 struct omap1_spi100k *spi100k = spi_master_get_devdata(master); in spi100k_enable_clock()
91 static void spi100k_disable_clock(struct spi_master *master) in spi100k_disable_clock() argument
94 struct omap1_spi100k *spi100k = spi_master_get_devdata(master); in spi100k_disable_clock()
102 static void spi100k_write_data(struct spi_master *master, int len, int data) in spi100k_write_data() argument
104 struct omap1_spi100k *spi100k = spi_master_get_devdata(master); in spi100k_write_data()
112 spi100k_enable_clock(master); in spi100k_write_data()
125 spi100k_disable_clock(master); in spi100k_write_data()
128 static int spi100k_read_data(struct spi_master *master, int len) in spi100k_read_data() argument
131 struct omap1_spi100k *spi100k = spi_master_get_devdata(master); in spi100k_read_data()
[all …]
Dspi-sun6i.c89 struct spi_master *master; member
172 struct sun6i_spi *sspi = spi_master_get_devdata(spi->master); in sun6i_spi_set_cs()
196 struct spi_master *master = sspi->master; in sun6i_spi_prepare_dma() local
207 dmaengine_slave_config(master->dma_rx, &rxconf); in sun6i_spi_prepare_dma()
209 rxdesc = dmaengine_prep_slave_sg(master->dma_rx, in sun6i_spi_prepare_dma()
227 dmaengine_slave_config(master->dma_tx, &txconf); in sun6i_spi_prepare_dma()
229 txdesc = dmaengine_prep_slave_sg(master->dma_tx, in sun6i_spi_prepare_dma()
236 dmaengine_terminate_sync(master->dma_rx); in sun6i_spi_prepare_dma()
243 dma_async_issue_pending(master->dma_rx); in sun6i_spi_prepare_dma()
248 dma_async_issue_pending(master->dma_tx); in sun6i_spi_prepare_dma()
[all …]
Dspi-pic32.c58 #define CTRL_MSTEN BIT(5) /* enable master mode */
103 struct spi_master *master; member
227 dev_err(&pic32s->master->dev, "%s\n", msg); in pic32_err_stop()
228 if (pic32s->master->cur_msg) in pic32_err_stop()
229 pic32s->master->cur_msg->status = -EIO; in pic32_err_stop()
253 if (!pic32s->master->cur_msg) { in pic32_spi_fault_irq()
303 struct spi_master *master = pic32s->master; in pic32_spi_dma_transfer() local
309 if (!master->dma_rx || !master->dma_tx) in pic32_spi_dma_transfer()
312 desc_rx = dmaengine_prep_slave_sg(master->dma_rx, in pic32_spi_dma_transfer()
322 desc_tx = dmaengine_prep_slave_sg(master->dma_tx, in pic32_spi_dma_transfer()
[all …]
Dspi-img-spfi.c89 struct spi_master *master; member
224 static int img_spfi_start_pio(struct spi_master *master, in img_spfi_start_pio() argument
228 struct img_spfi *spfi = spi_master_get_devdata(spi->master); in img_spfi_start_pio()
288 spi_finalize_current_transfer(spfi->master); in img_spfi_dma_rx_cb()
302 spi_finalize_current_transfer(spfi->master); in img_spfi_dma_tx_cb()
306 static int img_spfi_start_dma(struct spi_master *master, in img_spfi_start_dma() argument
310 struct img_spfi *spfi = spi_master_get_devdata(spi->master); in img_spfi_start_dma()
387 static void img_spfi_handle_err(struct spi_master *master, in img_spfi_handle_err() argument
390 struct img_spfi *spfi = spi_master_get_devdata(master); in img_spfi_handle_err()
408 static int img_spfi_prepare(struct spi_master *master, struct spi_message *msg) in img_spfi_prepare() argument
[all …]
/Linux-v6.1/drivers/base/regmap/
Dregmap-w1.c30 mutex_lock(&sl->master->bus_mutex); in w1_reg_a8_v8_read()
32 w1_write_8(sl->master, W1_CMD_READ_DATA); in w1_reg_a8_v8_read()
33 w1_write_8(sl->master, reg); in w1_reg_a8_v8_read()
34 *val = w1_read_8(sl->master); in w1_reg_a8_v8_read()
38 mutex_unlock(&sl->master->bus_mutex); in w1_reg_a8_v8_read()
52 mutex_lock(&sl->master->bus_mutex); in w1_reg_a8_v8_write()
54 w1_write_8(sl->master, W1_CMD_WRITE_DATA); in w1_reg_a8_v8_write()
55 w1_write_8(sl->master, reg); in w1_reg_a8_v8_write()
56 w1_write_8(sl->master, val); in w1_reg_a8_v8_write()
60 mutex_unlock(&sl->master->bus_mutex); in w1_reg_a8_v8_write()
[all …]
/Linux-v6.1/Documentation/networking/dsa/
Dconfiguration.rst34 The corresponding linux Ethernet interface is called the master interface.
37 The slave interfaces depend on the master interface being up in order for them
38 to send or receive traffic. Prior to kernel v5.12, the state of the master
42 - when a DSA slave interface is brought up, the master interface is
44 - when the master interface is brought down, all DSA slave interfaces are
50 the master interface
53 another master interface
99 # For kernels earlier than v5.12, the master interface needs to be
111 # For kernels earlier than v5.12, the master interface needs to be
124 ip link set dev lan1 master br0
[all …]
/Linux-v6.1/drivers/i2c/busses/
Di2c-qcom-cci.c112 u16 master; member
134 struct cci_master master[NUM_MASTERS]; member
148 complete(&cci->master[0].irq_complete); in cci_isr()
149 if (cci->master[1].master) in cci_isr()
150 complete(&cci->master[1].irq_complete); in cci_isr()
157 cci->master[0].status = 0; in cci_isr()
158 complete(&cci->master[0].irq_complete); in cci_isr()
165 cci->master[1].status = 0; in cci_isr()
166 complete(&cci->master[1].irq_complete); in cci_isr()
186 cci->master[0].status = -ENXIO; in cci_isr()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/iommu/
Diommu.txt2 master(s).
29 IOMMUs can be single-master or multiple-master. Single-master IOMMU devices
30 typically have a fixed association to the master device, whereas multiple-
31 master IOMMU devices can translate accesses from more than one master.
46 - #iommu-cells = <0>: Single master IOMMU devices are not configurable and
48 This may also apply to multiple master IOMMU devices that do not allow the
50 be multi-master yet only expose a single master in a given configuration.
52 - #iommu-cells = <1>: Multiple master IOMMU devices may need to be configured
53 in order to enable translation for a given master. In such cases the single
54 address cell corresponds to the master device's ID. In some cases more than
[all …]
/Linux-v6.1/arch/arm/mach-omap2/
Domap_hwmod_2xxx_interconnect_data.c26 .master = &omap2xxx_l3_main_hwmod,
33 .master = &omap2xxx_mpu_hwmod,
40 .master = &omap2xxx_dss_core_hwmod,
53 .master = &omap2xxx_l4_core_hwmod,
60 .master = &omap2xxx_l4_core_hwmod,
68 .master = &omap2xxx_l4_core_hwmod,
76 .master = &omap2xxx_l4_core_hwmod,
84 .master = &omap2xxx_l4_core_hwmod,
92 .master = &omap2xxx_l4_core_hwmod,
100 .master = &omap2xxx_l4_core_hwmod,
[all …]

12345678910>>...102