| /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-4.19/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 | 2 * A FSI master controller, using a simple GPIO bit-banging interface 17 #include "fsi-master.h" 23 struct fsi_master master; member 41 #define to_fsi_master_gpio(m) container_of(m, struct fsi_master_gpio, master) 48 static void clock_toggle(struct fsi_master_gpio *master, int count) in clock_toggle() argument 53 if (!master->no_delays) in clock_toggle() 55 gpiod_set_value(master->gpio_clk, 0); in clock_toggle() 56 if (!master->no_delays) in clock_toggle() 58 gpiod_set_value(master->gpio_clk, 1); in clock_toggle() 62 static int sda_clock_in(struct fsi_master_gpio *master) in sda_clock_in() argument [all …]
|
| /kernel/linux/linux-4.19/drivers/base/ |
| D | component.c | 7 * subsystem, and only handles one master device, but this doesn't have to be 35 struct master { struct 47 struct master *master; argument 64 struct master *m = s->private; in component_devices_show() 69 seq_printf(s, "%-40s %20s\n", "master name", "status"); in component_devices_show() 109 static void component_master_debugfs_add(struct master *m) in component_master_debugfs_add() 116 static void component_master_debugfs_del(struct master *m) in component_master_debugfs_del() 124 static void component_master_debugfs_add(struct master *m) in component_master_debugfs_add() 127 static void component_master_debugfs_del(struct master *m) in component_master_debugfs_del() 132 static struct master *__master_find(struct device *dev, in __master_find() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/ |
| D | drm_auth.c | 37 * DOC: master and authentication 41 * least once successfully became the device master (either through the 43 * no one else is the current master that time) there exists one &drm_master. 47 * In addition only one &drm_master can be the current master for a &drm_device. 52 * Clients can authenticate against the current master (if it matches their own) 65 ret = idr_alloc(&file_priv->master->magic_map, file_priv, in drm_getmagic() 87 file = idr_find(&file_priv->master->magic_map, auth->magic); in drm_authmagic() 90 idr_replace(&file_priv->master->magic_map, NULL, auth->magic); in drm_authmagic() 99 struct drm_master *master; in drm_master_create() local 101 master = kzalloc(sizeof(*master), GFP_KERNEL); in drm_master_create() [all …]
|
| D | drm_lease.c | 30 * @master: drm_master somewhere within tree of lessees and lessors 36 struct drm_master *drm_lease_owner(struct drm_master *master) in drm_lease_owner() argument 38 while (master->lessor != NULL) in drm_lease_owner() 39 master = master->lessor; in drm_lease_owner() 40 return master; in drm_lease_owner() 46 * @master: drm_master of lessor 55 _drm_find_lessee(struct drm_master *master, int lessee_id) in _drm_find_lessee() argument 57 lockdep_assert_held(&master->dev->mode_config.idr_mutex); in _drm_find_lessee() 58 return idr_find(&drm_lease_owner(master)->lessee_idr, lessee_id); in _drm_find_lessee() 62 …* _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/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> 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/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; member 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 | 44 static inline u8 amd_spi_readreg8(struct spi_master *master, int idx) in amd_spi_readreg8() argument 46 struct amd_spi *amd_spi = spi_master_get_devdata(master); in amd_spi_readreg8() 51 static inline void amd_spi_writereg8(struct spi_master *master, int idx, in amd_spi_writereg8() argument 54 struct amd_spi *amd_spi = spi_master_get_devdata(master); in amd_spi_writereg8() 59 static inline void amd_spi_setclear_reg8(struct spi_master *master, int idx, in amd_spi_setclear_reg8() argument 62 u8 tmp = amd_spi_readreg8(master, idx); in amd_spi_setclear_reg8() 65 amd_spi_writereg8(master, idx, tmp); in amd_spi_setclear_reg8() 68 static inline u32 amd_spi_readreg32(struct spi_master *master, int idx) in amd_spi_readreg32() argument 70 struct amd_spi *amd_spi = spi_master_get_devdata(master); in amd_spi_readreg32() 75 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-4.19/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-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 …]
|
| 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-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-4.19/sound/core/ |
| D | vmaster.c | 2 * Virtual master and slave controls 28 * link master - this contains a list of slave controls that are 32 * The master control is so far only mono volume/switch for simplicity. 38 int val; /* the master value */ 48 * master control. A slave may have either one or two channels. 53 struct link_master *master; member 118 /* initialize master volume */ 119 static int master_init(struct link_master *master) in master_init() argument 123 if (master->info.count) in master_init() 126 list_for_each_entry(slave, &master->slaves, 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-4.19/arch/arm/mach-omap2/ |
| D | omap_hwmod_33xx_43xx_interconnect_data.c | 23 .master = &am33xx_mpu_hwmod, 31 .master = &am33xx_l3_main_hwmod, 39 .master = &am33xx_l3_s_hwmod, 47 .master = &am33xx_l3_s_hwmod, 55 .master = &am33xx_l3_main_hwmod, 63 .master = &am33xx_mpu_hwmod, 71 .master = &am33xx_l3_s_hwmod, 79 .master = &am33xx_pruss_hwmod, 87 .master = &am33xx_gfx_hwmod, 95 .master = &am33xx_l3_main_hwmod, [all …]
|
| /kernel/linux/linux-4.19/drivers/spi/ |
| D | spi-ep93xx.c | 110 * @master: SPI master 115 static int ep93xx_spi_calc_divisors(struct spi_master *master, in ep93xx_spi_calc_divisors() argument 118 struct ep93xx_spi *espi = spi_master_get_devdata(master); in ep93xx_spi_calc_divisors() 126 rate = clamp(rate, master->min_speed_hz, master->max_speed_hz); in ep93xx_spi_calc_divisors() 149 static int ep93xx_spi_chip_setup(struct spi_master *master, in ep93xx_spi_chip_setup() argument 153 struct ep93xx_spi *espi = spi_master_get_devdata(master); in ep93xx_spi_chip_setup() 160 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 …]
|
| /kernel/linux/linux-4.19/drivers/base/regmap/ |
| D | regmap-w1.c | 34 mutex_lock(&sl->master->bus_mutex); in w1_reg_a8_v8_read() 36 w1_write_8(sl->master, W1_CMD_READ_DATA); in w1_reg_a8_v8_read() 37 w1_write_8(sl->master, reg); in w1_reg_a8_v8_read() 38 *val = w1_read_8(sl->master); in w1_reg_a8_v8_read() 42 mutex_unlock(&sl->master->bus_mutex); in w1_reg_a8_v8_read() 56 mutex_lock(&sl->master->bus_mutex); in w1_reg_a8_v8_write() 58 w1_write_8(sl->master, W1_CMD_WRITE_DATA); in w1_reg_a8_v8_write() 59 w1_write_8(sl->master, reg); in w1_reg_a8_v8_write() 60 w1_write_8(sl->master, val); in w1_reg_a8_v8_write() 64 mutex_unlock(&sl->master->bus_mutex); in w1_reg_a8_v8_write() [all …]
|