Home
last modified time | relevance | path

Searched refs:master (Results 1 – 25 of 1356) sorted by relevance

12345678910>>...55

/linux-6.6.21/drivers/fsi/
Dfsi-master-ast-cf.c88 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()
202 master->last_addr = ((id & 0x3) << 21) | (addr & ~0x3); in last_address_update()
208 static void build_ar_command(struct fsi_master_acf *master, in build_ar_command() argument
[all …]
Dfsi-master-gpio.c24 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
67 if (!master->no_delays) in sda_clock_in()
69 gpiod_set_value(master->gpio_clk, 0); in sda_clock_in()
[all …]
Dfsi-core.c97 static int fsi_master_read(struct fsi_master *master, int link,
99 static int fsi_master_write(struct fsi_master *master, int link,
101 static int fsi_master_break(struct fsi_master *master, int link);
197 struct fsi_master *master = slave->master; in fsi_slave_report_and_clear_errors() local
205 rc = fsi_master_read(master, link, id, FSI_SLAVE_BASE + FSI_SISC, in fsi_slave_report_and_clear_errors()
210 rc = fsi_master_read(master, link, id, FSI_SLAVE_BASE + FSI_SSTAT, in fsi_slave_report_and_clear_errors()
219 return fsi_master_write(master, link, id, FSI_SLAVE_BASE + FSI_SISC, in fsi_slave_report_and_clear_errors()
266 return fsi_master_write(slave->master, slave->link, slave->id, in fsi_slave_set_smode()
274 struct fsi_master *master = slave->master; in fsi_slave_handle_error() local
296 if (master->term) { in fsi_slave_handle_error()
[all …]
/linux-6.6.21/drivers/i3c/master/
Dsvc-i3c-master.c223 static bool svc_i3c_master_error(struct svc_i3c_master *master) in svc_i3c_master_error() argument
227 mstatus = readl(master->regs + SVC_I3C_MSTATUS); in svc_i3c_master_error()
229 merrwarn = readl(master->regs + SVC_I3C_MERRWARN); in svc_i3c_master_error()
230 writel(merrwarn, master->regs + SVC_I3C_MERRWARN); in svc_i3c_master_error()
234 dev_dbg(master->dev, "Warning condition: MSTATUS 0x%08x, MERRWARN 0x%08x\n", in svc_i3c_master_error()
239 dev_err(master->dev, in svc_i3c_master_error()
249 static void svc_i3c_master_enable_interrupts(struct svc_i3c_master *master, u32 mask) in svc_i3c_master_enable_interrupts() argument
251 writel(mask, master->regs + SVC_I3C_MINTSET); in svc_i3c_master_enable_interrupts()
254 static void svc_i3c_master_disable_interrupts(struct svc_i3c_master *master) in svc_i3c_master_disable_interrupts() argument
256 u32 mask = readl(master->regs + SVC_I3C_MINTSET); in svc_i3c_master_disable_interrupts()
[all …]
Ddw-i3c-master.c290 to_dw_i3c_master(struct i3c_master_controller *master) in to_dw_i3c_master() argument
292 return container_of(master, struct dw_i3c_master, base); in to_dw_i3c_master()
295 static void dw_i3c_master_disable(struct dw_i3c_master *master) in dw_i3c_master_disable() argument
297 writel(readl(master->regs + DEVICE_CTRL) & ~DEV_CTRL_ENABLE, in dw_i3c_master_disable()
298 master->regs + DEVICE_CTRL); in dw_i3c_master_disable()
301 static void dw_i3c_master_enable(struct dw_i3c_master *master) in dw_i3c_master_enable() argument
303 writel(readl(master->regs + DEVICE_CTRL) | DEV_CTRL_ENABLE, in dw_i3c_master_enable()
304 master->regs + DEVICE_CTRL); in dw_i3c_master_enable()
307 static int dw_i3c_master_get_addr_pos(struct dw_i3c_master *master, u8 addr) in dw_i3c_master_get_addr_pos() argument
311 for (pos = 0; pos < master->maxdevs; pos++) { in dw_i3c_master_get_addr_pos()
[all …]
Di3c-master-cdns.c422 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
496 writel(readl(master->regs + CTRL) & ~CTRL_DEV_EN, master->regs + CTRL); in cdns_i3c_master_disable()
[all …]
/linux-6.6.21/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-6.6.21/drivers/gpu/drm/
Ddrm_auth.c69 return fpriv->is_master && drm_lease_owner(fpriv->master) == fpriv->minor->dev->master; in drm_is_current_master_locked()
101 ret = idr_alloc(&file_priv->master->magic_map, file_priv, in drm_getmagic()
123 file = idr_find(&file_priv->master->magic_map, auth->magic); in drm_authmagic()
126 idr_replace(&file_priv->master->magic_map, NULL, auth->magic); in drm_authmagic()
135 struct drm_master *master; in drm_master_create() local
137 master = kzalloc(sizeof(*master), GFP_KERNEL); in drm_master_create()
138 if (!master) in drm_master_create()
141 kref_init(&master->refcount); in drm_master_create()
142 drm_master_legacy_init(master); in drm_master_create()
143 idr_init_base(&master->magic_map, 1); in drm_master_create()
[all …]
Ddrm_lease.c74 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
84 lockdep_assert_held(&master->dev->mode_config.idr_mutex); in _drm_find_lessee()
85 return idr_find(&drm_lease_owner(master)->lessee_idr, lessee_id); in _drm_find_lessee()
88 static int _drm_lease_held_master(struct drm_master *master, int id) in _drm_lease_held_master() argument
90 lockdep_assert_held(&master->dev->mode_config.idr_mutex); in _drm_lease_held_master()
91 if (master->lessor) in _drm_lease_held_master()
[all …]
Ddrm_lock.c169 struct drm_master *master = file_priv->master; in drm_legacy_lock() local
185 master->lock.hw_lock ? master->lock.hw_lock->lock : -1, in drm_legacy_lock()
188 add_wait_queue(&master->lock.lock_queue, &entry); in drm_legacy_lock()
189 spin_lock_bh(&master->lock.spinlock); in drm_legacy_lock()
190 master->lock.user_waiters++; in drm_legacy_lock()
191 spin_unlock_bh(&master->lock.spinlock); in drm_legacy_lock()
195 if (!master->lock.hw_lock) { in drm_legacy_lock()
201 if (drm_lock_take(&master->lock, lock->context)) { in drm_legacy_lock()
202 master->lock.file_priv = file_priv; in drm_legacy_lock()
203 master->lock.lock_time = jiffies; in drm_legacy_lock()
[all …]
/linux-6.6.21/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-6.6.21/drivers/i3c/
Dmaster.c110 struct i3c_master_controller *master; in dev_to_i3cbus() local
115 master = dev_to_i3cmaster(dev); in dev_to_i3cbus()
117 return &master->bus; in dev_to_i3cbus()
122 struct i3c_master_controller *master; in dev_to_i3cdesc() local
127 master = dev_to_i3cmaster(dev); in dev_to_i3cdesc()
129 return master->this; in dev_to_i3cdesc()
545 struct i3c_master_controller *master = dev_to_i3cmaster(dev); in i3c_masterdev_release() local
548 if (master->wq) in i3c_masterdev_release()
549 destroy_workqueue(master->wq); in i3c_masterdev_release()
564 struct i3c_master_controller *master = i3c_bus_to_i3c_master(i3cbus); in i3c_bus_set_mode() local
[all …]
/linux-6.6.21/sound/core/
Dvmaster.c49 struct link_master *master; member
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()
126 master->info = follower->info; in master_init()
127 master->info.count = 1; /* always mono */ in master_init()
129 master->val = master->info.max_val; in master_init()
130 if (master->hook) in master_init()
131 master->hook(master->hook_private_data, master->val); in master_init()
155 err = master_init(follower->master); in follower_put_val()
[all …]
/linux-6.6.21/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-sun6i.c100 struct spi_master *master; member
184 struct sun6i_spi *sspi = spi_master_get_devdata(spi->master); in sun6i_spi_set_cs()
215 struct spi_master *master = sspi->master; in sun6i_spi_prepare_dma() local
226 dmaengine_slave_config(master->dma_rx, &rxconf); in sun6i_spi_prepare_dma()
228 rxdesc = dmaengine_prep_slave_sg(master->dma_rx, in sun6i_spi_prepare_dma()
248 dmaengine_slave_config(master->dma_tx, &txconf); in sun6i_spi_prepare_dma()
250 txdesc = dmaengine_prep_slave_sg(master->dma_tx, in sun6i_spi_prepare_dma()
257 dmaengine_terminate_sync(master->dma_rx); in sun6i_spi_prepare_dma()
264 dma_async_issue_pending(master->dma_rx); in sun6i_spi_prepare_dma()
269 dma_async_issue_pending(master->dma_tx); in sun6i_spi_prepare_dma()
[all …]
/linux-6.6.21/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-6.6.21/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-6.6.21/arch/arm/mach-omap2/
Domap_hwmod_2xxx_interconnect_data.c25 .master = &omap2xxx_l3_main_hwmod,
32 .master = &omap2xxx_mpu_hwmod,
39 .master = &omap2xxx_dss_core_hwmod,
52 .master = &omap2xxx_l4_core_hwmod,
59 .master = &omap2xxx_l4_core_hwmod,
67 .master = &omap2xxx_l4_core_hwmod,
75 .master = &omap2xxx_l4_core_hwmod,
83 .master = &omap2xxx_l4_core_hwmod,
91 .master = &omap2xxx_l4_core_hwmod,
99 .master = &omap2xxx_l4_core_hwmod,
[all …]
/linux-6.6.21/drivers/mtd/
Dmtdcore.c453 struct mtd_info *master = mtd_get_master(mtd); in mtd_wunit_to_pairing_info() local
454 int npairs = mtd_wunit_per_eb(master) / mtd_pairing_groups(master); in mtd_wunit_to_pairing_info()
459 if (master->pairing && master->pairing->get_info) in mtd_wunit_to_pairing_info()
460 return master->pairing->get_info(master, wunit, info); in mtd_wunit_to_pairing_info()
496 struct mtd_info *master = mtd_get_master(mtd); in mtd_pairing_info_to_wunit() local
497 int ngroups = mtd_pairing_groups(master); in mtd_pairing_info_to_wunit()
498 int npairs = mtd_wunit_per_eb(master) / ngroups; in mtd_pairing_info_to_wunit()
504 if (master->pairing && master->pairing->get_wunit) in mtd_pairing_info_to_wunit()
505 return mtd->pairing->get_wunit(master, info); in mtd_pairing_info_to_wunit()
523 struct mtd_info *master = mtd_get_master(mtd); in mtd_pairing_groups() local
[all …]
Dmtdpart.c45 struct mtd_info *master = mtd_get_master(parent); in allocate_partition() local
47 master->writesize : master->erasesize; in allocate_partition()
171 child->erasesize = master->erasesize; in allocate_partition()
206 if (master->_block_isbad) { in allocate_partition()
248 struct mtd_info *master = mtd_get_master(parent); in mtd_add_partition() local
275 mutex_lock(&master->master.partitions_lock); in mtd_add_partition()
277 mutex_unlock(&master->master.partitions_lock); in mtd_add_partition()
288 mutex_lock(&master->master.partitions_lock); in mtd_add_partition()
290 mutex_unlock(&master->master.partitions_lock); in mtd_add_partition()
355 struct mtd_info *master = mtd_get_master(mtd); in del_mtd_partitions() local
[all …]
/linux-6.6.21/drivers/media/v4l2-core/
Dv4l2-ctrls-priv.h17 #define has_op(master, op) \ argument
18 ((master)->ops && (master)->ops->op)
19 #define call_op(master, op) \ argument
20 (has_op(master, op) ? (master)->ops->op(master) : 0)
31 static inline bool is_cur_manual(const struct v4l2_ctrl *master) in is_cur_manual() argument
33 return master->is_auto && master->cur.val == master->manual_mode_value; in is_cur_manual()
40 static inline bool is_new_manual(const struct v4l2_ctrl *master) in is_new_manual() argument
42 return master->is_auto && master->val == master->manual_mode_value; in is_new_manual()
71 void update_from_auto_cluster(struct v4l2_ctrl *master);
72 int try_or_set_cluster(struct v4l2_fh *fh, struct v4l2_ctrl *master,
/linux-6.6.21/drivers/w1/slaves/
Dw1_ds2408.c48 mutex_lock(&sl->master->bus_mutex); in _read_reg()
52 mutex_unlock(&sl->master->bus_mutex); in _read_reg()
59 w1_write_block(sl->master, wrbuf, 3); in _read_reg()
60 *buf = w1_read_8(sl->master); in _read_reg()
62 mutex_unlock(&sl->master->bus_mutex); in _read_reg()
144 if (w1_reset_resume_command(sl->master)) in optional_read_back_valid()
151 w1_write_block(sl->master, w1_buf, 3); in optional_read_back_valid()
153 return (w1_read_8(sl->master) == expected); in optional_read_back_valid()
175 mutex_lock(&sl->master->bus_mutex); in output_write()
186 w1_write_block(sl->master, w1_buf, 3); in output_write()
[all …]
/linux-6.6.21/net/hsr/
Dhsr_device.c43 static void hsr_set_operstate(struct hsr_port *master, bool has_carrier) in hsr_set_operstate() argument
45 if (!is_admin_up(master->dev)) { in hsr_set_operstate()
46 __hsr_set_operstate(master->dev, IF_OPER_DOWN); in hsr_set_operstate()
51 __hsr_set_operstate(master->dev, IF_OPER_UP); in hsr_set_operstate()
53 __hsr_set_operstate(master->dev, IF_OPER_LOWERLAYERDOWN); in hsr_set_operstate()
56 static bool hsr_check_carrier(struct hsr_port *master) in hsr_check_carrier() argument
62 hsr_for_each_port(master->hsr, port) { in hsr_check_carrier()
64 netif_carrier_on(master->dev); in hsr_check_carrier()
69 netif_carrier_off(master->dev); in hsr_check_carrier()
95 struct hsr_port *master; in hsr_check_carrier_and_operstate() local
[all …]
/linux-6.6.21/drivers/mtd/parsers/
Dar7part.c31 static int create_mtd_partitions(struct mtd_info *master, in create_mtd_partitions() argument
38 unsigned int pre_size = master->erasesize, post_size = 0; in create_mtd_partitions()
49 ar7_parts[0].size = master->erasesize; in create_mtd_partitions()
54 ar7_parts[1].size = master->erasesize; in create_mtd_partitions()
59 mtd_read(master, offset, sizeof(header), &len, in create_mtd_partitions()
67 pre_size += master->erasesize; in create_mtd_partitions()
73 ar7_parts[1].offset = master->size - master->erasesize; in create_mtd_partitions()
74 post_size = master->erasesize; in create_mtd_partitions()
81 mtd_read(master, offset, sizeof(header), &len, in create_mtd_partitions()
89 mtd_read(master, offset, sizeof(header), &len, in create_mtd_partitions()
[all …]

12345678910>>...55