Home
last modified time | relevance | path

Searched refs:reg_read (Results 1 – 25 of 139) sorted by relevance

123456

/Linux-v4.19/arch/x86/pci/
Dce4100.c77 static void reg_read(struct sim_dev_reg *reg, u32 *value) in reg_read() function
97 reg_read(reg, value); in ehci_reg_read()
110 reg_read(reg, value); in sata_revid_read()
120 DEFINE_REG(2, 0, 0x10, (16*MB), reg_init, reg_read, reg_write)
121 DEFINE_REG(2, 0, 0x14, (256), reg_init, reg_read, reg_write)
122 DEFINE_REG(2, 1, 0x10, (64*KB), reg_init, reg_read, reg_write)
123 DEFINE_REG(3, 0, 0x10, (64*KB), reg_init, reg_read, reg_write)
124 DEFINE_REG(4, 0, 0x10, (128*KB), reg_init, reg_read, reg_write)
125 DEFINE_REG(4, 1, 0x10, (128*KB), reg_init, reg_read, reg_write)
126 DEFINE_REG(6, 0, 0x10, (512*KB), reg_init, reg_read, reg_write)
[all …]
/Linux-v4.19/drivers/base/regmap/
Dregmap-mmio.c37 unsigned int (*reg_read)(struct regmap_mmio_context *ctx, member
195 *val = ctx->reg_read(ctx, reg); in regmap_mmio_read()
218 .reg_read = regmap_mmio_read,
262 ctx->reg_read = regmap_mmio_read8; in regmap_mmio_gen_context()
266 ctx->reg_read = regmap_mmio_read16le; in regmap_mmio_gen_context()
270 ctx->reg_read = regmap_mmio_read32le; in regmap_mmio_gen_context()
275 ctx->reg_read = regmap_mmio_read64le; in regmap_mmio_gen_context()
290 ctx->reg_read = regmap_mmio_read8; in regmap_mmio_gen_context()
294 ctx->reg_read = regmap_mmio_read16be; in regmap_mmio_gen_context()
298 ctx->reg_read = regmap_mmio_read32be; in regmap_mmio_gen_context()
Dregmap-w1.c180 .reg_read = w1_reg_a8_v8_read,
185 .reg_read = w1_reg_a8_v16_read,
190 .reg_read = w1_reg_a16_v16_read,
Dregmap-i2c.c52 .reg_read = regmap_smbus_byte_reg_read,
88 .reg_read = regmap_smbus_word_reg_read,
124 .reg_read = regmap_smbus_word_read_swapped,
/Linux-v4.19/drivers/firewire/
Dinit_ohci1394_dma.c58 static inline u32 reg_read(const struct ohci *ohci, int offset) in reg_read() function
74 if (reg_read(ohci, OHCI1394_PhyControl) & 0x80000000) in get_phy_reg()
78 r = reg_read(ohci, OHCI1394_PhyControl); in get_phy_reg()
91 if (!(reg_read(ohci, OHCI1394_PhyControl) & 0x00004000)) in set_phy_reg()
105 if (!(reg_read(ohci, OHCI1394_HCControlSet) in init_ohci1394_soft_reset()
123 bus_options = reg_read(ohci, OHCI1394_BusOptions); in init_ohci1394_initialize()
196 events = reg_read(ohci, OHCI1394_IntEventSet); in init_ohci1394_wait_for_busresets()
Dohci.c545 static inline u32 reg_read(const struct fw_ohci *ohci, int offset) in reg_read() function
553 reg_read(ohci, OHCI1394_Version); in flush_writes()
569 val = reg_read(ohci, OHCI1394_PhyControl); in read_phy_reg()
596 val = reg_read(ohci, OHCI1394_PhyControl); in write_phy_reg()
707 if (reg_read(ohci, CONTROL_CLEAR(ctx->regs)) & CONTEXT_RUN) { in ar_context_abort()
1281 reg = reg_read(ohci, CONTROL_SET(ctx->regs)); in context_stop()
1588 if (reg_read(ohci, OHCI1394_CSRControl) & 0x80000000) { in handle_local_lock()
1589 lock_old = cpu_to_be32(reg_read(ohci, in handle_local_lock()
1670 ctl = reg_read(ohci, CONTROL_SET(regs)); in detect_dead_context()
1733 c2 = reg_read(ohci, OHCI1394_IsochronousCycleTimer); in get_cycle_time()
[all …]
/Linux-v4.19/sound/i2c/other/
Dak4117.c47 static inline unsigned char reg_read(struct ak4117 *ak4117, unsigned char reg) in reg_read() function
59 …printk(KERN_DEBUG "reg[%02x] = %02x (%02x)\n", i, reg_read(ak4117, i), i < sizeof(ak4117->regmap) …
100 chip->rcs0 = reg_read(chip, AK4117_REG_RCS0) & ~(AK4117_QINT | AK4117_CINT | AK4117_STC); in snd_ak4117_create()
101 chip->rcs1 = reg_read(chip, AK4117_REG_RCS1); in snd_ak4117_create()
102 chip->rcs2 = reg_read(chip, AK4117_REG_RCS2); in snd_ak4117_create()
190 ucontrol->value.integer.value[0] = ((reg_read(chip, reg) & (1 << bit)) ? 1 : 0) ^ inv; in snd_ak4117_in_bit_get()
244 ucontrol->value.integer.value[0] = external_rate(reg_read(chip, AK4117_REG_RCS1)); in snd_ak4117_rate_get()
262 ucontrol->value.iec958.status[i] = reg_read(chip, AK4117_REG_RXCSB0 + i); in snd_ak4117_spdif_get()
297 tmp = reg_read(chip, AK4117_REG_Pc0) | (reg_read(chip, AK4117_REG_Pc1) << 8); in snd_ak4117_spdif_pget()
299 tmp = reg_read(chip, AK4117_REG_Pd0) | (reg_read(chip, AK4117_REG_Pd1) << 8); in snd_ak4117_spdif_pget()
[all …]
Dak4113.c52 static inline unsigned char reg_read(struct ak4113 *ak4113, unsigned char reg) in reg_read() function
98 chip->rcs0 = reg_read(chip, AK4113_REG_RCS0) & ~(AK4113_QINT | in snd_ak4113_create()
100 chip->rcs1 = reg_read(chip, AK4113_REG_RCS1); in snd_ak4113_create()
101 chip->rcs2 = reg_read(chip, AK4113_REG_RCS2); in snd_ak4113_create()
222 ((reg_read(chip, reg) & (1 << bit)) ? 1 : 0) ^ inv; in snd_ak4113_in_bit_get()
279 ucontrol->value.integer.value[0] = external_rate(reg_read(chip, in snd_ak4113_rate_get()
299 ucontrol->value.iec958.status[i] = reg_read(chip, in snd_ak4113_spdif_get()
337 tmp = reg_read(chip, AK4113_REG_Pc0) | in snd_ak4113_spdif_pget()
338 (reg_read(chip, AK4113_REG_Pc1) << 8); in snd_ak4113_spdif_pget()
340 tmp = reg_read(chip, AK4113_REG_Pd0) | in snd_ak4113_spdif_pget()
[all …]
Dak4114.c51 static inline unsigned char reg_read(struct ak4114 *ak4114, unsigned char reg) in reg_read() function
63 …printk(KERN_DEBUG "reg[%02x] = %02x (%02x)\n", i, reg_read(ak4114, i), i < ARRAY_SIZE(ak4114->regm…
112 chip->rcs0 = reg_read(chip, AK4114_REG_RCS0) & ~(AK4114_QINT | AK4114_CINT); in snd_ak4114_create()
113 chip->rcs1 = reg_read(chip, AK4114_REG_RCS1); in snd_ak4114_create()
216 ucontrol->value.integer.value[0] = ((reg_read(chip, reg) & (1 << bit)) ? 1 : 0) ^ inv; in snd_ak4114_in_bit_get()
235 ucontrol->value.integer.value[0] = external_rate(reg_read(chip, AK4114_REG_RCS1)); in snd_ak4114_rate_get()
253 ucontrol->value.iec958.status[i] = reg_read(chip, AK4114_REG_RXCSB0 + i); in snd_ak4114_spdif_get()
310 tmp = reg_read(chip, AK4114_REG_Pc0) | (reg_read(chip, AK4114_REG_Pc1) << 8); in snd_ak4114_spdif_pget()
312 tmp = reg_read(chip, AK4114_REG_Pd0) | (reg_read(chip, AK4114_REG_Pd1) << 8); in snd_ak4114_spdif_pget()
331 ucontrol->value.bytes.data[i] = reg_read(chip, AK4114_REG_QSUB_ADDR + i); in snd_ak4114_spdif_qget()
[all …]
/Linux-v4.19/drivers/media/pci/tw686x/
Dtw686x-core.c98 u32 dma_en = reg_read(dev, DMA_CHANNEL_ENABLE); in tw686x_disable_channel()
99 u32 dma_cmd = reg_read(dev, DMA_CMD); in tw686x_disable_channel()
117 u32 dma_en = reg_read(dev, DMA_CHANNEL_ENABLE); in tw686x_enable_channel()
118 u32 dma_cmd = reg_read(dev, DMA_CMD); in tw686x_enable_channel()
148 dma_en = reg_read(dev, DMA_CHANNEL_ENABLE); in tw686x_reset_channels()
149 dma_cmd = reg_read(dev, DMA_CMD); in tw686x_reset_channels()
176 int_status = reg_read(dev, INT_STATUS); /* cleared on read */ in tw686x_irq()
177 fifo_status = reg_read(dev, VIDEO_FIFO_STATUS); in tw686x_irq()
191 dma_en = reg_read(dev, DMA_CHANNEL_ENABLE); in tw686x_irq()
203 pb_status = reg_read(dev, PB_STATUS); in tw686x_irq()
/Linux-v4.19/drivers/media/i2c/
Dak881x.c38 static int reg_read(struct i2c_client *client, const u8 reg) in reg_read() function
52 int ret = reg_read(client, reg); in reg_set()
73 reg->val = reg_read(client, reg->reg); in ak881x_g_register()
197 reg_read(client, AK881X_STATUS)); in ak881x_s_stream()
202 reg_read(client, AK881X_STATUS)); in ak881x_s_stream()
252 data = reg_read(client, AK881X_DEVICE_ID); in ak881x_probe()
264 ak881x->revision = reg_read(client, AK881X_DEVICE_REVISION); in ak881x_probe()
/Linux-v4.19/drivers/media/usb/gspca/
Dspca508.c1259 static int reg_read(struct gspca_dev *gspca_dev, in reg_read() function
1306 ret = reg_read(gspca_dev, 0x8803); in ssi_w()
1367 data1 = reg_read(gspca_dev, 0x8104); in sd_config()
1368 data2 = reg_read(gspca_dev, 0x8105); in sd_config()
1372 data1 = reg_read(gspca_dev, 0x8106); in sd_config()
1373 data2 = reg_read(gspca_dev, 0x8107); in sd_config()
1377 data1 = reg_read(gspca_dev, 0x8621); in sd_config()
/Linux-v4.19/drivers/media/i2c/soc_camera/
Dmt9v022.c173 static int reg_read(struct i2c_client *client, const u8 reg) in reg_read() function
189 ret = reg_read(client, reg); in reg_set()
200 ret = reg_read(client, reg); in reg_clear()
307 ret = reg_read(client, MT9V022_AEC_AGC_ENABLE); in mt9v022_set_selection()
496 reg->val = reg_read(client, reg->reg); in mt9v022_g_register()
541 data = reg_read(client, MT9V022_ANALOG_GAIN); in mt9v022_g_volatile_ctrl()
549 data = reg_read(client, MT9V022_TOTAL_SHUTTER_WIDTH); in mt9v022_g_volatile_ctrl()
557 data = reg_read(client, MT9V022_HORIZONTAL_BLANKING); in mt9v022_g_volatile_ctrl()
563 data = reg_read(client, MT9V022_VERTICAL_BLANKING); in mt9v022_g_volatile_ctrl()
620 reg_read(client, MT9V022_ANALOG_GAIN), gain_val); in mt9v022_s_ctrl()
[all …]
Dmt9m001.c110 static int reg_read(struct i2c_client *client, const u8 reg) in reg_read() function
126 ret = reg_read(client, reg); in reg_set()
137 ret = reg_read(client, reg); in reg_clear()
353 reg->val = reg_read(client, reg->reg); in mt9m001_g_register()
447 reg_read(client, MT9M001_GLOBAL_GAIN), data); in mt9m001_s_ctrl()
462 reg_read(client, MT9M001_SHUTTER_WIDTH), shutter); in mt9m001_s_ctrl()
499 data = reg_read(client, MT9M001_CHIP_VERSION); in mt9m001_video_probe()
/Linux-v4.19/drivers/media/tuners/
Dmxl301rf.c52 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-v4.19/drivers/media/platform/ti-vpe/
Dcal.c79 #define reg_read(dev, offset) ioread32(dev->base + offset) macro
82 #define reg_read_field(dev, offset, mask) get_field(reg_read(dev, offset), \
85 u32 val = reg_read(dev, offset); \
401 val = reg_read(ctx->dev->cm, CM_CTRL_CORE_CAMERRX_CONTROL); in camerarx_phy_enable()
427 val = reg_read(ctx->dev->cm, CM_CTRL_CORE_CAMERRX_CONTROL); in camerarx_phy_disable()
472 revision = reg_read(dev, CAL_HL_REVISION); in cal_get_hwinfo()
476 hwinfo = reg_read(dev, CAL_HL_HWINFO); in cal_get_hwinfo()
563 val = reg_read(ctx->dev, CAL_CSI2_TIMING(ctx->csi2_port)); in csi2_init()
573 reg_read(ctx->dev, CAL_CSI2_TIMING(ctx->csi2_port))); in csi2_init()
575 val = reg_read(ctx->dev, CAL_CSI2_COMPLEXIO_CFG(ctx->csi2_port)); in csi2_init()
[all …]
/Linux-v4.19/drivers/media/dvb-frontends/
Dtc90522.c66 static int reg_read(struct tc90522_state *state, u8 reg, u8 *val, u8 len) in reg_read() function
131 ret = reg_read(state, 0xc3, &reg, 1); in tc90522s_read_status()
146 if (reg_read(state, 0xc5, &reg, 1) < 0 || !(reg & 0x03)) in tc90522s_read_status()
159 ret = reg_read(state, 0x96, &reg, 1); in tc90522t_read_status()
170 ret = reg_read(state, 0x80, &reg, 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-v4.19/drivers/nvmem/
Dsunxi_sid.c180 econfig.reg_read = sun8i_sid_read_by_reg; in sunxi_sid_probe()
182 econfig.reg_read = sunxi_sid_read; in sunxi_sid_probe()
195 econfig.reg_read(sid, i, &randomness[i], 1); in sunxi_sid_probe()
/Linux-v4.19/drivers/media/pci/sta2x11/
Dsta2x11_vip.c224 static inline u32 reg_read(struct sta2x11_vip *vip, unsigned int reg) in reg_read() function
238 reg_write(vip, DVP_CTL, reg_read(vip, DVP_CTL) | DVP_CTL_ENA); in start_dma()
369 reg_write(vip, DVP_CTL, reg_read(vip, DVP_CTL) & ~DVP_CTL_ENA); in stop_streaming()
797 status = reg_read(vip, DVP_ITS); in vip_irq()
822 reg_write(vip, DVP_CTL, reg_read(vip, DVP_CTL) & ~DVP_CTL_ENA); in vip_irq()
837 reg_read(vip, DVP_ITS); in sta2x11_vip_init_register()
856 reg_read(vip, DVP_ITS); in sta2x11_vip_clear_register()
1211 vip->register_save_area[0] = reg_read(vip, DVP_CTL); in sta2x11_vip_suspend()
1213 vip->register_save_area[SAVE_COUNT] = reg_read(vip, DVP_ITM); in sta2x11_vip_suspend()
1216 vip->register_save_area[i] = reg_read(vip, 4 * i); in sta2x11_vip_suspend()
[all …]
/Linux-v4.19/drivers/i2c/busses/
Di2c-pasemi.c67 static inline int reg_read(struct pasemi_smbus *smbus, int reg) in reg_read() function
77 #define RXFIFO_RD(smbus) reg_read((smbus), REG_MRXFIFO)
83 status = reg_read(smbus, REG_SMSTA); in pasemi_smb_clear()
92 status = reg_read(smbus, REG_SMSTA); in pasemi_smb_waitready()
96 status = reg_read(smbus, REG_SMSTA); in pasemi_smb_waitready()
/Linux-v4.19/drivers/net/dsa/
Dmv88e6060.c21 static int reg_read(struct dsa_switch *ds, int addr, int reg) in reg_read() function
32 __ret = reg_read(ds, addr, reg); \
256 return reg_read(ds, addr, regnum); in mv88e6060_phy_read()
/Linux-v4.19/drivers/staging/media/mt9t031/
Dmt9t031.c91 static int reg_read(struct i2c_client *client, const u8 reg) in reg_read() function
107 ret = reg_read(client, reg); in reg_set()
118 ret = reg_read(client, reg); in reg_clear()
140 ret = reg_read(client, MT9T031_SHUTTER_WIDTH_UPPER); in get_shutter()
144 ret = reg_read(client, MT9T031_SHUTTER_WIDTH); in get_shutter()
419 reg->val = reg_read(client, reg->reg); in mt9t031_g_register()
515 reg_read(client, MT9T031_GLOBAL_GAIN), data); in mt9t031_s_ctrl()
645 data = reg_read(client, MT9T031_CHIP_VERSION); in mt9t031_video_probe()
/Linux-v4.19/arch/x86/kvm/
Demulate.c266 static ulong reg_read(struct x86_emulate_ctxt *ctxt, unsigned nr) in reg_read() function
284 reg_read(ctxt, nr); in reg_rmw()
556 return address_mask(ctxt, reg_read(ctxt, reg)); in register_address()
1259 unsigned bx = reg_read(ctxt, VCPU_REGS_RBX); in decode_modrm()
1260 unsigned bp = reg_read(ctxt, VCPU_REGS_RBP); in decode_modrm()
1261 unsigned si = reg_read(ctxt, VCPU_REGS_RSI); in decode_modrm()
1262 unsigned di = reg_read(ctxt, VCPU_REGS_RDI); in decode_modrm()
1319 modrm_ea += reg_read(ctxt, base_reg); in decode_modrm()
1327 modrm_ea += reg_read(ctxt, index_reg) << scale; in decode_modrm()
1334 modrm_ea += reg_read(ctxt, base_reg); in decode_modrm()
[all …]
/Linux-v4.19/sound/firewire/
Disight.c301 static int reg_read(struct isight *isight, int offset, __be32 *value) in reg_read() function
492 err = reg_read(isight, REG_GAIN, &gain); in isight_gain_get()
521 err = reg_read(isight, REG_MUTE, &mute); in isight_mute_get()
561 err = reg_read(isight, REG_GAIN_RAW_START, &value); in isight_create_mixer()
566 err = reg_read(isight, REG_GAIN_RAW_END, &value); in isight_create_mixer()
574 err = reg_read(isight, REG_GAIN_DB_START, &value); in isight_create_mixer()
580 err = reg_read(isight, REG_GAIN_DB_END, &value); in isight_create_mixer()
/Linux-v4.19/drivers/gpu/drm/stm/
Dltdc.c226 static inline u32 reg_read(void __iomem *base, u32 reg) in reg_read() function
238 reg_write(base, reg, reg_read(base, reg) | mask); in reg_set()
243 reg_write(base, reg, reg_read(base, reg) & ~mask); in reg_clear()
249 reg_write(base, reg, (reg_read(base, reg) & ~mask) | val); in reg_update_bits()
378 ldev->irq_status = reg_read(ldev->regs, LTDC_ISR); in ltdc_irq()
703 bpcr = reg_read(ldev->regs, LTDC_BPCR); in ltdc_plane_atomic_update()
975 lcr = reg_read(ldev->regs, LTDC_LCR); in ltdc_get_caps()
980 gc2r = reg_read(ldev->regs, LTDC_GC2R); in ltdc_get_caps()
983 ldev->caps.hw_version = reg_read(ldev->regs, LTDC_IDR); in ltdc_get_caps()

123456