/linux/arch/x86/pci/ |
A 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() 105 DEFINE_REG(2, 0, 0x14, (256), reg_init, reg_read, reg_write) 113 DEFINE_REG(8, 0, 0x10, (1*MB), reg_init, reg_read, reg_write) 118 DEFINE_REG(10, 0, 0x10, (256), reg_init, reg_read, reg_write) 139 DEFINE_REG(14, 0, 0x10, 0, reg_init, reg_read, reg_write) 140 DEFINE_REG(14, 0, 0x14, 0, reg_init, reg_read, reg_write) 141 DEFINE_REG(14, 0, 0x18, 0, reg_init, reg_read, reg_write) 142 DEFINE_REG(14, 0, 0x1C, 0, reg_init, reg_read, reg_write) [all …]
|
/linux/drivers/base/regmap/ |
A D | regmap-mmio.c | 236 *val = ctx->reg_read(ctx, reg); in regmap_mmio_read() 259 .reg_read = regmap_mmio_read, 305 ctx->reg_read = regmap_mmio_read8_relaxed; in regmap_mmio_gen_context() 308 ctx->reg_read = regmap_mmio_read8; in regmap_mmio_gen_context() 314 ctx->reg_read = regmap_mmio_read16le_relaxed; in regmap_mmio_gen_context() 317 ctx->reg_read = regmap_mmio_read16le; in regmap_mmio_gen_context() 326 ctx->reg_read = regmap_mmio_read32le; in regmap_mmio_gen_context() 336 ctx->reg_read = regmap_mmio_read64le; in regmap_mmio_gen_context() 352 ctx->reg_read = regmap_mmio_read8; in regmap_mmio_gen_context() 356 ctx->reg_read = regmap_mmio_read16be; in regmap_mmio_gen_context() [all …]
|
A 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,
|
A D | regmap-mdio.c | 52 .reg_read = regmap_mdio_c22_read, 77 .reg_read = regmap_mdio_c45_read,
|
/linux/sound/i2c/other/ |
A D | ak4117.c | 32 static inline unsigned char reg_read(struct ak4117 *ak4117, unsigned char reg) in reg_read() function 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() 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() 304 ucontrol->value.bytes.data[i] = reg_read(chip, AK4117_REG_QSUB_ADDR + i); in snd_ak4117_spdif_qget() 438 rcs1 = reg_read(ak4117, AK4117_REG_RCS1); in snd_ak4117_external_rate() 450 rcs1 = reg_read(ak4117, AK4117_REG_RCS1); in snd_ak4117_check_rate_and_errors() 453 rcs0 = reg_read(ak4117, AK4117_REG_RCS0); in snd_ak4117_check_rate_and_errors() [all …]
|
A D | ak4113.c | 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() 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() 326 (reg_read(chip, AK4113_REG_Pd1) << 8); in snd_ak4113_spdif_pget() 473 val = reg_read(ak4113, reg); in snd_ak4113_proc_regs_read() 516 rcs1 = reg_read(ak4113, AK4113_REG_RCS1); in snd_ak4113_external_rate() 530 rcs1 = reg_read(ak4113, AK4113_REG_RCS1); in snd_ak4113_check_rate_and_errors() 533 rcs0 = reg_read(ak4113, AK4113_REG_RCS0); in snd_ak4113_check_rate_and_errors() [all …]
|
A D | ak4114.c | 36 static inline unsigned char reg_read(struct ak4114 *ak4114, unsigned char reg) in reg_read() function 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() 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() 447 val = reg_read(ak4114, reg); in snd_ak4114_proc_regs_read() 549 rcs1 = reg_read(ak4114, AK4114_REG_RCS1); in snd_ak4114_external_rate() 562 rcs1 = reg_read(ak4114, AK4114_REG_RCS1); in snd_ak4114_check_rate_and_errors() [all …]
|
/linux/drivers/firewire/ |
A 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()
|
A D | ohci.c | 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() 1572 lock_old = cpu_to_be32(reg_read(ohci, in handle_local_lock() 1653 ctl = reg_read(ohci, CONTROL_SET(regs)); in detect_dead_context() 1835 reg = reg_read(ohci, OHCI1394_NodeID); in find_and_insert_self_id() 1883 reg = reg_read(ohci, OHCI1394_NodeID); in bus_reset_work() 1902 reg = reg_read(ohci, OHCI1394_SelfIDCount); in bus_reset_work() 3688 reg_read(ohci, OHCI1394_GUIDLo); in pci_probe() 3827 if (!reg_read(ohci, OHCI1394_GUIDLo) && in pci_resume() [all …]
|
/linux/drivers/i3c/master/mipi-i3c-hci/ |
A D | core.c | 30 #define reg_read(r) readl(hci->base_regs + (r)) macro 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() 630 regval = reg_read(PIO_SECTION); in i3c_hci_init() 635 regval = reg_read(EXT_CAPS_SECTION); in i3c_hci_init() 664 regval = reg_read(HC_CONTROL); in i3c_hci_init() 669 regval = reg_read(HC_CONTROL); in i3c_hci_init() [all …]
|
/linux/drivers/media/pci/tw686x/ |
A 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/drivers/soundwire/ |
A D | qcom.c | 397 ctrl->reg_read(ctrl, SWRM_MCP_SLV_STATUS, &val); in qcom_swrm_get_alert_slave_dev_num() 416 ctrl->reg_read(ctrl, SWRM_MCP_SLV_STATUS, &val); in qcom_swrm_get_device_status() 629 ctrl->reg_read(ctrl, SWRM_MCP_CFG_ADDR, &val); in qcom_swrm_init() 656 ctrl->reg_read(ctrl, SWRM_COMP_PARAMS, &val); in qcom_swrm_init() 703 ctrl->reg_read(ctrl, reg, &val); in qcom_swrm_pre_bank_switch() 789 ctrl->reg_read(ctrl, reg, &val); in qcom_swrm_port_enable() 1113 ctrl->reg_read(ctrl, SWRM_COMP_PARAMS, &val); in qcom_swrm_get_port_config() 1207 swrm->reg_read(swrm, reg, ®_val); in swrm_reg_show() 1238 ctrl->reg_read = qcom_swrm_ahb_reg_read; 1244 ctrl->reg_read = qcom_swrm_cpu_reg_read; [all …]
|
/linux/drivers/media/i2c/ |
A 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() 248 data = reg_read(client, AK881X_DEVICE_ID); in ak881x_probe() 260 ak881x->revision = reg_read(client, AK881X_DEVICE_REVISION); in ak881x_probe()
|
/linux/drivers/media/usb/gspca/ |
A 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/drivers/media/dvb-frontends/ |
A D | tc90522.c | 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() 412 ret = reg_read(state, 0x8b, val, 3); in tc90522t_get_frontend() [all …]
|
/linux/drivers/media/tuners/ |
A 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/drivers/i2c/busses/ |
A D | i2c-pasemi-core.c | 50 static inline int reg_read(struct pasemi_smbus *smbus, int reg) in reg_read() function 59 #define RXFIFO_RD(smbus) reg_read((smbus), REG_MRXFIFO) 75 status = reg_read(smbus, REG_SMSTA); in pasemi_smb_clear() 84 status = reg_read(smbus, REG_SMSTA); in pasemi_smb_waitready() 88 status = reg_read(smbus, REG_SMSTA); in pasemi_smb_waitready() 344 smbus->hw_rev = reg_read(smbus, REG_REV); in pasemi_i2c_common_probe()
|
/linux/drivers/net/dsa/ |
A 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() 231 return reg_read(priv, addr, regnum); in mv88e6060_phy_read()
|
/linux/drivers/media/pci/sta2x11/ |
A D | sta2x11_vip.c | 208 static inline u32 reg_read(struct sta2x11_vip *vip, unsigned int reg) in reg_read() function 222 reg_write(vip, DVP_CTL, reg_read(vip, DVP_CTL) | DVP_CTL_ENA); in start_dma() 353 reg_write(vip, DVP_CTL, reg_read(vip, DVP_CTL) & ~DVP_CTL_ENA); in stop_streaming() 777 status = reg_read(vip, DVP_ITS); in vip_irq() 802 reg_write(vip, DVP_CTL, reg_read(vip, DVP_CTL) & ~DVP_CTL_ENA); in vip_irq() 817 reg_read(vip, DVP_ITS); in sta2x11_vip_init_register() 836 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 …]
|
/linux/drivers/gpu/drm/stm/ |
A D | ltdc.c | 242 static inline u32 reg_read(void __iomem *base, u32 reg) in reg_read() function 254 reg_write(base, reg, reg_read(base, reg) | mask); in reg_set() 259 reg_write(base, reg, reg_read(base, reg) & ~mask); in reg_clear() 265 reg_write(base, reg, (reg_read(base, reg) & ~mask) | val); in reg_update_bits() 394 ldev->irq_status = reg_read(ldev->regs, LTDC_ISR); in ltdc_irq() 683 line = reg_read(ldev->regs, LTDC_CPSR) & CPSR_CYPOS; in ltdc_crtc_get_scanout_position() 686 vtotal = reg_read(ldev->regs, LTDC_TWCR) & TWCR_TOTALH; in ltdc_crtc_get_scanout_position() 812 bpcr = reg_read(ldev->regs, LTDC_BPCR); in ltdc_plane_atomic_update() 1148 lcr = reg_read(ldev->regs, LTDC_LCR); in ltdc_get_caps() 1153 gc2r = reg_read(ldev->regs, LTDC_GC2R); in ltdc_get_caps() [all …]
|
/linux/arch/x86/kvm/ |
A D | emulate.c | 263 reg_read(ctxt, nr); in reg_rmw() 1878 rbp = reg_read(ctxt, VCPU_REGS_RBP); in em_enter() 2178 (u32) reg_read(ctxt, VCPU_REGS_RBX); in em_cmpxchg8b() 2811 rcx = reg_read(ctxt, VCPU_REGS_RCX); in em_sysexit() 2812 rdx = reg_read(ctxt, VCPU_REGS_RDX); in em_sysexit() 3903 eax = reg_read(ctxt, VCPU_REGS_RAX); in em_cpuid() 3904 ecx = reg_read(ctxt, VCPU_REGS_RCX); in em_cpuid() 4104 eax = reg_read(ctxt, VCPU_REGS_RAX); in em_xsetbv() 4105 edx = reg_read(ctxt, VCPU_REGS_RDX); in em_xsetbv() 4106 ecx = reg_read(ctxt, VCPU_REGS_RCX); in em_xsetbv() [all …]
|
/linux/drivers/thunderbolt/ |
A D | nvm.c | 57 int tb_nvm_add_active(struct tb_nvm *nvm, size_t size, nvmem_reg_read_t reg_read) in tb_nvm_add_active() argument 65 config.reg_read = reg_read; in tb_nvm_add_active()
|
/linux/drivers/nvmem/ |
A D | sunxi_sid.c | 152 nvmem_cfg->reg_read = sun8i_sid_read_by_reg; in sunxi_sid_probe() 154 nvmem_cfg->reg_read = sunxi_sid_read; in sunxi_sid_probe() 164 nvmem_cfg->reg_read(sid, 0, randomness, size); in sunxi_sid_probe()
|
/linux/sound/firewire/ |
A D | isight.c | 295 static int reg_read(struct isight *isight, int offset, __be32 *value) in reg_read() function 485 err = reg_read(isight, REG_GAIN, &gain); in isight_gain_get() 514 err = reg_read(isight, REG_MUTE, &mute); in isight_mute_get() 554 err = reg_read(isight, REG_GAIN_RAW_START, &value); in isight_create_mixer() 559 err = reg_read(isight, REG_GAIN_RAW_END, &value); in isight_create_mixer() 567 err = reg_read(isight, REG_GAIN_DB_START, &value); in isight_create_mixer() 573 err = reg_read(isight, REG_GAIN_DB_END, &value); in isight_create_mixer()
|
/linux/drivers/iio/adc/ |
A D | ad7606_spi.c | 166 readval = st->bops->reg_read(st, addr); in ad7606_spi_write_mask() 291 .reg_read = ad7606_spi_reg_read, 300 .reg_read = ad7606_spi_reg_read,
|