Lines Matching refs:apcs
66 struct qcom_apcs_ipc *apcs = container_of(chan->mbox, in qcom_apcs_ipc_send_data() local
70 return regmap_write(apcs->regmap, apcs->offset, BIT(idx)); in qcom_apcs_ipc_send_data()
79 struct qcom_apcs_ipc *apcs; in qcom_apcs_ipc_probe() local
86 apcs = devm_kzalloc(&pdev->dev, sizeof(*apcs), GFP_KERNEL); in qcom_apcs_ipc_probe()
87 if (!apcs) in qcom_apcs_ipc_probe()
100 apcs->regmap = regmap; in qcom_apcs_ipc_probe()
101 apcs->offset = apcs_data->offset; in qcom_apcs_ipc_probe()
104 for (i = 0; i < ARRAY_SIZE(apcs->mbox_chans); i++) in qcom_apcs_ipc_probe()
105 apcs->mbox_chans[i].con_priv = (void *)i; in qcom_apcs_ipc_probe()
107 apcs->mbox.dev = &pdev->dev; in qcom_apcs_ipc_probe()
108 apcs->mbox.ops = &qcom_apcs_ipc_ops; in qcom_apcs_ipc_probe()
109 apcs->mbox.chans = apcs->mbox_chans; in qcom_apcs_ipc_probe()
110 apcs->mbox.num_chans = ARRAY_SIZE(apcs->mbox_chans); in qcom_apcs_ipc_probe()
112 ret = devm_mbox_controller_register(&pdev->dev, &apcs->mbox); in qcom_apcs_ipc_probe()
119 apcs->clk = platform_device_register_data(&pdev->dev, in qcom_apcs_ipc_probe()
123 if (IS_ERR(apcs->clk)) in qcom_apcs_ipc_probe()
127 platform_set_drvdata(pdev, apcs); in qcom_apcs_ipc_probe()
134 struct qcom_apcs_ipc *apcs = platform_get_drvdata(pdev); in qcom_apcs_ipc_remove() local
135 struct platform_device *clk = apcs->clk; in qcom_apcs_ipc_remove()