Lines Matching refs:apcs
37 struct qcom_apcs_ipc *apcs = container_of(chan->mbox, in qcom_apcs_ipc_send_data() local
41 return regmap_write(apcs->regmap, apcs->offset, BIT(idx)); in qcom_apcs_ipc_send_data()
50 struct qcom_apcs_ipc *apcs; in qcom_apcs_ipc_probe() local
63 apcs = devm_kzalloc(&pdev->dev, sizeof(*apcs), GFP_KERNEL); in qcom_apcs_ipc_probe()
64 if (!apcs) in qcom_apcs_ipc_probe()
78 apcs->regmap = regmap; in qcom_apcs_ipc_probe()
79 apcs->offset = offset; in qcom_apcs_ipc_probe()
82 for (i = 0; i < ARRAY_SIZE(apcs->mbox_chans); i++) in qcom_apcs_ipc_probe()
83 apcs->mbox_chans[i].con_priv = (void *)i; in qcom_apcs_ipc_probe()
85 apcs->mbox.dev = &pdev->dev; in qcom_apcs_ipc_probe()
86 apcs->mbox.ops = &qcom_apcs_ipc_ops; in qcom_apcs_ipc_probe()
87 apcs->mbox.chans = apcs->mbox_chans; in qcom_apcs_ipc_probe()
88 apcs->mbox.num_chans = ARRAY_SIZE(apcs->mbox_chans); in qcom_apcs_ipc_probe()
90 ret = devm_mbox_controller_register(&pdev->dev, &apcs->mbox); in qcom_apcs_ipc_probe()
97 apcs->clk = platform_device_register_data(&pdev->dev, in qcom_apcs_ipc_probe()
101 if (IS_ERR(apcs->clk)) in qcom_apcs_ipc_probe()
105 platform_set_drvdata(pdev, apcs); in qcom_apcs_ipc_probe()
112 struct qcom_apcs_ipc *apcs = platform_get_drvdata(pdev); in qcom_apcs_ipc_remove() local
113 struct platform_device *clk = apcs->clk; in qcom_apcs_ipc_remove()