Lines Matching refs:ept

125  * @ept: endpoing to destroy
131 void rpmsg_destroy_ept(struct rpmsg_endpoint *ept)
133 if (ept && ept->ops)
134 ept->ops->destroy_ept(ept);
140 * @ept: the rpmsg endpoint
144 * This function sends @data of length @len on the @ept endpoint.
145 * The message will be sent to the remote processor which the @ept
146 * endpoint belongs to, using @ept's address and its associated rpmsg
156 int rpmsg_send(struct rpmsg_endpoint *ept, void *data, int len)
158 if (WARN_ON(!ept))
160 if (!ept->ops->send)
163 return ept->ops->send(ept, data, len);
169 * @ept: the rpmsg endpoint
175 * The message will be sent to the remote processor which the @ept
176 * endpoint belongs to, using @ept's address as source.
185 int rpmsg_sendto(struct rpmsg_endpoint *ept, void *data, int len, u32 dst)
187 if (WARN_ON(!ept))
189 if (!ept->ops->sendto)
192 return ept->ops->sendto(ept, data, len, dst);
198 * @ept: the rpmsg endpoint
206 * The message will be sent to the remote processor which the @ept
216 int rpmsg_send_offchannel(struct rpmsg_endpoint *ept, u32 src, u32 dst,
219 if (WARN_ON(!ept))
221 if (!ept->ops->send_offchannel)
224 return ept->ops->send_offchannel(ept, src, dst, data, len);
230 * @ept: the rpmsg endpoint
234 * This function sends @data of length @len on the @ept endpoint.
235 * The message will be sent to the remote processor which the @ept
236 * endpoint belongs to, using @ept's address as source and its associated
245 int rpmsg_trysend(struct rpmsg_endpoint *ept, void *data, int len)
247 if (WARN_ON(!ept))
249 if (!ept->ops->trysend)
252 return ept->ops->trysend(ept, data, len);
258 * @ept: the rpmsg endpoint
264 * The message will be sent to the remote processor which the @ept
265 * endpoint belongs to, using @ept's address as source.
273 int rpmsg_trysendto(struct rpmsg_endpoint *ept, void *data, int len, u32 dst)
275 if (WARN_ON(!ept))
277 if (!ept->ops->trysendto)
280 return ept->ops->trysendto(ept, data, len, dst);
286 * @ept: the rpmsg endpoint
292 __poll_t rpmsg_poll(struct rpmsg_endpoint *ept, struct file *filp,
295 if (WARN_ON(!ept))
297 if (!ept->ops->poll)
300 return ept->ops->poll(ept, filp, wait);
306 * @ept: the rpmsg endpoint
314 * The message will be sent to the remote processor which the @ept
323 int rpmsg_trysend_offchannel(struct rpmsg_endpoint *ept, u32 src, u32 dst,
326 if (WARN_ON(!ept))
328 if (!ept->ops->trysend_offchannel)
331 return ept->ops->trysend_offchannel(ept, src, dst, data, len);
337 * @ept: the rpmsg endpoint
343 int rpmsg_set_flow_control(struct rpmsg_endpoint *ept, bool pause, u32 dst)
345 if (WARN_ON(!ept))
347 if (!ept->ops->set_flow_control)
350 return ept->ops->set_flow_control(ept, pause, dst);
356 * @ept: the rpmsg endpoint
364 ssize_t rpmsg_get_mtu(struct rpmsg_endpoint *ept)
366 if (WARN_ON(!ept))
368 if (!ept->ops->get_mtu)
371 return ept->ops->get_mtu(ept);
542 struct rpmsg_endpoint *ept = NULL;
554 ept = rpmsg_create_ept(rpdev, rpdrv->callback, NULL, chinfo);
555 if (!ept) {
561 rpdev->ept = ept;
562 rpdev->src = ept->addr;
564 ept->flow_cb = rpdrv->flowcontrol;
573 if (ept && rpdev->ops->announce_create) {
587 if (ept)
588 rpmsg_destroy_ept(ept);
606 if (rpdev->ept)
607 rpmsg_destroy_ept(rpdev->ept);