/Linux-v6.6/arch/x86/pci/ |
D | ce4100.c | 61 static void reg_read(struct sim_dev_reg *reg, u32 *value) in reg_read() function 81 reg_read(reg, value); in ehci_reg_read() 94 reg_read(reg, value); in sata_revid_read() 104 DEFINE_REG(2, 0, 0x10, (16*MB), reg_init, reg_read, reg_write) 105 DEFINE_REG(2, 0, 0x14, (256), reg_init, reg_read, reg_write) 106 DEFINE_REG(2, 1, 0x10, (64*KB), reg_init, reg_read, reg_write) 107 DEFINE_REG(3, 0, 0x10, (64*KB), reg_init, reg_read, reg_write) 108 DEFINE_REG(4, 0, 0x10, (128*KB), reg_init, reg_read, reg_write) 109 DEFINE_REG(4, 1, 0x10, (128*KB), reg_init, reg_read, reg_write) 110 DEFINE_REG(6, 0, 0x10, (512*KB), reg_init, reg_read, reg_write) [all …]
|
/Linux-v6.6/drivers/base/regmap/ |
D | regmap-mmio.c | 27 unsigned int (*reg_read)(struct regmap_mmio_context *ctx, member 322 *val = ctx->reg_read(ctx, reg); in regmap_mmio_read() 400 .reg_read = regmap_mmio_read, 450 ctx->reg_read = regmap_mmio_ioread8; in regmap_mmio_gen_context() 453 ctx->reg_read = regmap_mmio_read8_relaxed; in regmap_mmio_gen_context() 456 ctx->reg_read = regmap_mmio_read8; in regmap_mmio_gen_context() 462 ctx->reg_read = regmap_mmio_ioread16le; in regmap_mmio_gen_context() 465 ctx->reg_read = regmap_mmio_read16le_relaxed; in regmap_mmio_gen_context() 468 ctx->reg_read = regmap_mmio_read16le; in regmap_mmio_gen_context() 474 ctx->reg_read = regmap_mmio_ioread32le; in regmap_mmio_gen_context() [all …]
|
D | regmap-fsi.c | 37 .reg_read = regmap_fsi32_reg_read, 62 .reg_read = regmap_fsi32le_reg_read, 91 .reg_read = regmap_fsi16_reg_read, 120 .reg_read = regmap_fsi16le_reg_read, 149 .reg_read = regmap_fsi8_reg_read,
|
D | regmap-w1.c | 176 .reg_read = w1_reg_a8_v8_read, 181 .reg_read = w1_reg_a8_v16_read, 186 .reg_read = w1_reg_a16_v16_read,
|
D | regmap-mdio.c | 42 .reg_read = regmap_mdio_c22_read, 82 .reg_read = regmap_mdio_c45_read,
|
/Linux-v6.6/sound/i2c/other/ |
D | ak4117.c | 32 static inline unsigned char reg_read(struct ak4117 *ak4117, unsigned char reg) in reg_read() function 44 …printk(KERN_DEBUG "reg[%02x] = %02x (%02x)\n", i, reg_read(ak4117, i), i < sizeof(ak4117->regmap) … 85 chip->rcs0 = reg_read(chip, AK4117_REG_RCS0) & ~(AK4117_QINT | AK4117_CINT | AK4117_STC); in snd_ak4117_create() 86 chip->rcs1 = reg_read(chip, AK4117_REG_RCS1); in snd_ak4117_create() 87 chip->rcs2 = reg_read(chip, AK4117_REG_RCS2); in snd_ak4117_create() 176 ucontrol->value.integer.value[0] = ((reg_read(chip, reg) & (1 << bit)) ? 1 : 0) ^ inv; in snd_ak4117_in_bit_get() 230 ucontrol->value.integer.value[0] = external_rate(reg_read(chip, AK4117_REG_RCS1)); in snd_ak4117_rate_get() 248 ucontrol->value.iec958.status[i] = reg_read(chip, AK4117_REG_RXCSB0 + i); in snd_ak4117_spdif_get() 283 tmp = reg_read(chip, AK4117_REG_Pc0) | (reg_read(chip, AK4117_REG_Pc1) << 8); in snd_ak4117_spdif_pget() 285 tmp = reg_read(chip, AK4117_REG_Pd0) | (reg_read(chip, AK4117_REG_Pd1) << 8); in snd_ak4117_spdif_pget() [all …]
|
D | ak4113.c | 37 static inline unsigned char reg_read(struct ak4113 *ak4113, unsigned char reg) in reg_read() function 83 chip->rcs0 = reg_read(chip, AK4113_REG_RCS0) & ~(AK4113_QINT | in snd_ak4113_create() 85 chip->rcs1 = reg_read(chip, AK4113_REG_RCS1); in snd_ak4113_create() 86 chip->rcs2 = reg_read(chip, AK4113_REG_RCS2); in snd_ak4113_create() 207 ((reg_read(chip, reg) & (1 << bit)) ? 1 : 0) ^ inv; in snd_ak4113_in_bit_get() 264 ucontrol->value.integer.value[0] = external_rate(reg_read(chip, in snd_ak4113_rate_get() 284 ucontrol->value.iec958.status[i] = reg_read(chip, in snd_ak4113_spdif_get() 322 tmp = reg_read(chip, AK4113_REG_Pc0) | in snd_ak4113_spdif_pget() 323 (reg_read(chip, AK4113_REG_Pc1) << 8); in snd_ak4113_spdif_pget() 325 tmp = reg_read(chip, AK4113_REG_Pd0) | in snd_ak4113_spdif_pget() [all …]
|
D | ak4114.c | 36 static inline unsigned char reg_read(struct ak4114 *ak4114, unsigned char reg) in reg_read() function 48 …printk(KERN_DEBUG "reg[%02x] = %02x (%02x)\n", i, reg_read(ak4114, i), i < ARRAY_SIZE(ak4114->regm… 97 chip->rcs0 = reg_read(chip, AK4114_REG_RCS0) & ~(AK4114_QINT | AK4114_CINT); in snd_ak4114_create() 98 chip->rcs1 = reg_read(chip, AK4114_REG_RCS1); in snd_ak4114_create() 202 ucontrol->value.integer.value[0] = ((reg_read(chip, reg) & (1 << bit)) ? 1 : 0) ^ inv; in snd_ak4114_in_bit_get() 221 ucontrol->value.integer.value[0] = external_rate(reg_read(chip, AK4114_REG_RCS1)); in snd_ak4114_rate_get() 239 ucontrol->value.iec958.status[i] = reg_read(chip, AK4114_REG_RXCSB0 + i); in snd_ak4114_spdif_get() 296 tmp = reg_read(chip, AK4114_REG_Pc0) | (reg_read(chip, AK4114_REG_Pc1) << 8); in snd_ak4114_spdif_pget() 298 tmp = reg_read(chip, AK4114_REG_Pd0) | (reg_read(chip, AK4114_REG_Pd1) << 8); in snd_ak4114_spdif_pget() 317 ucontrol->value.bytes.data[i] = reg_read(chip, AK4114_REG_QSUB_ADDR + i); in snd_ak4114_spdif_qget() [all …]
|
/Linux-v6.6/drivers/firewire/ |
D | init_ohci1394_dma.c | 45 static inline u32 reg_read(const struct ohci *ohci, int offset) in reg_read() function 61 if (reg_read(ohci, OHCI1394_PhyControl) & 0x80000000) in get_phy_reg() 65 r = reg_read(ohci, OHCI1394_PhyControl); in get_phy_reg() 78 if (!(reg_read(ohci, OHCI1394_PhyControl) & 0x00004000)) in set_phy_reg() 92 if (!(reg_read(ohci, OHCI1394_HCControlSet) in init_ohci1394_soft_reset() 110 bus_options = reg_read(ohci, OHCI1394_BusOptions); in init_ohci1394_initialize() 183 events = reg_read(ohci, OHCI1394_IntEventSet); in init_ohci1394_wait_for_busresets()
|
D | ohci.c | 532 static inline u32 reg_read(const struct fw_ohci *ohci, int offset) in reg_read() function 540 reg_read(ohci, OHCI1394_Version); in flush_writes() 556 val = reg_read(ohci, OHCI1394_PhyControl); in read_phy_reg() 583 val = reg_read(ohci, OHCI1394_PhyControl); in write_phy_reg() 696 if (reg_read(ohci, CONTROL_CLEAR(ctx->regs)) & CONTEXT_RUN) { in ar_context_abort() 1266 reg = reg_read(ohci, CONTROL_SET(ctx->regs)); in context_stop() 1573 if (reg_read(ohci, OHCI1394_CSRControl) & 0x80000000) { in handle_local_lock() 1574 lock_old = cpu_to_be32(reg_read(ohci, in handle_local_lock() 1664 ctl = reg_read(ohci, CONTROL_SET(regs)); in detect_dead_context() 1727 c2 = reg_read(ohci, OHCI1394_IsochronousCycleTimer); in get_cycle_time() [all …]
|
/Linux-v6.6/drivers/media/pci/tw686x/ |
D | tw686x-core.c | 95 u32 dma_en = reg_read(dev, DMA_CHANNEL_ENABLE); in tw686x_disable_channel() 96 u32 dma_cmd = reg_read(dev, DMA_CMD); in tw686x_disable_channel() 114 u32 dma_en = reg_read(dev, DMA_CHANNEL_ENABLE); in tw686x_enable_channel() 115 u32 dma_cmd = reg_read(dev, DMA_CMD); in tw686x_enable_channel() 145 dma_en = reg_read(dev, DMA_CHANNEL_ENABLE); in tw686x_reset_channels() 146 dma_cmd = reg_read(dev, DMA_CMD); in tw686x_reset_channels() 173 int_status = reg_read(dev, INT_STATUS); /* cleared on read */ in tw686x_irq() 174 fifo_status = reg_read(dev, VIDEO_FIFO_STATUS); in tw686x_irq() 188 dma_en = reg_read(dev, DMA_CHANNEL_ENABLE); in tw686x_irq() 200 pb_status = reg_read(dev, PB_STATUS); in tw686x_irq()
|
/Linux-v6.6/drivers/i3c/master/mipi-i3c-hci/ |
D | core.c | 30 #define reg_read(r) readl(hci->base_regs + (r)) macro 32 #define reg_set(r, v) reg_write(r, reg_read(r) | (v)) 33 #define reg_clear(r, v) reg_write(r, reg_read(r) & ~(v)) 156 DBG("HC_CONTROL = %#x", reg_read(HC_CONTROL)); in i3c_hci_bus_init() 176 reg_write(HC_CONTROL, reg_read(HC_CONTROL)); in mipi_i3c_hci_resume() 549 val = reg_read(INTR_STATUS); in i3c_hci_irq_handler() 589 regval = reg_read(HCI_VERSION); in i3c_hci_init() 606 hci->caps = reg_read(HC_CAPABILITIES); in i3c_hci_init() 609 regval = reg_read(DAT_SECTION); in i3c_hci_init() 617 regval = reg_read(DCT_SECTION); in i3c_hci_init() [all …]
|
/Linux-v6.6/drivers/media/i2c/ |
D | ak881x.c | 35 static int reg_read(struct i2c_client *client, const u8 reg) in reg_read() function 49 int ret = reg_read(client, reg); in reg_set() 70 reg->val = reg_read(client, reg->reg); in ak881x_g_register() 193 reg_read(client, AK881X_STATUS)); in ak881x_s_stream() 198 reg_read(client, AK881X_STATUS)); in ak881x_s_stream() 247 data = reg_read(client, AK881X_DEVICE_ID); in ak881x_probe() 259 ak881x->revision = reg_read(client, AK881X_DEVICE_REVISION); in ak881x_probe()
|
/Linux-v6.6/drivers/media/usb/gspca/ |
D | spca508.c | 1250 static int reg_read(struct gspca_dev *gspca_dev, in reg_read() function 1297 ret = reg_read(gspca_dev, 0x8803); in ssi_w() 1358 data1 = reg_read(gspca_dev, 0x8104); in sd_config() 1359 data2 = reg_read(gspca_dev, 0x8105); in sd_config() 1363 data1 = reg_read(gspca_dev, 0x8106); in sd_config() 1364 data2 = reg_read(gspca_dev, 0x8107); in sd_config() 1368 data1 = reg_read(gspca_dev, 0x8621); in sd_config()
|
/Linux-v6.6/drivers/soundwire/ |
D | qcom.c | 208 int (*reg_read)(struct qcom_swrm_ctrl *ctrl, int reg, u32 *val); member 359 ctrl->reg_read(ctrl, ctrl->reg_layout[SWRM_REG_CMD_FIFO_STATUS], in swrm_wait_for_rd_fifo_avail() 385 ctrl->reg_read(ctrl, ctrl->reg_layout[SWRM_REG_CMD_FIFO_STATUS], in swrm_wait_for_wr_fifo_avail() 410 ctrl->reg_read(ctrl, ctrl->reg_layout[SWRM_REG_CMD_FIFO_STATUS], &value); in swrm_wait_for_wr_fifo_done() 416 ctrl->reg_read(ctrl, ctrl->reg_layout[SWRM_REG_CMD_FIFO_STATUS], &value); in swrm_wait_for_wr_fifo_done() 502 ctrl->reg_read(ctrl, ctrl->reg_layout[SWRM_REG_CMD_FIFO_RD_FIFO_ADDR], in qcom_swrm_cmd_fifo_rd_cmd() 536 ctrl->reg_read(ctrl, SWRM_MCP_SLV_STATUS, &val); in qcom_swrm_get_alert_slave_dev_num() 555 ctrl->reg_read(ctrl, SWRM_MCP_SLV_STATUS, &val); in qcom_swrm_get_device_status() 573 ctrl->reg_read(ctrl, SWRM_MCP_SLV_STATUS, &status); in qcom_swrm_set_slave_dev_num() 603 ctrl->reg_read(ctrl, SWRM_ENUMERATOR_SLAVE_DEV_ID_1(i), &val1); in qcom_swrm_enumerate() [all …]
|
/Linux-v6.6/drivers/media/platform/st/stm32/dma2d/ |
D | dma2d-hw.c | 19 static inline u32 reg_read(void __iomem *base, u32 reg) in reg_read() function 32 reg_write(base, reg, (reg_read(base, reg) & ~mask) | val); in reg_update_bits() 42 return reg_read(d->regs, DMA2D_ISR_REG); in dma2d_get_int() 47 u32 isr_val = reg_read(d->regs, DMA2D_ISR_REG); in dma2d_clear_int()
|
/Linux-v6.6/drivers/nvmem/ |
D | imx-ocotp-ele.c | 34 nvmem_reg_read_t reg_read; member 129 priv->config.reg_read = priv->data->reg_read; in imx_ele_ocotp_probe() 145 .reg_read = imx_ocotp_reg_read,
|
D | rockchip-otp.c | 74 nvmem_reg_read_t reg_read; member 239 if (!otp->data || !otp->data->reg_read) in rockchip_otp_read() 248 ret = otp->data->reg_read(context, offset, val, bytes); in rockchip_otp_read() 261 .reg_read = rockchip_otp_read, 272 .reg_read = px30_otp_read, 283 .reg_read = rk3588_otp_read,
|
D | sunxi_sid.c | 162 nvmem_cfg->reg_read = sun8i_sid_read_by_reg; in sunxi_sid_probe() 164 nvmem_cfg->reg_read = sunxi_sid_read; in sunxi_sid_probe() 174 nvmem_cfg->reg_read(sid, 0, randomness, size); in sunxi_sid_probe()
|
/Linux-v6.6/drivers/i2c/busses/ |
D | i2c-pasemi-core.c | 51 static inline int reg_read(struct pasemi_smbus *smbus, int reg) in reg_read() function 60 #define RXFIFO_RD(smbus) reg_read((smbus), REG_MRXFIFO) 77 status = reg_read(smbus, REG_SMSTA); in pasemi_smb_clear() 91 status = reg_read(smbus, REG_SMSTA); in pasemi_smb_waitready() 93 status = reg_read(smbus, REG_SMSTA); in pasemi_smb_waitready() 96 status = reg_read(smbus, REG_SMSTA); in pasemi_smb_waitready() 360 smbus->hw_rev = reg_read(smbus, REG_REV); in pasemi_i2c_common_probe()
|
/Linux-v6.6/drivers/media/tuners/ |
D | mxl301rf.c | 52 static int reg_read(struct mxl301rf_state *state, u8 reg, u8 *val) in reg_read() function 88 ret = reg_read(state, 0x18, &rf_in1); in mxl301rf_get_rf_strength() 90 ret = reg_read(state, 0x19, &rf_in2); in mxl301rf_get_rf_strength() 92 ret = reg_read(state, 0xd6, &rf_off1); in mxl301rf_get_rf_strength() 94 ret = reg_read(state, 0xd7, &rf_off2); in mxl301rf_get_rf_strength()
|
/Linux-v6.6/drivers/media/dvb-frontends/ |
D | tc90522.c | 66 static int reg_read(struct tc90522_state *state, u8 reg, u8 *val, u8 len) in reg_read() function 131 ret = reg_read(state, 0xc3, ®, 1); in tc90522s_read_status() 146 if (reg_read(state, 0xc5, ®, 1) < 0 || !(reg & 0x03)) in tc90522s_read_status() 159 ret = reg_read(state, 0x96, ®, 1); in tc90522t_read_status() 170 ret = reg_read(state, 0x80, ®, 1); in tc90522t_read_status() 210 ret = reg_read(state, 0xe6, val, 5); in tc90522s_get_frontend() 254 ret = reg_read(state, 0xbc, val, 2); in tc90522s_get_frontend() 285 ret = reg_read(state, 0xeb, val, 10); in tc90522s_get_frontend() 344 ret = reg_read(state, 0xb0, val, 1); in tc90522t_get_frontend() 351 ret = reg_read(state, 0xb2, val, 6); in tc90522t_get_frontend() [all …]
|
/Linux-v6.6/drivers/net/dsa/ |
D | mv88e6060.c | 17 static int reg_read(struct mv88e6060_priv *priv, int addr, int reg) in reg_read() function 60 ret = reg_read(priv, REG_PORT(i), PORT_CONTROL); in mv88e6060_switch_reset() 82 ret = reg_read(priv, REG_GLOBAL, GLOBAL_STATUS); in mv88e6060_switch_reset() 234 return reg_read(priv, addr, regnum); in mv88e6060_phy_read() 258 ret = reg_read(priv, addr, PORT_STATUS); in mv88e6060_phylink_get_caps()
|
/Linux-v6.6/arch/x86/kvm/ |
D | emulate.c | 545 return address_mask(ctxt, reg_read(ctxt, reg)); in register_address() 1217 unsigned bx = reg_read(ctxt, VCPU_REGS_RBX); in decode_modrm() 1218 unsigned bp = reg_read(ctxt, VCPU_REGS_RBP); in decode_modrm() 1219 unsigned si = reg_read(ctxt, VCPU_REGS_RSI); in decode_modrm() 1220 unsigned di = reg_read(ctxt, VCPU_REGS_RDI); in decode_modrm() 1277 modrm_ea += reg_read(ctxt, base_reg); in decode_modrm() 1285 modrm_ea += reg_read(ctxt, index_reg) << scale; in decode_modrm() 1292 modrm_ea += reg_read(ctxt, base_reg); in decode_modrm() 1433 address_mask(ctxt, reg_read(ctxt, VCPU_REGS_RCX)) : 1; in pio_in_emulated() 1435 offset_in_page(reg_read(ctxt, VCPU_REGS_RDI)) : in pio_in_emulated() [all …]
|
/Linux-v6.6/drivers/media/pci/sta2x11/ |
D | sta2x11_vip.c | 209 static inline u32 reg_read(struct sta2x11_vip *vip, unsigned int reg) in reg_read() function 223 reg_write(vip, DVP_CTL, reg_read(vip, DVP_CTL) | DVP_CTL_ENA); in start_dma() 354 reg_write(vip, DVP_CTL, reg_read(vip, DVP_CTL) & ~DVP_CTL_ENA); in stop_streaming() 774 status = reg_read(vip, DVP_ITS); in vip_irq() 799 reg_write(vip, DVP_CTL, reg_read(vip, DVP_CTL) & ~DVP_CTL_ENA); in vip_irq() 814 reg_read(vip, DVP_ITS); in sta2x11_vip_init_register() 833 reg_read(vip, DVP_ITS); in sta2x11_vip_clear_register() 1186 vip->register_save_area[0] = reg_read(vip, DVP_CTL); in sta2x11_vip_suspend() 1188 vip->register_save_area[SAVE_COUNT] = reg_read(vip, DVP_ITM); in sta2x11_vip_suspend() 1191 vip->register_save_area[i] = reg_read(vip, 4 * i); in sta2x11_vip_suspend() [all …]
|