Home
last modified time | relevance | path

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

1234567

/Linux-v4.19/drivers/staging/rtlwifi/phydm/
Dphydm_interface.c26 u8 odm_read_1byte(struct phy_dm_struct *dm, u32 reg_addr) in odm_read_1byte() argument
30 return rtl_read_byte(rtlpriv, reg_addr); in odm_read_1byte()
33 u16 odm_read_2byte(struct phy_dm_struct *dm, u32 reg_addr) in odm_read_2byte() argument
37 return rtl_read_word(rtlpriv, reg_addr); in odm_read_2byte()
40 u32 odm_read_4byte(struct phy_dm_struct *dm, u32 reg_addr) in odm_read_4byte() argument
44 return rtl_read_dword(rtlpriv, reg_addr); in odm_read_4byte()
47 void odm_write_1byte(struct phy_dm_struct *dm, u32 reg_addr, u8 data) in odm_write_1byte() argument
51 rtl_write_byte(rtlpriv, reg_addr, data); in odm_write_1byte()
54 void odm_write_2byte(struct phy_dm_struct *dm, u32 reg_addr, u16 data) in odm_write_2byte() argument
58 rtl_write_word(rtlpriv, reg_addr, data); in odm_write_2byte()
[all …]
Dphydm_interface.h100 u8 odm_read_1byte(struct phy_dm_struct *dm, u32 reg_addr);
102 u16 odm_read_2byte(struct phy_dm_struct *dm, u32 reg_addr);
104 u32 odm_read_4byte(struct phy_dm_struct *dm, u32 reg_addr);
106 void odm_write_1byte(struct phy_dm_struct *dm, u32 reg_addr, u8 data);
108 void odm_write_2byte(struct phy_dm_struct *dm, u32 reg_addr, u16 data);
110 void odm_write_4byte(struct phy_dm_struct *dm, u32 reg_addr, u32 data);
112 void odm_set_mac_reg(struct phy_dm_struct *dm, u32 reg_addr, u32 bit_mask,
115 u32 odm_get_mac_reg(struct phy_dm_struct *dm, u32 reg_addr, u32 bit_mask);
117 void odm_set_bb_reg(struct phy_dm_struct *dm, u32 reg_addr, u32 bit_mask,
120 u32 odm_get_bb_reg(struct phy_dm_struct *dm, u32 reg_addr, u32 bit_mask);
[all …]
/Linux-v4.19/drivers/iio/common/st_sensors/
Dst_sensors_spi.c30 struct device *dev, u8 reg_addr, int len, u8 *data, bool multiread_bit) in st_sensors_spi_read() argument
49 tb->tx_buf[0] = reg_addr | ST_SENSORS_SPI_MULTIREAD; in st_sensors_spi_read()
51 tb->tx_buf[0] = reg_addr | ST_SENSORS_SPI_READ; in st_sensors_spi_read()
67 struct device *dev, u8 reg_addr, u8 *res_byte) in st_sensors_spi_read_byte() argument
69 return st_sensors_spi_read(tb, dev, reg_addr, 1, res_byte, false); in st_sensors_spi_read_byte()
74 u8 reg_addr, int len, u8 *data, bool multiread_bit) in st_sensors_spi_read_multiple_byte() argument
76 return st_sensors_spi_read(tb, dev, reg_addr, len, data, multiread_bit); in st_sensors_spi_read_multiple_byte()
80 struct device *dev, u8 reg_addr, u8 data) in st_sensors_spi_write_byte() argument
91 tb->tx_buf[0] = reg_addr; in st_sensors_spi_write_byte()
Dst_sensors_i2c.c31 struct device *dev, u8 reg_addr, u8 *res_byte) in st_sensors_i2c_read_byte() argument
35 err = i2c_smbus_read_byte_data(to_i2c_client(dev), reg_addr); in st_sensors_i2c_read_byte()
47 u8 reg_addr, int len, u8 *data, bool multiread_bit) in st_sensors_i2c_read_multiple_byte() argument
50 reg_addr |= ST_SENSORS_I2C_MULTIREAD; in st_sensors_i2c_read_multiple_byte()
53 reg_addr, len, data); in st_sensors_i2c_read_multiple_byte()
57 struct device *dev, u8 reg_addr, u8 data) in st_sensors_i2c_write_byte() argument
59 return i2c_smbus_write_byte_data(to_i2c_client(dev), reg_addr, data); in st_sensors_i2c_write_byte()
/Linux-v4.19/drivers/input/touchscreen/
Dedt-ft5x06.c114 struct edt_reg_addr reg_addr; member
571 struct edt_reg_addr *reg_addr = &tsdata->reg_addr; in edt_ft5x06_work_mode() local
604 edt_ft5x06_register_write(tsdata, reg_addr->reg_threshold, in edt_ft5x06_work_mode()
606 edt_ft5x06_register_write(tsdata, reg_addr->reg_gain, in edt_ft5x06_work_mode()
608 edt_ft5x06_register_write(tsdata, reg_addr->reg_offset, in edt_ft5x06_work_mode()
610 if (reg_addr->reg_report_rate != NO_REGISTER) in edt_ft5x06_work_mode()
611 edt_ft5x06_register_write(tsdata, reg_addr->reg_report_rate, in edt_ft5x06_work_mode()
884 struct edt_reg_addr *reg_addr = &tsdata->reg_addr; in edt_ft5x06_ts_get_defaults() local
890 edt_ft5x06_register_write(tsdata, reg_addr->reg_threshold, val); in edt_ft5x06_ts_get_defaults()
896 edt_ft5x06_register_write(tsdata, reg_addr->reg_gain, val); in edt_ft5x06_ts_get_defaults()
[all …]
/Linux-v4.19/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 …]
/Linux-v4.19/sound/arm/
Dpxa2xx-ac97-lib.c52 volatile u32 *reg_addr; in pxa2xx_ac97_read() local
61 reg_addr = slot ? &SMC_REG_BASE : &PMC_REG_BASE; in pxa2xx_ac97_read()
63 reg_addr = slot ? &SAC_REG_BASE : &PAC_REG_BASE; in pxa2xx_ac97_read()
64 reg_addr += (reg >> 1); in pxa2xx_ac97_read()
69 val = (*reg_addr & 0xffff); in pxa2xx_ac97_read()
83 val = (*reg_addr & 0xffff); in pxa2xx_ac97_read()
94 volatile u32 *reg_addr; in pxa2xx_ac97_write() local
101 reg_addr = slot ? &SMC_REG_BASE : &PMC_REG_BASE; in pxa2xx_ac97_write()
103 reg_addr = slot ? &SAC_REG_BASE : &PAC_REG_BASE; in pxa2xx_ac97_write()
104 reg_addr += (reg >> 1); in pxa2xx_ac97_write()
[all …]
/Linux-v4.19/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common.c80 unsigned int reg_addr; in mtk_pmx_gpio_set_direction() local
84 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dir_offset; in mtk_pmx_gpio_set_direction()
88 pctl->devdata->spec_dir_set(&reg_addr, offset); in mtk_pmx_gpio_set_direction()
92 reg_addr = CLR_ADDR(reg_addr, pctl); in mtk_pmx_gpio_set_direction()
94 reg_addr = SET_ADDR(reg_addr, pctl); in mtk_pmx_gpio_set_direction()
96 regmap_write(mtk_get_regmap(pctl, offset), reg_addr, bit); in mtk_pmx_gpio_set_direction()
102 unsigned int reg_addr; in mtk_gpio_set() local
106 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dout_offset; in mtk_gpio_set()
110 reg_addr = SET_ADDR(reg_addr, pctl); in mtk_gpio_set()
112 reg_addr = CLR_ADDR(reg_addr, pctl); in mtk_gpio_set()
[all …]
/Linux-v4.19/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()
/Linux-v4.19/drivers/reset/
Dreset-meson.c84 void __iomem *reg_addr = data->reg_base + (bank << 2); in meson_reset_reset() local
86 writel(BIT(offset), reg_addr); in meson_reset_reset()
98 void __iomem *reg_addr = data->reg_base + LEVEL_OFFSET + (bank << 2); in meson_reset_level() local
104 reg = readl(reg_addr); in meson_reset_level()
106 writel(reg & ~BIT(offset), reg_addr); in meson_reset_level()
108 writel(reg | BIT(offset), reg_addr); in meson_reset_level()
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_misc.c310 u32 reg_addr; in hns_dsaf_xge_srst_by_port() local
319 reg_addr = DSAF_SUB_SC_XGE_RESET_REQ_REG; in hns_dsaf_xge_srst_by_port()
321 reg_addr = DSAF_SUB_SC_XGE_RESET_DREQ_REG; in hns_dsaf_xge_srst_by_port()
323 dsaf_write_sub(dsaf_dev, reg_addr, reg_val); in hns_dsaf_xge_srst_by_port()
346 u32 reg_addr; in hns_dsaf_srst_chns() local
349 reg_addr = DSAF_SUB_SC_DSAF_RESET_REQ_REG; in hns_dsaf_srst_chns()
351 reg_addr = DSAF_SUB_SC_DSAF_RESET_DREQ_REG; in hns_dsaf_srst_chns()
353 dsaf_write_sub(dsaf_dev, reg_addr, msk); in hns_dsaf_srst_chns()
459 u32 reg_addr; in hns_ppe_srst_by_port() local
464 reg_addr = DSAF_SUB_SC_PPE_RESET_REQ_REG; in hns_ppe_srst_by_port()
[all …]
/Linux-v4.19/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()
/Linux-v4.19/drivers/media/pci/cx25821/
Dcx25821-i2c.c92 cx_write(bus->reg_addr, msg->addr << 25); in i2c_sendbytes()
116 cx_write(bus->reg_addr, addr); in i2c_sendbytes()
142 cx_write(bus->reg_addr, addr); in i2c_sendbytes()
183 cx_write(bus->reg_addr, msg->addr << 25); in i2c_readbytes()
208 cx_write(bus->reg_addr, msg->addr << 25); in i2c_readbytes()
354 int cx25821_i2c_read(struct cx25821_i2c *bus, u16 reg_addr, int *value) in cx25821_i2c_read() argument
375 addr[0] = (reg_addr >> 8); in cx25821_i2c_read()
376 addr[1] = (reg_addr & 0xff); in cx25821_i2c_read()
388 int cx25821_i2c_write(struct cx25821_i2c *bus, u16 reg_addr, int value) in cx25821_i2c_write() argument
403 buf[0] = reg_addr >> 8; in cx25821_i2c_write()
[all …]
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4vf/
Dadapter.h427 static inline u32 t4_read_reg(struct adapter *adapter, u32 reg_addr) in t4_read_reg() argument
429 return readl(adapter->regs + reg_addr); in t4_read_reg()
440 static inline void t4_write_reg(struct adapter *adapter, u32 reg_addr, u32 val) in t4_write_reg() argument
442 writel(val, adapter->regs + reg_addr); in t4_write_reg()
465 static inline u64 t4_read_reg64(struct adapter *adapter, u32 reg_addr) in t4_read_reg64() argument
467 return readq(adapter->regs + reg_addr); in t4_read_reg64()
478 static inline void t4_write_reg64(struct adapter *adapter, u32 reg_addr, in t4_write_reg64() argument
481 writeq(val, adapter->regs + reg_addr); in t4_write_reg64()
/Linux-v4.19/drivers/staging/rtl8192u/
Dr819xU_phy.h45 void rtl8192_setBBreg(struct net_device *dev, u32 reg_addr,
47 u32 rtl8192_QueryBBReg(struct net_device *dev, u32 reg_addr, u32 bitmask);
50 u32 reg_addr, u32 bitmask, u32 data);
53 u32 reg_addr, u32 bitmask);
/Linux-v4.19/drivers/staging/rtlwifi/btcoexist/
Dhalbtcoutsrc.h437 typedef u8 (*bfp_btc_r1)(void *btc_context, u32 reg_addr);
439 typedef u16 (*bfp_btc_r2)(void *btc_context, u32 reg_addr);
441 typedef u32 (*bfp_btc_r4)(void *btc_context, u32 reg_addr);
443 typedef void (*bfp_btc_w1)(void *btc_context, u32 reg_addr, u32 data);
445 typedef void (*bfp_btc_w1_bit_mak)(void *btc_context, u32 reg_addr,
448 typedef void (*bfp_btc_w2)(void *btc_context, u32 reg_addr, u16 data);
450 typedef void (*bfp_btc_w4)(void *btc_context, u32 reg_addr, u32 data);
452 typedef void (*bfp_btc_local_reg_w1)(void *btc_context, u32 reg_addr, u8 data);
453 typedef void (*bfp_btc_wr_1byte_bit_mask)(void *btc_context, u32 reg_addr,
456 typedef void (*bfp_btc_set_bb_reg)(void *btc_context, u32 reg_addr,
[all …]
Dhalbtcoutsrc.c869 static u8 halbtc_read_1byte(void *bt_context, u32 reg_addr) in halbtc_read_1byte() argument
874 return rtl_read_byte(rtlpriv, reg_addr); in halbtc_read_1byte()
877 static u16 halbtc_read_2byte(void *bt_context, u32 reg_addr) in halbtc_read_2byte() argument
882 return rtl_read_word(rtlpriv, reg_addr); in halbtc_read_2byte()
885 static u32 halbtc_read_4byte(void *bt_context, u32 reg_addr) in halbtc_read_4byte() argument
890 return rtl_read_dword(rtlpriv, reg_addr); in halbtc_read_4byte()
893 static void halbtc_write_1byte(void *bt_context, u32 reg_addr, u32 data) in halbtc_write_1byte() argument
898 rtl_write_byte(rtlpriv, reg_addr, data); in halbtc_write_1byte()
901 static void halbtc_bitmask_write_1byte(void *bt_context, u32 reg_addr, in halbtc_bitmask_write_1byte() argument
910 original_value = rtl_read_byte(rtlpriv, reg_addr); in halbtc_bitmask_write_1byte()
[all …]
/Linux-v4.19/drivers/net/ethernet/intel/i40evf/
Di40e_prototype.h84 u32 reg_addr, u32 *reg_val,
86 u32 i40evf_read_rx_ctl(struct i40e_hw *hw, u32 reg_addr);
88 u32 reg_addr, u32 reg_val,
90 void i40evf_write_rx_ctl(struct i40e_hw *hw, u32 reg_addr, u32 reg_val);
93 u32 reg_addr, u32 reg_val,
97 u32 reg_addr, u32 *reg_val,
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/btcoexist/
Dhalbtcoutsrc.h712 u8 (*btc_read_1byte)(void *btc_context, u32 reg_addr);
713 void (*btc_write_1byte)(void *btc_context, u32 reg_addr, u32 data);
714 void (*btc_write_1byte_bitmask)(void *btc_context, u32 reg_addr,
716 u16 (*btc_read_2byte)(void *btc_context, u32 reg_addr);
717 void (*btc_write_2byte)(void *btc_context, u32 reg_addr, u16 data);
718 u32 (*btc_read_4byte)(void *btc_context, u32 reg_addr);
719 void (*btc_write_4byte)(void *btc_context, u32 reg_addr, u32 data);
721 void (*btc_write_local_reg_1byte)(void *btc_context, u32 reg_addr,
723 void (*btc_set_bb_reg)(void *btc_context, u32 reg_addr,
725 u32 (*btc_get_bb_reg)(void *btc_context, u32 reg_addr,
[all …]
Dhalbtcoutsrc.c941 static u8 halbtc_read_1byte(void *bt_context, u32 reg_addr) in halbtc_read_1byte() argument
946 return rtl_read_byte(rtlpriv, reg_addr); in halbtc_read_1byte()
949 static u16 halbtc_read_2byte(void *bt_context, u32 reg_addr) in halbtc_read_2byte() argument
954 return rtl_read_word(rtlpriv, reg_addr); in halbtc_read_2byte()
957 static u32 halbtc_read_4byte(void *bt_context, u32 reg_addr) in halbtc_read_4byte() argument
962 return rtl_read_dword(rtlpriv, reg_addr); in halbtc_read_4byte()
965 static void halbtc_write_1byte(void *bt_context, u32 reg_addr, u32 data) in halbtc_write_1byte() argument
970 rtl_write_byte(rtlpriv, reg_addr, data); in halbtc_write_1byte()
973 static void halbtc_bitmask_write_1byte(void *bt_context, u32 reg_addr, in halbtc_bitmask_write_1byte() argument
982 original_value = rtl_read_byte(rtlpriv, reg_addr); in halbtc_bitmask_write_1byte()
[all …]
/Linux-v4.19/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()
/Linux-v4.19/drivers/crypto/qat/qat_common/
Dqat_hal.c269 unsigned short reg_addr; in qat_hal_get_reg_addr() local
274 reg_addr = 0x80 | (reg_num & 0x7f); in qat_hal_get_reg_addr()
278 reg_addr = reg_num & 0x1f; in qat_hal_get_reg_addr()
283 reg_addr = 0x180 | (reg_num & 0x1f); in qat_hal_get_reg_addr()
286 reg_addr = 0x140 | ((reg_num & 0x3) << 1); in qat_hal_get_reg_addr()
291 reg_addr = 0x1c0 | (reg_num & 0x1f); in qat_hal_get_reg_addr()
294 reg_addr = 0x100 | ((reg_num & 0x3) << 1); in qat_hal_get_reg_addr()
297 reg_addr = 0x280 | (reg_num & 0x1f); in qat_hal_get_reg_addr()
300 reg_addr = 0x200; in qat_hal_get_reg_addr()
303 reg_addr = 0x220; in qat_hal_get_reg_addr()
[all …]
/Linux-v4.19/drivers/staging/most/usb/
Dusb.c69 u16 reg_addr; member
900 const char *name, u16 *reg_addr) in get_stat_reg_addr() argument
906 *reg_addr = regs[i].reg; in get_stat_reg_addr()
913 #define get_static_reg_addr(regs, name, reg_addr) \ argument
914 get_stat_reg_addr(regs, ARRAY_SIZE(regs), name, reg_addr)
922 u16 reg_addr; in value_show() local
926 return snprintf(buf, PAGE_SIZE, "%04x\n", dci_obj->reg_addr); in value_show()
929 reg_addr = dci_obj->reg_addr; in value_show()
930 else if (get_static_reg_addr(ro_regs, name, &reg_addr) && in value_show()
931 get_static_reg_addr(rw_regs, name, &reg_addr)) in value_show()
[all …]
/Linux-v4.19/drivers/media/platform/ti-vpe/
Dvpdma.c583 void vpdma_set_max_size(struct vpdma_data *vpdma, int reg_addr, in vpdma_set_max_size() argument
586 if (reg_addr != VPDMA_MAX_SIZE1 && reg_addr != VPDMA_MAX_SIZE2 && in vpdma_set_max_size()
587 reg_addr != VPDMA_MAX_SIZE3) in vpdma_set_max_size()
588 reg_addr = VPDMA_MAX_SIZE1; in vpdma_set_max_size()
590 write_field_reg(vpdma, reg_addr, width - 1, in vpdma_set_max_size()
593 write_field_reg(vpdma, reg_addr, height - 1, in vpdma_set_max_size()
981 u32 reg_addr = VPDMA_INT_LIST0_MASK + VPDMA_INTX_OFFSET * irq_num; in vpdma_enable_list_complete_irq() local
984 val = read_reg(vpdma, reg_addr); in vpdma_enable_list_complete_irq()
989 write_reg(vpdma, reg_addr, val); in vpdma_enable_list_complete_irq()
996 u32 reg_addr = VPDMA_INT_LIST0_STAT + VPDMA_INTX_OFFSET * irq_num; in vpdma_get_list_stat() local
[all …]

1234567