Home
last modified time | relevance | path

Searched refs:reg_addr (Results 1 – 25 of 184) sorted by relevance

12345678

/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dedt-ft5x06.c127 struct edt_reg_addr reg_addr; member
542 struct edt_reg_addr *reg_addr = &tsdata->reg_addr; in edt_ft5x06_restore_reg_parameters() local
544 edt_ft5x06_register_write(tsdata, reg_addr->reg_threshold, in edt_ft5x06_restore_reg_parameters()
546 edt_ft5x06_register_write(tsdata, reg_addr->reg_gain, in edt_ft5x06_restore_reg_parameters()
548 if (reg_addr->reg_offset != NO_REGISTER) in edt_ft5x06_restore_reg_parameters()
549 edt_ft5x06_register_write(tsdata, reg_addr->reg_offset, in edt_ft5x06_restore_reg_parameters()
551 if (reg_addr->reg_offset_x != NO_REGISTER) in edt_ft5x06_restore_reg_parameters()
552 edt_ft5x06_register_write(tsdata, reg_addr->reg_offset_x, in edt_ft5x06_restore_reg_parameters()
554 if (reg_addr->reg_offset_y != NO_REGISTER) in edt_ft5x06_restore_reg_parameters()
555 edt_ft5x06_register_write(tsdata, reg_addr->reg_offset_y, in edt_ft5x06_restore_reg_parameters()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/css_2401_system/host/
Disys_irq_private.h73 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()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
Dgp_device_private.h27 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()
Dinput_formatter_private.h27 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()
/kernel/linux/linux-5.10/drivers/crypto/cavium/nitrox/
Dnitrox_mbx.c39 u64 reg_addr; in pf2vf_read_mbox() local
41 reg_addr = NPS_PKT_MBOX_VF_PF_PFDATAX(ring); in pf2vf_read_mbox()
42 return nitrox_read_csr(ndev, reg_addr); in pf2vf_read_mbox()
48 u64 reg_addr; in pf2vf_write_mbox() local
50 reg_addr = NPS_PKT_MBOX_PF_VF_PFDATAX(ring); in pf2vf_write_mbox()
51 nitrox_write_csr(ndev, reg_addr, value); in pf2vf_write_mbox()
124 u64 value, reg_addr; in nitrox_pf2vf_mbox_handler() local
129 reg_addr = NPS_PKT_MBOX_INT_LO; in nitrox_pf2vf_mbox_handler()
130 value = nitrox_read_csr(ndev, reg_addr); in nitrox_pf2vf_mbox_handler()
147 nitrox_write_csr(ndev, reg_addr, BIT_ULL(i)); in nitrox_pf2vf_mbox_handler()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/
Dqib_diag.c342 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 …]
/kernel/linux/linux-5.10/drivers/reset/
Dreset-meson.c39 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()
/kernel/linux/linux-5.10/sound/arm/
Dpxa2xx-ac97-lib.c49 volatile u32 *reg_addr; in pxa2xx_ac97_read() local
58 reg_addr = slot ? &SMC_REG_BASE : &PMC_REG_BASE; in pxa2xx_ac97_read()
60 reg_addr = slot ? &SAC_REG_BASE : &PAC_REG_BASE; in pxa2xx_ac97_read()
61 reg_addr += (reg >> 1); in pxa2xx_ac97_read()
66 val = (*reg_addr & 0xffff); in pxa2xx_ac97_read()
80 val = (*reg_addr & 0xffff); in pxa2xx_ac97_read()
91 volatile u32 *reg_addr; in pxa2xx_ac97_write() local
98 reg_addr = slot ? &SMC_REG_BASE : &PMC_REG_BASE; in pxa2xx_ac97_write()
100 reg_addr = slot ? &SAC_REG_BASE : &PAC_REG_BASE; in pxa2xx_ac97_write()
101 reg_addr += (reg >> 1); in pxa2xx_ac97_write()
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common.c72 unsigned int reg_addr; in mtk_pmx_gpio_set_direction() local
76 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dir_offset; in mtk_pmx_gpio_set_direction()
80 pctl->devdata->spec_dir_set(&reg_addr, offset); in mtk_pmx_gpio_set_direction()
84 reg_addr = CLR_ADDR(reg_addr, pctl); in mtk_pmx_gpio_set_direction()
86 reg_addr = SET_ADDR(reg_addr, pctl); in mtk_pmx_gpio_set_direction()
88 regmap_write(mtk_get_regmap(pctl, offset), reg_addr, bit); in mtk_pmx_gpio_set_direction()
94 unsigned int reg_addr; in mtk_gpio_set() local
98 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dout_offset; in mtk_gpio_set()
102 reg_addr = SET_ADDR(reg_addr, pctl); in mtk_gpio_set()
104 reg_addr = CLR_ADDR(reg_addr, pctl); in mtk_gpio_set()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_dump.h46 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[] = {
Dbnx2x_init.h215 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_misc.c306 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 …]
/kernel/linux/linux-5.10/arch/microblaze/kernel/
Dptrace.c106 microblaze_reg_t *reg_addr = reg_save_addr(addr, child); in arch_ptrace() local
108 val = *reg_addr; in arch_ptrace()
111 *reg_addr = data; in arch_ptrace()
118 u32 paddr = virt_to_phys((u32)reg_addr); in arch_ptrace()
120 *reg_addr = data; in arch_ptrace()
/kernel/linux/linux-5.10/drivers/media/pci/cx25821/
Dcx25821-i2c.c82 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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4vf/
Dadapter.h429 static inline u32 t4_read_reg(struct adapter *adapter, u32 reg_addr) in t4_read_reg() argument
431 return readl(adapter->regs + reg_addr); in t4_read_reg()
442 static inline void t4_write_reg(struct adapter *adapter, u32 reg_addr, u32 val) in t4_write_reg() argument
444 writel(val, adapter->regs + reg_addr); in t4_write_reg()
467 static inline u64 t4_read_reg64(struct adapter *adapter, u32 reg_addr) in t4_read_reg64() argument
469 return readq(adapter->regs + reg_addr); in t4_read_reg64()
480 static inline void t4_write_reg64(struct adapter *adapter, u32 reg_addr, in t4_write_reg64() argument
483 writeq(val, adapter->regs + reg_addr); in t4_write_reg64()
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/
Dsja1105_spi.c17 u64 reg_addr; member
46 sja1105_spi_rw_mode_t rw, u64 reg_addr, u8 *buf, in sja1105_xfer() argument
51 .reg_addr = reg_addr, in sja1105_xfer()
88 msg.address = chunk.reg_addr; in sja1105_xfer()
128 chunk.reg_addr += chunk.len / 4; in sja1105_xfer()
148 sja1105_spi_rw_mode_t rw, u64 reg_addr, in sja1105_xfer_buf() argument
151 return sja1105_xfer(priv, rw, reg_addr, buf, len, NULL); in sja1105_xfer_buf()
164 sja1105_spi_rw_mode_t rw, u64 reg_addr, u64 *value, in sja1105_xfer_u64() argument
173 rc = sja1105_xfer(priv, rw, reg_addr, packed_buf, 8, ptp_sts); in sja1105_xfer_u64()
183 sja1105_spi_rw_mode_t rw, u64 reg_addr, u32 *value, in sja1105_xfer_u32() argument
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8192u/
Dr819xU_phy.h50 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);
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/btcoexist/
Dhalbtcoutsrc.h691 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 …]
Dhalbtcoutsrc.c911 static u8 halbtc_read_1byte(void *bt_context, u32 reg_addr) in halbtc_read_1byte() argument
916 return rtl_read_byte(rtlpriv, reg_addr); in halbtc_read_1byte()
919 static u16 halbtc_read_2byte(void *bt_context, u32 reg_addr) in halbtc_read_2byte() argument
924 return rtl_read_word(rtlpriv, reg_addr); in halbtc_read_2byte()
927 static u32 halbtc_read_4byte(void *bt_context, u32 reg_addr) in halbtc_read_4byte() argument
932 return rtl_read_dword(rtlpriv, reg_addr); in halbtc_read_4byte()
935 static void halbtc_write_1byte(void *bt_context, u32 reg_addr, u32 data) in halbtc_write_1byte() argument
940 rtl_write_byte(rtlpriv, reg_addr, data); in halbtc_write_1byte()
943 static void halbtc_bitmask_write_1byte(void *bt_context, u32 reg_addr, in halbtc_bitmask_write_1byte() argument
952 original_value = rtl_read_byte(rtlpriv, reg_addr); in halbtc_bitmask_write_1byte()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb3/
Dadapter.h270 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()
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/
Dqat_hal.c226 unsigned short reg_addr; in qat_hal_get_reg_addr() local
231 reg_addr = 0x80 | (reg_num & 0x7f); in qat_hal_get_reg_addr()
235 reg_addr = reg_num & 0x1f; in qat_hal_get_reg_addr()
240 reg_addr = 0x180 | (reg_num & 0x1f); in qat_hal_get_reg_addr()
243 reg_addr = 0x140 | ((reg_num & 0x3) << 1); in qat_hal_get_reg_addr()
248 reg_addr = 0x1c0 | (reg_num & 0x1f); in qat_hal_get_reg_addr()
251 reg_addr = 0x100 | ((reg_num & 0x3) << 1); in qat_hal_get_reg_addr()
254 reg_addr = 0x280 | (reg_num & 0x1f); in qat_hal_get_reg_addr()
257 reg_addr = 0x200; in qat_hal_get_reg_addr()
260 reg_addr = 0x220; in qat_hal_get_reg_addr()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/
Dgpio_public.h31 const unsigned int reg_addr,
44 const unsigned int reg_addr);
Dgp_device_public.h44 const unsigned int reg_addr,
57 const hrt_address reg_addr);
/kernel/linux/linux-5.10/drivers/media/platform/ti-vpe/
Dvpdma.c587 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()
987 u32 reg_addr = VPDMA_INT_LIST0_MASK + VPDMA_INTX_OFFSET * irq_num; in vpdma_enable_list_complete_irq() local
990 val = read_reg(vpdma, reg_addr); in vpdma_enable_list_complete_irq()
995 write_reg(vpdma, reg_addr, val); in vpdma_enable_list_complete_irq()
1002 u32 reg_addr = VPDMA_INT_LIST0_STAT + VPDMA_INTX_OFFSET * irq_num; in vpdma_get_list_stat() local
[all …]
/kernel/linux/linux-5.10/drivers/most/
Dmost_usb.c68 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 snprintf(buf, PAGE_SIZE, "%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, &reg_addr) && in value_show()
839 get_static_reg_addr(rw_regs, name, &reg_addr)) in value_show()
[all …]

12345678