Lines Matching refs:ept
56 struct rpmsg_endpoint ept; member
61 #define to_mtk_rpmsg_endpoint(r) container_of(r, struct mtk_rpmsg_endpoint, ept)
67 struct rpmsg_endpoint *ept = container_of(kref, struct rpmsg_endpoint, in __mtk_ept_release() local
69 kfree(to_mtk_rpmsg_endpoint(ept)); in __mtk_ept_release()
75 struct rpmsg_endpoint *ept = &mept->ept; in mtk_rpmsg_ipi_handler() local
78 ret = (*ept->cb)(ept->rpdev, data, len, ept->priv, ept->addr); in mtk_rpmsg_ipi_handler()
80 dev_warn(&ept->rpdev->dev, "rpmsg handler return error = %d", in mtk_rpmsg_ipi_handler()
90 struct rpmsg_endpoint *ept; in __mtk_create_ept() local
99 ept = &mept->ept; in __mtk_create_ept()
100 kref_init(&ept->refcount); in __mtk_create_ept()
102 ept->rpdev = rpdev; in __mtk_create_ept()
103 ept->cb = cb; in __mtk_create_ept()
104 ept->priv = priv; in __mtk_create_ept()
105 ept->ops = &mtk_rpmsg_endpoint_ops; in __mtk_create_ept()
106 ept->addr = id; in __mtk_create_ept()
112 kref_put(&ept->refcount, __mtk_ept_release); in __mtk_create_ept()
116 return ept; in __mtk_create_ept()
129 static void mtk_rpmsg_destroy_ept(struct rpmsg_endpoint *ept) in mtk_rpmsg_destroy_ept() argument
132 to_mtk_rpmsg_endpoint(ept)->mtk_subdev; in mtk_rpmsg_destroy_ept()
134 mtk_subdev->info->unregister_ipi(mtk_subdev->pdev, ept->addr); in mtk_rpmsg_destroy_ept()
135 kref_put(&ept->refcount, __mtk_ept_release); in mtk_rpmsg_destroy_ept()
138 static int mtk_rpmsg_send(struct rpmsg_endpoint *ept, void *data, int len) in mtk_rpmsg_send() argument
141 to_mtk_rpmsg_endpoint(ept)->mtk_subdev; in mtk_rpmsg_send()
143 return mtk_subdev->info->send_ipi(mtk_subdev->pdev, ept->addr, data, in mtk_rpmsg_send()
147 static int mtk_rpmsg_trysend(struct rpmsg_endpoint *ept, void *data, int len) in mtk_rpmsg_trysend() argument
150 to_mtk_rpmsg_endpoint(ept)->mtk_subdev; in mtk_rpmsg_trysend()
156 return mtk_subdev->info->send_ipi(mtk_subdev->pdev, ept->addr, data, in mtk_rpmsg_trysend()