| /kernel/linux/linux-5.10/drivers/fsi/ |
| D | fsi-master-ast-cf.c | 4 * 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 …]
|
| D | fsi-master-gpio.c | 3 * 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 …]
|
| /kernel/linux/linux-6.6/drivers/fsi/ |
| D | fsi-master-ast-cf.c | 4 * 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 …]
|
| D | fsi-master-gpio.c | 3 * 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 …]
|
| /kernel/linux/linux-6.6/drivers/clk/at91/ |
| D | clk-master.c | 46 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 …]
|
| /kernel/linux/linux-6.6/drivers/i3c/master/ |
| D | svc-i3c-master.c | 3 * Silvaco dual-role I3C master driver 14 #include <linux/i3c/master.h> 24 /* Master Mode Registers */ 160 * struct svc_i3c_master - Silvaco I3C Master structure 161 * @base: I3C master controller 183 * @lock: Transfer lock, protect between IBI work thread and callbacks from master 221 * @index: Index in the master tables corresponding to this device 222 * @ibi: IBI slot index in the master structure 231 static inline bool is_events_enabled(struct svc_i3c_master *master, u32 mask) in is_events_enabled() argument 233 return !!(master->enabled_events & mask); in is_events_enabled() [all …]
|
| D | dw-i3c-master.c | 13 #include <linux/i3c/master.h> 24 #include "dw-i3c-master.h" 290 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() [all …]
|
| D | i3c-master-cdns.c | 12 #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 …]
|
| /kernel/linux/linux-5.10/drivers/clk/at91/ |
| D | clk-master.c | 48 static inline bool clk_master_ready(struct clk_master *master) in clk_master_ready() argument 50 unsigned int bit = master->id ? AT91_PMC_MCKXRDY : AT91_PMC_MCKRDY; in clk_master_ready() 53 regmap_read(master->regmap, AT91_PMC_SR, &status); in clk_master_ready() 60 struct clk_master *master = to_clk_master(hw); in clk_master_prepare() local 62 while (!clk_master_ready(master)) in clk_master_prepare() 70 struct clk_master *master = to_clk_master(hw); in clk_master_is_prepared() local 72 return clk_master_ready(master); in clk_master_is_prepared() 81 struct clk_master *master = to_clk_master(hw); in clk_master_recalc_rate() local 82 const struct clk_master_layout *layout = master->layout; in clk_master_recalc_rate() 84 master->characteristics; in clk_master_recalc_rate() [all …]
|
| /kernel/linux/linux-5.10/drivers/i3c/master/ |
| D | dw-i3c-master.c | 13 #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 …]
|
| D | i3c-master-cdns.c | 12 #include <linux/i3c/master.h> 423 to_cdns_i3c_master(struct i3c_master_controller *master) in to_cdns_i3c_master() argument 425 return container_of(master, struct cdns_i3c_master, base); in to_cdns_i3c_master() 428 static void cdns_i3c_master_wr_to_tx_fifo(struct cdns_i3c_master *master, in cdns_i3c_master_wr_to_tx_fifo() argument 431 writesl(master->regs + TX_FIFO, bytes, nbytes / 4); in cdns_i3c_master_wr_to_tx_fifo() 436 writesl(master->regs + TX_FIFO, &tmp, 1); in cdns_i3c_master_wr_to_tx_fifo() 440 static void cdns_i3c_master_rd_from_rx_fifo(struct cdns_i3c_master *master, in cdns_i3c_master_rd_from_rx_fifo() argument 443 readsl(master->regs + RX_FIFO, bytes, nbytes / 4); in cdns_i3c_master_rd_from_rx_fifo() 447 readsl(master->regs + RX_FIFO, &tmp, 1); in cdns_i3c_master_rd_from_rx_fifo() 493 static int cdns_i3c_master_disable(struct cdns_i3c_master *master) in cdns_i3c_master_disable() argument [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/ |
| D | drm_auth.c | 43 * 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 …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/ |
| D | drm_auth.c | 43 * 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) 71 ret = idr_alloc(&file_priv->master->magic_map, file_priv, in drm_getmagic() 93 file = idr_find(&file_priv->master->magic_map, auth->magic); in drm_authmagic() 96 idr_replace(&file_priv->master->magic_map, NULL, auth->magic); in drm_authmagic() 105 struct drm_master *master; in drm_master_create() local 107 master = kzalloc(sizeof(*master), GFP_KERNEL); in drm_master_create() [all …]
|
| D | drm_lease.c | 26 * @master: drm_master somewhere within tree of lessees and lessors 32 struct drm_master *drm_lease_owner(struct drm_master *master) in drm_lease_owner() argument 34 while (master->lessor != NULL) in drm_lease_owner() 35 master = master->lessor; in drm_lease_owner() 36 return master; in drm_lease_owner() 41 * @master: drm_master of lessor 50 _drm_find_lessee(struct drm_master *master, int lessee_id) in _drm_find_lessee() argument 52 lockdep_assert_held(&master->dev->mode_config.idr_mutex); in _drm_find_lessee() 53 return idr_find(&drm_lease_owner(master)->lessee_idr, lessee_id); in _drm_find_lessee() 57 …* _drm_lease_held_master - check to see if an object is leased (or owned) by master (idr_mutex hel… [all …]
|
| /kernel/linux/linux-5.10/drivers/base/ |
| D | component.c | 7 * subsystem, and only handles one master device, but this doesn't have to be 61 struct master { struct 73 struct master *master; argument 91 struct master *m = s->private; in component_devices_show() 96 seq_printf(s, "%-40s %20s\n", "master name", "status"); in component_devices_show() 126 static void component_master_debugfs_add(struct master *m) in component_master_debugfs_add() 133 static void component_master_debugfs_del(struct master *m) in component_master_debugfs_del() 141 static void component_master_debugfs_add(struct master *m) in component_master_debugfs_add() 144 static void component_master_debugfs_del(struct master *m) in component_master_debugfs_del() 149 static struct master *__master_find(struct device *dev, in __master_find() [all …]
|
| /kernel/linux/linux-5.10/drivers/spi/ |
| D | spi-amd.c | 45 static inline u8 amd_spi_readreg8(struct spi_master *master, int idx) in amd_spi_readreg8() argument 47 struct amd_spi *amd_spi = spi_master_get_devdata(master); in amd_spi_readreg8() 52 static inline void amd_spi_writereg8(struct spi_master *master, int idx, in amd_spi_writereg8() argument 55 struct amd_spi *amd_spi = spi_master_get_devdata(master); in amd_spi_writereg8() 60 static inline void amd_spi_setclear_reg8(struct spi_master *master, int idx, in amd_spi_setclear_reg8() argument 63 u8 tmp = amd_spi_readreg8(master, idx); in amd_spi_setclear_reg8() 66 amd_spi_writereg8(master, idx, tmp); in amd_spi_setclear_reg8() 69 static inline u32 amd_spi_readreg32(struct spi_master *master, int idx) in amd_spi_readreg32() argument 71 struct amd_spi *amd_spi = spi_master_get_devdata(master); in amd_spi_readreg32() 76 static inline void amd_spi_writereg32(struct spi_master *master, int idx, in amd_spi_writereg32() argument [all …]
|
| D | spi-uniphier.c | 29 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 …]
|
| /kernel/linux/linux-5.10/include/trace/events/ |
| D | fsi_master_gpio.h | 12 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 …]
|
| /kernel/linux/linux-6.6/include/trace/events/ |
| D | fsi_master_gpio.h | 12 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 …]
|
| D | fsi_master_ast_cf.h | 11 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 …]
|
| /kernel/linux/linux-6.6/drivers/i3c/ |
| D | master.c | 72 * In other words, transfer requests passed to the I3C master can be submitted 73 * in parallel and I3C master drivers have to use their own locking to make 110 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() 403 * Some master controllers (such as HCI) need to prepare the entire above transaction before 572 static int i3c_set_hotjoin(struct i3c_master_controller *master, bool enable) in i3c_set_hotjoin() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/i3c/ |
| D | master.c | 71 * 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() 536 struct i3c_master_controller *master = dev_to_i3cmaster(dev); in i3c_masterdev_release() local 539 if (master->wq) in i3c_masterdev_release() [all …]
|
| /kernel/linux/linux-6.6/sound/core/ |
| D | vmaster.c | 3 * 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 …]
|
| /kernel/linux/linux-5.10/sound/core/ |
| D | vmaster.c | 3 * 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 …]
|
| /kernel/linux/linux-6.6/drivers/spi/ |
| D | spi-uniphier.c | 29 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 …]
|