Lines Matching refs:pmic
77 struct intel_soc_pmic *pmic = context; in bcove_ipc_byte_reg_read() local
81 ret = intel_scu_ipc_dev_ioread8(pmic->scu, reg, &ipc_out); in bcove_ipc_byte_reg_read()
92 struct intel_soc_pmic *pmic = context; in bcove_ipc_byte_reg_write() local
95 return intel_scu_ipc_dev_iowrite8(pmic->scu, reg, ipc_in); in bcove_ipc_byte_reg_write()
109 struct intel_soc_pmic *pmic; in bcove_probe() local
113 pmic = devm_kzalloc(dev, sizeof(*pmic), GFP_KERNEL); in bcove_probe()
114 if (!pmic) in bcove_probe()
117 pmic->scu = devm_intel_scu_ipc_dev_get(dev); in bcove_probe()
118 if (!pmic->scu) in bcove_probe()
121 platform_set_drvdata(pdev, pmic); in bcove_probe()
122 pmic->dev = &pdev->dev; in bcove_probe()
124 pmic->regmap = devm_regmap_init(dev, NULL, pmic, &bcove_regmap_config); in bcove_probe()
125 if (IS_ERR(pmic->regmap)) in bcove_probe()
126 return PTR_ERR(pmic->regmap); in bcove_probe()