/linux/drivers/input/touchscreen/ |
H A D | edt-ft5x06.c | 146 struct edt_reg_addr reg_addr; member 587 struct edt_reg_addr *reg_addr = &tsdata->reg_addr; in edt_ft5x06_restore_reg_parameters() local 590 regmap_write(regmap, reg_addr->reg_threshold, tsdata->threshold); in edt_ft5x06_restore_reg_parameters() 591 regmap_write(regmap, reg_addr->reg_gain, tsdata->gain); in edt_ft5x06_restore_reg_parameters() 592 if (reg_addr->reg_offset != NO_REGISTER) in edt_ft5x06_restore_reg_parameters() 593 regmap_write(regmap, reg_addr->reg_offset, tsdata->offset); in edt_ft5x06_restore_reg_parameters() 594 if (reg_addr->reg_offset_x != NO_REGISTER) in edt_ft5x06_restore_reg_parameters() 595 regmap_write(regmap, reg_addr->reg_offset_x, tsdata->offset_x); in edt_ft5x06_restore_reg_parameters() 596 if (reg_addr->reg_offset_y != NO_REGISTER) in edt_ft5x06_restore_reg_parameters() 597 regmap_write(regmap, reg_addr->reg_offset_y, tsdata->offset_y); in edt_ft5x06_restore_reg_parameters() [all …]
|
H A D | iqs7211.c | 479 u8 reg_addr[IQS7211_NUM_REG_GRPS][ARRAY_SIZE(iqs7211_devs)]; member 491 .reg_addr = { 512 .reg_addr = { 533 .reg_addr = { 554 .reg_addr = { 573 .reg_addr = { 585 .reg_addr = { 598 .reg_addr = { 617 .reg_addr[IQS7211_REG_GRP_ALP] = { 627 .reg_addr[IQS7211_REG_GRP_BTN] = { [all …]
|
/linux/arch/riscv/kvm/ |
H A D | vcpu_vector.c | 98 void **reg_addr) in kvm_riscv_vcpu_vreg_addr() argument 108 *reg_addr = &cntx->vector.vstart; in kvm_riscv_vcpu_vreg_addr() 111 *reg_addr = &cntx->vector.vl; in kvm_riscv_vcpu_vreg_addr() 114 *reg_addr = &cntx->vector.vtype; in kvm_riscv_vcpu_vreg_addr() 117 *reg_addr = &cntx->vector.vcsr; in kvm_riscv_vcpu_vreg_addr() 120 *reg_addr = &cntx->vector.vlenb; in kvm_riscv_vcpu_vreg_addr() 129 *reg_addr = cntx->vector.datap + in kvm_riscv_vcpu_vreg_addr() 148 void *reg_addr; in kvm_riscv_vcpu_get_reg_vector() local 154 rc = kvm_riscv_vcpu_vreg_addr(vcpu, reg_num, reg_size, ®_addr); in kvm_riscv_vcpu_get_reg_vector() 158 if (copy_to_user(uaddr, reg_addr, reg_size)) in kvm_riscv_vcpu_get_reg_vector() [all …]
|
/linux/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_mbx.c | 41 u64 reg_addr; in pf2vf_read_mbox() local 43 reg_addr = NPS_PKT_MBOX_VF_PF_PFDATAX(ring); in pf2vf_read_mbox() 44 return nitrox_read_csr(ndev, reg_addr); in pf2vf_read_mbox() 50 u64 reg_addr; in pf2vf_write_mbox() local 52 reg_addr = NPS_PKT_MBOX_PF_VF_PFDATAX(ring); in pf2vf_write_mbox() 53 nitrox_write_csr(ndev, reg_addr, value); in pf2vf_write_mbox() 127 u64 value, reg_addr; in nitrox_pf2vf_mbox_handler() local 132 reg_addr = NPS_PKT_MBOX_INT_LO; in nitrox_pf2vf_mbox_handler() 133 value = nitrox_read_csr(ndev, reg_addr); in nitrox_pf2vf_mbox_handler() 151 nitrox_write_csr(ndev, reg_addr, BIT_ULL(i)); in nitrox_pf2vf_mbox_handler() [all …]
|
H A D | nitrox_hal.c | 656 u64 reg_addr; in enable_pf2vf_mbox_interrupts() local 659 reg_addr = NPS_PKT_MBOX_INT_LO_ENA_W1S; in enable_pf2vf_mbox_interrupts() 660 nitrox_write_csr(ndev, reg_addr, value); in enable_pf2vf_mbox_interrupts() 663 reg_addr = NPS_PKT_MBOX_INT_HI_ENA_W1S; in enable_pf2vf_mbox_interrupts() 664 nitrox_write_csr(ndev, reg_addr, value); in enable_pf2vf_mbox_interrupts() 670 u64 reg_addr; in disable_pf2vf_mbox_interrupts() local 673 reg_addr = NPS_PKT_MBOX_INT_LO_ENA_W1C; in disable_pf2vf_mbox_interrupts() 674 nitrox_write_csr(ndev, reg_addr, value); in disable_pf2vf_mbox_interrupts() 677 reg_addr = NPS_PKT_MBOX_INT_HI_ENA_W1C; in disable_pf2vf_mbox_interrupts() 678 nitrox_write_csr(ndev, reg_addr, value); in disable_pf2vf_mbox_interrupts()
|
/linux/drivers/infiniband/hw/qib/ |
H A D | qib_diag.c | 342 const u64 __iomem *reg_addr; in qib_read_umem64() local 347 reg_addr = (const u64 __iomem *)qib_remap_ioaddr32(dd, regoffs, &limit); in qib_read_umem64() 348 if (reg_addr == NULL || limit == 0 || !(dd->flags & QIB_PRESENT)) { in qib_read_umem64() 354 reg_end = reg_addr + (count / sizeof(u64)); in qib_read_umem64() 357 while (reg_addr < reg_end) { in qib_read_umem64() 358 u64 data = readq(reg_addr); in qib_read_umem64() 364 reg_addr++; in qib_read_umem64() 386 u64 __iomem *reg_addr; in qib_write_umem64() local 391 reg_addr = (u64 __iomem *)qib_remap_ioaddr32(dd, regoffs, &limit); in qib_write_umem64() 392 if (reg_addr == NULL || limit == 0 || !(dd->flags & QIB_PRESENT)) { in qib_write_umem64() [all …]
|
/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common.c | 69 unsigned int reg_addr; in mtk_pmx_gpio_set_direction() local 73 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dir_offset; in mtk_pmx_gpio_set_direction() 77 pctl->devdata->spec_dir_set(®_addr, offset); in mtk_pmx_gpio_set_direction() 81 reg_addr = CLR_ADDR(reg_addr, pctl); in mtk_pmx_gpio_set_direction() 83 reg_addr = SET_ADDR(reg_addr, pctl); in mtk_pmx_gpio_set_direction() 85 regmap_write(mtk_get_regmap(pctl, offset), reg_addr, bit); in mtk_pmx_gpio_set_direction() 91 unsigned int reg_addr; in mtk_gpio_set() local 95 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dout_offset; in mtk_gpio_set() 99 reg_addr = SET_ADDR(reg_addr, pctl); in mtk_gpio_set() 101 reg_addr = CLR_ADDR(reg_addr, pctl); in mtk_gpio_set() [all …]
|
/linux/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_dsaf_misc.c | 306 u32 reg_addr; in hns_dsaf_xge_srst_by_port() local 315 reg_addr = DSAF_SUB_SC_XGE_RESET_REQ_REG; in hns_dsaf_xge_srst_by_port() 317 reg_addr = DSAF_SUB_SC_XGE_RESET_DREQ_REG; in hns_dsaf_xge_srst_by_port() 319 dsaf_write_sub(dsaf_dev, reg_addr, reg_val); in hns_dsaf_xge_srst_by_port() 343 u32 reg_addr; in hns_dsaf_srst_chns() local 346 reg_addr = DSAF_SUB_SC_DSAF_RESET_REQ_REG; in hns_dsaf_srst_chns() 348 reg_addr = DSAF_SUB_SC_DSAF_RESET_DREQ_REG; in hns_dsaf_srst_chns() 350 dsaf_write_sub(dsaf_dev, reg_addr, msk); in hns_dsaf_srst_chns() 461 u32 reg_addr; in hns_ppe_srst_by_port() local 466 reg_addr = DSAF_SUB_SC_PPE_RESET_REQ_REG; in hns_ppe_srst_by_port() [all …]
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_dump.h | 46 struct reg_addr { struct 67 static const struct reg_addr page_read_regs_e2[] = { argument 76 static const struct reg_addr page_read_regs_e3[] = { 80 static const struct reg_addr reg_addrs[] = { 1901 static const struct reg_addr idle_reg_addrs[] = {
|
H A D | bnx2x_init.h | 215 u32 reg_addr, reg_bit_map, vnic; in bnx2x_map_q_cos() local 236 reg_addr = BNX2X_VOQ_Q_REG_ADDR(curr_cos, pf_q_num); in bnx2x_map_q_cos() 237 reg_bit_map = REG_RD(bp, reg_addr); in bnx2x_map_q_cos() 238 REG_WR(bp, reg_addr, reg_bit_map & (~q_bit_map)); in bnx2x_map_q_cos() 241 reg_addr = BNX2X_VOQ_Q_REG_ADDR(new_cos, pf_q_num); in bnx2x_map_q_cos() 242 reg_bit_map = REG_RD(bp, reg_addr); in bnx2x_map_q_cos() 243 REG_WR(bp, reg_addr, reg_bit_map | q_bit_map); in bnx2x_map_q_cos() 249 reg_addr = BNX2X_Q_CMDQ_REG_ADDR(pf_q_num); in bnx2x_map_q_cos() 250 reg_bit_map = REG_RD(bp, reg_addr); in bnx2x_map_q_cos() 255 REG_WR(bp, reg_addr, reg_bit_map); in bnx2x_map_q_cos()
|
/linux/drivers/reset/ |
H A D | reset-imx8mp-audiomix.c | 32 void __iomem *reg_addr = priv->base; in imx8mp_audiomix_reset_assert() local 38 reg = readl(reg_addr + EARC); in imx8mp_audiomix_reset_assert() 39 writel(reg & ~mask, reg_addr + EARC); in imx8mp_audiomix_reset_assert() 49 void __iomem *reg_addr = priv->base; in imx8mp_audiomix_reset_deassert() local 55 reg = readl(reg_addr + EARC); in imx8mp_audiomix_reset_deassert() 56 writel(reg | mask, reg_addr + EARC); in imx8mp_audiomix_reset_deassert()
|
/linux/sound/arm/ |
H A D | pxa2xx-ac97-lib.c | 49 u32 __iomem *reg_addr; in pxa2xx_ac97_read() local 58 reg_addr = ac97_reg_base + in pxa2xx_ac97_read() 61 reg_addr = ac97_reg_base + in pxa2xx_ac97_read() 63 reg_addr += (reg >> 1); in pxa2xx_ac97_read() 68 val = (readl(reg_addr) & 0xffff); in pxa2xx_ac97_read() 82 val = (readl(reg_addr) & 0xffff); in pxa2xx_ac97_read() 93 u32 __iomem *reg_addr; in pxa2xx_ac97_write() local 100 reg_addr = ac97_reg_base + in pxa2xx_ac97_write() 103 reg_addr = ac97_reg_base + in pxa2xx_ac97_write() 105 reg_addr += (reg >> 1); in pxa2xx_ac97_write() [all …]
|
/linux/drivers/media/pci/cx25821/ |
H A D | cx25821-i2c.c | 82 cx_write(bus->reg_addr, msg->addr << 25); in i2c_sendbytes() 106 cx_write(bus->reg_addr, addr); in i2c_sendbytes() 132 cx_write(bus->reg_addr, addr); in i2c_sendbytes() 173 cx_write(bus->reg_addr, msg->addr << 25); in i2c_readbytes() 198 cx_write(bus->reg_addr, msg->addr << 25); in i2c_readbytes() 344 int cx25821_i2c_read(struct cx25821_i2c *bus, u16 reg_addr, int *value) in cx25821_i2c_read() argument 365 addr[0] = (reg_addr >> 8); in cx25821_i2c_read() 366 addr[1] = (reg_addr & 0xff); in cx25821_i2c_read() 378 int cx25821_i2c_write(struct cx25821_i2c *bus, u16 reg_addr, int value) in cx25821_i2c_write() argument 393 buf[0] = reg_addr >> 8; in cx25821_i2c_write() [all …]
|
/linux/arch/microblaze/kernel/ |
H A D | ptrace.c | 105 microblaze_reg_t *reg_addr = reg_save_addr(addr, child); in arch_ptrace() local 107 val = *reg_addr; in arch_ptrace() 110 *reg_addr = data; in arch_ptrace() 117 u32 paddr = virt_to_phys((u32)reg_addr); in arch_ptrace() 119 *reg_addr = data; in arch_ptrace()
|
/linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | adapter.h | 430 static inline u32 t4_read_reg(struct adapter *adapter, u32 reg_addr) in t4_read_reg() argument 432 return readl(adapter->regs + reg_addr); in t4_read_reg() 443 static inline void t4_write_reg(struct adapter *adapter, u32 reg_addr, u32 val) in t4_write_reg() argument 445 writel(val, adapter->regs + reg_addr); in t4_write_reg() 468 static inline u64 t4_read_reg64(struct adapter *adapter, u32 reg_addr) in t4_read_reg64() argument 470 return readq(adapter->regs + reg_addr); in t4_read_reg64() 481 static inline void t4_write_reg64(struct adapter *adapter, u32 reg_addr, in t4_write_reg64() argument 484 writeq(val, adapter->regs + reg_addr); in t4_write_reg64()
|
/linux/arch/s390/mm/ |
H A D | extable.c | 40 unsigned int reg_addr = FIELD_GET(EX_DATA_REG_ADDR, ex->data); in ex_handler_ua_load_mem() local 45 memset((void *)regs->gprs[reg_addr], 0, len); in ex_handler_ua_load_mem() 66 unsigned int reg_addr = FIELD_GET(EX_DATA_REG_ADDR, ex->data); in ex_handler_zeropad() local 70 addr = regs->gprs[reg_addr]; in ex_handler_zeropad()
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | adapter.h | 270 static inline u32 t3_read_reg(struct adapter *adapter, u32 reg_addr) in t3_read_reg() argument 272 u32 val = readl(adapter->regs + reg_addr); in t3_read_reg() 274 CH_DBG(adapter, MMIO, "read register 0x%x value 0x%x\n", reg_addr, val); in t3_read_reg() 278 static inline void t3_write_reg(struct adapter *adapter, u32 reg_addr, u32 val) in t3_write_reg() argument 280 CH_DBG(adapter, MMIO, "setting register 0x%x to 0x%x\n", reg_addr, val); in t3_write_reg() 281 writel(val, adapter->regs + reg_addr); in t3_write_reg()
|
/linux/drivers/media/platform/ti/vpe/ |
H A D | vpdma.c | 587 void vpdma_set_max_size(struct vpdma_data *vpdma, int reg_addr, in vpdma_set_max_size() argument 590 if (reg_addr != VPDMA_MAX_SIZE1 && reg_addr != VPDMA_MAX_SIZE2 && in vpdma_set_max_size() 591 reg_addr != VPDMA_MAX_SIZE3) in vpdma_set_max_size() 592 reg_addr = VPDMA_MAX_SIZE1; in vpdma_set_max_size() 594 write_field_reg(vpdma, reg_addr, width - 1, in vpdma_set_max_size() 597 write_field_reg(vpdma, reg_addr, height - 1, in vpdma_set_max_size() 986 u32 reg_addr = VPDMA_INT_LIST0_MASK + VPDMA_INTX_OFFSET * irq_num; in vpdma_enable_list_complete_irq() local 989 val = read_reg(vpdma, reg_addr); in vpdma_enable_list_complete_irq() 994 write_reg(vpdma, reg_addr, val); in vpdma_enable_list_complete_irq() 1001 u32 reg_addr = VPDMA_INT_LIST0_STAT + VPDMA_INTX_OFFSET * irq_num; in vpdma_get_list_stat() local [all …]
|
/linux/drivers/most/ |
H A D | most_usb.c | 68 u16 reg_addr; member 808 const char *name, u16 *reg_addr) in get_stat_reg_addr() argument 814 *reg_addr = regs[i].reg; in get_stat_reg_addr() 821 #define get_static_reg_addr(regs, name, reg_addr) \ argument 822 get_stat_reg_addr(regs, ARRAY_SIZE(regs), name, reg_addr) 830 u16 reg_addr; in value_show() local 834 return sysfs_emit(buf, "%04x\n", dci_obj->reg_addr); in value_show() 837 reg_addr = dci_obj->reg_addr; in value_show() 838 else if (get_static_reg_addr(ro_regs, name, ®_addr) && in value_show() 839 get_static_reg_addr(rw_regs, name, ®_addr)) in value_show() [all …]
|
/linux/drivers/net/ethernet/cavium/thunder/ |
H A D | nic_main.c | 789 u64 reg_addr; in nic_reset_stat_counters() local 793 reg_addr = NIC_PF_VNIC_0_127_RX_STAT_0_13 | in nic_reset_stat_counters() 796 nic_reg_write(nic, reg_addr, 0); in nic_reset_stat_counters() 802 reg_addr = NIC_PF_VNIC_0_127_TX_STAT_0_4 | in nic_reset_stat_counters() 805 nic_reg_write(nic, reg_addr, 0); in nic_reset_stat_counters() 812 reg_addr = (vf << NIC_QS_ID_SHIFT) | in nic_reset_stat_counters() 815 reg_addr |= NIC_PF_QSET_0_127_RQ_0_7_STAT_0_1; in nic_reset_stat_counters() 816 nic_reg_write(nic, reg_addr, 0); in nic_reset_stat_counters() 819 reg_addr |= NIC_PF_QSET_0_127_SQ_0_7_STAT_0_1; in nic_reset_stat_counters() 820 nic_reg_write(nic, reg_addr, 0); in nic_reset_stat_counters() [all …]
|
/linux/drivers/net/dsa/sja1105/ |
H A D | sja1105_spi.c | 13 u64 reg_addr; member 35 sja1105_spi_rw_mode_t rw, u64 reg_addr, u8 *buf, in sja1105_xfer() argument 49 chunk.reg_addr = reg_addr; in sja1105_xfer() 61 msg.address = chunk.reg_addr; in sja1105_xfer() 101 chunk.reg_addr += chunk.len / 4; in sja1105_xfer() 116 sja1105_spi_rw_mode_t rw, u64 reg_addr, in sja1105_xfer_buf() argument 119 return sja1105_xfer(priv, rw, reg_addr, buf, len, NULL); in sja1105_xfer_buf() 132 sja1105_spi_rw_mode_t rw, u64 reg_addr, u64 *value, in sja1105_xfer_u64() argument 141 rc = sja1105_xfer(priv, rw, reg_addr, packed_buf, 8, ptp_sts); in sja1105_xfer_u64() 151 sja1105_spi_rw_mode_t rw, u64 reg_addr, u32 *value, in sja1105_xfer_u32() argument [all …]
|
/linux/drivers/net/ethernet/atheros/atl1c/ |
H A D | atl1c_hw.c | 395 int atl1c_read_phy_reg(struct atl1c_hw *hw, u16 reg_addr, u16 *phy_data) in atl1c_read_phy_reg() argument 397 return atl1c_read_phy_core(hw, false, 0, reg_addr, phy_data); in atl1c_read_phy_reg() 406 int atl1c_write_phy_reg(struct atl1c_hw *hw, u32 reg_addr, u16 phy_data) in atl1c_write_phy_reg() argument 408 return atl1c_write_phy_core(hw, false, 0, reg_addr, phy_data); in atl1c_write_phy_reg() 413 u16 reg_addr, u16 *phy_data) in atl1c_read_phy_ext() argument 415 return atl1c_read_phy_core(hw, true, dev_addr, reg_addr, phy_data); in atl1c_read_phy_ext() 420 u16 reg_addr, u16 phy_data) in atl1c_write_phy_ext() argument 422 return atl1c_write_phy_core(hw, true, dev_addr, reg_addr, phy_data); in atl1c_write_phy_ext() 425 int atl1c_read_phy_dbg(struct atl1c_hw *hw, u16 reg_addr, u16 *phy_data) in atl1c_read_phy_dbg() argument 429 err = atl1c_write_phy_reg(hw, MII_DBG_ADDR, reg_addr); in atl1c_read_phy_dbg() [all …]
|
/linux/drivers/input/mouse/ |
H A D | sentelic.c | 71 static int fsp_reg_read(struct psmouse *psmouse, int reg_addr, int *reg_val) in fsp_reg_read() argument 99 if ((addr = fsp_test_invert_cmd(reg_addr)) != reg_addr) { in fsp_reg_read() 101 } else if ((addr = fsp_test_swap_cmd(reg_addr)) != reg_addr) { in fsp_reg_read() 124 reg_addr, *reg_val, rc); in fsp_reg_read() 128 static int fsp_reg_write(struct psmouse *psmouse, int reg_addr, int reg_val) in fsp_reg_write() argument 139 if ((v = fsp_test_invert_cmd(reg_addr)) != reg_addr) { in fsp_reg_write() 143 if ((v = fsp_test_swap_cmd(reg_addr)) != reg_addr) { in fsp_reg_write() 176 reg_addr, reg_val, rc); in fsp_reg_write()
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_phy.h | 130 int ixgbe_read_phy_reg_generic(struct ixgbe_hw *hw, u32 reg_addr, 132 int ixgbe_write_phy_reg_generic(struct ixgbe_hw *hw, u32 reg_addr, 134 int ixgbe_read_phy_reg_mdi(struct ixgbe_hw *hw, u32 reg_addr, 136 int ixgbe_write_phy_reg_mdi(struct ixgbe_hw *hw, u32 reg_addr,
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_mdio.c | 277 u16 hclge_read_phy_reg(struct hclge_dev *hdev, u16 reg_addr) in hclge_read_phy_reg() argument 286 req->reg_addr = cpu_to_le16(reg_addr); in hclge_read_phy_reg() 296 int hclge_write_phy_reg(struct hclge_dev *hdev, u16 reg_addr, u16 val) in hclge_write_phy_reg() argument 305 req->reg_addr = cpu_to_le16(reg_addr); in hclge_write_phy_reg()
|