Lines Matching refs:ept
129 void rpmsg_destroy_ept(struct rpmsg_endpoint *ept) in rpmsg_destroy_ept() argument
131 if (ept && ept->ops) in rpmsg_destroy_ept()
132 ept->ops->destroy_ept(ept); in rpmsg_destroy_ept()
154 int rpmsg_send(struct rpmsg_endpoint *ept, void *data, int len) in rpmsg_send() argument
156 if (WARN_ON(!ept)) in rpmsg_send()
158 if (!ept->ops->send) in rpmsg_send()
161 return ept->ops->send(ept, data, len); in rpmsg_send()
183 int rpmsg_sendto(struct rpmsg_endpoint *ept, void *data, int len, u32 dst) in rpmsg_sendto() argument
185 if (WARN_ON(!ept)) in rpmsg_sendto()
187 if (!ept->ops->sendto) in rpmsg_sendto()
190 return ept->ops->sendto(ept, data, len, dst); in rpmsg_sendto()
214 int rpmsg_send_offchannel(struct rpmsg_endpoint *ept, u32 src, u32 dst, in rpmsg_send_offchannel() argument
217 if (WARN_ON(!ept)) in rpmsg_send_offchannel()
219 if (!ept->ops->send_offchannel) in rpmsg_send_offchannel()
222 return ept->ops->send_offchannel(ept, src, dst, data, len); in rpmsg_send_offchannel()
243 int rpmsg_trysend(struct rpmsg_endpoint *ept, void *data, int len) in rpmsg_trysend() argument
245 if (WARN_ON(!ept)) in rpmsg_trysend()
247 if (!ept->ops->trysend) in rpmsg_trysend()
250 return ept->ops->trysend(ept, data, len); in rpmsg_trysend()
271 int rpmsg_trysendto(struct rpmsg_endpoint *ept, void *data, int len, u32 dst) in rpmsg_trysendto() argument
273 if (WARN_ON(!ept)) in rpmsg_trysendto()
275 if (!ept->ops->trysendto) in rpmsg_trysendto()
278 return ept->ops->trysendto(ept, data, len, dst); in rpmsg_trysendto()
290 __poll_t rpmsg_poll(struct rpmsg_endpoint *ept, struct file *filp, in rpmsg_poll() argument
293 if (WARN_ON(!ept)) in rpmsg_poll()
295 if (!ept->ops->poll) in rpmsg_poll()
298 return ept->ops->poll(ept, filp, wait); in rpmsg_poll()
321 int rpmsg_trysend_offchannel(struct rpmsg_endpoint *ept, u32 src, u32 dst, in rpmsg_trysend_offchannel() argument
324 if (WARN_ON(!ept)) in rpmsg_trysend_offchannel()
326 if (!ept->ops->trysend_offchannel) in rpmsg_trysend_offchannel()
329 return ept->ops->trysend_offchannel(ept, src, dst, data, len); in rpmsg_trysend_offchannel()
343 ssize_t rpmsg_get_mtu(struct rpmsg_endpoint *ept) in rpmsg_get_mtu() argument
345 if (WARN_ON(!ept)) in rpmsg_get_mtu()
347 if (!ept->ops->get_mtu) in rpmsg_get_mtu()
350 return ept->ops->get_mtu(ept); in rpmsg_get_mtu()
521 struct rpmsg_endpoint *ept = NULL; in rpmsg_dev_probe() local
533 ept = rpmsg_create_ept(rpdev, rpdrv->callback, NULL, chinfo); in rpmsg_dev_probe()
534 if (!ept) { in rpmsg_dev_probe()
540 rpdev->ept = ept; in rpmsg_dev_probe()
541 rpdev->src = ept->addr; in rpmsg_dev_probe()
550 if (ept && rpdev->ops->announce_create) { in rpmsg_dev_probe()
564 if (ept) in rpmsg_dev_probe()
565 rpmsg_destroy_ept(ept); in rpmsg_dev_probe()
583 if (rpdev->ept) in rpmsg_dev_remove()
584 rpmsg_destroy_ept(rpdev->ept); in rpmsg_dev_remove()