/openbmc/linux/drivers/clk/rockchip/ |
H A D | clk-cpu.c | 86 const struct rockchip_cpuclk_reg_data *reg_data = cpuclk->reg_data; in rockchip_cpuclk_recalc_rate() local 155 const struct rockchip_cpuclk_reg_data *reg_data = cpuclk->reg_data; in rockchip_cpuclk_pre_rate_change() local 208 if (reg_data->mux_core_reg) in rockchip_cpuclk_pre_rate_change() 210 reg_data->mux_core_mask, in rockchip_cpuclk_pre_rate_change() 211 reg_data->mux_core_shift), in rockchip_cpuclk_pre_rate_change() 215 reg_data->mux_core_mask, in rockchip_cpuclk_pre_rate_change() 226 const struct rockchip_cpuclk_reg_data *reg_data = cpuclk->reg_data; in rockchip_cpuclk_post_rate_change() local 250 if (reg_data->mux_core_reg) in rockchip_cpuclk_post_rate_change() 252 reg_data->mux_core_mask, in rockchip_cpuclk_post_rate_change() 257 reg_data->mux_core_mask, in rockchip_cpuclk_post_rate_change() [all …]
|
/openbmc/linux/drivers/power/supply/ |
H A D | max14577_charger.c | 51 u8 reg_data; in max14577_get_charger_state() local 124 u8 reg_data; in max14577_get_online() local 164 u8 reg_data; in max14577_get_battery_health() local 209 u8 reg_data; in max14577_set_fast_charge_timer() local 233 u8 reg_data; in max14577_init_constant_voltage() local 265 u8 reg_data; in max14577_init_eoc() local 298 reg_data); in max14577_init_eoc() 304 u8 reg_data; in max14577_init_fast_charge() local 318 reg_data); in max14577_init_fast_charge() 329 u8 reg_data; in max14577_charger_reg_init() local [all …]
|
H A D | rt5033_charger.c | 121 u8 reg_data; in rt5033_init_const_charge() local 132 reg_data = 0x00; in rt5033_init_const_charge() 139 reg_data = val; in rt5033_init_const_charge() 159 reg_data = 0x01; in rt5033_init_const_charge() 161 reg_data = 0x07; in rt5033_init_const_charge() 192 u8 reg_data; in rt5033_init_fast_charge() local 211 reg_data = 0x00; in rt5033_init_fast_charge() 218 reg_data = val; in rt5033_init_fast_charge() 237 u8 reg_data; in rt5033_init_pre_charge() local 255 reg_data = val; in rt5033_init_pre_charge() [all …]
|
/openbmc/linux/drivers/watchdog/ |
H A D | mlx_wdt.c | 59 struct mlxreg_core_data *reg_data; in mlxreg_wdt_check_card_reset() local 69 reg_data = &wdt->pdata->data[wdt->reset_idx]; in mlxreg_wdt_check_card_reset() 72 if (regval & ~reg_data->mask) { in mlxreg_wdt_check_card_reset() 85 return regmap_update_bits(wdt->regmap, reg_data->reg, ~reg_data->mask, in mlxreg_wdt_start() 86 BIT(reg_data->bit)); in mlxreg_wdt_start() 94 return regmap_update_bits(wdt->regmap, reg_data->reg, ~reg_data->mask, in mlxreg_wdt_stop() 95 ~BIT(reg_data->bit)); in mlxreg_wdt_stop() 103 return regmap_write_bits(wdt->regmap, reg_data->reg, ~reg_data->mask, in mlxreg_wdt_ping() 104 BIT(reg_data->bit)); in mlxreg_wdt_ping() 140 reg_data->reg + 1, regval); in mlxreg_wdt_set_timeout() [all …]
|
/openbmc/linux/drivers/soc/qcom/ |
H A D | spm.c | 195 if (drv->reg_data->reg_offset[reg]) in spm_register_write() 197 drv->reg_data->reg_offset[reg]); in spm_register_write() 206 if (!drv->reg_data->reg_offset[reg]) in spm_register_write_sync() 211 drv->reg_data->reg_offset[reg]); in spm_register_write_sync() 213 drv->reg_data->reg_offset[reg]); in spm_register_write_sync() 232 start_index = drv->reg_data->start_index[mode]; in spm_set_low_power_mode() 290 drv->reg_data = match_id->data; in spm_dev_probe() 295 __iowrite32_copy(addr, drv->reg_data->seq, in spm_dev_probe() 296 ARRAY_SIZE(drv->reg_data->seq) / 4); in spm_dev_probe() 310 drv->reg_data->pmic_data[0]); in spm_dev_probe() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | 80003es2lan.c | 730 u32 reg_data; in e1000_init_hw_80003es2lan() local 777 reg_data = ((reg_data & ~E1000_TXDCTL_WTHRESH) | in e1000_init_hw_80003es2lan() 783 reg_data = ((reg_data & ~E1000_TXDCTL_WTHRESH) | in e1000_init_hw_80003es2lan() 1026 u16 reg_data; in e1000_setup_copper_link_80003es2lan() local 1042 ®_data); in e1000_setup_copper_link_80003es2lan() 1045 reg_data |= 0x3F; in e1000_setup_copper_link_80003es2lan() 1047 reg_data); in e1000_setup_copper_link_80003es2lan() 1053 ®_data); in e1000_setup_copper_link_80003es2lan() 1060 reg_data); in e1000_setup_copper_link_80003es2lan() 1118 reg_data); in e1000_cfg_kmrn_10_100_80003es2lan() [all …]
|
/openbmc/u-boot/drivers/phy/marvell/ |
H A D | comphy_core.h | 98 u32 reg_data; in reg_set_silent() local 100 reg_data = readl(addr); in reg_set_silent() 101 reg_data &= ~mask; in reg_set_silent() 102 reg_data |= data; in reg_set_silent() 103 writel(reg_data, addr); in reg_set_silent() 117 u16 reg_data; in reg_set_silent16() local 119 reg_data = readw(addr); in reg_set_silent16() 120 reg_data &= ~mask; in reg_set_silent16() 121 reg_data |= data; in reg_set_silent16() 122 writew(reg_data, addr); in reg_set_silent16()
|
/openbmc/linux/drivers/regulator/ |
H A D | max14577-regulator.c | 19 u8 reg_data; in max14577_reg_is_enabled() local 23 max14577_read_reg(rmap, MAX14577_CHG_REG_CHG_CTRL2, ®_data); in max14577_reg_is_enabled() 24 if ((reg_data & CHGCTRL2_MBCHOSTEN_MASK) == 0) in max14577_reg_is_enabled() 26 max14577_read_reg(rmap, MAX14577_CHG_REG_STATUS3, ®_data); in max14577_reg_is_enabled() 27 if ((reg_data & STATUS3_CGMBC_MASK) == 0) in max14577_reg_is_enabled() 38 u8 reg_data; in max14577_reg_get_current_limit() local 49 if ((reg_data & CHGCTRL4_MBCICHWRCL_MASK) == 0) in max14577_reg_get_current_limit() 52 reg_data = ((reg_data & CHGCTRL4_MBCICHWRCH_MASK) >> in max14577_reg_get_current_limit() 54 return limits->high_start + reg_data * limits->high_step; in max14577_reg_get_current_limit() 60 u8 reg_data; in max14577_reg_set_current_limit() local [all …]
|
H A D | max77693-regulator.c | 57 const struct chg_reg_data *reg_data = rdev_get_drvdata(rdev); in max77693_chg_get_current_limit() local 64 ret = regmap_read(rdev->regmap, reg_data->linear_reg, ®); in max77693_chg_get_current_limit() 68 sel = reg & reg_data->linear_mask; in max77693_chg_get_current_limit() 71 if (sel <= reg_data->min_sel) in max77693_chg_get_current_limit() 74 sel -= reg_data->min_sel; in max77693_chg_get_current_limit() 76 val = chg_min_uA + reg_data->uA_step * sel; in max77693_chg_get_current_limit() 86 const struct chg_reg_data *reg_data = rdev_get_drvdata(rdev); in max77693_chg_set_current_limit() local 90 while (chg_min_uA + reg_data->uA_step * sel < min_uA) in max77693_chg_set_current_limit() 93 if (chg_min_uA + reg_data->uA_step * sel > max_uA) in max77693_chg_set_current_limit() 97 sel += reg_data->min_sel; in max77693_chg_set_current_limit() [all …]
|
/openbmc/u-boot/arch/arm/mach-mvebu/serdes/a38x/ |
H A D | seq_exec.c | 32 u32 unit_base_reg, unit_offset, data, mask, reg_data, reg_addr; in write_op_execute() local 54 reg_data = reg_read(reg_addr); in write_op_execute() 55 reg_data &= (~mask); in write_op_execute() 59 reg_data |= data; in write_op_execute() 60 reg_write(reg_addr, reg_data); in write_op_execute() 63 printf(" - 0x%x\n", reg_data); in write_op_execute() 87 u32 reg_addr, reg_data; in poll_op_execute() local 113 reg_data = reg_read(reg_addr) & mask; in poll_op_execute() 116 } while ((reg_data != data) && (poll_counter < num_of_loops)); in poll_op_execute() 118 if ((poll_counter >= num_of_loops) && (reg_data != data)) { in poll_op_execute()
|
H A D | high_speed_env_spec.c | 1564 u32 reg_data; in serdes_pex_usb3_pipe_delay_w_a() local 1682 u32 reg_data; in serdes_power_up_ctrl() local 1731 reg_data = in serdes_power_up_ctrl() 1740 reg_data); in serdes_power_up_ctrl() 1742 reg_data = in serdes_power_up_ctrl() 1746 reg_data |= 0x2; in serdes_power_up_ctrl() 1748 reg_data); in serdes_power_up_ctrl() 1750 reg_data = in serdes_power_up_ctrl() 1756 reg_data); in serdes_power_up_ctrl() 2117 reg_data |= data1; in hws_ref_clock_set() [all …]
|
/openbmc/u-boot/drivers/net/pfe_eth/ |
H A D | pfe_mdio.c | 22 u32 reg_data; in pfe_write_addr() local 28 reg_data = (EMAC_MII_DATA_TA | phy | devadr | reg_addr); in pfe_write_addr() 30 writel(reg_data, reg_base + EMAC_MII_DATA_REG); in pfe_write_addr() 56 u32 reg_data; in pfe_phy_read() local 72 reg_data = (EMAC_MII_DATA_ST | EMAC_MII_DATA_OP_RD | in pfe_phy_read() 75 reg_data = (EMAC_MII_DATA_OP_CL45_RD | EMAC_MII_DATA_TA | in pfe_phy_read() 78 writel(reg_data, reg_base + EMAC_MII_DATA_REG); in pfe_phy_read() 111 u32 reg_data; in pfe_phy_write() local 127 reg_data = (EMAC_MII_DATA_ST | EMAC_MII_DATA_OP_WR | in pfe_phy_write() 130 reg_data = (EMAC_MII_DATA_OP_CL45_WR | EMAC_MII_DATA_TA | in pfe_phy_write() [all …]
|
/openbmc/linux/drivers/net/ethernet/xilinx/ |
H A D | xilinx_emaclite.c | 152 u32 reg_data; in xemaclite_enable_interrupts() local 156 xemaclite_writel(reg_data | XEL_TSR_XMIT_IE_MASK, in xemaclite_enable_interrupts() 175 u32 reg_data; in xemaclite_disable_interrupts() local 310 u32 reg_data; in xemaclite_send_data() local 321 reg_data = xemaclite_readl(addr + XEL_TSR_OFFSET); in xemaclite_send_data() 322 if ((reg_data & (XEL_TSR_XMIT_BUSY_MASK | in xemaclite_send_data() 336 if ((reg_data & (XEL_TSR_XMIT_BUSY_MASK | in xemaclite_send_data() 376 u32 reg_data; in xemaclite_recv_data() local 402 if ((reg_data & XEL_RSR_RECV_DONE_MASK) != in xemaclite_recv_data() 448 reg_data &= ~XEL_RSR_RECV_DONE_MASK; in xemaclite_recv_data() [all …]
|
/openbmc/linux/drivers/usb/isp1760/ |
H A D | isp1760-if.c | 39 u32 reg_data; in isp1761_pci_init() local 75 reg_data = 0; in isp1761_pci_init() 76 while ((reg_data != 0xFACE) && retry_count) { in isp1761_pci_init() 82 reg_data = readl(iobase + ISP176x_HC_SCRATCH) & 0x0000ffff; in isp1761_pci_init() 92 if (reg_data != 0xFACE) { in isp1761_pci_init() 93 dev_err(&dev->dev, "scratch register mismatch %x\n", reg_data); in isp1761_pci_init() 115 reg_data = readl(iobase + PLX_INT_CSR_REG); in isp1761_pci_init() 116 reg_data |= 0x900; in isp1761_pci_init() 117 writel(reg_data, iobase + PLX_INT_CSR_REG); in isp1761_pci_init()
|
/openbmc/u-boot/drivers/gpio/ |
H A D | bcm6345_gpio.c | 18 void __iomem *reg_data; member 25 return !!(readl_be(priv->reg_data) & BIT(offset)); in bcm6345_gpio_get_value() 34 setbits_be32(priv->reg_data, BIT(offset)); in bcm6345_gpio_set_value() 36 clrbits_be32(priv->reg_data, BIT(offset)); in bcm6345_gpio_set_value() 96 priv->reg_data = dev_remap_addr_index(dev, 1); in bcm6345_gpio_probe() 97 if (!priv->reg_data) in bcm6345_gpio_probe()
|
/openbmc/linux/drivers/char/xilinx_hwicap/ |
H A D | fifo_icap.c | 359 u32 reg_data; in fifo_icap_reset() local 364 reg_data = in_be32(drvdata->base_address + XHI_CR_OFFSET); in fifo_icap_reset() 367 reg_data | XHI_CR_SW_RESET_MASK); in fifo_icap_reset() 370 reg_data & (~XHI_CR_SW_RESET_MASK)); in fifo_icap_reset() 380 u32 reg_data; in fifo_icap_flush_fifo() local 385 reg_data = in_be32(drvdata->base_address + XHI_CR_OFFSET); in fifo_icap_flush_fifo() 388 reg_data | XHI_CR_FIFO_CLR_MASK); in fifo_icap_flush_fifo() 391 reg_data & (~XHI_CR_FIFO_CLR_MASK)); in fifo_icap_flush_fifo()
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | dbg.c | 1101 struct iwl_dump_ini_region_data *reg_data, in iwl_dump_ini_csr_iter() argument 1306 struct iwl_dump_ini_region_data *reg_data, in iwl_dump_ini_txf_iter() argument 1319 if (!iwl_ini_txf_iter(fwrt, reg_data, idx)) in iwl_dump_ini_txf_iter() 1380 struct iwl_dump_ini_region_data *reg_data, in iwl_ini_get_rxf_data() argument 1990 struct iwl_dump_ini_region_data *reg_data) in iwl_dump_ini_err_table_get_size() argument 2022 if (!reg_data->dump_data->fw_pkt) in iwl_dump_ini_fw_pkt_get_size() 2071 struct iwl_dump_ini_region_data *reg_data); 2141 size = ops->get_size(fwrt, reg_data); in iwl_dump_ini_mem() 2461 struct iwl_dump_ini_region_data reg_data = { in iwl_dump_ini_trigger() local 2484 if (!reg_data.reg_tlv) { in iwl_dump_ini_trigger() [all …]
|
/openbmc/linux/drivers/clk/ti/ |
H A D | clkctrl.c | 644 reg_data = data->regs; in _ti_omap4_clkctrl_setup() 646 while (reg_data->parent) { in _ti_omap4_clkctrl_setup() 649 reg_data++; in _ti_omap4_clkctrl_setup() 662 if (reg_data->flags & CLKF_SW_SUP) in _ti_omap4_clkctrl_setup() 664 if (reg_data->flags & CLKF_HW_SUP) in _ti_omap4_clkctrl_setup() 666 if (reg_data->flags & CLKF_NO_IDLEST) in _ti_omap4_clkctrl_setup() 669 if (reg_data->clkdm_name) in _ti_omap4_clkctrl_setup() 670 hw->clkdm_name = reg_data->clkdm_name; in _ti_omap4_clkctrl_setup() 674 init.parent_names = ®_data->parent; in _ti_omap4_clkctrl_setup() 681 reg_data->offset, 0, in _ti_omap4_clkctrl_setup() [all …]
|
/openbmc/linux/drivers/extcon/ |
H A D | extcon-ptn5150.c | 74 unsigned int port_status, reg_data, vbus; in ptn5150_check_state() local 78 ret = regmap_read(info->regmap, PTN5150_REG_CC_STATUS, ®_data); in ptn5150_check_state() 84 port_status = FIELD_GET(PTN5150_REG_CC_PORT_ATTACHMENT, reg_data); in ptn5150_check_state() 95 vbus = FIELD_GET(PTN5150_REG_CC_VBUS_DETECTION, reg_data); in ptn5150_check_state() 183 unsigned int reg_data, vendor_id, version_id; in ptn5150_init_dev_type() local 186 ret = regmap_read(info->regmap, PTN5150_REG_DEVICE_ID, ®_data); in ptn5150_init_dev_type() 192 vendor_id = FIELD_GET(PTN5150_REG_DEVICE_ID_VENDOR, reg_data); in ptn5150_init_dev_type() 193 version_id = FIELD_GET(PTN5150_REG_DEVICE_ID_VERSION, reg_data); in ptn5150_init_dev_type() 198 ret = regmap_read(info->regmap, PTN5150_REG_INT_STATUS, ®_data); in ptn5150_init_dev_type() 206 ret = regmap_read(info->regmap, PTN5150_REG_INT_REG_STATUS, ®_data); in ptn5150_init_dev_type()
|
H A D | extcon-sm5502.c | 30 struct reg_data { struct 66 struct reg_data *reg_data; member 74 static struct reg_data sm5502_reg_data[] = { 102 static struct reg_data sm5504_reg_data[] = { 644 unsigned int reg_data, vendor_id, version_id; in sm5502_init_dev_type() local 655 vendor_id = ((reg_data & SM5502_REG_DEVICE_ID_VENDOR_MASK) >> in sm5502_init_dev_type() 667 if (!info->type->reg_data[i].invert) in sm5502_init_dev_type() 668 val |= ~info->type->reg_data[i].val; in sm5502_init_dev_type() 670 val = info->type->reg_data[i].val; in sm5502_init_dev_type() 780 .reg_data = sm5502_reg_data, [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | nbio_v2_3.c | 501 uint32_t reg_data = 0; in nbio_v2_3_apply_lc_spc_mode_wa() local 508 reg_data = RREG32_PCIE(smnPCIE_LC_LINK_WIDTH_CNTL); in nbio_v2_3_apply_lc_spc_mode_wa() 517 reg_data = RREG32_PCIE(smnPCIE_LC_CNTL6); in nbio_v2_3_apply_lc_spc_mode_wa() 518 reg_data &= ~PCIE_LC_CNTL6__LC_SPC_MODE_8GT_MASK; in nbio_v2_3_apply_lc_spc_mode_wa() 519 reg_data |= (0x2 << PCIE_LC_CNTL6__LC_SPC_MODE_8GT__SHIFT); in nbio_v2_3_apply_lc_spc_mode_wa() 520 WREG32_PCIE(smnPCIE_LC_CNTL6, reg_data); in nbio_v2_3_apply_lc_spc_mode_wa() 526 uint32_t reg_data = 0; in nbio_v2_3_apply_l1_link_width_reconfig_wa() local 531 reg_data = RREG32_PCIE(smnPCIE_LC_LINK_WIDTH_CNTL); in nbio_v2_3_apply_l1_link_width_reconfig_wa() 533 WREG32_PCIE(smnPCIE_LC_LINK_WIDTH_CNTL, reg_data); in nbio_v2_3_apply_l1_link_width_reconfig_wa() 538 uint32_t reg, reg_data; in nbio_v2_3_clear_doorbell_interrupt() local [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | mt6660.c | 49 u8 reg_data[4]; in mt6660_reg_write() local 53 reg_data[size - i - 1] = (val >> (8 * i)) & 0xff; in mt6660_reg_write() 64 u32 reg_data = 0; in mt6660_reg_read() local 70 reg_data <<= 8; in mt6660_reg_read() 71 reg_data |= data[i]; in mt6660_reg_read() 73 *val = reg_data; in mt6660_reg_read() 334 u16 reg_data = 0; in mt6660_component_aif_hw_params() local 347 reg_data = 3; in mt6660_component_aif_hw_params() 350 reg_data = 2; in mt6660_component_aif_hw_params() 353 reg_data = 1; in mt6660_component_aif_hw_params() [all …]
|
/openbmc/linux/drivers/thermal/intel/int340x_thermal/ |
H A D | processor_thermal_mbox.c | 50 u32 reg_data; in send_mbox_write_cmd() local 63 reg_data = BIT_ULL(MBOX_BUSY_BIT) | id; in send_mbox_write_cmd() 64 writel(reg_data, (proc_priv->mmio_base + MBOX_OFFSET_INTERFACE)); in send_mbox_write_cmd() 76 u32 reg_data; in send_mbox_read_cmd() local 88 reg_data = BIT_ULL(MBOX_BUSY_BIT) | id; in send_mbox_read_cmd() 89 writel(reg_data, (proc_priv->mmio_base + MBOX_OFFSET_INTERFACE)); in send_mbox_read_cmd()
|
/openbmc/linux/drivers/staging/vt6656/ |
H A D | rf.c | 198 u8 reg_data[4]; in vnt_rf_write_embedded() local 202 reg_data[0] = (u8)data; in vnt_rf_write_embedded() 203 reg_data[1] = (u8)(data >> 8); in vnt_rf_write_embedded() 204 reg_data[2] = (u8)(data >> 16); in vnt_rf_write_embedded() 205 reg_data[3] = (u8)(data >> 24); in vnt_rf_write_embedded() 208 ARRAY_SIZE(reg_data), reg_data); in vnt_rf_write_embedded()
|
/openbmc/linux/drivers/edac/ |
H A D | qcom_edac.c | 209 struct llcc_edac_reg_data reg_data = edac_reg_data[err_type]; in dump_syn_reg_values() local 216 for (i = 0; i < reg_data.reg_cnt; i++) { in dump_syn_reg_values() 224 reg_data.name, i, synd_val); in dump_syn_reg_values() 232 err_cnt &= reg_data.count_mask; in dump_syn_reg_values() 233 err_cnt >>= reg_data.count_shift; in dump_syn_reg_values() 235 reg_data.name, err_cnt); in dump_syn_reg_values() 242 err_ways &= reg_data.ways_mask; in dump_syn_reg_values() 243 err_ways >>= reg_data.ways_shift; in dump_syn_reg_values() 246 reg_data.name, err_ways); in dump_syn_reg_values()
|