gsbi              132 drivers/soc/qcom/qcom_gsbi.c 	struct gsbi_info *gsbi;
gsbi              137 drivers/soc/qcom/qcom_gsbi.c 	gsbi = devm_kzalloc(&pdev->dev, sizeof(*gsbi), GFP_KERNEL);
gsbi              139 drivers/soc/qcom/qcom_gsbi.c 	if (!gsbi)
gsbi              148 drivers/soc/qcom/qcom_gsbi.c 	gsbi->tcsr = syscon_regmap_lookup_by_phandle(node, "syscon-tcsr");
gsbi              150 drivers/soc/qcom/qcom_gsbi.c 	if (!IS_ERR(gsbi->tcsr)) {
gsbi              173 drivers/soc/qcom/qcom_gsbi.c 	if (of_property_read_u32(node, "qcom,mode", &gsbi->mode)) {
gsbi              179 drivers/soc/qcom/qcom_gsbi.c 	of_property_read_u32(node, "qcom,crci", &gsbi->crci);
gsbi              182 drivers/soc/qcom/qcom_gsbi.c 		 gsbi->mode, gsbi->crci);
gsbi              183 drivers/soc/qcom/qcom_gsbi.c 	gsbi->hclk = devm_clk_get(&pdev->dev, "iface");
gsbi              184 drivers/soc/qcom/qcom_gsbi.c 	if (IS_ERR(gsbi->hclk))
gsbi              185 drivers/soc/qcom/qcom_gsbi.c 		return PTR_ERR(gsbi->hclk);
gsbi              187 drivers/soc/qcom/qcom_gsbi.c 	clk_prepare_enable(gsbi->hclk);
gsbi              189 drivers/soc/qcom/qcom_gsbi.c 	writel_relaxed((gsbi->mode << GSBI_PROTOCOL_SHIFT) | gsbi->crci,
gsbi              201 drivers/soc/qcom/qcom_gsbi.c 			if (gsbi->mode == GSBI_PROT_SPI)
gsbi              202 drivers/soc/qcom/qcom_gsbi.c 				regmap_update_bits(gsbi->tcsr,
gsbi              205 drivers/soc/qcom/qcom_gsbi.c 				regmap_update_bits(gsbi->tcsr,
gsbi              214 drivers/soc/qcom/qcom_gsbi.c 	platform_set_drvdata(pdev, gsbi);
gsbi              218 drivers/soc/qcom/qcom_gsbi.c 		clk_disable_unprepare(gsbi->hclk);
gsbi              224 drivers/soc/qcom/qcom_gsbi.c 	struct gsbi_info *gsbi = platform_get_drvdata(pdev);
gsbi              226 drivers/soc/qcom/qcom_gsbi.c 	clk_disable_unprepare(gsbi->hclk);