/drivers/platform/x86/ |
D | intel_scu_ipc.c | 103 struct intel_scu_ipc_dev *scu = NULL; in intel_scu_ipc_dev_get() local 115 scu = ipcdev; in intel_scu_ipc_dev_get() 119 return scu; in intel_scu_ipc_dev_get() 131 void intel_scu_ipc_dev_put(struct intel_scu_ipc_dev *scu) in intel_scu_ipc_dev_put() argument 133 if (scu) { in intel_scu_ipc_dev_put() 134 module_put(scu->owner); in intel_scu_ipc_dev_put() 135 put_device(&scu->dev); in intel_scu_ipc_dev_put() 141 struct intel_scu_ipc_dev *scu; member 147 struct intel_scu_ipc_dev *scu = dr->scu; in devm_intel_scu_ipc_dev_release() local 149 intel_scu_ipc_dev_put(scu); in devm_intel_scu_ipc_dev_release() [all …]
|
D | intel_scu_ipcutil.c | 25 struct intel_scu_ipc_dev *scu; variable 58 return intel_scu_ipc_dev_readv(scu, data->addr, data->data, count); in scu_reg_access() 60 return intel_scu_ipc_dev_writev(scu, data->addr, data->data, count); in scu_reg_access() 62 return intel_scu_ipc_dev_update(scu, data->addr[0], data->data[0], in scu_reg_access() 103 if (scu) { in scu_ipc_open() 108 scu = intel_scu_ipc_dev_get(); in scu_ipc_open() 109 if (!scu) in scu_ipc_open() 120 intel_scu_ipc_dev_put(scu); in scu_ipc_release() 121 scu = NULL; in scu_ipc_release()
|
D | intel_scu_pltdrv.c | 23 struct intel_scu_ipc_dev *scu; in intel_scu_platform_probe() local 33 scu = devm_intel_scu_ipc_register(&pdev->dev, &scu_data); in intel_scu_platform_probe() 34 if (IS_ERR(scu)) in intel_scu_platform_probe() 35 return PTR_ERR(scu); in intel_scu_platform_probe() 37 platform_set_drvdata(pdev, scu); in intel_scu_platform_probe()
|
D | intel_scu_pcidrv.c | 21 struct intel_scu_ipc_dev *scu; in intel_scu_pci_probe() local 31 scu = intel_scu_ipc_register(&pdev->dev, &scu_data); in intel_scu_pci_probe() 32 return PTR_ERR_OR_ZERO(scu); in intel_scu_pci_probe()
|
/drivers/irqchip/ |
D | irq-aspeed-scu-ic.c | 41 struct regmap *scu; member 68 regmap_read(scu_ic->scu, scu_ic->reg, &sts); in aspeed_scu_ic_irq_handler() 79 regmap_write_bits(scu_ic->scu, scu_ic->reg, mask, in aspeed_scu_ic_irq_handler() 97 regmap_update_bits(scu_ic->scu, scu_ic->reg, mask, 0); in aspeed_scu_ic_irq_mask() 112 regmap_update_bits(scu_ic->scu, scu_ic->reg, mask, bit); in aspeed_scu_ic_irq_unmask() 153 scu_ic->scu = syscon_node_to_regmap(node->parent); in aspeed_scu_ic_of_init_common() 154 if (IS_ERR(scu_ic->scu)) { in aspeed_scu_ic_of_init_common() 155 rc = PTR_ERR(scu_ic->scu); in aspeed_scu_ic_of_init_common()
|
/drivers/pinctrl/ |
D | pinctrl-lpc18xx.c | 762 struct lpc18xx_scu_data *scu = pinctrl_dev_get_drvdata(pctldev); in lpc18xx_pconf_get_gpio_pin_int() local 777 ret = lpc18xx_get_pintsel(scu->base + LPC18XX_SCU_PINTSEL0, val, arg); in lpc18xx_pconf_get_gpio_pin_int() 781 return lpc18xx_get_pintsel(scu->base + LPC18XX_SCU_PINTSEL1, val, arg); in lpc18xx_pconf_get_gpio_pin_int() 875 struct lpc18xx_scu_data *scu = pinctrl_dev_get_drvdata(pctldev); in lpc18xx_pconf_get() local 885 reg = readl(scu->base + pin_cap->offset); in lpc18xx_pconf_get() 984 struct lpc18xx_scu_data *scu = pinctrl_dev_get_drvdata(pctldev); in lpc18xx_pconf_set_gpio_pin_int() local 999 reg_val = readl(scu->base + reg_offset); in lpc18xx_pconf_set_gpio_pin_int() 1002 writel(reg_val, scu->base + reg_offset); in lpc18xx_pconf_set_gpio_pin_int() 1088 struct lpc18xx_scu_data *scu = pinctrl_dev_get_drvdata(pctldev); in lpc18xx_pconf_set() local 1100 reg = readl(scu->base + pin_cap->offset); in lpc18xx_pconf_set() [all …]
|
/drivers/firmware/imx/ |
D | Makefile | 3 obj-$(CONFIG_IMX_SCU) += imx-scu.o misc.o imx-scu-irq.o rm.o imx-scu-soc.o 4 obj-$(CONFIG_IMX_SCU_PD) += scu-pd.o
|
/drivers/platform/x86/intel/telemetry/ |
D | pltdrv.c | 255 return intel_scu_ipc_dev_command(telm_conf->scu, IOSS_TELEM, in telemetry_plt_config_ioss_event() 275 struct intel_scu_ipc_dev *scu = telm_conf->scu; in telemetry_setup_iossevtconfig() local 286 ret = intel_scu_ipc_dev_command(scu, IOSS_TELEM, in telemetry_setup_iossevtconfig() 297 ret = intel_scu_ipc_dev_command(scu, IOSS_TELEM, in telemetry_setup_iossevtconfig() 311 ret = intel_scu_ipc_dev_command(scu, IOSS_TELEM, in telemetry_setup_iossevtconfig() 339 ret = intel_scu_ipc_dev_command(scu, IOSS_TELEM, in telemetry_setup_iossevtconfig() 390 ret = intel_scu_ipc_dev_command(scu, IOSS_TELEM, in telemetry_setup_iossevtconfig() 579 ret = intel_scu_ipc_dev_command(telm_conf->scu, IOSS_TELEM, in telemetry_setup() 675 struct intel_scu_ipc_dev *scu = telm_conf->scu; in telemetry_plt_set_sampling_period() local 684 ret = intel_scu_ipc_dev_command(scu, IOSS_TELEM, in telemetry_plt_set_sampling_period() [all …]
|
/drivers/watchdog/ |
D | intel-mid_wdt.c | 39 struct intel_scu_ipc_dev *scu; member 45 struct intel_scu_ipc_dev *scu = mid->scu; in wdt_command() local 47 return intel_scu_ipc_dev_command_with_size(scu, IPC_WATCHDOG, sub, in, in wdt_command() 157 mid->scu = devm_intel_scu_ipc_dev_get(dev); in mid_wdt_probe() 158 if (!mid->scu) in mid_wdt_probe()
|
/drivers/mfd/ |
D | intel_pmc_bxt.c | 170 struct intel_scu_ipc_dev *scu = pmc->scu; in simplecmd_store() local 181 ret = intel_scu_ipc_dev_simple_command(scu, cmd, subcmd); in simplecmd_store() 206 struct intel_scu_ipc_dev *scu = pmc->scu; in northpeak_store() local 221 ret = intel_scu_ipc_dev_simple_command(scu, PMC_NORTHPEAK_CTRL, subcmd); in northpeak_store() 442 pmc->scu = devm_intel_scu_ipc_register(&pdev->dev, &scu_data); in intel_pmc_probe() 443 if (IS_ERR(pmc->scu)) in intel_pmc_probe() 444 return PTR_ERR(pmc->scu); in intel_pmc_probe()
|
D | intel_soc_pmic_mrfld.c | 81 ret = intel_scu_ipc_dev_ioread8(pmic->scu, reg, &ipc_out); in bcove_ipc_byte_reg_read() 95 return intel_scu_ipc_dev_iowrite8(pmic->scu, reg, ipc_in); in bcove_ipc_byte_reg_write() 117 pmic->scu = devm_intel_scu_ipc_dev_get(dev); in bcove_probe() 118 if (!pmic->scu) in bcove_probe()
|
D | intel_soc_pmic_bxtwc.c | 296 ret = intel_scu_ipc_dev_command(pmic->scu, PMC_PMIC_ACCESS, in regmap_ipc_byte_reg_read() 327 return intel_scu_ipc_dev_command(pmic->scu, PMC_PMIC_ACCESS, in regmap_ipc_byte_reg_write() 455 pmic->scu = devm_intel_scu_ipc_dev_get(dev); in bxtwc_probe() 456 if (!pmic->scu) in bxtwc_probe()
|
/drivers/clk/imx/ |
D | Makefile | 34 obj-$(CONFIG_MXC_CLK_SCU) += clk-imx-scu.o clk-imx-lpcg-scu.o 35 clk-imx-scu-$(CONFIG_CLK_IMX8QXP) += clk-scu.o clk-imx8qxp.o \ 38 clk-imx-lpcg-scu-$(CONFIG_CLK_IMX8QXP) += clk-lpcg-scu.o clk-imx8qxp-lpcg.o
|
/drivers/gpu/drm/aspeed/ |
D | aspeed_gfx_drv.c | 167 priv->scu = syscon_regmap_lookup_by_phandle(np, "syscon"); in aspeed_gfx_load() 168 if (IS_ERR(priv->scu)) { in aspeed_gfx_load() 169 priv->scu = syscon_regmap_lookup_by_compatible("aspeed,ast2500-scu"); in aspeed_gfx_load() 170 if (IS_ERR(priv->scu)) { in aspeed_gfx_load() 172 return PTR_ERR(priv->scu); in aspeed_gfx_load() 275 rc = regmap_update_bits(priv->scu, priv->dac_reg, 0x30000, val << 16); in dac_mux_store() 288 rc = regmap_read(priv->scu, priv->dac_reg, ®); in dac_mux_show() 303 rc = regmap_read(priv->scu, priv->vga_scratch_reg, ®); in vga_pw_show()
|
D | aspeed_gfx_crtc.c | 64 regmap_update_bits(priv->scu, priv->dac_reg, BIT(16), BIT(16)); in aspeed_gfx_enable_controller() 78 regmap_update_bits(priv->scu, priv->dac_reg, BIT(16), 0); in aspeed_gfx_disable_controller()
|
D | aspeed_gfx.h | 12 struct regmap *scu; member
|
/drivers/fsi/ |
D | fsi-master-ast-cf.c | 90 struct regmap *scu; member 692 regmap_write(master->scu, SCU_COPRO_CTRL, SCU_COPRO_RESET); in reset_cf() 694 regmap_write(master->scu, SCU_COPRO_CTRL, 0); in reset_cf() 700 regmap_write(master->scu, SCU_COPRO_CTRL, SCU_COPRO_CLK_EN); in start_cf() 722 regmap_write(master->scu, SCU_2500_COPRO_SEG0, master->cf_mem_addr | in setup_ast2500_cf_maps() 726 regmap_write(master->scu, SCU_2500_COPRO_SEG2, SYSREG_BASE | in setup_ast2500_cf_maps() 728 regmap_write(master->scu, SCU_2500_COPRO_SEG3, SYSREG_BASE | 0x100000 | in setup_ast2500_cf_maps() 732 regmap_write(master->scu, SCU_2500_COPRO_SEG6, SYSREG_BASE); in setup_ast2500_cf_maps() 733 regmap_write(master->scu, SCU_2500_COPRO_SEG7, SYSREG_BASE | 0x100000); in setup_ast2500_cf_maps() 736 regmap_write(master->scu, SCU_2500_COPRO_CACHE_CTL, in setup_ast2500_cf_maps() [all …]
|
/drivers/soc/aspeed/ |
D | aspeed-lpc-ctrl.c | 40 struct regmap *scu; member 194 regmap_update_bits(lpc_ctrl->scu, 0x0D8, BIT(2), 0); in aspeed_lpc_ctrl_ioctl() 301 lpc_ctrl->scu = syscon_regmap_lookup_by_compatible("aspeed,ast2600-scu"); in aspeed_lpc_ctrl_probe() 302 if (IS_ERR(lpc_ctrl->scu)) { in aspeed_lpc_ctrl_probe() 304 return PTR_ERR(lpc_ctrl->scu); in aspeed_lpc_ctrl_probe()
|
/drivers/pinctrl/aspeed/ |
D | pinctrl-aspeed.c | 455 pdata->scu = syscon_node_to_regmap(parent->of_node); in aspeed_pinctrl_probe() 456 if (IS_ERR(pdata->scu)) { in aspeed_pinctrl_probe() 458 return PTR_ERR(pdata->scu); in aspeed_pinctrl_probe() 461 pdata->pinmux.maps[ASPEED_IP_SCU] = pdata->scu; in aspeed_pinctrl_probe() 545 rc = regmap_read(pdata->scu, pconf->reg, &val); in aspeed_pin_config_get() 600 rc = regmap_update_bits(pdata->scu, pconf->reg, in aspeed_pin_config_set()
|
D | pinctrl-aspeed.h | 70 struct regmap *scu; member
|
/drivers/nvmem/ |
D | Makefile | 20 obj-$(CONFIG_NVMEM_IMX_OCOTP_SCU) += nvmem-imx-ocotp-scu.o 21 nvmem-imx-ocotp-scu-y := imx-ocotp-scu.o
|
/drivers/iio/adc/ |
D | aspeed_adc.c | 179 struct regmap *scu; in aspeed_adc_set_trim_data() local 188 scu = syscon_node_to_regmap(syscon); in aspeed_adc_set_trim_data() 190 if (IS_ERR(scu)) { in aspeed_adc_set_trim_data() 195 if (regmap_read(scu, data->model_data->trim_locate->offset, in aspeed_adc_set_trim_data()
|
/drivers/pinctrl/freescale/ |
D | Makefile | 4 obj-$(CONFIG_PINCTRL_IMX_SCU) += pinctrl-scu.o
|
D | pinctrl-imx.h | 56 struct imx_pin_scu scu; member
|
D | pinctrl-scu.c | 114 struct imx_pin_scu *pin_scu = &pin->conf.scu; in imx_pinctrl_parse_pin_scu()
|