/linux-6.6.21/drivers/input/touchscreen/ |
D | edt-ft5x06.c | 146 struct edt_reg_addr reg_addr; member 590 struct edt_reg_addr *reg_addr = &tsdata->reg_addr; in edt_ft5x06_restore_reg_parameters() local 593 regmap_write(regmap, reg_addr->reg_threshold, tsdata->threshold); in edt_ft5x06_restore_reg_parameters() 594 regmap_write(regmap, reg_addr->reg_gain, tsdata->gain); in edt_ft5x06_restore_reg_parameters() 595 if (reg_addr->reg_offset != NO_REGISTER) in edt_ft5x06_restore_reg_parameters() 596 regmap_write(regmap, reg_addr->reg_offset, tsdata->offset); in edt_ft5x06_restore_reg_parameters() 597 if (reg_addr->reg_offset_x != NO_REGISTER) in edt_ft5x06_restore_reg_parameters() 598 regmap_write(regmap, reg_addr->reg_offset_x, tsdata->offset_x); in edt_ft5x06_restore_reg_parameters() 599 if (reg_addr->reg_offset_y != NO_REGISTER) in edt_ft5x06_restore_reg_parameters() 600 regmap_write(regmap, reg_addr->reg_offset_y, tsdata->offset_y); in edt_ft5x06_restore_reg_parameters() [all …]
|
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-6.6.21/drivers/staging/media/atomisp/pci/css_2401_system/host/ |
D | isys_irq_private.h | 73 unsigned int reg_addr; in isys_irqc_reg_store() local 78 reg_addr = ISYS_IRQ_BASE[isys_irqc_id] + (reg_idx * sizeof(hrt_data)); in isys_irqc_reg_store() 80 "isys irq store at addr(0x%x) val(%u)\n", reg_addr, (unsigned int)value); in isys_irqc_reg_store() 82 ia_css_device_store_uint32(reg_addr, value); in isys_irqc_reg_store() 89 unsigned int reg_addr; in isys_irqc_reg_load() local 95 reg_addr = ISYS_IRQ_BASE[isys_irqc_id] + (reg_idx * sizeof(hrt_data)); in isys_irqc_reg_load() 96 value = ia_css_device_load_uint32(reg_addr); in isys_irqc_reg_load() 98 "isys irq load from addr(0x%x) val(%u)\n", reg_addr, (unsigned int)value); in isys_irqc_reg_load()
|
/linux-6.6.21/arch/riscv/kvm/ |
D | vcpu_vector.c | 97 void **reg_addr) in kvm_riscv_vcpu_vreg_addr() argument 107 *reg_addr = &cntx->vector.vstart; in kvm_riscv_vcpu_vreg_addr() 110 *reg_addr = &cntx->vector.vl; in kvm_riscv_vcpu_vreg_addr() 113 *reg_addr = &cntx->vector.vtype; in kvm_riscv_vcpu_vreg_addr() 116 *reg_addr = &cntx->vector.vcsr; in kvm_riscv_vcpu_vreg_addr() 125 *reg_addr = cntx->vector.datap + in kvm_riscv_vcpu_vreg_addr() 144 void *reg_addr; in kvm_riscv_vcpu_get_reg_vector() local 150 rc = kvm_riscv_vcpu_vreg_addr(vcpu, reg_num, reg_size, ®_addr); in kvm_riscv_vcpu_get_reg_vector() 154 if (copy_to_user(uaddr, reg_addr, reg_size)) in kvm_riscv_vcpu_get_reg_vector() 170 void *reg_addr; in kvm_riscv_vcpu_set_reg_vector() local [all …]
|
/linux-6.6.21/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
D | input_formatter_private.h | 27 const hrt_address reg_addr, in input_formatter_reg_store() argument 32 assert((reg_addr % sizeof(hrt_data)) == 0); in input_formatter_reg_store() 33 ia_css_device_store_uint32(INPUT_FORMATTER_BASE[ID] + reg_addr, value); in input_formatter_reg_store() 39 const unsigned int reg_addr) in input_formatter_reg_load() argument 43 assert((reg_addr % sizeof(hrt_data)) == 0); in input_formatter_reg_load() 44 return ia_css_device_load_uint32(INPUT_FORMATTER_BASE[ID] + reg_addr); in input_formatter_reg_load()
|
D | gp_device_private.h | 27 const unsigned int reg_addr, in gp_device_reg_store() argument 32 assert((reg_addr % sizeof(hrt_data)) == 0); in gp_device_reg_store() 33 ia_css_device_store_uint32(GP_DEVICE_BASE[ID] + reg_addr, value); in gp_device_reg_store() 39 const hrt_address reg_addr) in gp_device_reg_load() argument 43 assert((reg_addr % sizeof(hrt_data)) == 0); in gp_device_reg_load() 44 return ia_css_device_load_uint32(GP_DEVICE_BASE[ID] + reg_addr); in gp_device_reg_load()
|
/linux-6.6.21/drivers/crypto/cavium/nitrox/ |
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 …]
|
/linux-6.6.21/drivers/infiniband/hw/qib/ |
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-6.6.21/drivers/reset/ |
D | reset-meson.c | 39 void __iomem *reg_addr = data->reg_base + (bank << 2); in meson_reset_reset() local 41 writel(BIT(offset), reg_addr); in meson_reset_reset() 53 void __iomem *reg_addr; in meson_reset_level() local 57 reg_addr = data->reg_base + data->param->level_offset + (bank << 2); in meson_reset_level() 61 reg = readl(reg_addr); in meson_reset_level() 63 writel(reg & ~BIT(offset), reg_addr); in meson_reset_level() 65 writel(reg | BIT(offset), reg_addr); in meson_reset_level()
|
/linux-6.6.21/drivers/pinctrl/mediatek/ |
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-6.6.21/drivers/net/ethernet/broadcom/bnx2x/ |
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[] = {
|
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-6.6.21/drivers/net/ethernet/hisilicon/hns/ |
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-6.6.21/drivers/soc/litex/ |
D | litex_soc_ctrl.c | 41 static int litex_check_csr_access(void __iomem *reg_addr) in litex_check_csr_access() argument 45 reg = litex_read32(reg_addr + SCRATCH_REG_OFF); in litex_check_csr_access() 53 litex_write32(reg_addr + SCRATCH_REG_OFF, SCRATCH_TEST_VALUE); in litex_check_csr_access() 54 reg = litex_read32(reg_addr + SCRATCH_REG_OFF); in litex_check_csr_access() 63 litex_write32(reg_addr + SCRATCH_REG_OFF, SCRATCH_REG_VALUE); in litex_check_csr_access()
|
/linux-6.6.21/arch/microblaze/kernel/ |
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-6.6.21/drivers/media/pci/cx25821/ |
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-6.6.21/sound/arm/ |
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-6.6.21/drivers/net/ethernet/chelsio/cxgb4vf/ |
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-6.6.21/drivers/staging/rtl8192u/ |
D | r819xU_phy.h | 50 void rtl8192_setBBreg(struct net_device *dev, u32 reg_addr, 52 u32 rtl8192_QueryBBReg(struct net_device *dev, u32 reg_addr, u32 bitmask); 55 u32 reg_addr, u32 bitmask, u32 data); 58 u32 reg_addr, u32 bitmask);
|
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/btcoexist/ |
D | halbtcoutsrc.h | 691 u8 (*btc_read_1byte)(void *btc_context, u32 reg_addr); 692 void (*btc_write_1byte)(void *btc_context, u32 reg_addr, u32 data); 693 void (*btc_write_1byte_bitmask)(void *btc_context, u32 reg_addr, 695 u16 (*btc_read_2byte)(void *btc_context, u32 reg_addr); 696 void (*btc_write_2byte)(void *btc_context, u32 reg_addr, u16 data); 697 u32 (*btc_read_4byte)(void *btc_context, u32 reg_addr); 698 void (*btc_write_4byte)(void *btc_context, u32 reg_addr, u32 data); 700 void (*btc_write_local_reg_1byte)(void *btc_context, u32 reg_addr, 702 void (*btc_set_bb_reg)(void *btc_context, u32 reg_addr, 704 u32 (*btc_get_bb_reg)(void *btc_context, u32 reg_addr, [all …]
|
D | halbtcoutsrc.c | 895 static u8 halbtc_read_1byte(void *bt_context, u32 reg_addr) in halbtc_read_1byte() argument 900 return rtl_read_byte(rtlpriv, reg_addr); in halbtc_read_1byte() 903 static u16 halbtc_read_2byte(void *bt_context, u32 reg_addr) in halbtc_read_2byte() argument 908 return rtl_read_word(rtlpriv, reg_addr); in halbtc_read_2byte() 911 static u32 halbtc_read_4byte(void *bt_context, u32 reg_addr) in halbtc_read_4byte() argument 916 return rtl_read_dword(rtlpriv, reg_addr); in halbtc_read_4byte() 919 static void halbtc_write_1byte(void *bt_context, u32 reg_addr, u32 data) in halbtc_write_1byte() argument 924 rtl_write_byte(rtlpriv, reg_addr, data); in halbtc_write_1byte() 927 static void halbtc_bitmask_write_1byte(void *bt_context, u32 reg_addr, in halbtc_bitmask_write_1byte() argument 936 original_value = rtl_read_byte(rtlpriv, reg_addr); in halbtc_bitmask_write_1byte() [all …]
|
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb3/ |
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-6.6.21/drivers/media/platform/ti/vpe/ |
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-6.6.21/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/ |
D | gpio_public.h | 31 const unsigned int reg_addr, 44 const unsigned int reg_addr);
|
/linux-6.6.21/drivers/most/ |
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 …]
|